idx
int64
project
string
commit_id
string
project_url
string
commit_url
string
commit_message
string
target
int64
func
string
func_hash
string
file_name
string
file_hash
string
cwe
string
cve
string
cve_desc
string
nvd_url
string
206,043
gimp
c57f9dcf1934a9ab0cd67650f2dea18cb0902270
https://github.com/GNOME/gimp
https://git.gnome.org/browse/gimp/commit/?id=c57f9dcf1934a9ab0cd67650f2dea18cb0902270
Bug 790784 - (CVE-2017-17784) heap overread in gbr parser / load_image. We were assuming the input name was well formed, hence was nul-terminated. As any data coming from external input, this has to be thorougly checked. Similar to commit 06d24a79af94837d615d0024916bb95a01bf3c59 but adapted to older gimp-2-8 code.
1
load_image (const gchar *filename, GError **error) { gchar *name; gint fd; BrushHeader bh; guchar *brush_buf = NULL; gint32 image_ID; gint32 layer_ID; GimpParasite *parasite; GimpDrawable *drawable; GimpPix...
219487381392289910094593757172224969152
file-gbr.c
210537502330856952427982223109888523462
CWE-125
CVE-2017-17784
In GIMP 2.8.22, there is a heap-based buffer over-read in load_image in plug-ins/common/file-gbr.c in the gbr import parser, related to mishandling of UTF-8 data.
https://nvd.nist.gov/vuln/detail/CVE-2017-17784
376,678
gimp
c57f9dcf1934a9ab0cd67650f2dea18cb0902270
https://github.com/GNOME/gimp
https://git.gnome.org/browse/gimp/commit/?id=c57f9dcf1934a9ab0cd67650f2dea18cb0902270
Bug 790784 - (CVE-2017-17784) heap overread in gbr parser / load_image. We were assuming the input name was well formed, hence was nul-terminated. As any data coming from external input, this has to be thorougly checked. Similar to commit 06d24a79af94837d615d0024916bb95a01bf3c59 but adapted to older gimp-2-8 code.
0
load_image (const gchar *filename, GError **error) { gchar *name; gint fd; BrushHeader bh; guchar *brush_buf = NULL; gint32 image_ID; gint32 layer_ID; GimpParasite *parasite; GimpDrawable *drawable; GimpPix...
269327823766609487068724383051357537961
file-gbr.c
146644042188037261041231342134151379601
CWE-125
CVE-2017-17784
In GIMP 2.8.22, there is a heap-based buffer over-read in load_image in plug-ins/common/file-gbr.c in the gbr import parser, related to mishandling of UTF-8 data.
https://nvd.nist.gov/vuln/detail/CVE-2017-17784
206,044
tigervnc
d61a767d6842b530ffb532ddd5a3d233119aad40
https://github.com/CendioOssman/tigervnc
https://github.com/CendioOssman/tigervnc/commit/d61a767d6842b530ffb532ddd5a3d233119aad40
Make ZlibInStream more robust against failures Move the checks around to avoid missing cases where we might access memory that is no longer valid. Also avoid touching the underlying stream implicitly (e.g. via the destructor) as it might also no longer be valid. A malicious server could theoretically use this for rem...
1
void ZRLE_DECODE (const Rect& r, rdr::InStream* is, rdr::ZlibInStream* zis, const PixelFormat& pf, ModifiablePixelBuffer* pb) { int length = is->readU32(); zis->setUnderlying(is, length); Rect t; PIXEL_T buf[64 * 64]; for (t.tl.y = r.tl.y; t.tl.y < r.br.y; t.tl.y += 64) { ...
266797184622822909427515310440359797331
None
CWE-672
CVE-2019-15691
TigerVNC version prior to 1.10.1 is vulnerable to stack use-after-return, which occurs due to incorrect usage of stack memory in ZRLEDecoder. If decoding routine would throw an exception, ZRLEDecoder may try to access stack variable, which has been already freed during the process of stack unwinding. Exploitation of th...
https://nvd.nist.gov/vuln/detail/CVE-2019-15691
376,682
tigervnc
d61a767d6842b530ffb532ddd5a3d233119aad40
https://github.com/CendioOssman/tigervnc
https://github.com/CendioOssman/tigervnc/commit/d61a767d6842b530ffb532ddd5a3d233119aad40
Make ZlibInStream more robust against failures Move the checks around to avoid missing cases where we might access memory that is no longer valid. Also avoid touching the underlying stream implicitly (e.g. via the destructor) as it might also no longer be valid. A malicious server could theoretically use this for rem...
0
void ZRLE_DECODE (const Rect& r, rdr::InStream* is, rdr::ZlibInStream* zis, const PixelFormat& pf, ModifiablePixelBuffer* pb) { int length = is->readU32(); zis->setUnderlying(is, length); Rect t; PIXEL_T buf[64 * 64]; for (t.tl.y = r.tl.y; t.tl.y < r.br.y; t.tl.y += 64) { ...
147406355021092564490243997240144808169
None
CWE-672
CVE-2019-15691
TigerVNC version prior to 1.10.1 is vulnerable to stack use-after-return, which occurs due to incorrect usage of stack memory in ZRLEDecoder. If decoding routine would throw an exception, ZRLEDecoder may try to access stack variable, which has been already freed during the process of stack unwinding. Exploitation of th...
https://nvd.nist.gov/vuln/detail/CVE-2019-15691
206,262
vim
c6fdb15d423df22e1776844811d082322475e48a
https://github.com/vim/vim
https://github.com/vim/vim/commit/c6fdb15d423df22e1776844811d082322475e48a
patch 9.0.0025: accessing beyond allocated memory with the cmdline window Problem: Accessing beyond allocated memory when using the cmdline window in Ex mode. Solution: Use "*" instead of "'<,'>" for Visual mode.
1
parse_command_modifiers( exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only) { char_u *orig_cmd = eap->cmd; char_u *cmd_start = NULL; int use_plus_cmd = FALSE; int starts_with_colon = FALSE; int vim9script = in_vim9script(); int has_visual_range = F...
61928994098668347793112269457604758897
ex_docmd.c
287878878694425028301990758845576774946
CWE-787
CVE-2022-2288
Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2288
379,334
vim
c6fdb15d423df22e1776844811d082322475e48a
https://github.com/vim/vim
https://github.com/vim/vim/commit/c6fdb15d423df22e1776844811d082322475e48a
patch 9.0.0025: accessing beyond allocated memory with the cmdline window Problem: Accessing beyond allocated memory when using the cmdline window in Ex mode. Solution: Use "*" instead of "'<,'>" for Visual mode.
0
parse_command_modifiers( exarg_T *eap, char **errormsg, cmdmod_T *cmod, int skip_only) { char_u *orig_cmd = eap->cmd; char_u *cmd_start = NULL; int use_plus_cmd = FALSE; int starts_with_colon = FALSE; int vim9script = in_vim9script(); int has_visual_range = F...
128847198820720658441664267481456465295
ex_docmd.c
80050062526332961104670632599823980115
CWE-787
CVE-2022-2288
Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2288
206,273
radare2
a7ce29647fcb38386d7439696375e16e093d6acb
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/a7ce29647fcb38386d7439696375e16e093d6acb
Fix UAF in aaaa on arm/thumb switching ##crash * Reported by @peacock-doris via huntr.dev * Reproducer tests_65185 * This is a logic fix, but not the fully safe as changes in the code can result on UAF again, to properly protect r2 from crashing we need to break the ABI and add refcounting to RRegItem, which can't...
1
static void extract_arg(RAnal *anal, RAnalFunction *fcn, RAnalOp *op, const char *reg, const char *sign, char type) { st64 ptr = 0; char *addr, *esil_buf = NULL; const st64 maxstackframe = 1024 * 8; r_return_if_fail (anal && fcn && op && reg); size_t i; for (i = 0; i < R_ARRAY_SIZE (op->src); i++) { if (op->...
336184840247355587470651192558617642560
None
CWE-416
CVE-2022-1031
Use After Free in op_is_set_bp in GitHub repository radareorg/radare2 prior to 5.6.6.
https://nvd.nist.gov/vuln/detail/CVE-2022-1031
379,671
radare2
a7ce29647fcb38386d7439696375e16e093d6acb
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/a7ce29647fcb38386d7439696375e16e093d6acb
Fix UAF in aaaa on arm/thumb switching ##crash * Reported by @peacock-doris via huntr.dev * Reproducer tests_65185 * This is a logic fix, but not the fully safe as changes in the code can result on UAF again, to properly protect r2 from crashing we need to break the ABI and add refcounting to RRegItem, which can't...
0
static void extract_arg(RAnal *anal, RAnalFunction *fcn, RAnalOp *op, const char *reg, const char *sign, char type) { st64 ptr = 0; char *addr, *esil_buf = NULL; const st64 maxstackframe = 1024 * 8; r_return_if_fail (anal && fcn && op && reg); size_t i; for (i = 0; i < R_ARRAY_SIZE (op->src); i++) { if (op->...
117008167646492270733743639992860727677
None
CWE-416
CVE-2022-1031
Use After Free in op_is_set_bp in GitHub repository radareorg/radare2 prior to 5.6.6.
https://nvd.nist.gov/vuln/detail/CVE-2022-1031
206,417
vim
0971c7a4e537ea120a6bb2195960be8d0815e97b
https://github.com/vim/vim
https://github.com/vim/vim/commit/0971c7a4e537ea120a6bb2195960be8d0815e97b
patch 8.2.5162: reading before the start of the line with BS in Replace mode Problem: Reading before the start of the line with BS in Replace mode. Solution: Check the cursor column is more than zero.
1
ins_bs( int c, int mode, int *inserted_space_p) { linenr_T lnum; int cc; int temp = 0; // init for GCC colnr_T save_col; colnr_T mincol; int did_backspace = FALSE; int in_indent; int oldState; int cpc[MAX_MCO]; // composing characters int call_fix_in...
172194519756788339453675041357999010208
edit.c
334216402611901751671385717284214475763
CWE-787
CVE-2022-2207
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-2207
380,955
vim
0971c7a4e537ea120a6bb2195960be8d0815e97b
https://github.com/vim/vim
https://github.com/vim/vim/commit/0971c7a4e537ea120a6bb2195960be8d0815e97b
patch 8.2.5162: reading before the start of the line with BS in Replace mode Problem: Reading before the start of the line with BS in Replace mode. Solution: Check the cursor column is more than zero.
0
ins_bs( int c, int mode, int *inserted_space_p) { linenr_T lnum; int cc; int temp = 0; // init for GCC colnr_T save_col; colnr_T mincol; int did_backspace = FALSE; int in_indent; int oldState; int cpc[MAX_MCO]; // composing characters int call_fix_in...
64259932111379563055532506605085485351
edit.c
91657375912486719968624749742093008286
CWE-787
CVE-2022-2207
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-2207
206,555
php-src
cc08cbc84d46933c1e9e0149633f1ed5d19e45e9
https://github.com/php/php-src
https://git.php.net/?p=php-src.git;a=commit;h=cc08cbc84d46933c1e9e0149633f1ed5d19e45e9
Fix #73280: Stack Buffer Overflow in GD dynamicGetbuf We make sure to never pass a negative `rlen` as size to memcpy(). Cf. <https://github.com/libgd/libgd/commit/53110871>.
1
static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) { int rlen, remain; dpIOCtxPtr dctx; dynamicPtr *dp; dctx = (dpIOCtxPtr) ctx; dp = dctx->dp; remain = dp->logicalSize - dp->pos; if (remain >= len) { rlen = len; } else { if (remain == 0) { return EOF; } rlen = remain; } memcpy(buf, (...
44554623121680820346289655905713695377
gd_io_dp.c
66950500877592745162628589676156559345
CWE-119
CVE-2016-8670
Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagec...
https://nvd.nist.gov/vuln/detail/CVE-2016-8670
382,797
php-src
cc08cbc84d46933c1e9e0149633f1ed5d19e45e9
https://github.com/php/php-src
https://git.php.net/?p=php-src.git;a=commit;h=cc08cbc84d46933c1e9e0149633f1ed5d19e45e9
Fix #73280: Stack Buffer Overflow in GD dynamicGetbuf We make sure to never pass a negative `rlen` as size to memcpy(). Cf. <https://github.com/libgd/libgd/commit/53110871>.
0
static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) { int rlen, remain; dpIOCtxPtr dctx; dynamicPtr *dp; dctx = (dpIOCtxPtr) ctx; dp = dctx->dp; remain = dp->logicalSize - dp->pos; if (remain >= len) { rlen = len; } else { if (remain <= 0) { return EOF; } rlen = remain; } memcpy(buf, (...
227798178939410399739015256330671261805
gd_io_dp.c
171487762597506665250744911889099357441
CWE-119
CVE-2016-8670
Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagec...
https://nvd.nist.gov/vuln/detail/CVE-2016-8670
206,588
php-src
feba44546c27b0158f9ac20e72040a224b918c75
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commitdiff;h=feba44546c27b0158f9ac20e72040a224b918c75
Fixed bug #22965 (Crash in gd lib's ImageFillToBorder()).
1
gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) { int lastBorder; /* Seek left */ int leftLimit, rightLimit; int i; leftLimit = (-1); if (border < 0) { /* Refuse to fill to a non-solid border */ return; } for (i = x; (i >= 0); i--) { if (gdImageGetPix...
198226344899217828573742271884272950799
None
CWE-119
CVE-2015-8874
Stack consumption vulnerability in GD in PHP before 5.6.12 allows remote attackers to cause a denial of service via a crafted imagefilltoborder call.
https://nvd.nist.gov/vuln/detail/CVE-2015-8874
383,316
php-src
feba44546c27b0158f9ac20e72040a224b918c75
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commitdiff;h=feba44546c27b0158f9ac20e72040a224b918c75
Fixed bug #22965 (Crash in gd lib's ImageFillToBorder()).
0
void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) { int lastBorder; /* Seek left */ int leftLimit = -1, rightLimit; int i; if (border < 0) { /* Refuse to fill to a non-solid border */ return; } if (x >= im->sx) { x = im->sx - 1; } if (y >= im->sy) { y = im->sy - 1; } fo...
4519916874419069747672345142292777613
None
CWE-119
CVE-2015-8874
Stack consumption vulnerability in GD in PHP before 5.6.12 allows remote attackers to cause a denial of service via a crafted imagefilltoborder call.
https://nvd.nist.gov/vuln/detail/CVE-2015-8874
206,625
raptor
590681e546cd9aa18d57dc2ea1858cb734a3863f
https://github.com/dajobe/raptor
https://github.com/dajobe/raptor/commit/590681e546cd9aa18d57dc2ea1858cb734a3863f
Calcualte max nspace declarations correctly for XML writer (raptor_xml_writer_start_element_common): Calculate max including for each attribute a potential name and value. Fixes Issues #0000617 http://bugs.librdf.org/mantis/view.php?id=617 and #0000618 http://bugs.librdf.org/mantis/view.php?id=618
1
raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, raptor_xml_element* element, int auto_empty) { raptor_iostream* iostr = xml_writer->iostr; raptor_namespace_stack *nstack = xml_writer->nstack; int depth = xml_writer...
183974089624650942434351568312452779610
raptor_xml_writer.c
303005196227120175198140448209688194758
CWE-787
CVE-2017-18926
raptor_xml_writer_start_element_common in raptor_xml_writer.c in Raptor RDF Syntax Library 2.0.15 miscalculates the maximum nspace declarations for the XML writer, leading to heap-based buffer overflows (sometimes seen in raptor_qname_format_as_xml).
https://nvd.nist.gov/vuln/detail/CVE-2017-18926
384,124
raptor
590681e546cd9aa18d57dc2ea1858cb734a3863f
https://github.com/dajobe/raptor
https://github.com/dajobe/raptor/commit/590681e546cd9aa18d57dc2ea1858cb734a3863f
Calcualte max nspace declarations correctly for XML writer (raptor_xml_writer_start_element_common): Calculate max including for each attribute a potential name and value. Fixes Issues #0000617 http://bugs.librdf.org/mantis/view.php?id=617 and #0000618 http://bugs.librdf.org/mantis/view.php?id=618
0
raptor_xml_writer_start_element_common(raptor_xml_writer* xml_writer, raptor_xml_element* element, int auto_empty) { raptor_iostream* iostr = xml_writer->iostr; raptor_namespace_stack *nstack = xml_writer->nstack; int depth = xml_writer...
82963305933956175677502497774267767451
raptor_xml_writer.c
139112831165877018854969912519011883099
CWE-787
CVE-2017-18926
raptor_xml_writer_start_element_common in raptor_xml_writer.c in Raptor RDF Syntax Library 2.0.15 miscalculates the maximum nspace declarations for the XML writer, leading to heap-based buffer overflows (sometimes seen in raptor_qname_format_as_xml).
https://nvd.nist.gov/vuln/detail/CVE-2017-18926
206,639
linux
e02f0d3970404bfea385b6edb86f2d936db0ea2b
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e02f0d3970404bfea385b6edb86f2d936db0ea2b
netfilter: nf_tables: disallow binding to already bound chain Update nft_data_init() to report EINVAL if chain is already bound. Fixes: d0e2c7de92c7 ("netfilter: nf_tables: add NFT_CHAIN_BINDING") Reported-by: Gwangun Jung <exsociety@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1
static int nft_verdict_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) { u8 genmask = nft_genmask_next(ctx->net); struct nlattr *tb[NFTA_VERDICT_MAX + 1]; struct nft_chain *chain; int err; err = nla_parse_nested_deprecated(tb, NFTA_VERDICT_MAX, n...
76294390154807140346030498178733770308
nf_tables_api.c
280373467088228575441623327249382307245
CWE-703
CVE-2022-39190
An issue was discovered in net/netfilter/nf_tables_api.c in the Linux kernel before 5.19.6. A denial of service can occur upon binding to an already bound chain.
https://nvd.nist.gov/vuln/detail/CVE-2022-39190
384,201
linux
e02f0d3970404bfea385b6edb86f2d936db0ea2b
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e02f0d3970404bfea385b6edb86f2d936db0ea2b
netfilter: nf_tables: disallow binding to already bound chain Update nft_data_init() to report EINVAL if chain is already bound. Fixes: d0e2c7de92c7 ("netfilter: nf_tables: add NFT_CHAIN_BINDING") Reported-by: Gwangun Jung <exsociety@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
0
static int nft_verdict_init(const struct nft_ctx *ctx, struct nft_data *data, struct nft_data_desc *desc, const struct nlattr *nla) { u8 genmask = nft_genmask_next(ctx->net); struct nlattr *tb[NFTA_VERDICT_MAX + 1]; struct nft_chain *chain; int err; err = nla_parse_nested_deprecated(tb, NFTA_VERDICT_MAX, n...
189225679685979204194302814541477257663
nf_tables_api.c
161585463478410786724773068235961577198
CWE-703
CVE-2022-39190
An issue was discovered in net/netfilter/nf_tables_api.c in the Linux kernel before 5.19.6. A denial of service can occur upon binding to an already bound chain.
https://nvd.nist.gov/vuln/detail/CVE-2022-39190
206,670
nbdkit
6c5faac6a37077cf2366388a80862bb00616d0d8
https://github.com/libguestfs/nbdkit
https://gitlab.com/nbdkit/nbdkit/-/commit/6c5faac6a37077cf2366388a80862bb00616d0d8
server: reset meta context replies on starttls Related to CVE-2021-3716, but not as severe. No compliant client will send NBD_CMD_BLOCK_STATUS unless it first negotiates NBD_OPT_SET_META_CONTEXT. If an attacker injects a premature SET_META_CONTEXT, either the client will never notice (because it never uses BLOCK_STA...
1
negotiate_handshake_newstyle_options (void) { GET_CONN; struct nbd_new_option new_option; size_t nr_options; bool list_seen = false; uint64_t version; uint32_t option; uint32_t optlen; struct nbd_export_name_option_reply handshake_finish; const char *optname; uint64_t exportsize; struct backend *b...
230092713719482299459555478858076762309
protocol-handshake-newstyle.c
263209595426945567952192628081217546469
CWE-924
CVE-2021-3716
A flaw was found in nbdkit due to to improperly caching plaintext state across the STARTTLS encryption boundary. A MitM attacker could use this flaw to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying everything else a client sends to the server, potentially leading the client to terminate the NBD session. T...
https://nvd.nist.gov/vuln/detail/CVE-2021-3716
384,677
nbdkit
6c5faac6a37077cf2366388a80862bb00616d0d8
https://github.com/libguestfs/nbdkit
https://gitlab.com/nbdkit/nbdkit/-/commit/6c5faac6a37077cf2366388a80862bb00616d0d8
server: reset meta context replies on starttls Related to CVE-2021-3716, but not as severe. No compliant client will send NBD_CMD_BLOCK_STATUS unless it first negotiates NBD_OPT_SET_META_CONTEXT. If an attacker injects a premature SET_META_CONTEXT, either the client will never notice (because it never uses BLOCK_STA...
0
negotiate_handshake_newstyle_options (void) { GET_CONN; struct nbd_new_option new_option; size_t nr_options; bool list_seen = false; uint64_t version; uint32_t option; uint32_t optlen; struct nbd_export_name_option_reply handshake_finish; const char *optname; uint64_t exportsize; struct backend *b...
13793654971535202622888110493636437287
protocol-handshake-newstyle.c
210643238405506282504328455056206224474
CWE-924
CVE-2021-3716
A flaw was found in nbdkit due to to improperly caching plaintext state across the STARTTLS encryption boundary. A MitM attacker could use this flaw to inject a plaintext NBD_OPT_STRUCTURED_REPLY before proxying everything else a client sends to the server, potentially leading the client to terminate the NBD session. T...
https://nvd.nist.gov/vuln/detail/CVE-2021-3716
206,676
vim
777e7c21b7627be80961848ac560cb0a9978ff43
https://github.com/vim/vim
https://github.com/vim/vim/commit/777e7c21b7627be80961848ac560cb0a9978ff43
patch 8.2.3564: invalid memory access when scrolling without valid screen Problem: Invalid memory access when scrolling without a valid screen. Solution: Do not set VALID_BOTLINE in w_valid.
1
update_topline(void) { long line_count; int halfheight; int n; linenr_T old_topline; #ifdef FEAT_DIFF int old_topfill; #endif #ifdef FEAT_FOLDING linenr_T lnum; #endif int check_topline = FALSE; int check_botline = FALSE; long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_...
228543629723963000813717359055705778977
move.c
235877722919937919149866597040080656666
CWE-122
CVE-2021-3903
vim is vulnerable to Heap-based Buffer Overflow
https://nvd.nist.gov/vuln/detail/CVE-2021-3903
384,767
vim
777e7c21b7627be80961848ac560cb0a9978ff43
https://github.com/vim/vim
https://github.com/vim/vim/commit/777e7c21b7627be80961848ac560cb0a9978ff43
patch 8.2.3564: invalid memory access when scrolling without valid screen Problem: Invalid memory access when scrolling without a valid screen. Solution: Do not set VALID_BOTLINE in w_valid.
0
update_topline(void) { long line_count; int halfheight; int n; linenr_T old_topline; #ifdef FEAT_DIFF int old_topfill; #endif #ifdef FEAT_FOLDING linenr_T lnum; #endif int check_topline = FALSE; int check_botline = FALSE; long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_...
318695242827135485367008238388311307871
move.c
216110417083492209479100354226379064539
CWE-122
CVE-2021-3903
vim is vulnerable to Heap-based Buffer Overflow
https://nvd.nist.gov/vuln/detail/CVE-2021-3903
206,677
vim
5921aeb5741fc6e84c870d68c7c35b93ad0c9f87
https://github.com/vim/vim
https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f87
patch 8.2.4418: crash when using special multi-byte character Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character.
1
unix_expandpath( garray_T *gap, char_u *path, int wildoff, int flags, // EW_* flags int didstar) // expanded "**" once already { char_u *buf; char_u *path_end; char_u *p, *s, *e; int start_len = gap->ga_len; char_u *pat; regmatch_T regmatch; int starts_with_dot; ...
312674114892145176500352390912517515307
filepath.c
229066241137802797352238773426978474827
CWE-703
CVE-2022-0685
Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4418.
https://nvd.nist.gov/vuln/detail/CVE-2022-0685
384,803
vim
5921aeb5741fc6e84c870d68c7c35b93ad0c9f87
https://github.com/vim/vim
https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f87
patch 8.2.4418: crash when using special multi-byte character Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character.
0
unix_expandpath( garray_T *gap, char_u *path, int wildoff, int flags, // EW_* flags int didstar) // expanded "**" once already { char_u *buf; char_u *path_end; char_u *p, *s, *e; int start_len = gap->ga_len; char_u *pat; regmatch_T regmatch; int starts_with_dot; ...
314207374277767272342244288300260252688
filepath.c
268435853121240029622170757643385181583
CWE-703
CVE-2022-0685
Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4418.
https://nvd.nist.gov/vuln/detail/CVE-2022-0685
206,771
qcad
1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8
https://github.com/qcad/qcad
https://github.com/qcad/qcad/commit/1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8
check vertexIndex which might be -1 for broken DXF
1
bool DL_Dxf::handleLWPolylineData(DL_CreationInterface* /*creationInterface*/) { // Allocate LWPolyline vertices (group code 90): if (groupCode==90) { maxVertices = toInt(groupValue); if (maxVertices>0) { if (vertices!=NULL) { delete[] vertices; } ...
109412697930486379897697175336143106380
dl_dxf.cpp
313944639125792713455398286070640568043
CWE-191
CVE-2021-21897
A code execution vulnerability exists in the DL_Dxf::handleLWPolylineData functionality of Ribbonsoft dxflib 3.17.0. A specially-crafted .dxf file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
https://nvd.nist.gov/vuln/detail/CVE-2021-21897
386,565
qcad
1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8
https://github.com/qcad/qcad
https://github.com/qcad/qcad/commit/1eeffc5daf5a06cf6213ffc19e95923cdebb2eb8
check vertexIndex which might be -1 for broken DXF
0
bool DL_Dxf::handleLWPolylineData(DL_CreationInterface* /*creationInterface*/) { // Allocate LWPolyline vertices (group code 90): if (groupCode==90) { maxVertices = toInt(groupValue); if (maxVertices>0) { if (vertices!=NULL) { delete[] vertices; } ...
66825183138389317029314964036422106221
dl_dxf.cpp
181081005270076491555487324786328968837
CWE-191
CVE-2021-21897
A code execution vulnerability exists in the DL_Dxf::handleLWPolylineData functionality of Ribbonsoft dxflib 3.17.0. A specially-crafted .dxf file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
https://nvd.nist.gov/vuln/detail/CVE-2021-21897
206,781
linux
ea8569194b43f0f01f0a84c689388542c7254a1f
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea8569194b43f0f01f0a84c689388542c7254a1f
udf: Restore i_lenAlloc when inode expansion fails When we fail to expand inode from inline format to a normal format, we restore inode to contain the original inline formatting but we forgot to set i_lenAlloc back. The mismatch between i_lenAlloc and i_size was then causing further problems such as warnings and lost ...
1
int udf_expand_file_adinicb(struct inode *inode) { struct page *page; char *kaddr; struct udf_inode_info *iinfo = UDF_I(inode); int err; WARN_ON_ONCE(!inode_is_locked(inode)); if (!iinfo->i_lenAlloc) { if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) iinfo->i_alloc_type = ICBTAG_FLAG_AD_SHORT; else...
151977926301006306483685572008692883310
inode.c
299509065903875732825474013259696803505
CWE-476
CVE-2022-0617
A flaw null pointer dereference in the Linux kernel UDF file system functionality was found in the way user triggers udf_file_write_iter function for the malicious UDF image. A local user could use this flaw to crash the system. Actual from Linux kernel 4.2-rc1 till 5.17-rc2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0617
386,750
linux
ea8569194b43f0f01f0a84c689388542c7254a1f
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ea8569194b43f0f01f0a84c689388542c7254a1f
udf: Restore i_lenAlloc when inode expansion fails When we fail to expand inode from inline format to a normal format, we restore inode to contain the original inline formatting but we forgot to set i_lenAlloc back. The mismatch between i_lenAlloc and i_size was then causing further problems such as warnings and lost ...
0
int udf_expand_file_adinicb(struct inode *inode) { struct page *page; char *kaddr; struct udf_inode_info *iinfo = UDF_I(inode); int err; WARN_ON_ONCE(!inode_is_locked(inode)); if (!iinfo->i_lenAlloc) { if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) iinfo->i_alloc_type = ICBTAG_FLAG_AD_SHORT; else...
191954099261759057406602593964899861240
inode.c
50770462585650222153062698584720679665
CWE-476
CVE-2022-0617
A flaw null pointer dereference in the Linux kernel UDF file system functionality was found in the way user triggers udf_file_write_iter function for the malicious UDF image. A local user could use this flaw to crash the system. Actual from Linux kernel 4.2-rc1 till 5.17-rc2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0617
206,815
ImageMagick
c111ed9b035532c2c81ea569f2d22fded9517287
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/c111ed9b035532c2c81ea569f2d22fded9517287
https://github.com/ImageMagick/ImageMagick/issues/1540
1
static MagickBooleanType SetGrayscaleImage(Image *image, ExceptionInfo *exception) { CacheView *image_view; MagickBooleanType status; PixelInfo *colormap; register ssize_t i; ssize_t *colormap_index, j, y; assert(image != (Image *) NULL); assert(image->signature == Magic...
31139316036408574839827699821440311605
quantize.c
6776316156649379334956322163459365152
CWE-125
CVE-2019-11598
In ImageMagick 7.0.8-40 Q16, there is a heap-based buffer over-read in the function WritePNMImage of coders/pnm.c, which allows an attacker to cause a denial of service or possibly information disclosure via a crafted image file. This is related to SetGrayscaleImage in MagickCore/quantize.c.
https://nvd.nist.gov/vuln/detail/CVE-2019-11598
387,149
ImageMagick
c111ed9b035532c2c81ea569f2d22fded9517287
https://github.com/ImageMagick/ImageMagick
https://github.com/ImageMagick/ImageMagick/commit/c111ed9b035532c2c81ea569f2d22fded9517287
https://github.com/ImageMagick/ImageMagick/issues/1540
0
static MagickBooleanType SetGrayscaleImage(Image *image, ExceptionInfo *exception) { CacheView *image_view; MagickBooleanType status; PixelInfo *colormap; register ssize_t i; ssize_t *colormap_index, j, y; assert(image != (Image *) NULL); assert(image->signature == Magic...
185597478640915810926254287356895046975
quantize.c
90832018031567136939378750944649283392
CWE-125
CVE-2019-11598
In ImageMagick 7.0.8-40 Q16, there is a heap-based buffer over-read in the function WritePNMImage of coders/pnm.c, which allows an attacker to cause a denial of service or possibly information disclosure via a crafted image file. This is related to SetGrayscaleImage in MagickCore/quantize.c.
https://nvd.nist.gov/vuln/detail/CVE-2019-11598
206,845
linux
5934d9a0383619c14df91af8fd76261dc3de2f5f
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5934d9a0383619c14df91af8fd76261dc3de2f5f
ALSA: control: Re-order bounds checking in get_ctl_id_hash() These two checks are in the reverse order so it might read one element beyond the end of the array. First check if the "i" is within bounds before using it. Fixes: 6ab55ec0a938 ("ALSA: control: Fix an out-of-bounds bug in get_ctl_id_hash()") Signed-off-by:...
1
static unsigned long get_ctl_id_hash(const struct snd_ctl_elem_id *id) { int i; unsigned long h; h = id->iface; h = MULTIPLIER * h + id->device; h = MULTIPLIER * h + id->subdevice; for (i = 0; id->name[i] && i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN; i++) h = MULTIPLIER * h + id->name[i]; h = MULTIPLIER * h + id->ind...
131319443934908040237061712028017051028
control.c
255950300769870224716949641453203743368
CWE-125
CVE-2022-3170
An out-of-bounds access issue was found in the Linux kernel sound subsystem. It could occur when the 'id->name' provided by the user did not end with '\0'. A privileged local user could pass a specially crafted name through ioctl() interface and crash the system or potentially escalate their privileges on the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-3170
387,593
linux
5934d9a0383619c14df91af8fd76261dc3de2f5f
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5934d9a0383619c14df91af8fd76261dc3de2f5f
ALSA: control: Re-order bounds checking in get_ctl_id_hash() These two checks are in the reverse order so it might read one element beyond the end of the array. First check if the "i" is within bounds before using it. Fixes: 6ab55ec0a938 ("ALSA: control: Fix an out-of-bounds bug in get_ctl_id_hash()") Signed-off-by:...
0
static unsigned long get_ctl_id_hash(const struct snd_ctl_elem_id *id) { int i; unsigned long h; h = id->iface; h = MULTIPLIER * h + id->device; h = MULTIPLIER * h + id->subdevice; for (i = 0; i < SNDRV_CTL_ELEM_ID_NAME_MAXLEN && id->name[i]; i++) h = MULTIPLIER * h + id->name[i]; h = MULTIPLIER * h + id->ind...
34537843047622620480136251678937271731
control.c
333017582912688268799367809880673073354
CWE-125
CVE-2022-3170
An out-of-bounds access issue was found in the Linux kernel sound subsystem. It could occur when the 'id->name' provided by the user did not end with '\0'. A privileged local user could pass a specially crafted name through ioctl() interface and crash the system or potentially escalate their privileges on the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-3170
206,942
vim
1e56bda9048a9625bce6e660938c834c5c15b07d
https://github.com/vim/vim
https://github.com/vim/vim/commit/1e56bda9048a9625bce6e660938c834c5c15b07d
patch 9.0.0104: going beyond allocated memory when evaluating string constant Problem: Going beyond allocated memory when evaluating string constant. Solution: Properly skip over <Key> form.
1
eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate) { char_u *p; char_u *end; int extra = interpolate ? 1 : 0; int off = interpolate ? 0 : 1; int len; // Find the end of the string, skipping backslashed characters. for (p = *arg + off; *p != NUL && *p != '"'; MB_PTR...
338220226163490913152834959718974208239
typval.c
328531951922388475683903891036611129511
CWE-125
CVE-2022-2580
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0102.
https://nvd.nist.gov/vuln/detail/CVE-2022-2580
389,676
vim
1e56bda9048a9625bce6e660938c834c5c15b07d
https://github.com/vim/vim
https://github.com/vim/vim/commit/1e56bda9048a9625bce6e660938c834c5c15b07d
patch 9.0.0104: going beyond allocated memory when evaluating string constant Problem: Going beyond allocated memory when evaluating string constant. Solution: Properly skip over <Key> form.
0
eval_string(char_u **arg, typval_T *rettv, int evaluate, int interpolate) { char_u *p; char_u *end; int extra = interpolate ? 1 : 0; int off = interpolate ? 0 : 1; int len; // Find the end of the string, skipping backslashed characters. for (p = *arg + off; *p != NUL && *p != '"'; MB_PTR...
300144927032379821054071112406007573706
typval.c
264686639878036499427248365468285871356
CWE-125
CVE-2022-2580
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0102.
https://nvd.nist.gov/vuln/detail/CVE-2022-2580
206,946
jasper
d99636fad60629785efd1ef72da772a8ef68f54c
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/d99636fad60629785efd1ef72da772a8ef68f54c
fix memory leaks in function cmdopts_parse
1
cmdopts_t *cmdopts_parse(int argc, char **argv) { enum { CMDOPT_HELP = 0, CMDOPT_VERBOSE, CMDOPT_QUIET, CMDOPT_INFILE, CMDOPT_INFMT, CMDOPT_INOPT, CMDOPT_OUTFILE, CMDOPT_OUTFMT, CMDOPT_OUTOPT, CMDOPT_VERSION, CMDOPT_DEBUG, CMDOPT_CMPTNO, CMDOPT_SRGB, CMDOPT_MAXMEM, CMDOPT_LIST_ENABLED_COD...
93181291511681804073691200897709901657
jasper.c
221565924886298462326836957771233686713
CWE-703
CVE-2022-2963
A vulnerability found in jasper. This security vulnerability happens because of a memory leak bug in function cmdopts_parse that can cause a crash or segmentation fault.
https://nvd.nist.gov/vuln/detail/CVE-2022-2963
389,760
jasper
d99636fad60629785efd1ef72da772a8ef68f54c
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/d99636fad60629785efd1ef72da772a8ef68f54c
fix memory leaks in function cmdopts_parse
0
cmdopts_t *cmdopts_parse(int argc, char **argv) { enum { CMDOPT_HELP = 0, CMDOPT_VERBOSE, CMDOPT_QUIET, CMDOPT_INFILE, CMDOPT_INFMT, CMDOPT_INOPT, CMDOPT_OUTFILE, CMDOPT_OUTFMT, CMDOPT_OUTOPT, CMDOPT_VERSION, CMDOPT_DEBUG, CMDOPT_CMPTNO, CMDOPT_SRGB, CMDOPT_MAXMEM, CMDOPT_LIST_ENABLED_COD...
102932853856682606703676466444383538610
jasper.c
43318189901043805005058339060588403940
CWE-703
CVE-2022-2963
A vulnerability found in jasper. This security vulnerability happens because of a memory leak bug in function cmdopts_parse that can cause a crash or segmentation fault.
https://nvd.nist.gov/vuln/detail/CVE-2022-2963
207,068
linux
cc7a0bb058b85ea03db87169c60c7cfdd5d34678
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
PCI: rpadlpar: Fix potential drc_name corruption in store functions Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by placing a NUL terminator at nbyte + 1 or in place of a '\n' if present. However, the static buffer that we copy the drc_name data into is not zero...
1
static ssize_t remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; int rc; char *end; if (nbytes >= MAX_DRC_NAME_LEN) return 0; memcpy(drc_name, buf, nbytes); end = strchr(drc_name, '\n'); if (!end) end = &drc_na...
237293762490436147707541740545065202667
rpadlpar_sysfs.c
143265511624763705093739678134289779335
CWE-120
CVE-2021-28972
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot...
https://nvd.nist.gov/vuln/detail/CVE-2021-28972
391,627
linux
cc7a0bb058b85ea03db87169c60c7cfdd5d34678
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
PCI: rpadlpar: Fix potential drc_name corruption in store functions Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by placing a NUL terminator at nbyte + 1 or in place of a '\n' if present. However, the static buffer that we copy the drc_name data into is not zero...
0
static ssize_t remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; int rc; char *end; if (nbytes >= MAX_DRC_NAME_LEN) return 0; strscpy(drc_name, buf, nbytes + 1); end = strchr(drc_name, '\n'); if (end) *end = '\...
228561592734793467772177551896912743936
rpadlpar_sysfs.c
21668029196687947173345261458760783896
CWE-120
CVE-2021-28972
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot...
https://nvd.nist.gov/vuln/detail/CVE-2021-28972
207,069
linux
cc7a0bb058b85ea03db87169c60c7cfdd5d34678
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
PCI: rpadlpar: Fix potential drc_name corruption in store functions Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by placing a NUL terminator at nbyte + 1 or in place of a '\n' if present. However, the static buffer that we copy the drc_name data into is not zero...
1
static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; char *end; int rc; if (nbytes >= MAX_DRC_NAME_LEN) return 0; memcpy(drc_name, buf, nbytes); end = strchr(drc_name, '\n'); if (!end) end = &drc_name[n...
262261814389997886159936729256803084500
rpadlpar_sysfs.c
143265511624763705093739678134289779335
CWE-120
CVE-2021-28972
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot...
https://nvd.nist.gov/vuln/detail/CVE-2021-28972
391,628
linux
cc7a0bb058b85ea03db87169c60c7cfdd5d34678
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
PCI: rpadlpar: Fix potential drc_name corruption in store functions Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by placing a NUL terminator at nbyte + 1 or in place of a '\n' if present. However, the static buffer that we copy the drc_name data into is not zero...
0
static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; char *end; int rc; if (nbytes >= MAX_DRC_NAME_LEN) return 0; strscpy(drc_name, buf, nbytes + 1); end = strchr(drc_name, '\n'); if (end) *end = '\0'; ...
228230730882908285016023798985921663046
rpadlpar_sysfs.c
21668029196687947173345261458760783896
CWE-120
CVE-2021-28972
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot...
https://nvd.nist.gov/vuln/detail/CVE-2021-28972
207,150
squirrel
a6413aa690e0bdfef648c68693349a7b878fe60d
https://github.com/albertodemichelis/squirrel
https://github.com/albertodemichelis/squirrel/commit/a6413aa690e0bdfef648c68693349a7b878fe60d
fix in thread.call
1
static SQInteger thread_call(HSQUIRRELVM v) { SQObjectPtr o = stack_get(v,1); if(sq_type(o) == OT_THREAD) { SQInteger nparams = sq_gettop(v); _thread(o)->Push(_thread(o)->_roottable); for(SQInteger i = 2; i<(nparams+1); i++) sq_move(_thread(o),v,i); if(SQ_SUCCEEDED(sq...
39783972208477930534182111058478291044
sqbaselib.cpp
22214130882110251892898581176850711195
CWE-703
CVE-2022-30292
Heap-based buffer overflow in sqbaselib.cpp in SQUIRREL 3.2 due to lack of a certain sq_reservestack call.
https://nvd.nist.gov/vuln/detail/CVE-2022-30292
393,528
squirrel
a6413aa690e0bdfef648c68693349a7b878fe60d
https://github.com/albertodemichelis/squirrel
https://github.com/albertodemichelis/squirrel/commit/a6413aa690e0bdfef648c68693349a7b878fe60d
fix in thread.call
0
static SQInteger thread_call(HSQUIRRELVM v) { SQObjectPtr o = stack_get(v,1); if(sq_type(o) == OT_THREAD) { SQInteger nparams = sq_gettop(v); sq_reservestack(_thread(o), nparams + 3); _thread(o)->Push(_thread(o)->_roottable); for(SQInteger i = 2; i<(nparams+1); i++) s...
185870701968227218426869749475686341047
sqbaselib.cpp
167918424394936848193603192917033144376
CWE-703
CVE-2022-30292
Heap-based buffer overflow in sqbaselib.cpp in SQUIRREL 3.2 due to lack of a certain sq_reservestack call.
https://nvd.nist.gov/vuln/detail/CVE-2022-30292
207,461
autotrace
e96bffadc25ff0ba0e10745f8012efcc5f920ea9
https://github.com/autotrace/autotrace
https://github.com/autotrace/autotrace/commit/e96bffadc25ff0ba0e10745f8012efcc5f920ea9
input-bmp: Increase header buffer in some cases Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
1
at_bitmap input_bmp_reader(gchar * filename, at_input_opts_type * opts, at_msg_func msg_func, gpointer msg_data, gpointer user_data) { FILE *fd; unsigned char buffer[64]; int ColormapSize, rowbytes, Maps; gboolean Grey = FALSE; unsigned char ColorMap[256][3]; at_bitmap image = at_bitmap_init(0, 0, 0, 1); ...
217805098145205715295086602544452101199
input-bmp.c
38605146891124325135879659140059354528
CWE-787
CVE-2022-32323
AutoTrace v0.40.0 was discovered to contain a heap overflow via the ReadImage function at input-bmp.c:660.
https://nvd.nist.gov/vuln/detail/CVE-2022-32323
397,644
autotrace
e96bffadc25ff0ba0e10745f8012efcc5f920ea9
https://github.com/autotrace/autotrace
https://github.com/autotrace/autotrace/commit/e96bffadc25ff0ba0e10745f8012efcc5f920ea9
input-bmp: Increase header buffer in some cases Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
0
at_bitmap input_bmp_reader(gchar * filename, at_input_opts_type * opts, at_msg_func msg_func, gpointer msg_data, gpointer user_data) { FILE *fd; unsigned char buffer[128]; int ColormapSize, rowbytes, Maps; gboolean Grey = FALSE; unsigned char ColorMap[256][3]; at_bitmap image = at_bitmap_init(0, 0, 0, 1); ...
18153038985911000449594893666433988306
input-bmp.c
29852375577809733693857999744439179756
CWE-787
CVE-2022-32323
AutoTrace v0.40.0 was discovered to contain a heap overflow via the ReadImage function at input-bmp.c:660.
https://nvd.nist.gov/vuln/detail/CVE-2022-32323
207,520
rizin
aa6917772d2f32e5a7daab25a46c72df0b5ea406
https://github.com/rizinorg/rizin
https://github.com/rizinorg/rizin/commit/aa6917772d2f32e5a7daab25a46c72df0b5ea406
Fix oob write for dwarf with abbrev with count 0 (Fix #2083) (#2086)
1
static const ut8 *parse_die(const ut8 *buf, const ut8 *buf_end, RzBinDwarfDebugInfo *info, RzBinDwarfAbbrevDecl *abbrev, RzBinDwarfCompUnitHdr *hdr, RzBinDwarfDie *die, const ut8 *debug_str, size_t debug_str_len, bool big_endian) { size_t i; const char *comp_dir = NULL; ut64 line_info_offset = UT64_MAX; for (i = 0...
26636529307671690704479532140631853142
dwarf.c
327051726619513035208543664099881519843
CWE-787
CVE-2021-43814
Rizin is a UNIX-like reverse engineering framework and command-line toolset. In versions up to and including 0.3.1 there is a heap-based out of bounds write in parse_die() when reversing an AMD64 ELF binary with DWARF debug info. When a malicious AMD64 ELF binary is opened by a victim user, Rizin may crash or execute u...
https://nvd.nist.gov/vuln/detail/CVE-2021-43814
398,518
rizin
aa6917772d2f32e5a7daab25a46c72df0b5ea406
https://github.com/rizinorg/rizin
https://github.com/rizinorg/rizin/commit/aa6917772d2f32e5a7daab25a46c72df0b5ea406
Fix oob write for dwarf with abbrev with count 0 (Fix #2083) (#2086)
0
static const ut8 *parse_die(const ut8 *buf, const ut8 *buf_end, RzBinDwarfDebugInfo *info, RzBinDwarfAbbrevDecl *abbrev, RzBinDwarfCompUnitHdr *hdr, RzBinDwarfDie *die, const ut8 *debug_str, size_t debug_str_len, bool big_endian) { size_t i; const char *comp_dir = NULL; ut64 line_info_offset = UT64_MAX; if (abbrev...
51977580595649091612975538237343950990
dwarf.c
92035029709372705681125485016113687180
CWE-787
CVE-2021-43814
Rizin is a UNIX-like reverse engineering framework and command-line toolset. In versions up to and including 0.3.1 there is a heap-based out of bounds write in parse_die() when reversing an AMD64 ELF binary with DWARF debug info. When a malicious AMD64 ELF binary is opened by a victim user, Rizin may crash or execute u...
https://nvd.nist.gov/vuln/detail/CVE-2021-43814
207,700
EternalTerminal
900348bb8bc96e1c7ba4888ac8480f643c43d3c3
https://github.com/MisterTea/EternalTerminal
https://github.com/MisterTea/EternalTerminal/commit/900348bb8bc96e1c7ba4888ac8480f643c43d3c3
red fixes (#468) * red fixes * remove magic number
1
TerminalUserInfo UserTerminalRouter::getInfoForId(const string &id) { auto it = idInfoMap.find(id); if (it == idInfoMap.end()) { STFATAL << " Tried to read from an id that no longer exists"; } return it->second; }
65652485071667159611859578809507103310
UserTerminalRouter.cpp
95512591738948248593704083286692164926
CWE-362
CVE-2022-24950
A race condition exists in Eternal Terminal prior to version 6.2.0 that allows an authenticated attacker to hijack other users' SSH authorization socket, enabling the attacker to login to other systems as the targeted users. The bug is in UserTerminalRouter::getInfoForId().
https://nvd.nist.gov/vuln/detail/CVE-2022-24950
400,109
EternalTerminal
900348bb8bc96e1c7ba4888ac8480f643c43d3c3
https://github.com/MisterTea/EternalTerminal
https://github.com/MisterTea/EternalTerminal/commit/900348bb8bc96e1c7ba4888ac8480f643c43d3c3
red fixes (#468) * red fixes * remove magic number
0
TerminalUserInfo UserTerminalRouter::getInfoForId(const string &id) { lock_guard<recursive_mutex> guard(routerMutex); auto it = idInfoMap.find(id); if (it == idInfoMap.end()) { STFATAL << " Tried to read from an id that no longer exists"; } return it->second; }
194538535842091525230611933768280108618
UserTerminalRouter.cpp
33756077495418666193931642880316711781
CWE-362
CVE-2022-24950
A race condition exists in Eternal Terminal prior to version 6.2.0 that allows an authenticated attacker to hijack other users' SSH authorization socket, enabling the attacker to login to other systems as the targeted users. The bug is in UserTerminalRouter::getInfoForId().
https://nvd.nist.gov/vuln/detail/CVE-2022-24950
207,703
EternalTerminal
900348bb8bc96e1c7ba4888ac8480f643c43d3c3
https://github.com/MisterTea/EternalTerminal
https://github.com/MisterTea/EternalTerminal/commit/900348bb8bc96e1c7ba4888ac8480f643c43d3c3
red fixes (#468) * red fixes * remove magic number
1
set<int> PipeSocketHandler::listen(const SocketEndpoint& endpoint) { lock_guard<std::recursive_mutex> guard(globalMutex); string pipePath = endpoint.name(); if (pipeServerSockets.find(pipePath) != pipeServerSockets.end()) { throw runtime_error("Tried to listen twice on the same path"); } sockaddr_un loc...
148534117660985776148799839801292812152
PipeSocketHandler.cpp
83158573064577402992437694952965778259
CWE-362
CVE-2022-24950
A race condition exists in Eternal Terminal prior to version 6.2.0 that allows an authenticated attacker to hijack other users' SSH authorization socket, enabling the attacker to login to other systems as the targeted users. The bug is in UserTerminalRouter::getInfoForId().
https://nvd.nist.gov/vuln/detail/CVE-2022-24950
400,103
EternalTerminal
900348bb8bc96e1c7ba4888ac8480f643c43d3c3
https://github.com/MisterTea/EternalTerminal
https://github.com/MisterTea/EternalTerminal/commit/900348bb8bc96e1c7ba4888ac8480f643c43d3c3
red fixes (#468) * red fixes * remove magic number
0
set<int> PipeSocketHandler::listen(const SocketEndpoint& endpoint) { lock_guard<std::recursive_mutex> guard(globalMutex); string pipePath = endpoint.name(); if (pipeServerSockets.find(pipePath) != pipeServerSockets.end()) { throw runtime_error("Tried to listen twice on the same path"); } sockaddr_un loc...
36125659257824603505725557266857282888
PipeSocketHandler.cpp
231978839420872719355627255082595640778
CWE-362
CVE-2022-24950
A race condition exists in Eternal Terminal prior to version 6.2.0 that allows an authenticated attacker to hijack other users' SSH authorization socket, enabling the attacker to login to other systems as the targeted users. The bug is in UserTerminalRouter::getInfoForId().
https://nvd.nist.gov/vuln/detail/CVE-2022-24950
207,719
vim
e98c88c44c308edaea5994b8ad4363e65030968c
https://github.com/vim/vim
https://github.com/vim/vim/commit/e98c88c44c308edaea5994b8ad4363e65030968c
patch 9.0.0218: reading before the start of the line Problem: Reading before the start of the line. Solution: When displaying "$" check the column is not negative.
1
display_dollar(colnr_T col) { colnr_T save_col; if (!redrawing()) return; cursor_off(); save_col = curwin->w_cursor.col; curwin->w_cursor.col = col; if (has_mbyte) { char_u *p; // If on the last byte of a multi-byte move to the first byte. p = ml_get_curline(); curwin->w_cursor.col -...
56781688432244503822784219524894149055
edit.c
251788010034679613424556948955874474953
CWE-787
CVE-2022-2845
Improper Validation of Specified Quantity in Input in GitHub repository vim/vim prior to 9.0.0218.
https://nvd.nist.gov/vuln/detail/CVE-2022-2845
400,409
vim
e98c88c44c308edaea5994b8ad4363e65030968c
https://github.com/vim/vim
https://github.com/vim/vim/commit/e98c88c44c308edaea5994b8ad4363e65030968c
patch 9.0.0218: reading before the start of the line Problem: Reading before the start of the line. Solution: When displaying "$" check the column is not negative.
0
display_dollar(colnr_T col_arg) { colnr_T col = col_arg < 0 ? 0 : col_arg; colnr_T save_col; if (!redrawing()) return; cursor_off(); save_col = curwin->w_cursor.col; curwin->w_cursor.col = col; if (has_mbyte) { char_u *p; // If on the last byte of a multi-byte move to the first byt...
125832747032800290670744012264167596321
edit.c
91657375912486719968624749742093008286
CWE-787
CVE-2022-2845
Improper Validation of Specified Quantity in Input in GitHub repository vim/vim prior to 9.0.0218.
https://nvd.nist.gov/vuln/detail/CVE-2022-2845
207,753
linux
9d2231c5d74e13b2a0546fee6737ee4446017903
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9d2231c5d74e13b2a0546fee6737ee4446017903
lib/iov_iter: initialize "flags" in new pipe_buffer The functions copy_page_to_iter_pipe() and push_pipe() can both allocate a new pipe_buffer, but the "flags" member initializer is missing. Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed") To: Alexander Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.k...
1
static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) { struct pipe_inode_info *pipe = i->pipe; struct pipe_buffer *buf; unsigned int p_tail = pipe->tail; unsigned int p_mask = pipe->ring_size - 1; unsigned int i_head = i->head; size_t off; if (unlikely(byt...
167718514506109094299086513897213873936
iov_iter.c
181499146794090302160100800341530380411
CWE-284
CVE-2022-0847
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read o...
https://nvd.nist.gov/vuln/detail/CVE-2022-0847
400,735
linux
9d2231c5d74e13b2a0546fee6737ee4446017903
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9d2231c5d74e13b2a0546fee6737ee4446017903
lib/iov_iter: initialize "flags" in new pipe_buffer The functions copy_page_to_iter_pipe() and push_pipe() can both allocate a new pipe_buffer, but the "flags" member initializer is missing. Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed") To: Alexander Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.k...
0
static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) { struct pipe_inode_info *pipe = i->pipe; struct pipe_buffer *buf; unsigned int p_tail = pipe->tail; unsigned int p_mask = pipe->ring_size - 1; unsigned int i_head = i->head; size_t off; if (unlikely(byt...
254624609360113587487306617570895393083
iov_iter.c
158086795761237639591506235503715650431
CWE-284
CVE-2022-0847
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read o...
https://nvd.nist.gov/vuln/detail/CVE-2022-0847
207,754
linux
9d2231c5d74e13b2a0546fee6737ee4446017903
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9d2231c5d74e13b2a0546fee6737ee4446017903
lib/iov_iter: initialize "flags" in new pipe_buffer The functions copy_page_to_iter_pipe() and push_pipe() can both allocate a new pipe_buffer, but the "flags" member initializer is missing. Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed") To: Alexander Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.k...
1
static size_t push_pipe(struct iov_iter *i, size_t size, int *iter_headp, size_t *offp) { struct pipe_inode_info *pipe = i->pipe; unsigned int p_tail = pipe->tail; unsigned int p_mask = pipe->ring_size - 1; unsigned int iter_head; size_t off; ssize_t left; if (unlikely(size > i->count)) size = i->count; i...
298985660493874547228624767727586322810
iov_iter.c
181499146794090302160100800341530380411
CWE-284
CVE-2022-0847
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read o...
https://nvd.nist.gov/vuln/detail/CVE-2022-0847
400,743
linux
9d2231c5d74e13b2a0546fee6737ee4446017903
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9d2231c5d74e13b2a0546fee6737ee4446017903
lib/iov_iter: initialize "flags" in new pipe_buffer The functions copy_page_to_iter_pipe() and push_pipe() can both allocate a new pipe_buffer, but the "flags" member initializer is missing. Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed") To: Alexander Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.k...
0
static size_t push_pipe(struct iov_iter *i, size_t size, int *iter_headp, size_t *offp) { struct pipe_inode_info *pipe = i->pipe; unsigned int p_tail = pipe->tail; unsigned int p_mask = pipe->ring_size - 1; unsigned int iter_head; size_t off; ssize_t left; if (unlikely(size > i->count)) size = i->count; i...
276660368195834134822998399913502516107
iov_iter.c
158086795761237639591506235503715650431
CWE-284
CVE-2022-0847
A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe and push_pipe functions in the Linux kernel and could thus contain stale values. An unprivileged local user could use this flaw to write to pages in the page cache backed by read o...
https://nvd.nist.gov/vuln/detail/CVE-2022-0847
207,755
php-src
095cbc48a8f0090f3b0abc6155f2b61943c9eafb
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commitdiff;h=095cbc48a8f0090f3b0abc6155f2b61943c9eafb
Fix segfault in older versions of OpenSSL (before 0.9.8i)
1
PHP_FUNCTION(openssl_encrypt) { zend_bool raw_output = 0; char *data, *method, *password, *iv = ""; int data_len, method_len, password_len, iv_len = 0, max_iv_len; const EVP_CIPHER *cipher_type; EVP_CIPHER_CTX cipher_ctx; int i, outlen, keylen; unsigned char *outbuf, *key; zend_bool free_iv; if (zend_parse_pa...
90779826180799829793304692194705605906
openssl.c
64204082198714090575154286576472678758
CWE-200
CVE-2012-6113
The openssl_encrypt function in ext/openssl/openssl.c in PHP 5.3.9 through 5.3.13 does not initialize a certain variable, which allows remote attackers to obtain sensitive information from process memory by providing zero bytes of input data.
https://nvd.nist.gov/vuln/detail/CVE-2012-6113
400,779
php-src
095cbc48a8f0090f3b0abc6155f2b61943c9eafb
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commitdiff;h=095cbc48a8f0090f3b0abc6155f2b61943c9eafb
Fix segfault in older versions of OpenSSL (before 0.9.8i)
0
PHP_FUNCTION(openssl_decrypt) { zend_bool raw_input = 0; char *data, *method, *password, *iv = ""; int data_len, method_len, password_len, iv_len = 0; const EVP_CIPHER *cipher_type; EVP_CIPHER_CTX cipher_ctx; int i, outlen, keylen; unsigned char *outbuf, *key; int base64_str_len; char *base64_str = NULL; zend...
39006034581830174999253498846151645941
openssl.c
57276947425832893910697869677062470849
CWE-200
CVE-2012-6113
The openssl_encrypt function in ext/openssl/openssl.c in PHP 5.3.9 through 5.3.13 does not initialize a certain variable, which allows remote attackers to obtain sensitive information from process memory by providing zero bytes of input data.
https://nvd.nist.gov/vuln/detail/CVE-2012-6113
207,780
radare2
2b77b277d67ce061ee6ef839e7139ebc2103c1e3
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/2b77b277d67ce061ee6ef839e7139ebc2103c1e3
Fix oobread in dyldcache ##crash * Reported by @hdthky via huntr.dev * Reproducers: poc1 * BountyID: 8ae2c61a-2220-47a5-bfe8-fe6d41ab1f82
1
static RList *create_cache_bins(RBinFile *bf, RDyldCache *cache) { RList *bins = r_list_newf ((RListFree)free_bin); ut16 *depArray = NULL; cache_imgxtr_t *extras = NULL; if (!bins) { return NULL; } char *target_libs = NULL; RList *target_lib_names = NULL; int *deps = NULL; target_libs = r_sys_getenv ("R_DYL...
174827048480806807337685920262304563052
None
CWE-703
CVE-2022-1244
heap-buffer-overflow in GitHub repository radareorg/radare2 prior to 5.6.8. This vulnerability is capable of inducing denial of service.
https://nvd.nist.gov/vuln/detail/CVE-2022-1244
401,034
radare2
2b77b277d67ce061ee6ef839e7139ebc2103c1e3
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/2b77b277d67ce061ee6ef839e7139ebc2103c1e3
Fix oobread in dyldcache ##crash * Reported by @hdthky via huntr.dev * Reproducers: poc1 * BountyID: 8ae2c61a-2220-47a5-bfe8-fe6d41ab1f82
0
static RList *create_cache_bins(RBinFile *bf, RDyldCache *cache) { RList *bins = r_list_newf ((RListFree)free_bin); ut16 *depArray = NULL; cache_imgxtr_t *extras = NULL; if (!bins) { return NULL; } char *target_libs = NULL; RList *target_lib_names = NULL; int *deps = NULL; target_libs = r_sys_getenv ("R_DYL...
125973238096905171890400385176953298313
None
CWE-703
CVE-2022-1244
heap-buffer-overflow in GitHub repository radareorg/radare2 prior to 5.6.8. This vulnerability is capable of inducing denial of service.
https://nvd.nist.gov/vuln/detail/CVE-2022-1244
207,803
linux
f227e3ec3b5cad859ad15666874405e8c1bbc1d4
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f227e3ec3b5cad859ad15666874405e8c1bbc1d4
random32: update the net random state on interrupt and activity This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note that depending on some network devices'...
1
void add_interrupt_randomness(int irq, int irq_flags) { struct entropy_store *r; struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); struct pt_regs *regs = get_irq_regs(); unsigned long now = jiffies; cycles_t cycles = random_get_entropy(); __u32 c_high, j_high; __u64 ip; unsigned long seed; i...
72986691588442626387015743278968252767
random.c
239066926887312120799410704296303486044
CWE-200
CVE-2020-16166
The Linux kernel through 5.7.11 allows remote attackers to make observations that help to obtain sensitive information about the internal state of the network RNG, aka CID-f227e3ec3b5c. This is related to drivers/char/random.c and kernel/time/timer.c.
https://nvd.nist.gov/vuln/detail/CVE-2020-16166
401,579
linux
f227e3ec3b5cad859ad15666874405e8c1bbc1d4
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f227e3ec3b5cad859ad15666874405e8c1bbc1d4
random32: update the net random state on interrupt and activity This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note that depending on some network devices'...
0
void add_interrupt_randomness(int irq, int irq_flags) { struct entropy_store *r; struct fast_pool *fast_pool = this_cpu_ptr(&irq_randomness); struct pt_regs *regs = get_irq_regs(); unsigned long now = jiffies; cycles_t cycles = random_get_entropy(); __u32 c_high, j_high; __u64 ip; unsigned long seed; i...
84995966578306698565240139293878155372
random.c
208560159054698027072406931437153087485
CWE-200
CVE-2020-16166
The Linux kernel through 5.7.11 allows remote attackers to make observations that help to obtain sensitive information about the internal state of the network RNG, aka CID-f227e3ec3b5c. This is related to drivers/char/random.c and kernel/time/timer.c.
https://nvd.nist.gov/vuln/detail/CVE-2020-16166
207,804
linux
f227e3ec3b5cad859ad15666874405e8c1bbc1d4
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f227e3ec3b5cad859ad15666874405e8c1bbc1d4
random32: update the net random state on interrupt and activity This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note that depending on some network devices'...
1
void update_process_times(int user_tick) { struct task_struct *p = current; /* Note: this timer irq context must be accounted for as well. */ account_process_tick(p, user_tick); run_local_timers(); rcu_sched_clock_irq(user_tick); #ifdef CONFIG_IRQ_WORK if (in_irq()) irq_work_tick(); #endif scheduler_tick(); ...
82612237012862358865324786376664956349
timer.c
271218236065045560355591111071365801019
CWE-200
CVE-2020-16166
The Linux kernel through 5.7.11 allows remote attackers to make observations that help to obtain sensitive information about the internal state of the network RNG, aka CID-f227e3ec3b5c. This is related to drivers/char/random.c and kernel/time/timer.c.
https://nvd.nist.gov/vuln/detail/CVE-2020-16166
401,525
linux
f227e3ec3b5cad859ad15666874405e8c1bbc1d4
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f227e3ec3b5cad859ad15666874405e8c1bbc1d4
random32: update the net random state on interrupt and activity This modifies the first 32 bits out of the 128 bits of a random CPU's net_rand_state on interrupt or CPU activity to complicate remote observations that could lead to guessing the network RNG's internal state. Note that depending on some network devices'...
0
void update_process_times(int user_tick) { struct task_struct *p = current; /* Note: this timer irq context must be accounted for as well. */ account_process_tick(p, user_tick); run_local_timers(); rcu_sched_clock_irq(user_tick); #ifdef CONFIG_IRQ_WORK if (in_irq()) irq_work_tick(); #endif scheduler_tick(); ...
311686403025993845778050249928014943417
timer.c
222103336435375278106670191376448375228
CWE-200
CVE-2020-16166
The Linux kernel through 5.7.11 allows remote attackers to make observations that help to obtain sensitive information about the internal state of the network RNG, aka CID-f227e3ec3b5c. This is related to drivers/char/random.c and kernel/time/timer.c.
https://nvd.nist.gov/vuln/detail/CVE-2020-16166
207,990
pcre2
03654e751e7f0700693526b67dfcadda6b42c9d0
https://github.com/PCRE2Project/pcre2
https://github.com/PCRE2Project/pcre2/commit/03654e751e7f0700693526b67dfcadda6b42c9d0
Fixed an issue affecting recursions in JIT
1
static int get_recurse_data_length(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend, BOOL *needs_control_head, BOOL *has_quit, BOOL *has_accept) { int length = 1; int size; PCRE2_SPTR alternative; BOOL quit_found = FALSE; BOOL accept_found = FALSE; BOOL setsom_found = FALSE; BOOL setmark_found = FALSE; BOOL c...
240126232931244050288328890875640372325
pcre2_jit_compile.c
105541590302198799083513857874765354258
CWE-703
CVE-2022-1587
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
https://nvd.nist.gov/vuln/detail/CVE-2022-1587
404,192
pcre2
03654e751e7f0700693526b67dfcadda6b42c9d0
https://github.com/PCRE2Project/pcre2
https://github.com/PCRE2Project/pcre2/commit/03654e751e7f0700693526b67dfcadda6b42c9d0
Fixed an issue affecting recursions in JIT
0
static int get_recurse_data_length(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend, BOOL *needs_control_head, BOOL *has_quit, BOOL *has_accept) { int length = 1; int size, offset; PCRE2_SPTR alternative; BOOL quit_found = FALSE; BOOL accept_found = FALSE; BOOL setsom_found = FALSE; BOOL setmark_found = FALSE...
173942933444712771516446324481674462692
pcre2_jit_compile.c
52374969195278947710795935639555031915
CWE-703
CVE-2022-1587
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
https://nvd.nist.gov/vuln/detail/CVE-2022-1587
208,107
linux
f85daf0e725358be78dfd208dea5fd665d8cb901
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f85daf0e725358be78dfd208dea5fd665d8cb901
xfrm: xfrm_policy: fix a possible double xfrm_pols_put() in xfrm_bundle_lookup() xfrm_policy_lookup() will call xfrm_pol_hold_rcu() to get a refcount of pols[0]. This refcount can be dropped in xfrm_expand_policies() when xfrm_expand_policies() return error. pols[0]'s refcount is balanced in here. But xfrm_bundle_look...
1
static int xfrm_expand_policies(const struct flowi *fl, u16 family, struct xfrm_policy **pols, int *num_pols, int *num_xfrms) { int i; if (*num_pols == 0 || !pols[0]) { *num_pols = 0; *num_xfrms = 0; return 0; } if (IS_ERR(pols[0])) return PTR_ERR(pols[0]); *num_xfrms = pols[0]->xfrm_nr; #ifdef ...
251684023315514826982518858194996142213
xfrm_policy.c
240690312801703995044299112379503581676
CWE-703
CVE-2022-36879
An issue was discovered in the Linux kernel through 5.18.14. xfrm_expand_policies in net/xfrm/xfrm_policy.c can cause a refcount to be dropped twice.
https://nvd.nist.gov/vuln/detail/CVE-2022-36879
405,333
linux
f85daf0e725358be78dfd208dea5fd665d8cb901
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f85daf0e725358be78dfd208dea5fd665d8cb901
xfrm: xfrm_policy: fix a possible double xfrm_pols_put() in xfrm_bundle_lookup() xfrm_policy_lookup() will call xfrm_pol_hold_rcu() to get a refcount of pols[0]. This refcount can be dropped in xfrm_expand_policies() when xfrm_expand_policies() return error. pols[0]'s refcount is balanced in here. But xfrm_bundle_look...
0
static int xfrm_expand_policies(const struct flowi *fl, u16 family, struct xfrm_policy **pols, int *num_pols, int *num_xfrms) { int i; if (*num_pols == 0 || !pols[0]) { *num_pols = 0; *num_xfrms = 0; return 0; } if (IS_ERR(pols[0])) { *num_pols = 0; return PTR_ERR(pols[0]); } *num_xfrms = pols...
29732626654088535700777069321150029090
xfrm_policy.c
264724924246430289692801756816591917107
CWE-703
CVE-2022-36879
An issue was discovered in the Linux kernel through 5.18.14. xfrm_expand_policies in net/xfrm/xfrm_policy.c can cause a refcount to be dropped twice.
https://nvd.nist.gov/vuln/detail/CVE-2022-36879
208,115
linux
d0d62baa7f505bd4c59cd169692ff07ec49dde37
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d0d62baa7f505bd4c59cd169692ff07ec49dde37
net: xilinx_emaclite: Do not print real IOMEM pointer Printing kernel pointers is discouraged because they might leak kernel memory layout. This fixes smatch warning: drivers/net/ethernet/xilinx/xilinx_emaclite.c:1191 xemaclite_of_probe() warn: argument 4 to %08lX specifier is cast from pointer Signed-off-by: YueH...
1
static int xemaclite_of_probe(struct platform_device *ofdev) { struct resource *res; struct net_device *ndev = NULL; struct net_local *lp = NULL; struct device *dev = &ofdev->dev; int rc = 0; dev_info(dev, "Device Tree Probing\n"); /* Create an ethernet device instance */ ndev = alloc_etherdev(sizeof(struct ...
7539144956808128275181130217400039273
xilinx_emaclite.c
195328153780575985681144288401844286686
CWE-703
CVE-2021-38205
drivers/net/ethernet/xilinx/xilinx_emaclite.c in the Linux kernel before 5.13.3 makes it easier for attackers to defeat an ASLR protection mechanism because it prints a kernel pointer (i.e., the real IOMEM pointer).
https://nvd.nist.gov/vuln/detail/CVE-2021-38205
405,698
linux
d0d62baa7f505bd4c59cd169692ff07ec49dde37
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d0d62baa7f505bd4c59cd169692ff07ec49dde37
net: xilinx_emaclite: Do not print real IOMEM pointer Printing kernel pointers is discouraged because they might leak kernel memory layout. This fixes smatch warning: drivers/net/ethernet/xilinx/xilinx_emaclite.c:1191 xemaclite_of_probe() warn: argument 4 to %08lX specifier is cast from pointer Signed-off-by: YueH...
0
static int xemaclite_of_probe(struct platform_device *ofdev) { struct resource *res; struct net_device *ndev = NULL; struct net_local *lp = NULL; struct device *dev = &ofdev->dev; int rc = 0; dev_info(dev, "Device Tree Probing\n"); /* Create an ethernet device instance */ ndev = alloc_etherdev(sizeof(struct ...
304374419764415204432847844541033449466
xilinx_emaclite.c
308517377946216969047380117029804691833
CWE-703
CVE-2021-38205
drivers/net/ethernet/xilinx/xilinx_emaclite.c in the Linux kernel before 5.13.3 makes it easier for attackers to defeat an ASLR protection mechanism because it prints a kernel pointer (i.e., the real IOMEM pointer).
https://nvd.nist.gov/vuln/detail/CVE-2021-38205
208,140
util-linux
5ebbc3865d1e53ef42e5f121c41faab23dd59075
https://github.com/karelzak/util-linux
http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=commit;h=5ebbc3865d1e53ef42e5f121c41faab23dd59075
mount: sanitize paths from non-root users $ mount /root/.ssh/../../dev/sda2 mount: only root can mount UUID=17bc65ec-4125-4e7c-8a7d-e2795064c736 on /boot this is too promiscuous. It seems better to ignore on command line specified paths which are not resolve-able for non-root users. Fixed version: $ mount /root...
1
int main(int argc, char **argv) { int c, rc = MOUNT_EX_SUCCESS, all = 0, show_labels = 0; struct libmnt_context *cxt; struct libmnt_table *fstab = NULL; char *srcbuf = NULL; char *types = NULL; unsigned long oper = 0; enum { MOUNT_OPT_SHARED = CHAR_MAX + 1, MOUNT_OPT_SLAVE, MOUNT_OPT_PRIVATE, MOUNT_OPT_...
219498005792940261578066564094421095366
mount.c
324534442685972817552003935079520935664
CWE-200
CVE-2013-0157
(a) mount and (b) umount in util-linux 2.14.1, 2.17.2, and probably other versions allow local users to determine the existence of restricted directories by (1) using the --guess-fstype command-line option or (2) attempting to mount a non-existent device, which generates different error messages depending on whether th...
https://nvd.nist.gov/vuln/detail/CVE-2013-0157
406,206
util-linux
5ebbc3865d1e53ef42e5f121c41faab23dd59075
https://github.com/karelzak/util-linux
http://git.kernel.org/?p=utils/util-linux/util-linux.git;a=commit;h=5ebbc3865d1e53ef42e5f121c41faab23dd59075
mount: sanitize paths from non-root users $ mount /root/.ssh/../../dev/sda2 mount: only root can mount UUID=17bc65ec-4125-4e7c-8a7d-e2795064c736 on /boot this is too promiscuous. It seems better to ignore on command line specified paths which are not resolve-able for non-root users. Fixed version: $ mount /root...
0
int main(int argc, char **argv) { int c, rc = MOUNT_EX_SUCCESS, all = 0, show_labels = 0; struct libmnt_context *cxt; struct libmnt_table *fstab = NULL; char *srcbuf = NULL; char *types = NULL; unsigned long oper = 0; enum { MOUNT_OPT_SHARED = CHAR_MAX + 1, MOUNT_OPT_SLAVE, MOUNT_OPT_PRIVATE, MOUNT_OPT_...
43692452455655783216200177030716124780
mount.c
7925930289343170386207247806304317495
CWE-200
CVE-2013-0157
(a) mount and (b) umount in util-linux 2.14.1, 2.17.2, and probably other versions allow local users to determine the existence of restricted directories by (1) using the --guess-fstype command-line option or (2) attempting to mount a non-existent device, which generates different error messages depending on whether th...
https://nvd.nist.gov/vuln/detail/CVE-2013-0157
208,370
vim
806d037671e133bd28a7864248763f643967973a
https://github.com/vim/vim
https://github.com/vim/vim/commit/806d037671e133bd28a7864248763f643967973a
patch 8.2.4218: illegal memory access with bracketed paste in Ex mode Problem: Illegal memory access with bracketed paste in Ex mode. Solution: Reserve space for the trailing NUL.
1
bracketed_paste(paste_mode_T mode, int drop, garray_T *gap) { int c; char_u buf[NUMBUFLEN + MB_MAXBYTES]; int idx = 0; char_u *end = find_termcode((char_u *)"PE"); int ret_char = -1; int save_allow_keys = allow_keys; int save_paste = p_paste; // If the end code is too long we can't...
304493990488783960232843007629982350455
edit.c
253330379214920739736877102106471261423
CWE-787
CVE-2022-0392
Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0392
408,968
vim
806d037671e133bd28a7864248763f643967973a
https://github.com/vim/vim
https://github.com/vim/vim/commit/806d037671e133bd28a7864248763f643967973a
patch 8.2.4218: illegal memory access with bracketed paste in Ex mode Problem: Illegal memory access with bracketed paste in Ex mode. Solution: Reserve space for the trailing NUL.
0
bracketed_paste(paste_mode_T mode, int drop, garray_T *gap) { int c; char_u buf[NUMBUFLEN + MB_MAXBYTES]; int idx = 0; char_u *end = find_termcode((char_u *)"PE"); int ret_char = -1; int save_allow_keys = allow_keys; int save_paste = p_paste; // If the end code is too long we can't...
237228533852438658740165650986586610988
edit.c
72953735620149631855784875265490970900
CWE-787
CVE-2022-0392
Heap-based Buffer Overflow in GitHub repository vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0392
208,411
vim
27efc62f5d86afcb2ecb7565587fe8dea4b036fe
https://github.com/vim/vim
https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe
patch 9.0.0018: going over the end of the typahead Problem: Going over the end of the typahead. Solution: Put a NUL after the typeahead.
1
check_termcode( int max_offset, char_u *buf, int bufsize, int *buflen) { char_u *tp; char_u *p; int slen = 0; // init for GCC int modslen; int len; int retval = 0; int offset; char_u key_name[2]; int modifiers; char_u *modifiers_start = NULL; int key...
196889976171376146553776878857496634863
term.c
255079853890988870585830908048537470004
CWE-787
CVE-2022-2285
Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2285
409,515
vim
27efc62f5d86afcb2ecb7565587fe8dea4b036fe
https://github.com/vim/vim
https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe
patch 9.0.0018: going over the end of the typahead Problem: Going over the end of the typahead. Solution: Put a NUL after the typeahead.
0
check_termcode( int max_offset, char_u *buf, int bufsize, int *buflen) { char_u *tp; char_u *p; int slen = 0; // init for GCC int modslen; int len; int retval = 0; int offset; char_u key_name[2]; int modifiers; char_u *modifiers_start = NULL; int key...
105354748681163651663383549655228844664
term.c
113564079834188954277061754674630069521
CWE-787
CVE-2022-2285
Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2285
208,505
tor
57e35ad3d91724882c345ac709666a551a977f0f
https://github.com/torproject/tor
https://gitweb.torproject.org/tor.git/commitdiff/57e35ad3d91724882c345ac709666a551a977f0f
Avoid possible segfault when handling networkstatus vote with bad flavor Fix for 6530; fix on 0.2.2.6-alpha.
1
networkstatus_parse_vote_from_string(const char *s, const char **eos_out, networkstatus_type_t ns_type) { smartlist_t *tokens = smartlist_create(); smartlist_t *rs_tokens = NULL, *footer_tokens = NULL; networkstatus_voter_info_t *voter = NULL; networkstatus_t *ns = NULL; d...
297795787979009632344281497591388902899
routerparse.c
22420103474128049345359193080521452725
CWE-399
CVE-2012-3517
Use-after-free vulnerability in dns.c in Tor before 0.2.2.38 might allow remote attackers to cause a denial of service (daemon crash) via vectors related to failed DNS requests.
https://nvd.nist.gov/vuln/detail/CVE-2012-3517
411,896
tor
57e35ad3d91724882c345ac709666a551a977f0f
https://github.com/torproject/tor
https://gitweb.torproject.org/tor.git/commitdiff/57e35ad3d91724882c345ac709666a551a977f0f
Avoid possible segfault when handling networkstatus vote with bad flavor Fix for 6530; fix on 0.2.2.6-alpha.
0
networkstatus_parse_vote_from_string(const char *s, const char **eos_out, networkstatus_type_t ns_type) { smartlist_t *tokens = smartlist_create(); smartlist_t *rs_tokens = NULL, *footer_tokens = NULL; networkstatus_voter_info_t *voter = NULL; networkstatus_t *ns = NULL; d...
32476189085047846654485357461000169303
routerparse.c
74078993205863755729749320619386018823
CWE-399
CVE-2012-3517
Use-after-free vulnerability in dns.c in Tor before 0.2.2.38 might allow remote attackers to cause a denial of service (daemon crash) via vectors related to failed DNS requests.
https://nvd.nist.gov/vuln/detail/CVE-2012-3517
208,506
heimdal
04171147948d0a3636bc6374181926f0fb2ec83a
https://github.com/heimdal/heimdal
https://github.com/heimdal/heimdal/commit/04171147948d0a3636bc6374181926f0fb2ec83a
kdc: validate sname in TGS-REQ In tgs_build_reply(), validate the server name in the TGS-REQ is present before dereferencing.
1
tgs_build_reply(astgs_request_t priv, hdb_entry_ex *krbtgt, krb5_enctype krbtgt_etype, const krb5_keyblock *replykey, int rk_is_subkey, krb5_ticket *ticket, const char **e_text, AuthorizationData **auth_data, const struct sockaddr *from_addr) { krb5_context context = priv->context; krb5_kdc_conf...
180711409541748394655723306760719102268
None
CWE-476
CVE-2021-3671
A null pointer de-reference was found in the way samba kerberos server handled missing sname in TGS-REQ (Ticket Granting Server - Request). An authenticated user could use this flaw to crash the samba server.
https://nvd.nist.gov/vuln/detail/CVE-2021-3671
411,926
heimdal
04171147948d0a3636bc6374181926f0fb2ec83a
https://github.com/heimdal/heimdal
https://github.com/heimdal/heimdal/commit/04171147948d0a3636bc6374181926f0fb2ec83a
kdc: validate sname in TGS-REQ In tgs_build_reply(), validate the server name in the TGS-REQ is present before dereferencing.
0
tgs_build_reply(astgs_request_t priv, hdb_entry_ex *krbtgt, krb5_enctype krbtgt_etype, const krb5_keyblock *replykey, int rk_is_subkey, krb5_ticket *ticket, const char **e_text, AuthorizationData **auth_data, const struct sockaddr *from_addr) { krb5_context context = priv->context; krb5_kdc_conf...
196356477365064545945564048418819765006
None
CWE-476
CVE-2021-3671
A null pointer de-reference was found in the way samba kerberos server handled missing sname in TGS-REQ (Ticket Granting Server - Request). An authenticated user could use this flaw to crash the samba server.
https://nvd.nist.gov/vuln/detail/CVE-2021-3671
208,522
unbound
02080f6b180232f43b77f403d0c038e9360a460f
https://github.com/NLnetLabs/unbound
https://github.com/NLnetLabs/unbound/commit/02080f6b180232f43b77f403d0c038e9360a460f
- Fix Integer Overflows in Size Calculations, reported by X41 D-Sec.
1
dnsc_load_local_data(struct dnsc_env* dnscenv, struct config_file *cfg) { size_t i, j; // Insert 'local-zone: "2.dnscrypt-cert.example.com" deny' if(!cfg_str2list_insert(&cfg->local_zones, strdup(dnscenv->provider_name), strdup("deny"))) { log_err...
44451332163685602086826854088983200257
dnscrypt.c
338731906376917706393921999097571082291
CWE-190
CVE-2019-25038
Unbound before 1.9.5 allows an integer overflow in a size calculation in dnscrypt/dnscrypt.c. NOTE: The vendor disputes that this is a vulnerability. Although the code may be vulnerable, a running Unbound installation cannot be remotely or locally exploited
https://nvd.nist.gov/vuln/detail/CVE-2019-25038
412,117
unbound
02080f6b180232f43b77f403d0c038e9360a460f
https://github.com/NLnetLabs/unbound
https://github.com/NLnetLabs/unbound/commit/02080f6b180232f43b77f403d0c038e9360a460f
- Fix Integer Overflows in Size Calculations, reported by X41 D-Sec.
0
dnsc_load_local_data(struct dnsc_env* dnscenv, struct config_file *cfg) { size_t i, j; // Insert 'local-zone: "2.dnscrypt-cert.example.com" deny' if(!cfg_str2list_insert(&cfg->local_zones, strdup(dnscenv->provider_name), strdup("deny"))) { log_err...
220864762997315196932796822660985000469
dnscrypt.c
151631660973156645492009635074477412124
CWE-190
CVE-2019-25038
Unbound before 1.9.5 allows an integer overflow in a size calculation in dnscrypt/dnscrypt.c. NOTE: The vendor disputes that this is a vulnerability. Although the code may be vulnerable, a running Unbound installation cannot be remotely or locally exploited
https://nvd.nist.gov/vuln/detail/CVE-2019-25038
208,525
vim
6046aded8da002b08d380db29de2ba0268b6616e
https://github.com/vim/vim
https://github.com/vim/vim/commit/6046aded8da002b08d380db29de2ba0268b6616e
patch 8.2.5148: invalid memory access when using expression on command line Problem: Invalid memory access when using an expression on the command line. Solution: Make sure the position does not go negative.
1
cmdline_insert_reg(int *gotesc UNUSED) { int i; int c; #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; // disallow scrolling here #endif putcmdline('"', TRUE); ++no_mapping; ++allow_keys; i = c = plain_vgetc(); // CTRL-R <char> if (i == Ctrl_O) i = Ctrl_R; // CTRL-R CTRL-O == CTRL-R CT...
167804329878727127060395714139665031179
ex_getln.c
269509646770853684376504137864854849552
CWE-787
CVE-2022-2175
Buffer Over-read in GitHub repository vim/vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-2175
412,190
vim
6046aded8da002b08d380db29de2ba0268b6616e
https://github.com/vim/vim
https://github.com/vim/vim/commit/6046aded8da002b08d380db29de2ba0268b6616e
patch 8.2.5148: invalid memory access when using expression on command line Problem: Invalid memory access when using an expression on the command line. Solution: Make sure the position does not go negative.
0
cmdline_insert_reg(int *gotesc UNUSED) { int i; int c; int save_new_cmdpos = new_cmdpos; #ifdef USE_ON_FLY_SCROLL dont_scroll = TRUE; // disallow scrolling here #endif putcmdline('"', TRUE); ++no_mapping; ++allow_keys; i = c = plain_vgetc(); // CTRL-R <char> if (i == Ctrl_O) i =...
5421090615610689574320991257810194043
ex_getln.c
9575536184258751931455824501169284802
CWE-787
CVE-2022-2175
Buffer Over-read in GitHub repository vim/vim prior to 8.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-2175
208,535
rizin
58926dffbe819fe9ebf5062f7130e026351cae01
https://github.com/rizinorg/rizin
https://github.com/rizinorg/rizin/commit/58926dffbe819fe9ebf5062f7130e026351cae01
fix #2964 - double-free in bin_qnx.c
1
static RzList *relocs(RzBinFile *bf) { rz_return_val_if_fail(bf && bf->o, NULL); QnxObj *qo = bf->o->bin_obj; return rz_list_clone(qo->fixups); }
41829514855496977293704373413382810445
bin_qnx.c
327448367050510652704729380638932181720
CWE-415
CVE-2022-36043
Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.4.0 and prior are vulnerable to a double free in bobj.c:rz_bin_reloc_storage_free() when freeing relocations generated from qnx binary plugin. A user opening a malicious qnx binary could be affected by this vulnerability, allowing a...
https://nvd.nist.gov/vuln/detail/CVE-2022-36043
412,332
rizin
58926dffbe819fe9ebf5062f7130e026351cae01
https://github.com/rizinorg/rizin
https://github.com/rizinorg/rizin/commit/58926dffbe819fe9ebf5062f7130e026351cae01
fix #2964 - double-free in bin_qnx.c
0
static RzList *maps(RzBinFile *bf) { rz_return_val_if_fail(bf && bf->o, NULL); QnxObj *qo = bf->o->bin_obj; return rz_list_clone(qo->maps); }
19242058764705601713784045996495740023
bin_qnx.c
19463219798062548086589627833690645590
CWE-415
CVE-2022-36043
Rizin is a UNIX-like reverse engineering framework and command-line toolset. Versions 0.4.0 and prior are vulnerable to a double free in bobj.c:rz_bin_reloc_storage_free() when freeing relocations generated from qnx binary plugin. A user opening a malicious qnx binary could be affected by this vulnerability, allowing a...
https://nvd.nist.gov/vuln/detail/CVE-2022-36043
208,654
php-src
cab1c3b3708eead315e033359d07049b23b147a3
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=cab1c3b3708eead315e033359d07049b23b147a3
Fixed bug #72479 - same as #72434
1
PHP_MINIT_FUNCTION(snmp) { netsnmp_log_handler *logh; zend_class_entry ce, cex; le_snmp_session = zend_register_list_destructors_ex(php_snmp_session_destructor, NULL, PHP_SNMP_SESSION_RES_NAME, module_number); init_snmp("snmpapp"); #ifdef NETSNMP_DS_LIB_DONT_PERSIST_STATE /* Prevent update of the snmpapp.conf f...
67376393539603801542933710123087364670
snmp.c
23932759773432740913613151934817775847
CWE-416
CVE-2016-6295
ext/snmp/snmp.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 improperly interacts with the unserialize implementation and garbage collection, which allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact via crafted seriali...
https://nvd.nist.gov/vuln/detail/CVE-2016-6295
413,339
php-src
cab1c3b3708eead315e033359d07049b23b147a3
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=cab1c3b3708eead315e033359d07049b23b147a3
Fixed bug #72479 - same as #72434
0
PHP_MINIT_FUNCTION(snmp) { netsnmp_log_handler *logh; zend_class_entry ce, cex; le_snmp_session = zend_register_list_destructors_ex(php_snmp_session_destructor, NULL, PHP_SNMP_SESSION_RES_NAME, module_number); init_snmp("snmpapp"); #ifdef NETSNMP_DS_LIB_DONT_PERSIST_STATE /* Prevent update of the snmpapp.conf f...
61841669860685177602281773654543637365
snmp.c
195062314366498303509175847868002620782
CWE-416
CVE-2016-6295
ext/snmp/snmp.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 improperly interacts with the unserialize implementation and garbage collection, which allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact via crafted seriali...
https://nvd.nist.gov/vuln/detail/CVE-2016-6295
208,680
radare2
10517e3ff0e609697eb8cde60ec8dc999ee5ea24
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/10517e3ff0e609697eb8cde60ec8dc999ee5ea24
aaef on arm/thumb switches causes uaf ##crash * Reported by peacock-doris via huntr.dev * Reproducer: poc_uaf_r_reg_get
1
R_API void r_core_anal_esil(RCore *core, const char *str, const char *target) { bool cfg_anal_strings = r_config_get_i (core->config, "anal.strings"); bool emu_lazy = r_config_get_i (core->config, "emu.lazy"); bool gp_fixed = r_config_get_i (core->config, "anal.gpfixed"); RAnalEsil *ESIL = core->anal->esil; ut64 r...
25949004488581343936391059714889689262
None
CWE-416
CVE-2022-0849
Use After Free in r_reg_get_name_idx in GitHub repository radareorg/radare2 prior to 5.6.6.
https://nvd.nist.gov/vuln/detail/CVE-2022-0849
413,623
radare2
10517e3ff0e609697eb8cde60ec8dc999ee5ea24
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/10517e3ff0e609697eb8cde60ec8dc999ee5ea24
aaef on arm/thumb switches causes uaf ##crash * Reported by peacock-doris via huntr.dev * Reproducer: poc_uaf_r_reg_get
0
R_API void r_core_anal_esil(RCore *core, const char *str, const char *target) { bool cfg_anal_strings = r_config_get_i (core->config, "anal.strings"); bool emu_lazy = r_config_get_i (core->config, "emu.lazy"); bool gp_fixed = r_config_get_i (core->config, "anal.gpfixed"); RAnalEsil *ESIL = core->anal->esil; ut64 r...
238488437783667654322031890485445145764
None
CWE-416
CVE-2022-0849
Use After Free in r_reg_get_name_idx in GitHub repository radareorg/radare2 prior to 5.6.6.
https://nvd.nist.gov/vuln/detail/CVE-2022-0849
208,912
vim
1c3dd8ddcba63c1af5112e567215b3cec2de11d0
https://github.com/vim/vim
https://github.com/vim/vim/commit/1c3dd8ddcba63c1af5112e567215b3cec2de11d0
patch 9.0.0490: using freed memory with cmdwin and BufEnter autocmd Problem: Using freed memory with cmdwin and BufEnter autocmd. Solution: Make sure pointer to b_p_iminsert is still valid.
1
getcmdline_int( int firstc, long count UNUSED, // only used for incremental search int indent, // indent for inside conditionals int clear_ccline) // clear ccline first { static int depth = 0; // call depth int c; int i; int j; int gotesc = FALSE; // TRUE when <ESC> just...
318420655328659351378249069297989245289
ex_getln.c
35630205531070235041879855338965504689
CWE-416
CVE-2022-3235
Use After Free in GitHub repository vim/vim prior to 9.0.0490.
https://nvd.nist.gov/vuln/detail/CVE-2022-3235
416,366
vim
1c3dd8ddcba63c1af5112e567215b3cec2de11d0
https://github.com/vim/vim
https://github.com/vim/vim/commit/1c3dd8ddcba63c1af5112e567215b3cec2de11d0
patch 9.0.0490: using freed memory with cmdwin and BufEnter autocmd Problem: Using freed memory with cmdwin and BufEnter autocmd. Solution: Make sure pointer to b_p_iminsert is still valid.
0
getcmdline_int( int firstc, long count UNUSED, // only used for incremental search int indent, // indent for inside conditionals int clear_ccline) // clear ccline first { static int depth = 0; // call depth int c; int i; int j; int gotesc = FALSE; // TRUE when <ESC> just...
287277157755538522084742430465983420799
ex_getln.c
200105240926561396065075027208565202210
CWE-416
CVE-2022-3235
Use After Free in GitHub repository vim/vim prior to 9.0.0490.
https://nvd.nist.gov/vuln/detail/CVE-2022-3235
208,987
MilkyTracker
7afd55c42ad80d01a339197a2d8b5461d214edaf
https://github.com/milkytracker/MilkyTracker
https://github.com/milkytracker/MilkyTracker/commit/7afd55c42ad80d01a339197a2d8b5461d214edaf
Fix use-after-free in PlayerGeneric destructor
1
PlayerGeneric::~PlayerGeneric() { if (mixer) delete mixer; if (player) { if (mixer->isActive() && !mixer->isDeviceRemoved(player)) mixer->removeDevice(player); delete player; } delete[] audioDriverName; delete listener; }
259737108889128783455987997759442352236
PlayerGeneric.cpp
257439638235883999405270646373445692221
CWE-416
CVE-2020-15569
PlayerGeneric.cpp in MilkyTracker through 1.02.00 has a use-after-free in the PlayerGeneric destructor.
https://nvd.nist.gov/vuln/detail/CVE-2020-15569
417,093
MilkyTracker
7afd55c42ad80d01a339197a2d8b5461d214edaf
https://github.com/milkytracker/MilkyTracker
https://github.com/milkytracker/MilkyTracker/commit/7afd55c42ad80d01a339197a2d8b5461d214edaf
Fix use-after-free in PlayerGeneric destructor
0
PlayerGeneric::~PlayerGeneric() { if (player) { if (mixer && mixer->isActive() && !mixer->isDeviceRemoved(player)) mixer->removeDevice(player); delete player; } if (mixer) delete mixer; delete[] audioDriverName; delete listener; }
322349041921925160891638302386197132402
PlayerGeneric.cpp
114108410020377773864246355219706856245
CWE-416
CVE-2020-15569
PlayerGeneric.cpp in MilkyTracker through 1.02.00 has a use-after-free in the PlayerGeneric destructor.
https://nvd.nist.gov/vuln/detail/CVE-2020-15569
209,026
libvirt
4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
https://github.com/libvirt/libvirt
https://gitlab.com/libvirt/libvirt/-/commit/4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
conf: Fix segfault when parsing mdev types Commit f1b0890 introduced a potential crash due to incorrect operator precedence when accessing an element from a pointer to an array. Backtrace below: #0 virNodeDeviceGetMdevTypesCaps (sysfspath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", mdev_types=0x7fff801...
1
virNodeDeviceGetMdevTypesCaps(const char *sysfspath, virMediatedDeviceTypePtr **mdev_types, size_t *nmdev_types) { virMediatedDeviceTypePtr *types = NULL; size_t ntypes = 0; size_t i; /* this could be a refresh, so clear out the old data */ ...
87286221830836043224209896676991521270
node_device_conf.c
38019949320953450079385512587806047567
CWE-119
CVE-2021-3559
A flaw was found in libvirt in the virConnectListAllNodeDevices API in versions before 7.0.0. It only affects hosts with a PCI device and driver that supports mediated devices (e.g., GRID driver). This flaw could be used by an unprivileged client with a read-only connection to crash the libvirt daemon by executing the ...
https://nvd.nist.gov/vuln/detail/CVE-2021-3559
417,472
libvirt
4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
https://github.com/libvirt/libvirt
https://gitlab.com/libvirt/libvirt/-/commit/4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
conf: Fix segfault when parsing mdev types Commit f1b0890 introduced a potential crash due to incorrect operator precedence when accessing an element from a pointer to an array. Backtrace below: #0 virNodeDeviceGetMdevTypesCaps (sysfspath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", mdev_types=0x7fff801...
0
virNodeDeviceGetMdevTypesCaps(const char *sysfspath, virMediatedDeviceTypePtr **mdev_types, size_t *nmdev_types) { virMediatedDeviceTypePtr *types = NULL; size_t ntypes = 0; size_t i; /* this could be a refresh, so clear out the old data */ ...
41677585075086071603512617130977145017
node_device_conf.c
190835973650812059595485281579904597762
CWE-119
CVE-2021-3559
A flaw was found in libvirt in the virConnectListAllNodeDevices API in versions before 7.0.0. It only affects hosts with a PCI device and driver that supports mediated devices (e.g., GRID driver). This flaw could be used by an unprivileged client with a read-only connection to crash the libvirt daemon by executing the ...
https://nvd.nist.gov/vuln/detail/CVE-2021-3559
209,102
vim
80525751c5ce9ed82c41d83faf9ef38667bf61b1
https://github.com/vim/vim
https://github.com/vim/vim/commit/80525751c5ce9ed82c41d83faf9ef38667bf61b1
patch 9.0.0259: crash with mouse click when not initialized Problem: Crash with mouse click when not initialized. Solution: Check TabPageIdxs[] is not NULL.
1
do_mouse( oparg_T *oap, // operator argument, can be NULL int c, // K_LEFTMOUSE, etc int dir, // Direction to 'put' if necessary long count, int fixindent) // PUT_FIXINDENT if fixing indent necessary { static int do_always = FALSE; // ignore 'mouse' setting next time static int got_cli...
230981879452824566126490545559038336652
mouse.c
48030859742909908779392834945640503907
CWE-703
CVE-2022-2980
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0259.
https://nvd.nist.gov/vuln/detail/CVE-2022-2980
418,795
vim
80525751c5ce9ed82c41d83faf9ef38667bf61b1
https://github.com/vim/vim
https://github.com/vim/vim/commit/80525751c5ce9ed82c41d83faf9ef38667bf61b1
patch 9.0.0259: crash with mouse click when not initialized Problem: Crash with mouse click when not initialized. Solution: Check TabPageIdxs[] is not NULL.
0
do_mouse( oparg_T *oap, // operator argument, can be NULL int c, // K_LEFTMOUSE, etc int dir, // Direction to 'put' if necessary long count, int fixindent) // PUT_FIXINDENT if fixing indent necessary { static int do_always = FALSE; // ignore 'mouse' setting next time static int got_cli...
340201685272816729984528939326600503133
mouse.c
56805804002879785388836197750941387525
CWE-703
CVE-2022-2980
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0259.
https://nvd.nist.gov/vuln/detail/CVE-2022-2980
209,801
mujs
f5b3c703e18725e380b83427004632e744f85a6f
https://github.com/ccxvii/mujs
https://github.com/ccxvii/mujs/commit/f5b3c703e18725e380b83427004632e744f85a6f
Issue #161: Cope with empty programs in mujs-pp.
1
void jsP_dumpsyntax(js_State *J, js_Ast *prog, int dominify) { minify = dominify; if (prog->type == AST_LIST) pstmlist(-1, prog); else { pstm(0, prog); nl(); } if (minify > 1) putchar('\n'); }
236329653693817075818818411816465624514
jsdump.c
195852189272926394340196020756121895406
CWE-476
CVE-2022-30975
In Artifex MuJS through 1.2.0, jsP_dumpsyntax in jsdump.c has a NULL pointer dereference, as demonstrated by mujs-pp.
https://nvd.nist.gov/vuln/detail/CVE-2022-30975
421,378
mujs
f5b3c703e18725e380b83427004632e744f85a6f
https://github.com/ccxvii/mujs
https://github.com/ccxvii/mujs/commit/f5b3c703e18725e380b83427004632e744f85a6f
Issue #161: Cope with empty programs in mujs-pp.
0
void jsP_dumpsyntax(js_State *J, js_Ast *prog, int dominify) { minify = dominify; if (prog) { if (prog->type == AST_LIST) pstmlist(-1, prog); else { pstm(0, prog); nl(); } } if (minify > 1) putchar('\n'); }
148093103302179844815401983905255483216
jsdump.c
205390724250782891362749099686890673449
CWE-476
CVE-2022-30975
In Artifex MuJS through 1.2.0, jsP_dumpsyntax in jsdump.c has a NULL pointer dereference, as demonstrated by mujs-pp.
https://nvd.nist.gov/vuln/detail/CVE-2022-30975