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
211,563
vim
a062006b9de0b2947ab5fb376c6e67ef92a8cd69
https://github.com/vim/vim
https://github.com/vim/vim/commit/a062006b9de0b2947ab5fb376c6e67ef92a8cd69
patch 8.2.3610: crash when ModeChanged triggered too early Problem: Crash when ModeChanged triggered too early. Solution: Trigger ModeChanged after setting VIsual.
1
n_start_visual_mode(int c) { #ifdef FEAT_CONCEAL int cursor_line_was_concealed = curwin->w_p_cole > 0 && conceal_cursor_line(curwin); #endif VIsual_mode = c; VIsual_active = TRUE; VIsual_reselect = TRUE; trigger_modechanged(); // Corner case: the 0 position in a tab may change when going...
184740522957607059139984101996502665794
None
CWE-122
CVE-2021-3968
vim is vulnerable to Heap-based Buffer Overflow
https://nvd.nist.gov/vuln/detail/CVE-2021-3968
449,294
vim
a062006b9de0b2947ab5fb376c6e67ef92a8cd69
https://github.com/vim/vim
https://github.com/vim/vim/commit/a062006b9de0b2947ab5fb376c6e67ef92a8cd69
patch 8.2.3610: crash when ModeChanged triggered too early Problem: Crash when ModeChanged triggered too early. Solution: Trigger ModeChanged after setting VIsual.
0
n_start_visual_mode(int c) { #ifdef FEAT_CONCEAL int cursor_line_was_concealed = curwin->w_p_cole > 0 && conceal_cursor_line(curwin); #endif VIsual_mode = c; VIsual_active = TRUE; VIsual_reselect = TRUE; // Corner case: the 0 position in a tab may change when going into // virtualedit. ...
18013964164383096631914378209665418022
None
CWE-122
CVE-2021-3968
vim is vulnerable to Heap-based Buffer Overflow
https://nvd.nist.gov/vuln/detail/CVE-2021-3968
211,567
clamav-devel
c6870a6c857dd722dffaf6d37ae52ec259d12492
https://github.com/vrtadmin/clamav-devel
https://github.com/vrtadmin/clamav-devel/commit/c6870a6c857dd722dffaf6d37ae52ec259d12492
bb #6808
1
static char *getsistring(FILE *f, uint32_t ptr, uint32_t len) { char *name; uint32_t i; if (!len) return NULL; if (len>400) len=400; name = cli_malloc(len); if (!name) { cli_dbgmsg("SIS: OOM\n"); return NULL; } fseek(f, ptr, SEEK_SET); if (fread(name, len, 1, f)!=1) { cli_dbgmsg("SIS: Una...
249475827060217450801946160071587171974
sis.c
74416937580759661752528557759080505362
CWE-189
CVE-2013-2020
Integer underflow in the cli_scanpe function in pe.c in ClamAV before 0.97.8 allows remote attackers to cause a denial of service (crash) via a skewed offset larger than the size of the PE section in a UPX packed executable, which triggers an out-of-bounds read.
https://nvd.nist.gov/vuln/detail/CVE-2013-2020
449,321
clamav-devel
c6870a6c857dd722dffaf6d37ae52ec259d12492
https://github.com/vrtadmin/clamav-devel
https://github.com/vrtadmin/clamav-devel/commit/c6870a6c857dd722dffaf6d37ae52ec259d12492
bb #6808
0
static char *getsistring(FILE *f, uint32_t ptr, uint32_t len) { char *name; uint32_t i; if (!len) return NULL; if (len>400) len=400; name = cli_malloc(len+1); if (!name) { cli_dbgmsg("SIS: OOM\n"); return NULL; } fseek(f, ptr, SEEK_SET); if (fread(name, len, 1, f)!=1) { cli_dbgmsg("SIS: U...
103287413099842266713052785251008739113
sis.c
220725720240675887606122374077538393241
CWE-189
CVE-2013-2020
Integer underflow in the cli_scanpe function in pe.c in ClamAV before 0.97.8 allows remote attackers to cause a denial of service (crash) via a skewed offset larger than the size of the PE section in a UPX packed executable, which triggers an out-of-bounds read.
https://nvd.nist.gov/vuln/detail/CVE-2013-2020
211,695
vim
4c13e5e6763c6eb36a343a2b8235ea227202e952
https://github.com/vim/vim
https://github.com/vim/vim/commit/4c13e5e6763c6eb36a343a2b8235ea227202e952
patch 8.2.3949: using freed memory with /\%V Problem: Using freed memory with /\%V. Solution: Get the line again after getvvcol().
1
reg_match_visual(void) { pos_T top, bot; linenr_T lnum; colnr_T col; win_T *wp = rex.reg_win == NULL ? curwin : rex.reg_win; int mode; colnr_T start, end; colnr_T start2, end2; colnr_T cols; colnr_T curswant; // Check if the buffer is the current buffer. if (rex.reg_buf ...
213127434587581742033304075177767787021
regexp.c
154178765544405999260732501141990227321
CWE-416
CVE-2021-4192
vim is vulnerable to Use After Free
https://nvd.nist.gov/vuln/detail/CVE-2021-4192
450,764
vim
4c13e5e6763c6eb36a343a2b8235ea227202e952
https://github.com/vim/vim
https://github.com/vim/vim/commit/4c13e5e6763c6eb36a343a2b8235ea227202e952
patch 8.2.3949: using freed memory with /\%V Problem: Using freed memory with /\%V. Solution: Get the line again after getvvcol().
0
reg_match_visual(void) { pos_T top, bot; linenr_T lnum; colnr_T col; win_T *wp = rex.reg_win == NULL ? curwin : rex.reg_win; int mode; colnr_T start, end; colnr_T start2, end2; colnr_T cols; colnr_T curswant; // Check if the buffer is the current buffer. if (rex.reg_buf ...
273404837920170490390239404652231965596
regexp.c
323022444375597496724509829879656182542
CWE-416
CVE-2021-4192
vim is vulnerable to Use After Free
https://nvd.nist.gov/vuln/detail/CVE-2021-4192
211,699
gnulib
2d1bd71ec70a31b01d01b734faa66bb1ed28961f
https://github.com/coreutils/gnulib
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=2d1bd71ec70a31b01d01b734faa66bb1ed28961f
glob: fix heap buffer overflow * lib/glob.c (glob): Fix off-by-one error introduced into glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab dated 1997-10-29 20:33:40. Problem reported by Tim Rühsen in: https://sourceware.org/bugzilla/show_bug.cgi?id=22320 Fix suggested by Bruno Haible.
1
glob (const char *pattern, int flags, int (*errfunc) (const char *, int), glob_t *pglob) { const char *filename; char *dirname = NULL; size_t dirlen; int status; size_t oldcount; int meta; int dirname_modified; int malloc_dirname = 0; glob_t dirs; int retval = 0; size_t alloca_used = 0; i...
298881576183169213772402868020196569538
glob.c
266244104923592097115880749593499653391
CWE-119
CVE-2017-15670
The GNU C Library (aka glibc or libc6) before 2.27 contains an off-by-one error leading to a heap-based buffer overflow in the glob function in glob.c, related to the processing of home directories using the ~ operator followed by a long string.
https://nvd.nist.gov/vuln/detail/CVE-2017-15670
450,812
gnulib
2d1bd71ec70a31b01d01b734faa66bb1ed28961f
https://github.com/coreutils/gnulib
http://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=2d1bd71ec70a31b01d01b734faa66bb1ed28961f
glob: fix heap buffer overflow * lib/glob.c (glob): Fix off-by-one error introduced into glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab dated 1997-10-29 20:33:40. Problem reported by Tim Rühsen in: https://sourceware.org/bugzilla/show_bug.cgi?id=22320 Fix suggested by Bruno Haible.
0
glob (const char *pattern, int flags, int (*errfunc) (const char *, int), glob_t *pglob) { const char *filename; char *dirname = NULL; size_t dirlen; int status; size_t oldcount; int meta; int dirname_modified; int malloc_dirname = 0; glob_t dirs; int retval = 0; size_t alloca_used = 0; i...
117294583205769293929285722462366033294
glob.c
86657842076081720969928155936908511288
CWE-119
CVE-2017-15670
The GNU C Library (aka glibc or libc6) before 2.27 contains an off-by-one error leading to a heap-based buffer overflow in the glob function in glob.c, related to the processing of home directories using the ~ operator followed by a long string.
https://nvd.nist.gov/vuln/detail/CVE-2017-15670
211,700
linux
4fbcc1a4cb20fe26ad0225679c536c80f1648221
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4fbcc1a4cb20fe26ad0225679c536c80f1648221
nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION It appears that there are some buffer overflows in EVT_TRANSACTION. This happens because the length parameters that are passed to memcpy come directly from skb->data and are not guarded in any way. Signed-off-by: Jordy Zomer <jordy@pwning.systems> Revie...
1
int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, u8 event, struct sk_buff *skb) { int r = 0; struct device *dev = &hdev->ndev->dev; struct nfc_evt_transaction *transaction; pr_debug("connectivity gate event: %x\n", event); switch (event) { case ST21NFCA_EVT_CONNECTIVITY: r = nfc...
253634808738614127513017365541725702270
se.c
262088554020527485810277505080130104803
CWE-120
CVE-2022-26490
st21nfca_connectivity_event_received in drivers/nfc/st21nfca/se.c in the Linux kernel through 5.16.12 has EVT_TRANSACTION buffer overflows because of untrusted length parameters.
https://nvd.nist.gov/vuln/detail/CVE-2022-26490
450,830
linux
4fbcc1a4cb20fe26ad0225679c536c80f1648221
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4fbcc1a4cb20fe26ad0225679c536c80f1648221
nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION It appears that there are some buffer overflows in EVT_TRANSACTION. This happens because the length parameters that are passed to memcpy come directly from skb->data and are not guarded in any way. Signed-off-by: Jordy Zomer <jordy@pwning.systems> Revie...
0
int st21nfca_connectivity_event_received(struct nfc_hci_dev *hdev, u8 host, u8 event, struct sk_buff *skb) { int r = 0; struct device *dev = &hdev->ndev->dev; struct nfc_evt_transaction *transaction; pr_debug("connectivity gate event: %x\n", event); switch (event) { case ST21NFCA_EVT_CONNECTIVITY: r = nfc...
192395528803862067074725666985010866676
se.c
50941829261793889476158524684428564511
CWE-120
CVE-2022-26490
st21nfca_connectivity_event_received in drivers/nfc/st21nfca/se.c in the Linux kernel through 5.16.12 has EVT_TRANSACTION buffer overflows because of untrusted length parameters.
https://nvd.nist.gov/vuln/detail/CVE-2022-26490
211,773
ntp
07a5b8141e354a998a52994c3c9cd547927e56ce
https://github.com/ntp-project/ntp
https://github.com/ntp-project/ntp/commit/07a5b8141e354a998a52994c3c9cd547927e56ce
[TALOS-CAN-0063] avoid buffer overrun in ntpq
1
cookedprint( int datatype, int length, const char *data, int status, int quiet, FILE *fp ) { char *name; char *value; char output_raw; int fmt; l_fp lfp; sockaddr_u hval; u_long uval; int narr; size_t len; l_fp lfparr[8]; char b[12]; char bn[2 * MAXVARLEN]; char bv[2 * MAXVALLEN]; UNUSED_ARG(datat...
117019892599870517074003591750988787973
ntpq.c
263164452008239257044928277190655422420
CWE-20
CVE-2015-7852
ntpq in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote attackers to cause a denial of service (crash) via crafted mode 6 response packets.
https://nvd.nist.gov/vuln/detail/CVE-2015-7852
451,731
ntp
07a5b8141e354a998a52994c3c9cd547927e56ce
https://github.com/ntp-project/ntp
https://github.com/ntp-project/ntp/commit/07a5b8141e354a998a52994c3c9cd547927e56ce
[TALOS-CAN-0063] avoid buffer overrun in ntpq
0
cookedprint( int datatype, int length, const char *data, int status, int quiet, FILE *fp ) { char *name; char *value; char output_raw; int fmt; l_fp lfp; sockaddr_u hval; u_long uval; int narr; size_t len; l_fp lfparr[8]; char b[12]; char bn[2 * MAXVARLEN]; char bv[2 * MAXVALLEN]; UNUSED_ARG(datat...
286888330459003026331284434605345848005
ntpq.c
291788569529258980351890148746025724022
CWE-20
CVE-2015-7852
ntpq in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote attackers to cause a denial of service (crash) via crafted mode 6 response packets.
https://nvd.nist.gov/vuln/detail/CVE-2015-7852
211,785
jasper
4cd52b5daac62b00a0a328451544807ddecf775f
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/4cd52b5daac62b00a0a328451544807ddecf775f
Avoid maxrlvls more than upper bound to cause heap-buffer-overflow
1
static jpc_enc_cp_t *cp_create(const char *optstr, jas_image_t *image) { jpc_enc_cp_t *cp; jas_tvparser_t *tvp; int ret; int numilyrrates; double *ilyrrates; int i; int tagid; jpc_enc_tcp_t *tcp; jpc_enc_tccp_t *tccp; jpc_enc_ccp_t *ccp; uint_fast16_t rlvlno; uint_fast16_t prcwidthexpn; uint_fast16_t prche...
179213511260070262932724370978685731129
jpc_enc.c
285191290025689593258555638021323781658
CWE-20
CVE-2020-27828
There's a flaw in jasper's jpc encoder in versions prior to 2.0.23. Crafted input provided to jasper by an attacker could cause an arbitrary out-of-bounds write. This could potentially affect data confidentiality, integrity, or application availability.
https://nvd.nist.gov/vuln/detail/CVE-2020-27828
451,888
jasper
4cd52b5daac62b00a0a328451544807ddecf775f
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/4cd52b5daac62b00a0a328451544807ddecf775f
Avoid maxrlvls more than upper bound to cause heap-buffer-overflow
0
static jpc_enc_cp_t *cp_create(const char *optstr, jas_image_t *image) { jpc_enc_cp_t *cp; jas_tvparser_t *tvp; int ret; int numilyrrates; double *ilyrrates; int i; int tagid; jpc_enc_tcp_t *tcp; jpc_enc_tccp_t *tccp; jpc_enc_ccp_t *ccp; uint_fast16_t rlvlno; uint_fast16_t prcwidthexpn; uint_fast16_t prche...
258879101783368514234166952366199989021
jpc_enc.c
134316338883827501672124248295180144242
CWE-20
CVE-2020-27828
There's a flaw in jasper's jpc encoder in versions prior to 2.0.23. Crafted input provided to jasper by an attacker could cause an arbitrary out-of-bounds write. This could potentially affect data confidentiality, integrity, or application availability.
https://nvd.nist.gov/vuln/detail/CVE-2020-27828
211,842
vim
4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa
https://github.com/vim/vim
https://github.com/vim/vim/commit/4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa
patch 8.2.4436: crash with weird 'vartabstop' value Problem: Crash with weird 'vartabstop' value. Solution: Check for running into the end of the line.
1
change_indent( int type, int amount, int round, int replaced, // replaced character, put on replace stack int call_changed_bytes) // call changed_bytes() { int vcol; int last_vcol; int insstart_less; // reduction for Insstart.col int new_cursor_col; int i; char_u *...
104434622616430304167109103842435027722
indent.c
225104819640164774379021828754456921804
CWE-787
CVE-2022-0714
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.4436.
https://nvd.nist.gov/vuln/detail/CVE-2022-0714
452,377
vim
4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa
https://github.com/vim/vim
https://github.com/vim/vim/commit/4e889f98e95ac05d7c8bd3ee933ab4d47820fdfa
patch 8.2.4436: crash with weird 'vartabstop' value Problem: Crash with weird 'vartabstop' value. Solution: Check for running into the end of the line.
0
change_indent( int type, int amount, int round, int replaced, // replaced character, put on replace stack int call_changed_bytes) // call changed_bytes() { int vcol; int last_vcol; int insstart_less; // reduction for Insstart.col int new_cursor_col; int i; char_u *...
281315459122812097070130024816280546627
indent.c
175343284041603087029849272826009468440
CWE-787
CVE-2022-0714
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.4436.
https://nvd.nist.gov/vuln/detail/CVE-2022-0714
211,845
ImageMagick6
1aea203eb36409ce6903b9e41fe7cb70030e8750
https://github.com/ImageMagick/ImageMagick6
https://github.com/ImageMagick/ImageMagick6/commit/1aea203eb36409ce6903b9e41fe7cb70030e8750
squash heap-buffer-overflow, PoC TIFF from Hardik
1
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantu...
282124666378195634578988553119839535376
tiff.c
94999311171482042296542443921541591860
CWE-787
CVE-2022-3213
A heap buffer overflow issue was found in ImageMagick. When an application processes a malformed TIFF file, it could lead to undefined behavior or a crash causing a denial of service.
https://nvd.nist.gov/vuln/detail/CVE-2022-3213
452,391
ImageMagick6
1aea203eb36409ce6903b9e41fe7cb70030e8750
https://github.com/ImageMagick/ImageMagick6
https://github.com/ImageMagick/ImageMagick6/commit/1aea203eb36409ce6903b9e41fe7cb70030e8750
squash heap-buffer-overflow, PoC TIFF from Hardik
0
static Image *ReadTIFFImage(const ImageInfo *image_info, ExceptionInfo *exception) { #define MaxPixelChannels 32 #define ThrowTIFFException(severity,message) \ { \ if (pixel_info != (MemoryInfo *) NULL) \ pixel_info=RelinquishVirtualMemory(pixel_info); \ if (quantum_info != (QuantumInfo *) NULL) \ quantu...
299907120858996373991818547886083873911
tiff.c
106627250122948436089504190965714390547
CWE-787
CVE-2022-3213
A heap buffer overflow issue was found in ImageMagick. When an application processes a malformed TIFF file, it could lead to undefined behavior or a crash causing a denial of service.
https://nvd.nist.gov/vuln/detail/CVE-2022-3213
211,868
nf
b1a5983f56e371046dcf164f90bfaf704d2b89f6
http://git.kernel.org/cgit/linux/kernel/git/pablo/nf
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/commit/?id=b1a5983f56e371046dcf164f90bfaf704d2b89f6
netfilter: nf_tables_offload: incorrect flow offload action array size immediate verdict expression needs to allocate one slot in the flow offload action array, however, immediate data expression does not need to do so. fwd and dup expression need to allocate one slot, this is missing. Add a new offload_action inter...
1
struct nft_flow_rule *nft_flow_rule_create(struct net *net, const struct nft_rule *rule) { struct nft_offload_ctx *ctx; struct nft_flow_rule *flow; int num_actions = 0, err; struct nft_expr *expr; expr = nft_expr_first(rule); while (nft_expr_more(rule, expr)) { if (expr->ops->offload_flags & NFT_OFFLOA...
135282973834013788624737629823587242676
nf_tables_offload.c
26603376215652964964004794041493892983
CWE-269
CVE-2022-25636
net/netfilter/nf_dup_netdev.c in the Linux kernel 5.4 through 5.6.10 allows local users to gain privileges because of a heap out-of-bounds write. This is related to nf_tables_offload.
https://nvd.nist.gov/vuln/detail/CVE-2022-25636
452,994
nf
b1a5983f56e371046dcf164f90bfaf704d2b89f6
http://git.kernel.org/cgit/linux/kernel/git/pablo/nf
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/commit/?id=b1a5983f56e371046dcf164f90bfaf704d2b89f6
netfilter: nf_tables_offload: incorrect flow offload action array size immediate verdict expression needs to allocate one slot in the flow offload action array, however, immediate data expression does not need to do so. fwd and dup expression need to allocate one slot, this is missing. Add a new offload_action inter...
0
struct nft_flow_rule *nft_flow_rule_create(struct net *net, const struct nft_rule *rule) { struct nft_offload_ctx *ctx; struct nft_flow_rule *flow; int num_actions = 0, err; struct nft_expr *expr; expr = nft_expr_first(rule); while (nft_expr_more(rule, expr)) { if (expr->ops->offload_action && ex...
59444629723641299753508256533223671386
nf_tables_offload.c
69217204877048087601961561157864546689
CWE-269
CVE-2022-25636
net/netfilter/nf_dup_netdev.c in the Linux kernel 5.4 through 5.6.10 allows local users to gain privileges because of a heap out-of-bounds write. This is related to nf_tables_offload.
https://nvd.nist.gov/vuln/detail/CVE-2022-25636
211,877
libexpat
a2fe525e660badd64b6c557c2b1ec26ddc07f6e4
https://github.com/libexpat/libexpat
https://github.com/libexpat/libexpat/commit/a2fe525e660badd64b6c557c2b1ec26ddc07f6e4
lib: Protect against malicious namespace declarations (CVE-2022-25236)
1
addBinding(XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId, const XML_Char *uri, BINDING **bindingsPtr) { static const XML_Char xmlNamespace[] = {ASCII_h, ASCII_t, ASCII_t, ASCII_p, ASCII_COLON, ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCII_w, ASCII_w, ...
22295362737021887331084829836677682659
xmlparse.c
64970761866861782031621044957132437337
CWE-668
CVE-2022-25236
xmlparse.c in Expat (aka libexpat) before 2.4.5 allows attackers to insert namespace-separator characters into namespace URIs.
https://nvd.nist.gov/vuln/detail/CVE-2022-25236
453,109
libexpat
a2fe525e660badd64b6c557c2b1ec26ddc07f6e4
https://github.com/libexpat/libexpat
https://github.com/libexpat/libexpat/commit/a2fe525e660badd64b6c557c2b1ec26ddc07f6e4
lib: Protect against malicious namespace declarations (CVE-2022-25236)
0
addBinding(XML_Parser parser, PREFIX *prefix, const ATTRIBUTE_ID *attId, const XML_Char *uri, BINDING **bindingsPtr) { static const XML_Char xmlNamespace[] = {ASCII_h, ASCII_t, ASCII_t, ASCII_p, ASCII_COLON, ASCII_SLASH, ASCII_SLASH, ASCII_w, ASCII_w, ASCII_w, ...
180909609780994811991308792390157424153
xmlparse.c
39872007825496999526918942248087494728
CWE-668
CVE-2022-25236
xmlparse.c in Expat (aka libexpat) before 2.4.5 allows attackers to insert namespace-separator characters into namespace URIs.
https://nvd.nist.gov/vuln/detail/CVE-2022-25236
211,915
jasper
839b1bcf0450ff036c28e8db40a7abf886e02891
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/839b1bcf0450ff036c28e8db40a7abf886e02891
jp2_dec: fix `numchans` mixup When iterating over `dec->cdef->data.cdef.ents`, we need to use its `numchans` variable, not the one in `jp2_dec_t`. Fixes CVE-2018-19543 Fixes CVE-2017-9782 Closes https://github.com/jasper-maint/jasper/issues/13 Closes https://github.com/jasper-maint/jasper/issues/18 Closes https://gi...
1
jas_image_t *jp2_decode(jas_stream_t *in, const char *optstr) { jp2_box_t *box; int found; jas_image_t *image; jp2_dec_t *dec; bool samedtype; int dtype; unsigned int i; jp2_cmap_t *cmapd; jp2_pclr_t *pclrd; jp2_cdef_t *cdefd; unsigned int channo; int newcmptno; int_fast32_t *lutents; #if 0 jp2_cdefchan_t...
59868521314205020877993173661951509362
jp2_dec.c
93955147082917127962057718477708272955
CWE-125
CVE-2017-9782
JasPer 2.0.12 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted image, related to the jp2_decode function in libjasper/jp2/jp2_dec.c.
https://nvd.nist.gov/vuln/detail/CVE-2017-9782
453,265
jasper
839b1bcf0450ff036c28e8db40a7abf886e02891
https://github.com/mdadams/jasper
https://github.com/jasper-software/jasper/commit/839b1bcf0450ff036c28e8db40a7abf886e02891
jp2_dec: fix `numchans` mixup When iterating over `dec->cdef->data.cdef.ents`, we need to use its `numchans` variable, not the one in `jp2_dec_t`. Fixes CVE-2018-19543 Fixes CVE-2017-9782 Closes https://github.com/jasper-maint/jasper/issues/13 Closes https://github.com/jasper-maint/jasper/issues/18 Closes https://gi...
0
jas_image_t *jp2_decode(jas_stream_t *in, const char *optstr) { jp2_box_t *box; int found; jas_image_t *image; jp2_dec_t *dec; bool samedtype; int dtype; unsigned int i; jp2_cmap_t *cmapd; jp2_pclr_t *pclrd; jp2_cdef_t *cdefd; unsigned int channo; int newcmptno; int_fast32_t *lutents; #if 0 jp2_cdefchan_t...
125813963803436339336182748178269813866
jp2_dec.c
163023647028726236156493371179237582578
CWE-125
CVE-2017-9782
JasPer 2.0.12 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted image, related to the jp2_decode function in libjasper/jp2/jp2_dec.c.
https://nvd.nist.gov/vuln/detail/CVE-2017-9782
212,083
linux
690b2549b19563ec5ad53e5c82f6a944d910086e
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/690b2549b19563ec5ad53e5c82f6a944d910086e
i2c: ismt: prevent memory corruption in ismt_access() The "data->block[0]" variable comes from the user and is a number between 0-255. It needs to be capped to prevent writing beyond the end of dma_buffer[]. Fixes: 5e9a97b1f449 ("i2c: ismt: Adding support for I2C_SMBUS_BLOCK_PROC_CALL") Reported-and-tested-by: Zheyu...
1
static int ismt_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { int ret; unsigned long time_left; dma_addr_t dma_addr = 0; /* address of the data buffer */ u8 dma_size = 0; enum dma_data_direction dma_direction ...
91513236317351842038056466223233835211
i2c-ismt.c
22364513944485151173045885792643538357
CWE-703
CVE-2022-3077
A buffer overflow vulnerability was found in the Linux kernel Intel’s iSMT SMBus host controller driver in the way it handled the I2C_SMBUS_BLOCK_PROC_CALL case (via the ioctl I2C_SMBUS) with malicious input data. This flaw could allow a local user to crash the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-3077
454,759
linux
690b2549b19563ec5ad53e5c82f6a944d910086e
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/690b2549b19563ec5ad53e5c82f6a944d910086e
i2c: ismt: prevent memory corruption in ismt_access() The "data->block[0]" variable comes from the user and is a number between 0-255. It needs to be capped to prevent writing beyond the end of dma_buffer[]. Fixes: 5e9a97b1f449 ("i2c: ismt: Adding support for I2C_SMBUS_BLOCK_PROC_CALL") Reported-and-tested-by: Zheyu...
0
static int ismt_access(struct i2c_adapter *adap, u16 addr, unsigned short flags, char read_write, u8 command, int size, union i2c_smbus_data *data) { int ret; unsigned long time_left; dma_addr_t dma_addr = 0; /* address of the data buffer */ u8 dma_size = 0; enum dma_data_direction dma_direction ...
337152422880524025166312472003442952073
i2c-ismt.c
51244111268212170404918431081464078764
CWE-703
CVE-2022-3077
A buffer overflow vulnerability was found in the Linux kernel Intel’s iSMT SMBus host controller driver in the way it handled the I2C_SMBUS_BLOCK_PROC_CALL case (via the ioctl I2C_SMBUS) with malicious input data. This flaw could allow a local user to crash the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-3077
212,144
libmobi
c78e186739b50d156cb3da5d08d70294f0490853
https://github.com/bfabiszewski/libmobi
https://github.com/bfabiszewski/libmobi/commit/c78e186739b50d156cb3da5d08d70294f0490853
Fix potential out-of-buffer read while parsing corrupt file, closes #38
1
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); ...
272789865299199789225315738205107270064
read.c
34500817876088764790813749563983010190
CWE-119
CVE-2021-3888
libmobi is vulnerable to Use of Out-of-range Pointer Offset
https://nvd.nist.gov/vuln/detail/CVE-2021-3888
455,177
libmobi
c78e186739b50d156cb3da5d08d70294f0490853
https://github.com/bfabiszewski/libmobi
https://github.com/bfabiszewski/libmobi/commit/c78e186739b50d156cb3da5d08d70294f0490853
Fix potential out-of-buffer read while parsing corrupt file, closes #38
0
MOBI_RET mobi_parse_huffdic(const MOBIData *m, MOBIHuffCdic *huffcdic) { MOBI_RET ret; const size_t offset = mobi_get_kf8offset(m); if (m->mh == NULL || m->mh->huff_rec_index == NULL || m->mh->huff_rec_count == NULL) { debug_print("%s", "HUFF/CDIC records metadata not found in MOBI header\n"); ...
211530049158768490793426546245477731217
read.c
228295168827515416887178420817040616622
CWE-119
CVE-2021-3888
libmobi is vulnerable to Use of Out-of-range Pointer Offset
https://nvd.nist.gov/vuln/detail/CVE-2021-3888
212,152
bash
951bdaad7a18cc0dc1036bba86b18b90874d39ff
https://github.com/bminor/bash
https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff
commit bash-20190628 snapshot
1
disable_priv_mode () { int e; if (setuid (current_user.uid) < 0) { e = errno; sys_error (_("cannot set uid to %d: effective uid %d"), current_user.uid, current_user.euid); #if defined (EXIT_ON_SETUID_FAILURE) if (e == EAGAIN) exit (e); #endif } if (setgid (current_user.gid) < 0) sy...
247622822404411128670815043239926864688
shell.c
63031401309370215256197051387367703039
CWE-787
CVE-2019-18276
An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support "saved UID...
https://nvd.nist.gov/vuln/detail/CVE-2019-18276
455,356
bash
951bdaad7a18cc0dc1036bba86b18b90874d39ff
https://github.com/bminor/bash
https://github.com/bminor/bash/commit/951bdaad7a18cc0dc1036bba86b18b90874d39ff
commit bash-20190628 snapshot
0
disable_priv_mode () { int e; #if HAVE_DECL_SETRESUID if (setresuid (current_user.uid, current_user.uid, current_user.uid) < 0) #else if (setuid (current_user.uid) < 0) #endif { e = errno; sys_error (_("cannot set uid to %d: effective uid %d"), current_user.uid, current_user.euid); #if defined (E...
129442006485124574074853062128903057999
shell.c
275188902865294694619472408620496076656
CWE-787
CVE-2019-18276
An issue was discovered in disable_priv_mode in shell.c in GNU Bash through 5.0 patch 11. By default, if Bash is run with its effective UID not equal to its real UID, it will drop privileges by setting its effective UID to its real UID. However, it does so incorrectly. On Linux and other systems that support "saved UID...
https://nvd.nist.gov/vuln/detail/CVE-2019-18276
212,339
icecast-server
03ea74c04a5966114c2fe66e4e6892d11a68181e
https://gitlab.xiph.org/xiph/icecast-server
https://gitlab.xiph.org/xiph/icecast-server/commit/03ea74c04a5966114c2fe66e4e6892d11a68181e
Fix: Worked around buffer overflows in URL auth's cURL interface This is only a workaround that keeps compatibility with 2.4.x mainline. A real fix has been implemented in 2.5.x (master).
1
static size_t handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream) { auth_client *auth_user = stream; size_t bytes = size * nmemb; client_t *client = auth_user->client; if (client) { auth_t *auth = client->auth; auth_url *url = auth->state; if (strncas...
172813813159602330520810310060333400473
auth_url.c
1122861942142437056113331349516615132
CWE-119
CVE-2018-18820
A buffer overflow was discovered in the URL-authentication backend of the Icecast before 2.4.4. If the backend is enabled, then any malicious HTTP client can send a request for that specific resource including a crafted header, leading to denial of service and potentially remote code execution.
https://nvd.nist.gov/vuln/detail/CVE-2018-18820
457,772
icecast-server
03ea74c04a5966114c2fe66e4e6892d11a68181e
https://gitlab.xiph.org/xiph/icecast-server
https://gitlab.xiph.org/xiph/icecast-server/commit/03ea74c04a5966114c2fe66e4e6892d11a68181e
Fix: Worked around buffer overflows in URL auth's cURL interface This is only a workaround that keeps compatibility with 2.4.x mainline. A real fix has been implemented in 2.5.x (master).
0
static size_t handle_returned_header (void *ptr, size_t size, size_t nmemb, void *stream) { auth_client *auth_user = stream; size_t len = size * nmemb; client_t *client = auth_user->client; if (client) { auth_t *auth = client->auth; auth_url *url = auth->state; if (url->auth_he...
325925920263284522777628774415448931953
auth_url.c
331866999271559721275349792045163085611
CWE-119
CVE-2018-18820
A buffer overflow was discovered in the URL-authentication backend of the Icecast before 2.4.4. If the backend is enabled, then any malicious HTTP client can send a request for that specific resource including a crafted header, leading to denial of service and potentially remote code execution.
https://nvd.nist.gov/vuln/detail/CVE-2018-18820
212,407
varnish-cache
c5fd097e5cce8b461c6443af02b3448baef2491d
https://github.com/varnishcache/varnish-cache
https://github.com/varnishcache/varnish-cache/commit/c5fd097e5cce8b461c6443af02b3448baef2491d
Do not call http_hdr_flags() on pseudo-headers In http_EstimateWS(), all headers are passed to the http_isfiltered() function to calculate how many bytes is needed to serialize the entire struct http. http_isfiltered() will check the headers for whether they are going to be filtered out later and if so skip them. How...
1
http_isfiltered(const struct http *fm, unsigned u, unsigned how) { const char *e; const struct http_hdrflg *f; if (fm->hdf[u] & HDF_FILTER) return (1); e = strchr(fm->hd[u].b, ':'); if (e == NULL) return (0); f = http_hdr_flags(fm->hd[u].b, e); return (f != NULL && f->flag & how); }
811300647438513744666233377828733318
cache_http.c
145239057408586301398711991484884532857
CWE-703
CVE-2022-38150
In Varnish Cache 7.0.0, 7.0.1, 7.0.2, and 7.1.0, it is possible to cause the Varnish Server to assert and automatically restart through forged HTTP/1 backend responses. An attack uses a crafted reason phrase of the backend response status line. This is fixed in 7.0.3 and 7.1.1.
https://nvd.nist.gov/vuln/detail/CVE-2022-38150
459,029
varnish-cache
c5fd097e5cce8b461c6443af02b3448baef2491d
https://github.com/varnishcache/varnish-cache
https://github.com/varnishcache/varnish-cache/commit/c5fd097e5cce8b461c6443af02b3448baef2491d
Do not call http_hdr_flags() on pseudo-headers In http_EstimateWS(), all headers are passed to the http_isfiltered() function to calculate how many bytes is needed to serialize the entire struct http. http_isfiltered() will check the headers for whether they are going to be filtered out later and if so skip them. How...
0
http_isfiltered(const struct http *fm, unsigned u, unsigned how) { const char *e; const struct http_hdrflg *f; if (fm->hdf[u] & HDF_FILTER) return (1); if (u < HTTP_HDR_FIRST) return (0); e = strchr(fm->hd[u].b, ':'); if (e == NULL) return (0); f = http_hdr_flags(fm->hd[u].b, e); return (f != NULL && f->...
214500471714364858208416051205285025611
cache_http.c
148461925742958572930249757440638720534
CWE-703
CVE-2022-38150
In Varnish Cache 7.0.0, 7.0.1, 7.0.2, and 7.1.0, it is possible to cause the Varnish Server to assert and automatically restart through forged HTTP/1 backend responses. An attack uses a crafted reason phrase of the backend response status line. This is fixed in 7.0.3 and 7.1.1.
https://nvd.nist.gov/vuln/detail/CVE-2022-38150
212,414
linux
04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
net: sched: fix use-after-free in tc_new_tfilter() Whenever tc_new_tfilter() jumps back to replay: label, we need to make sure @q and @chain local variables are cleared again, or risk use-after-free as in [1] For consistency, apply the same fix in tc_ctl_chain() BUG: KASAN: use-after-free in mini_qdisc_pair_swap+0x1...
1
static int tc_new_tfilter(struct sk_buff *skb, struct nlmsghdr *n, struct netlink_ext_ack *extack) { struct net *net = sock_net(skb->sk); struct nlattr *tca[TCA_MAX + 1]; char name[IFNAMSIZ]; struct tcmsg *t; u32 protocol; u32 prio; bool prio_allocate; u32 parent; u32 chain_index; struct Qdisc *q = NULL;...
18151855959135734228627793679159459802
cls_api.c
251903803472854915466369605008106287178
CWE-416
CVE-2022-1055
A use-after-free exists in the Linux Kernel in tc_new_tfilter that could allow a local attacker to gain privilege escalation. The exploit requires unprivileged user namespaces. We recommend upgrading past commit 04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
https://nvd.nist.gov/vuln/detail/CVE-2022-1055
459,107
linux
04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
net: sched: fix use-after-free in tc_new_tfilter() Whenever tc_new_tfilter() jumps back to replay: label, we need to make sure @q and @chain local variables are cleared again, or risk use-after-free as in [1] For consistency, apply the same fix in tc_ctl_chain() BUG: KASAN: use-after-free in mini_qdisc_pair_swap+0x1...
0
static int tc_new_tfilter(struct sk_buff *skb, struct nlmsghdr *n, struct netlink_ext_ack *extack) { struct net *net = sock_net(skb->sk); struct nlattr *tca[TCA_MAX + 1]; char name[IFNAMSIZ]; struct tcmsg *t; u32 protocol; u32 prio; bool prio_allocate; u32 parent; u32 chain_index; struct Qdisc *q; struc...
249400845678093962479611801234831545975
cls_api.c
31293344430191637657447401884064089853
CWE-416
CVE-2022-1055
A use-after-free exists in the Linux Kernel in tc_new_tfilter that could allow a local attacker to gain privilege escalation. The exploit requires unprivileged user namespaces. We recommend upgrading past commit 04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
https://nvd.nist.gov/vuln/detail/CVE-2022-1055
212,433
vim
ccfde4d028e891a41e3548323c3d47b06fb0b83e
https://github.com/vim/vim
https://github.com/vim/vim/commit/ccfde4d028e891a41e3548323c3d47b06fb0b83e
patch 9.0.0389: crash when 'tagfunc' closes the window Problem: Crash when 'tagfunc' closes the window. Solution: Bail out when the window was closed.
1
do_tag( char_u *tag, // tag (pattern) to jump to int type, int count, int forceit, // :ta with ! int verbose) // print "tag not found" message { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int cur_m...
163270354086098606424218695920397836600
tag.c
256312624888395967188545141531528405807
CWE-416
CVE-2022-3134
Use After Free in GitHub repository vim/vim prior to 9.0.0389.
https://nvd.nist.gov/vuln/detail/CVE-2022-3134
459,400
vim
ccfde4d028e891a41e3548323c3d47b06fb0b83e
https://github.com/vim/vim
https://github.com/vim/vim/commit/ccfde4d028e891a41e3548323c3d47b06fb0b83e
patch 9.0.0389: crash when 'tagfunc' closes the window Problem: Crash when 'tagfunc' closes the window. Solution: Bail out when the window was closed.
0
do_tag( char_u *tag, // tag (pattern) to jump to int type, int count, int forceit, // :ta with ! int verbose) // print "tag not found" message { taggy_T *tagstack = curwin->w_tagstack; int tagstackidx = curwin->w_tagstackidx; int tagstacklen = curwin->w_tagstacklen; int cur_m...
294928399408778524511468577192657953231
None
CWE-416
CVE-2022-3134
Use After Free in GitHub repository vim/vim prior to 9.0.0389.
https://nvd.nist.gov/vuln/detail/CVE-2022-3134
212,436
linux
30e29a9a2bc6a4888335a6ede968b75cd329657a
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a
bpf: Fix integer overflow in prealloc_elems_and_freelist() In prealloc_elems_and_freelist(), the multiplication to calculate the size passed to bpf_map_area_alloc() could lead to an integer overflow. As a result, out-of-bounds write could occur in pcpu_freelist_populate() as reported by KASAN: [...] [ 16.968613] BU...
1
static int prealloc_elems_and_freelist(struct bpf_stack_map *smap) { u32 elem_size = sizeof(struct stack_map_bucket) + smap->map.value_size; int err; smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, smap->map.numa_node); if (!smap->elems) return -ENOMEM; err = pcpu_freelist_init(&smap-...
178134261771669129761013963339102987528
stackmap.c
212947868785159241816012605096544782433
CWE-787
CVE-2021-41864
prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.
https://nvd.nist.gov/vuln/detail/CVE-2021-41864
459,524
linux
30e29a9a2bc6a4888335a6ede968b75cd329657a
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a
bpf: Fix integer overflow in prealloc_elems_and_freelist() In prealloc_elems_and_freelist(), the multiplication to calculate the size passed to bpf_map_area_alloc() could lead to an integer overflow. As a result, out-of-bounds write could occur in pcpu_freelist_populate() as reported by KASAN: [...] [ 16.968613] BU...
0
static int prealloc_elems_and_freelist(struct bpf_stack_map *smap) { u64 elem_size = sizeof(struct stack_map_bucket) + (u64)smap->map.value_size; int err; smap->elems = bpf_map_area_alloc(elem_size * smap->map.max_entries, smap->map.numa_node); if (!smap->elems) return -ENOMEM; err = pcpu_freelist_ini...
247842121005492107026661682297731302199
stackmap.c
198452357082465344097055898312719400384
CWE-787
CVE-2021-41864
prealloc_elems_and_freelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.
https://nvd.nist.gov/vuln/detail/CVE-2021-41864
212,818
pjproject
15663e3f37091069b8c98a7fce680dc04bc8e865
https://github.com/pjsip/pjproject
https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
Merge pull request from GHSA-2qpg-f6wf-w984
1
static pj_status_t decode_errcode_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_errcode_attr *attr; pj_str_t value; PJ_UNUSED_ARG(msghdr); /* Create the attribute */ attr = PJ_POOL_ZALLOC_T(pool, pj_stun_errc...
82181264062889236862873379634797479013
None
CWE-191
CVE-2021-37706
PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In affected versions if the incoming STUN message contains an ERROR-CODE attribute, the header length is not checked before performing a subtraction op...
https://nvd.nist.gov/vuln/detail/CVE-2021-37706
462,278
pjproject
15663e3f37091069b8c98a7fce680dc04bc8e865
https://github.com/pjsip/pjproject
https://github.com/pjsip/pjproject/commit/15663e3f37091069b8c98a7fce680dc04bc8e865
Merge pull request from GHSA-2qpg-f6wf-w984
0
static pj_status_t decode_errcode_attr(pj_pool_t *pool, const pj_uint8_t *buf, const pj_stun_msg_hdr *msghdr, void **p_attr) { pj_stun_errcode_attr *attr; pj_str_t value; PJ_UNUSED_ARG(msghdr); /* Create the attribute */ attr = PJ_POOL_ZALLOC_T(pool, pj_stun_errc...
288158129212060678092169077807436012711
None
CWE-191
CVE-2021-37706
PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In affected versions if the incoming STUN message contains an ERROR-CODE attribute, the header length is not checked before performing a subtraction op...
https://nvd.nist.gov/vuln/detail/CVE-2021-37706
212,822
ghostpdl
e1134d375e2ca176068e19a2aa9b040baffe1c22
https://github.com/ArtifexSoftware/ghostpdl
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=e1134d375e2ca176068e19a2aa9b040baffe1c22
Bug 705156(1): Avoid double free of PCL error buffer
1
pcl_status_read(byte * data, uint max_data, pcl_state_t * pcs) { uint count = min(max_data, pcs->status.write_pos - pcs->status.read_pos); if (count) memcpy(data, pcs->status.buffer + pcs->status.read_pos, count); pcs->status.read_pos += count; if (pcs->status.read_pos == p...
16750323744555373538118400797572057026
None
CWE-787
CVE-2022-1350
A vulnerability classified as problematic was found in GhostPCL 9.55.0. This vulnerability affects the function chunk_free_object of the file gsmchunk.c. The manipulation with a malicious file leads to a memory corruption. The attack can be initiated remotely but requires user interaction. The exploit has been disclose...
https://nvd.nist.gov/vuln/detail/CVE-2022-1350
462,316
ghostpdl
e1134d375e2ca176068e19a2aa9b040baffe1c22
https://github.com/ArtifexSoftware/ghostpdl
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=e1134d375e2ca176068e19a2aa9b040baffe1c22
Bug 705156(1): Avoid double free of PCL error buffer
0
pcl_status_read(byte * data, uint max_data, pcl_state_t * pcs) { uint count = min(max_data, pcs->status.write_pos - pcs->status.read_pos); if (count) memcpy(data, pcs->status.buffer + pcs->status.read_pos, count); pcs->status.read_pos += count; if (pcs->status.read_pos == p...
64666065290032911431051417469693013930
None
CWE-787
CVE-2022-1350
A vulnerability classified as problematic was found in GhostPCL 9.55.0. This vulnerability affects the function chunk_free_object of the file gsmchunk.c. The manipulation with a malicious file leads to a memory corruption. The attack can be initiated remotely but requires user interaction. The exploit has been disclose...
https://nvd.nist.gov/vuln/detail/CVE-2022-1350
212,829
php-src
698a691724c0a949295991e5df091ce16f899e02
https://github.com/php/php-src
https://github.com/php/php-src/commit/698a691724c0a949295991e5df091ce16f899e02?w=1
Fix bug #72750: wddx_deserialize null dereference
1
*/ static void php_wddx_pop_element(void *user_data, const XML_Char *name) { st_entry *ent1, *ent2; wddx_stack *stack = (wddx_stack *)user_data; HashTable *target_hash; zend_class_entry **pce; zval *obj; zval *tmp; TSRMLS_FETCH(); /* OBJECTS_FIXME */ if (stack->top == 0) { return; } if (!...
256847714577175382991355330020307438516
wddx.c
145600633466725124063532436200225083004
CWE-476
CVE-2016-7130
The php_wddx_pop_element function in ext/wddx/wddx.c in PHP before 5.6.25 and 7.x before 7.0.10 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) or possibly have unspecified other impact via an invalid base64 binary value, as demonstrated by a wddx_deserialize call t...
https://nvd.nist.gov/vuln/detail/CVE-2016-7130
462,395
php-src
698a691724c0a949295991e5df091ce16f899e02
https://github.com/php/php-src
https://github.com/php/php-src/commit/698a691724c0a949295991e5df091ce16f899e02?w=1
Fix bug #72750: wddx_deserialize null dereference
0
*/ static void php_wddx_pop_element(void *user_data, const XML_Char *name) { st_entry *ent1, *ent2; wddx_stack *stack = (wddx_stack *)user_data; HashTable *target_hash; zend_class_entry **pce; zval *obj; zval *tmp; TSRMLS_FETCH(); /* OBJECTS_FIXME */ if (stack->top == 0) { return; } if (!...
281846366232469448026733489364664016551
wddx.c
180653157857930473406661829830823818897
CWE-476
CVE-2016-7130
The php_wddx_pop_element function in ext/wddx/wddx.c in PHP before 5.6.25 and 7.x before 7.0.10 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) or possibly have unspecified other impact via an invalid base64 binary value, as demonstrated by a wddx_deserialize call t...
https://nvd.nist.gov/vuln/detail/CVE-2016-7130
212,834
rsyslog
0381a0de64a5a048c3d48b79055bd9848d0c7fc2
https://github.com/rsyslog/rsyslog
https://github.com/rsyslog/rsyslog/commit/0381a0de64a5a048c3d48b79055bd9848d0c7fc2
imptcp: fix Segmentation Fault when octet count is to high
1
processDataRcvd(ptcpsess_t *const __restrict__ pThis, char **buff, const int buffLen, struct syslogTime *stTime, const time_t ttGenTime, multi_submit_t *pMultiSub, unsigned *const __restrict__ pnMsgs) { DEFiRet; char c = **buff; int octatesToCopy, octatesToDiscard; if(pThis->inputState == eAtStrtFram) { if...
175845780697344678841951403700990960175
imptcp.c
66608949268386945207139768258979939814
CWE-190
CVE-2018-16881
A denial of service vulnerability was found in rsyslog in the imptcp module. An attacker could send a specially crafted message to the imptcp socket, which would cause rsyslog to crash. Versions before 8.27.0 are vulnerable.
https://nvd.nist.gov/vuln/detail/CVE-2018-16881
462,409
rsyslog
0381a0de64a5a048c3d48b79055bd9848d0c7fc2
https://github.com/rsyslog/rsyslog
https://github.com/rsyslog/rsyslog/commit/0381a0de64a5a048c3d48b79055bd9848d0c7fc2
imptcp: fix Segmentation Fault when octet count is to high
0
processDataRcvd(ptcpsess_t *const __restrict__ pThis, char **buff, const int buffLen, struct syslogTime *stTime, const time_t ttGenTime, multi_submit_t *pMultiSub, unsigned *const __restrict__ pnMsgs) { DEFiRet; char c = **buff; int octatesToCopy, octatesToDiscard; if(pThis->inputState == eAtStrtFram) { if...
319180109338452321529530788318348241217
imptcp.c
222511081390723120608536252618686301143
CWE-190
CVE-2018-16881
A denial of service vulnerability was found in rsyslog in the imptcp module. An attacker could send a specially crafted message to the imptcp socket, which would cause rsyslog to crash. Versions before 8.27.0 are vulnerable.
https://nvd.nist.gov/vuln/detail/CVE-2018-16881
212,857
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
https://github.com/vim/vim
https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
1
qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid) { linenr_T lnum; qfline_T *qfp; int old_KeyTyped = KeyTyped; list_T *qftf_list = NULL; listitem_T *qftf_li = NULL; if (old_last == NULL) { if (buf != curbuf) { internal_error("qf_fill_buffer()"); retur...
19896236176049682773029755500370526703
quickfix.c
67097038911895244025002740290880368768
CWE-416
CVE-2022-3037
Use After Free in GitHub repository vim/vim prior to 9.0.0322.
https://nvd.nist.gov/vuln/detail/CVE-2022-3037
462,511
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
https://github.com/vim/vim
https://github.com/vim/vim/commit/4f1b083be43f351bc107541e7b0c9655a5d2c0bb
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
0
qf_fill_buffer(qf_list_T *qfl, buf_T *buf, qfline_T *old_last, int qf_winid) { linenr_T lnum; qfline_T *qfp; int old_KeyTyped = KeyTyped; list_T *qftf_list = NULL; listitem_T *qftf_li = NULL; if (old_last == NULL) { if (buf != curbuf) { internal_error("qf_fill_buffer()"); retur...
333242954823260199301291407740047378845
quickfix.c
221790887990910120742119728344121157301
CWE-416
CVE-2022-3037
Use After Free in GitHub repository vim/vim prior to 9.0.0322.
https://nvd.nist.gov/vuln/detail/CVE-2022-3037
212,871
newsbeuter
96e9506ae9e252c548665152d1b8968297128307
https://github.com/akrennmair/newsbeuter
https://github.com/akrennmair/newsbeuter/commit/96e9506ae9e252c548665152d1b8968297128307
Sanitize inputs to bookmark-cmd (#591) Newsbeuter didn't properly shell-escape the arguments passed to bookmarking command, which allows a remote attacker to perform remote code execution by crafting an RSS item whose title and/or URL contain something interpretable by the shell (most notably subshell invocations.) T...
1
std::string controller::bookmark( const std::string& url, const std::string& title, const std::string& description, const std::string& feed_title) { std::string bookmark_cmd = cfg.get_configvalue("bookmark-cmd"); bool is_interactive = cfg.get_configvalue_as_bool("bookmark-interactive"); if (bookmark_cmd.leng...
264539000779301749255245601679907359223
controller.cpp
304698252897756630266738619508328009845
CWE-787
CVE-2017-12904
Improper Neutralization of Special Elements used in an OS Command in bookmarking function of Newsbeuter versions 0.7 through 2.9 allows remote attackers to perform user-assisted code execution by crafting an RSS item that includes shell code in its title and/or URL.
https://nvd.nist.gov/vuln/detail/CVE-2017-12904
462,566
newsbeuter
96e9506ae9e252c548665152d1b8968297128307
https://github.com/akrennmair/newsbeuter
https://github.com/akrennmair/newsbeuter/commit/96e9506ae9e252c548665152d1b8968297128307
Sanitize inputs to bookmark-cmd (#591) Newsbeuter didn't properly shell-escape the arguments passed to bookmarking command, which allows a remote attacker to perform remote code execution by crafting an RSS item whose title and/or URL contain something interpretable by the shell (most notably subshell invocations.) T...
0
std::string controller::bookmark( const std::string& url, const std::string& title, const std::string& description, const std::string& feed_title) { std::string bookmark_cmd = cfg.get_configvalue("bookmark-cmd"); bool is_interactive = cfg.get_configvalue_as_bool("bookmark-interactive"); if (bookmark_cmd.leng...
79271714330892808671163251460832419876
controller.cpp
323926139485782731853395949715316223577
CWE-787
CVE-2017-12904
Improper Neutralization of Special Elements used in an OS Command in bookmarking function of Newsbeuter versions 0.7 through 2.9 allows remote attackers to perform user-assisted code execution by crafting an RSS item that includes shell code in its title and/or URL.
https://nvd.nist.gov/vuln/detail/CVE-2017-12904
212,927
qemu
8c92060d3c0248bd4d515719a35922cd2391b9b4
https://github.com/bonzini/qemu
https://git.qemu.org/?p=qemu.git;a=commit;h=8c92060d3c0248bd4d515719a35922cd2391b9b4
sungem: switch to use qemu_receive_packet() for loopback This patch switches to use qemu_receive_packet() which can detect reentrancy and return early. This is intended to address CVE-2021-3416. Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande...
1
static void sungem_send_packet(SunGEMState *s, const uint8_t *buf, int size) { NetClientState *nc = qemu_get_queue(s->nic); if (s->macregs[MAC_XIFCFG >> 2] & MAC_XIFCFG_LBCK) { nc->info->receive(nc, buf, size); } else { qemu_send_packet(nc, buf, size); } }
112948077964204681005351426202657971698
sungem.c
256783431250079747313896805247705613463
CWE-835
CVE-2021-3416
A potential stack overflow via infinite loop issue was found in various NIC emulators of QEMU in versions up to and including 5.2.0. The issue occurs in loopback mode of a NIC wherein reentrant DMA checks get bypassed. A guest user/process may use this flaw to consume CPU cycles or crash the QEMU process on the host re...
https://nvd.nist.gov/vuln/detail/CVE-2021-3416
463,051
qemu
8c92060d3c0248bd4d515719a35922cd2391b9b4
https://github.com/bonzini/qemu
https://git.qemu.org/?p=qemu.git;a=commit;h=8c92060d3c0248bd4d515719a35922cd2391b9b4
sungem: switch to use qemu_receive_packet() for loopback This patch switches to use qemu_receive_packet() which can detect reentrancy and return early. This is intended to address CVE-2021-3416. Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande...
0
static void sungem_send_packet(SunGEMState *s, const uint8_t *buf, int size) { NetClientState *nc = qemu_get_queue(s->nic); if (s->macregs[MAC_XIFCFG >> 2] & MAC_XIFCFG_LBCK) { qemu_receive_packet(nc, buf, size); } else { qemu_send_packet(nc, buf, size); }...
84544313584680412999632571366119869555
sungem.c
289260737548619033998236290754655826819
CWE-835
CVE-2021-3416
A potential stack overflow via infinite loop issue was found in various NIC emulators of QEMU in versions up to and including 5.2.0. The issue occurs in loopback mode of a NIC wherein reentrant DMA checks get bypassed. A guest user/process may use this flaw to consume CPU cycles or crash the QEMU process on the host re...
https://nvd.nist.gov/vuln/detail/CVE-2021-3416
212,934
cyrus-imapd
621f9e41465b521399f691c241181300fab55995
https://github.com/cyrusimap/cyrus-imapd
https://github.com/cyrusimap/cyrus-imapd/commit/621f9e41465b521399f691c241181300fab55995
annotate: don't allow everyone to write shared server entries
1
static int write_entry(struct mailbox *mailbox, unsigned int uid, const char *entry, const char *userid, const struct buf *value, int ignorequota, int silent, ...
63211042070136121773849314849857565491
annotate.c
152032054661376167383830098805318046193
CWE-732
CVE-2021-32056
Cyrus IMAP before 3.2.7, and 3.3.x and 3.4.x before 3.4.1, allows remote authenticated users to bypass intended access restrictions on server annotations and consequently cause replication to stall.
https://nvd.nist.gov/vuln/detail/CVE-2021-32056
463,134
cyrus-imapd
621f9e41465b521399f691c241181300fab55995
https://github.com/cyrusimap/cyrus-imapd
https://github.com/cyrusimap/cyrus-imapd/commit/621f9e41465b521399f691c241181300fab55995
annotate: don't allow everyone to write shared server entries
0
static int write_entry(struct mailbox *mailbox, unsigned int uid, const char *entry, const char *userid, const struct buf *value, int ignorequota, int silent, ...
337608514204534148463343228875212022606
annotate.c
55084981439029014796527313329432397099
CWE-732
CVE-2021-32056
Cyrus IMAP before 3.2.7, and 3.3.x and 3.4.x before 3.4.1, allows remote authenticated users to bypass intended access restrictions on server annotations and consequently cause replication to stall.
https://nvd.nist.gov/vuln/detail/CVE-2021-32056
212,955
linux
82e31755e55fbcea6a9dfaae5fe4860ade17cbc0
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/82e31755e55fbcea6a9dfaae5fe4860ade17cbc0
ax25: Fix UAF bugs in ax25 timers There are race conditions that may lead to UAF bugs in ax25_heartbeat_expiry(), ax25_t1timer_expiry(), ax25_t2timer_expiry(), ax25_t3timer_expiry() and ax25_idletimer_expiry(), when we call ax25_release() to deallocate ax25_dev. One of the UAF bugs caused by ax25_release() is shown b...
1
static int ax25_release(struct socket *sock) { struct sock *sk = sock->sk; ax25_cb *ax25; ax25_dev *ax25_dev; if (sk == NULL) return 0; sock_hold(sk); lock_sock(sk); sock_orphan(sk); ax25 = sk_to_ax25(sk); ax25_dev = ax25->ax25_dev; if (sk->sk_type == SOCK_SEQPACKET) { switch (ax25->state) { case AX2...
322863638930156349228190868934879958122
af_ax25.c
161595370162210735322175103800372569534
CWE-476
CVE-2022-1205
A NULL pointer dereference flaw was found in the Linux kernel’s Amateur Radio AX.25 protocol functionality in the way a user connects with the protocol. This flaw allows a local user to crash the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-1205
463,476
linux
82e31755e55fbcea6a9dfaae5fe4860ade17cbc0
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/82e31755e55fbcea6a9dfaae5fe4860ade17cbc0
ax25: Fix UAF bugs in ax25 timers There are race conditions that may lead to UAF bugs in ax25_heartbeat_expiry(), ax25_t1timer_expiry(), ax25_t2timer_expiry(), ax25_t3timer_expiry() and ax25_idletimer_expiry(), when we call ax25_release() to deallocate ax25_dev. One of the UAF bugs caused by ax25_release() is shown b...
0
static int ax25_release(struct socket *sock) { struct sock *sk = sock->sk; ax25_cb *ax25; ax25_dev *ax25_dev; if (sk == NULL) return 0; sock_hold(sk); lock_sock(sk); sock_orphan(sk); ax25 = sk_to_ax25(sk); ax25_dev = ax25->ax25_dev; if (sk->sk_type == SOCK_SEQPACKET) { switch (ax25->state) { case AX2...
148812270576683691154381215671514833423
af_ax25.c
305687071181329049431144170214324654974
CWE-476
CVE-2022-1205
A NULL pointer dereference flaw was found in the Linux kernel’s Amateur Radio AX.25 protocol functionality in the way a user connects with the protocol. This flaw allows a local user to crash the system.
https://nvd.nist.gov/vuln/detail/CVE-2022-1205
213,037
php-src
2bcbc95f033c31b00595ed39f79c3a99b4ed0501
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=2bcbc95f033c31b00595ed39f79c3a99b4ed0501
Fix bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`)
1
mbfl_filt_conv_big5_wchar(int c, mbfl_convert_filter *filter) { int k; int c1, w, c2; switch (filter->status) { case 0: if (filter->from->no_encoding == mbfl_no_encoding_cp950) { c1 = 0x80; } else { c1 = 0xa0; } if (c >= 0 && c <= 0x80) { /* latin */ CK((*filter->output_function)(c, filter->data)...
8283586201644887300915898295948875795
mbfilter_big5.c
67113767760618335945735132719612525083
CWE-125
CVE-2020-7060
When using certain mbstring functions to convert multibyte encodings, in PHP versions 7.2.x below 7.2.27, 7.3.x below 7.3.14 and 7.4.x below 7.4.2 it is possible to supply data that will cause function mbfl_filt_conv_big5_wchar to read past the allocated buffer. This may lead to information disclosure or crash.
https://nvd.nist.gov/vuln/detail/CVE-2020-7060
464,942
php-src
2bcbc95f033c31b00595ed39f79c3a99b4ed0501
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=2bcbc95f033c31b00595ed39f79c3a99b4ed0501
Fix bug #79037 (global buffer-overflow in `mbfl_filt_conv_big5_wchar`)
0
mbfl_filt_conv_big5_wchar(int c, mbfl_convert_filter *filter) { int k; int c1, w, c2; switch (filter->status) { case 0: if (filter->from->no_encoding == mbfl_no_encoding_cp950) { c1 = 0x80; } else { c1 = 0xa0; } if (c >= 0 && c <= 0x80) { /* latin */ CK((*filter->output_function)(c, filter->data)...
324298547167958214830404594575086371894
mbfilter_big5.c
135358838595920427772392870415942108469
CWE-125
CVE-2020-7060
When using certain mbstring functions to convert multibyte encodings, in PHP versions 7.2.x below 7.2.27, 7.3.x below 7.3.14 and 7.4.x below 7.4.2 it is possible to supply data that will cause function mbfl_filt_conv_big5_wchar to read past the allocated buffer. This may lead to information disclosure or crash.
https://nvd.nist.gov/vuln/detail/CVE-2020-7060
213,075
linux
d270453a0d9ec10bb8a802a142fb1b3601a83098
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d270453a0d9ec10bb8a802a142fb1b3601a83098
nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs There are destructive operations such as nfcmrvl_fw_dnld_abort and gpio_free in nfcmrvl_nci_unregister_dev. The resources such as firmware, gpio and so on could be destructed while the upper layer functions such as nfcmrvl_f...
1
void nfcmrvl_nci_unregister_dev(struct nfcmrvl_private *priv) { struct nci_dev *ndev = priv->ndev; if (priv->ndev->nfc_dev->fw_download_in_progress) nfcmrvl_fw_dnld_abort(priv); nfcmrvl_fw_dnld_deinit(priv); if (gpio_is_valid(priv->config.reset_n_io)) gpio_free(priv->config.reset_n_io); nci_unregister_devi...
80022393435189393698798858771068403226
main.c
269589724165464795755961413543377431257
CWE-416
CVE-2022-1734
A flaw in Linux Kernel found in nfcmrvl_nci_unregister_dev() in drivers/nfc/nfcmrvl/main.c can lead to use after free both read or write when non synchronized between cleanup routine and firmware download routine.
https://nvd.nist.gov/vuln/detail/CVE-2022-1734
465,854
linux
d270453a0d9ec10bb8a802a142fb1b3601a83098
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d270453a0d9ec10bb8a802a142fb1b3601a83098
nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs There are destructive operations such as nfcmrvl_fw_dnld_abort and gpio_free in nfcmrvl_nci_unregister_dev. The resources such as firmware, gpio and so on could be destructed while the upper layer functions such as nfcmrvl_f...
0
void nfcmrvl_nci_unregister_dev(struct nfcmrvl_private *priv) { struct nci_dev *ndev = priv->ndev; nci_unregister_device(ndev); if (priv->ndev->nfc_dev->fw_download_in_progress) nfcmrvl_fw_dnld_abort(priv); nfcmrvl_fw_dnld_deinit(priv); if (gpio_is_valid(priv->config.reset_n_io)) gpio_free(priv->config.rese...
316889922482617255369760811895973398042
main.c
72783035661229533043408251312926412443
CWE-416
CVE-2022-1734
A flaw in Linux Kernel found in nfcmrvl_nci_unregister_dev() in drivers/nfc/nfcmrvl/main.c can lead to use after free both read or write when non synchronized between cleanup routine and firmware download routine.
https://nvd.nist.gov/vuln/detail/CVE-2022-1734
213,370
glib
d553d92d6e9f53cbe5a34166fcb919ba652c6a8e
https://gitlab.gnome.org/GNOME/glib
https://gitlab.gnome.org/GNOME/glib/commit/d553d92d6e9f53cbe5a34166fcb919ba652c6a8e
gsocketclient: Fix criticals This ensures the parent GTask is kept alive as long as an enumeration is running and trying to connect. Closes #1646 Closes #1649
1
g_socket_client_connected_callback (GObject *source, GAsyncResult *result, gpointer user_data) { ConnectionAttempt *attempt = user_data; GSocketClientAsyncConnectData *data = attempt->data; GSList *l; GError *error = NULL; GProxy *proxy; const gchar *protocol; /* data is NULL on...
303931634452049999477477859565079753152
gsocketclient.c
112189477762116433441013263383719019263
CWE-754
CVE-2019-9633
gio/gsocketclient.c in GNOME GLib 2.59.2 does not ensure that a parent GTask remains alive during the execution of a connection-attempting enumeration, which allows remote attackers to cause a denial of service (g_socket_client_connected_callback mishandling and application crash) via a crafted web site, as demonstrate...
https://nvd.nist.gov/vuln/detail/CVE-2019-9633
468,349
glib
d553d92d6e9f53cbe5a34166fcb919ba652c6a8e
https://gitlab.gnome.org/GNOME/glib
https://gitlab.gnome.org/GNOME/glib/commit/d553d92d6e9f53cbe5a34166fcb919ba652c6a8e
gsocketclient: Fix criticals This ensures the parent GTask is kept alive as long as an enumeration is running and trying to connect. Closes #1646 Closes #1649
0
g_socket_client_connected_callback (GObject *source, GAsyncResult *result, gpointer user_data) { ConnectionAttempt *attempt = user_data; GSocketClientAsyncConnectData *data = attempt->data; GSList *l; GError *error = NULL; GProxy *proxy; const gchar *protocol; if (g_cancellable_...
284257451684326472377624066772232784907
gsocketclient.c
157905572963596557383512485968044873989
CWE-754
CVE-2019-9633
gio/gsocketclient.c in GNOME GLib 2.59.2 does not ensure that a parent GTask remains alive during the execution of a connection-attempting enumeration, which allows remote attackers to cause a denial of service (g_socket_client_connected_callback mishandling and application crash) via a crafted web site, as demonstrate...
https://nvd.nist.gov/vuln/detail/CVE-2019-9633
213,515
vim
5c68617d395f9d7b824f68475b24ce3e38d653a3
https://github.com/vim/vim
https://github.com/vim/vim/commit/5c68617d395f9d7b824f68475b24ce3e38d653a3
patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line Problem: "z=" in Visual mode may go beyond the end of the line. Solution: Adjust "badlen".
1
spell_suggest(int count) { char_u *line; pos_T prev_cursor = curwin->w_cursor; char_u wcopy[MAXWLEN + 2]; char_u *p; int i; int c; suginfo_T sug; suggest_T *stp; int mouse_used; int need_cap; int limit; int selected = count; int badlen = 0; int msg_scroll_...
283321822802394416488141327214287342104
spellsuggest.c
284064000006918275605147443263550733278
CWE-787
CVE-2022-0943
Heap-based Buffer Overflow occurs in vim in GitHub repository vim/vim prior to 8.2.4563.
https://nvd.nist.gov/vuln/detail/CVE-2022-0943
471,902
vim
5c68617d395f9d7b824f68475b24ce3e38d653a3
https://github.com/vim/vim
https://github.com/vim/vim/commit/5c68617d395f9d7b824f68475b24ce3e38d653a3
patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line Problem: "z=" in Visual mode may go beyond the end of the line. Solution: Adjust "badlen".
0
spell_suggest(int count) { char_u *line; pos_T prev_cursor = curwin->w_cursor; char_u wcopy[MAXWLEN + 2]; char_u *p; int i; int c; suginfo_T sug; suggest_T *stp; int mouse_used; int need_cap; int limit; int selected = count; int badlen = 0; int msg_scroll_...
210769611717793726730537343470434116318
spellsuggest.c
285304759407649884654167568930599876914
CWE-787
CVE-2022-0943
Heap-based Buffer Overflow occurs in vim in GitHub repository vim/vim prior to 8.2.4563.
https://nvd.nist.gov/vuln/detail/CVE-2022-0943
213,528
linux
3b0462726e7ef281c35a7a4ae33e93ee2bc9975b
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/3b0462726e7ef281c35a7a4ae33e93ee2bc9975b
cgroup: verify that source is a string The following sequence can be used to trigger a UAF: int fscontext_fd = fsopen("cgroup"); int fd_null = open("/dev/null, O_RDONLY); int fsconfig(fscontext_fd, FSCONFIG_SET_FD, "source", fd_null); close_range(3, ~0U, 0); The cgroup v1 specific fs parser expects a...
1
int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) { struct cgroup_fs_context *ctx = cgroup_fc2context(fc); struct cgroup_subsys *ss; struct fs_parse_result result; int opt, i; opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); if (opt == -ENOPARAM) { if (strcmp(param->key, "sou...
2447930720327269598694221319559062155
cgroup-v1.c
304027161926251240992448703175506915313
CWE-416
CVE-2021-4154
A use-after-free flaw was found in cgroup1_parse_param in kernel/cgroup/cgroup-v1.c in the Linux kernel's cgroup v1 parser. A local attacker with a user privilege could cause a privilege escalation by exploiting the fsconfig syscall parameter leading to a container breakout and a denial of service on the system.
https://nvd.nist.gov/vuln/detail/CVE-2021-4154
472,123
linux
3b0462726e7ef281c35a7a4ae33e93ee2bc9975b
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/3b0462726e7ef281c35a7a4ae33e93ee2bc9975b
cgroup: verify that source is a string The following sequence can be used to trigger a UAF: int fscontext_fd = fsopen("cgroup"); int fd_null = open("/dev/null, O_RDONLY); int fsconfig(fscontext_fd, FSCONFIG_SET_FD, "source", fd_null); close_range(3, ~0U, 0); The cgroup v1 specific fs parser expects a...
0
int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) { struct cgroup_fs_context *ctx = cgroup_fc2context(fc); struct cgroup_subsys *ss; struct fs_parse_result result; int opt, i; opt = fs_parse(fc, cgroup1_fs_parameters, param, &result); if (opt == -ENOPARAM) { if (strcmp(param->key, "sou...
334870785845210346899642963550735857549
cgroup-v1.c
43168048456517404384153301721017353964
CWE-416
CVE-2021-4154
A use-after-free flaw was found in cgroup1_parse_param in kernel/cgroup/cgroup-v1.c in the Linux kernel's cgroup v1 parser. A local attacker with a user privilege could cause a privilege escalation by exploiting the fsconfig syscall parameter leading to a container breakout and a denial of service on the system.
https://nvd.nist.gov/vuln/detail/CVE-2021-4154
213,998
libtpms
ea62fd9679f8c6fc5e79471b33cfbd8227bfed72
https://github.com/stefanberger/libtpms
https://github.com/stefanberger/libtpms/commit/ea62fd9679f8c6fc5e79471b33cfbd8227bfed72
tpm2: Initialize a whole OBJECT before using it Initialize a whole OBJECT before using it. This is necessary since an OBJECT may also be used as a HASH_OBJECT via the ANY_OBJECT union and that HASH_OBJECT can leave bad size inidicators in TPM2B buffer in the OBJECT. To get rid of this problem we reset the whole OBJECT...
1
FindEmptyObjectSlot( TPMI_DH_OBJECT *handle // OUT: (optional) ) { UINT32 i; OBJECT *object; for(i = 0; i < MAX_LOADED_OBJECTS; i++) { object = &s_objects[i]; if(object->attributes.occupied == CLEAR) { if(handle) *handle = i + TRANSIENT_F...
267307307566893737550652048570735094605
Object.c
21721239087984404174741324804041111077
CWE-119
CVE-2021-3746
A flaw was found in the libtpms code that may cause access beyond the boundary of internal buffers. The vulnerability is triggered by specially-crafted TPM2 command packets that then trigger the issue when the state of the TPM2's volatile state is written. The highest threat from this vulnerability is to system availab...
https://nvd.nist.gov/vuln/detail/CVE-2021-3746
474,434
libtpms
ea62fd9679f8c6fc5e79471b33cfbd8227bfed72
https://github.com/stefanberger/libtpms
https://github.com/stefanberger/libtpms/commit/ea62fd9679f8c6fc5e79471b33cfbd8227bfed72
tpm2: Initialize a whole OBJECT before using it Initialize a whole OBJECT before using it. This is necessary since an OBJECT may also be used as a HASH_OBJECT via the ANY_OBJECT union and that HASH_OBJECT can leave bad size inidicators in TPM2B buffer in the OBJECT. To get rid of this problem we reset the whole OBJECT...
0
FindEmptyObjectSlot( TPMI_DH_OBJECT *handle // OUT: (optional) ) { UINT32 i; OBJECT *object; for(i = 0; i < MAX_LOADED_OBJECTS; i++) { object = &s_objects[i]; if(object->attributes.occupied == CLEAR) { if(handle) *handle = i + TRANSIENT_F...
327698206124968939324347029407328822774
Object.c
122617348389867631937316179213551374827
CWE-119
CVE-2021-3746
A flaw was found in the libtpms code that may cause access beyond the boundary of internal buffers. The vulnerability is triggered by specially-crafted TPM2 command packets that then trigger the issue when the state of the TPM2's volatile state is written. The highest threat from this vulnerability is to system availab...
https://nvd.nist.gov/vuln/detail/CVE-2021-3746
214,003
libvncserver
7b1ef0ffc4815cab9a96c7278394152bdc89dc4d
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/7b1ef0ffc4815cab9a96c7278394152bdc89dc4d
LibVNCClient: really fix #250
1
HandleCoRREBPP (rfbClient* client, int rx, int ry, int rw, int rh) { rfbRREHeader hdr; int i; CARDBPP pix; uint8_t *ptr; int x, y, w, h; if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbRREHeader)) return FALSE; hdr.nSubrects = rfbClientSwap32IfLE(hdr.nSubrects); if (!ReadFromRFBSe...
237803274447948071871623859823888407579
corre.c
261775603875912977761086457849276889433
CWE-787
CVE-2018-20020
LibVNC before commit 7b1ef0ffc4815cab9a96c7278394152bdc89dc4d contains heap out-of-bound write vulnerability inside structure in VNC client code that can result remote code execution
https://nvd.nist.gov/vuln/detail/CVE-2018-20020
474,462
libvncserver
7b1ef0ffc4815cab9a96c7278394152bdc89dc4d
https://github.com/LibVNC/libvncserver
https://github.com/LibVNC/libvncserver/commit/7b1ef0ffc4815cab9a96c7278394152bdc89dc4d
LibVNCClient: really fix #250
0
HandleCoRREBPP (rfbClient* client, int rx, int ry, int rw, int rh) { rfbRREHeader hdr; int i; CARDBPP pix; uint8_t *ptr; int x, y, w, h; if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbRREHeader)) return FALSE; hdr.nSubrects = rfbClientSwap32IfLE(hdr.nSubrects); if (!ReadFromRFBSe...
270120955611228778905999334086826608945
corre.c
95538594092483864981062945399271614171
CWE-787
CVE-2018-20020
LibVNC before commit 7b1ef0ffc4815cab9a96c7278394152bdc89dc4d contains heap out-of-bound write vulnerability inside structure in VNC client code that can result remote code execution
https://nvd.nist.gov/vuln/detail/CVE-2018-20020
214,124
chafa
e6ce3746cdcf0836b9dae659a5aed15d73a080d8
https://github.com/hpjansson/chafa
https://github.com/hpjansson/chafa/commit/e6ce3746cdcf0836b9dae659a5aed15d73a080d8
libnsgif: fix oob in lzw_decode
1
lzw_result lzw_decode(struct lzw_ctx *ctx, const uint8_t ** const stack_pos_out) { lzw_result res; uint32_t code_new; uint32_t code_out; uint8_t last_value; uint8_t *stack_pos = ctx->stack_base; uint32_t clear_code = ctx->clear_code; uint32_t current_entry = ctx->current_entry; struct lzw_dictionary_entry * c...
197312030105469318680562726195282198881
lzw.c
206609516216923718063023254663769273017
CWE-125
CVE-2022-2061
Heap-based Buffer Overflow in GitHub repository hpjansson/chafa prior to 1.12.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2061
475,987
chafa
e6ce3746cdcf0836b9dae659a5aed15d73a080d8
https://github.com/hpjansson/chafa
https://github.com/hpjansson/chafa/commit/e6ce3746cdcf0836b9dae659a5aed15d73a080d8
libnsgif: fix oob in lzw_decode
0
lzw_result lzw_decode(struct lzw_ctx *ctx, const uint8_t ** const stack_pos_out) { lzw_result res; uint32_t code_new; uint32_t code_out; uint8_t last_value; uint8_t *stack_pos = ctx->stack_base; uint32_t clear_code = ctx->clear_code; uint32_t current_entry = ctx->current_entry; struct lzw_dictionary_entry * c...
232258018845507324994493987384082077230
lzw.c
168965779407481929590316655829608211083
CWE-125
CVE-2022-2061
Heap-based Buffer Overflow in GitHub repository hpjansson/chafa prior to 1.12.0.
https://nvd.nist.gov/vuln/detail/CVE-2022-2061
214,160
linux
75e5b4849b81e19e9efe1654b30d7f3151c33c2c
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c
USB: gadget: validate interface OS descriptor requests Stall the control endpoint in case provided index exceeds array size of MAX_CONFIG_INTERFACES or when the retrieved function pointer is null. Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregk...
1
composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct usb_request *req = cdev->req; int value = -EOPNOTSUPP; int status = 0; u16 w_index = le16_to_cpu(ctrl->wIndex); u8 intf = w_index & 0xFF; u16 w_value =...
303126640832251617876878392273862526744
composite.c
18887355761308803276229129312051135602
CWE-476
CVE-2022-25258
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
https://nvd.nist.gov/vuln/detail/CVE-2022-25258
476,103
linux
75e5b4849b81e19e9efe1654b30d7f3151c33c2c
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/75e5b4849b81e19e9efe1654b30d7f3151c33c2c
USB: gadget: validate interface OS descriptor requests Stall the control endpoint in case provided index exceeds array size of MAX_CONFIG_INTERFACES or when the retrieved function pointer is null. Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregk...
0
composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) { struct usb_composite_dev *cdev = get_gadget_data(gadget); struct usb_request *req = cdev->req; int value = -EOPNOTSUPP; int status = 0; u16 w_index = le16_to_cpu(ctrl->wIndex); u8 intf = w_index & 0xFF; u16 w_value =...
150169819708721543824384188358095206836
composite.c
106311505474453071070186160185104780414
CWE-476
CVE-2022-25258
An issue was discovered in drivers/usb/gadget/composite.c in the Linux kernel before 5.16.10. The USB Gadget subsystem lacks certain validation of interface OS descriptor requests (ones with a large array index and ones associated with NULL function pointer retrieval). Memory corruption might occur.
https://nvd.nist.gov/vuln/detail/CVE-2022-25258
214,276
linux
fa40d9734a57bcbfa79a280189799f76c88f7bb0
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fa40d9734a57bcbfa79a280189799f76c88f7bb0
tipc: fix size validations for the MSG_CRYPTO type The function tipc_crypto_key_rcv is used to parse MSG_CRYPTO messages to receive keys from other nodes in the cluster in order to decrypt any further messages from them. This patch verifies that any supplied sizes in the message body are valid for the received message...
1
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr) { struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_aead_key *skey = NULL; u16 key_gen = msg_key_gen(hdr); u16 size = msg_data_sz(hdr); u8 *data = msg_data(hdr); spin_lock(&rx->lock); if (unlikely(rx->skey || (key_gen...
150450145750082729683403565650901445106
crypto.c
58733917967082493268842355411939930161
CWE-20
CVE-2021-43267
An issue was discovered in net/tipc/crypto.c in the Linux kernel before 5.14.16. The Transparent Inter-Process Communication (TIPC) functionality allows remote attackers to exploit insufficient validation of user-supplied sizes for the MSG_CRYPTO message type.
https://nvd.nist.gov/vuln/detail/CVE-2021-43267
477,273
linux
fa40d9734a57bcbfa79a280189799f76c88f7bb0
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fa40d9734a57bcbfa79a280189799f76c88f7bb0
tipc: fix size validations for the MSG_CRYPTO type The function tipc_crypto_key_rcv is used to parse MSG_CRYPTO messages to receive keys from other nodes in the cluster in order to decrypt any further messages from them. This patch verifies that any supplied sizes in the message body are valid for the received message...
0
static bool tipc_crypto_key_rcv(struct tipc_crypto *rx, struct tipc_msg *hdr) { struct tipc_crypto *tx = tipc_net(rx->net)->crypto_tx; struct tipc_aead_key *skey = NULL; u16 key_gen = msg_key_gen(hdr); u16 size = msg_data_sz(hdr); u8 *data = msg_data(hdr); unsigned int keylen; /* Verify whether the size can exi...
21444025468428283247999063273803236471
crypto.c
97644738698722030133364122587095840919
CWE-20
CVE-2021-43267
An issue was discovered in net/tipc/crypto.c in the Linux kernel before 5.14.16. The Transparent Inter-Process Communication (TIPC) functionality allows remote attackers to exploit insufficient validation of user-supplied sizes for the MSG_CRYPTO message type.
https://nvd.nist.gov/vuln/detail/CVE-2021-43267
214,282
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
1
R_API RBinJavaAttrInfo *r_bin_java_inner_classes_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { RBinJavaClassesAttribute *icattr; RBinJavaAttrInfo *attr = NULL; RBinJavaCPTypeObj *obj; ut32 i = 0; ut64 offset = 0, curpos; attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); offs...
64487889579921550880626488390413278294
None
CWE-787
CVE-2022-0518
Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.6.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0518
477,380
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
https://github.com/radare/radare2
https://github.com/radareorg/radare2/commit/9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
0
R_API RBinJavaAttrInfo *r_bin_java_inner_classes_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { RBinJavaClassesAttribute *icattr; RBinJavaAttrInfo *attr = NULL; RBinJavaCPTypeObj *obj; ut32 i = 0; ut64 offset = 0, curpos; attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); offs...
64877756474443733674480622739162380352
None
CWE-787
CVE-2022-0518
Heap-based Buffer Overflow in GitHub repository radareorg/radare2 prior to 5.6.2.
https://nvd.nist.gov/vuln/detail/CVE-2022-0518
214,335
ceph
be7679007c3dfab3e19c22c38c36ccac91828e3b
https://github.com/ceph/ceph
https://github.com/ceph/ceph/commit/be7679007c3dfab3e19c22c38c36ccac91828e3b
rgw: reject control characters in response-header actions S3 GetObject permits overriding response header values, but those inputs need to be validated to insure only characters that are valid in an HTTP header value are present. Credit: Initial vulnerability discovery by William Bowling (@wcbowling) Credit: Further ...
1
int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs, off_t bl_len) { const char *content_type = NULL; string content_type_str; map<string, string> response_attrs; map<string, string>::iterator riter; bufferlist metadata_bl; string expires = get_s3_expiration_header(s, last...
252320959275346519647300715417843120718
rgw_rest_s3.cc
121704064633287557349192949015382644860
CWE-79
CVE-2020-1760
A flaw was found in the Ceph Object Gateway, where it supports request sent by an anonymous user in Amazon S3. This flaw could lead to potential XSS attacks due to the lack of proper neutralization of untrusted input.
https://nvd.nist.gov/vuln/detail/CVE-2020-1760
477,800
ceph
be7679007c3dfab3e19c22c38c36ccac91828e3b
https://github.com/ceph/ceph
https://github.com/ceph/ceph/commit/be7679007c3dfab3e19c22c38c36ccac91828e3b
rgw: reject control characters in response-header actions S3 GetObject permits overriding response header values, but those inputs need to be validated to insure only characters that are valid in an HTTP header value are present. Credit: Initial vulnerability discovery by William Bowling (@wcbowling) Credit: Further ...
0
int RGWGetObj_ObjStore_S3::send_response_data(bufferlist& bl, off_t bl_ofs, off_t bl_len) { const char *content_type = NULL; string content_type_str; map<string, string> response_attrs; map<string, string>::iterator riter; bufferlist metadata_bl; string expires = get_s3_expiration_header(s, last...
262581748288231212684344001949485433363
rgw_rest_s3.cc
18601801279536370570230302891439737230
CWE-79
CVE-2020-1760
A flaw was found in the Ceph Object Gateway, where it supports request sent by an anonymous user in Amazon S3. This flaw could lead to potential XSS attacks due to the lack of proper neutralization of untrusted input.
https://nvd.nist.gov/vuln/detail/CVE-2020-1760
214,336
linux
ba953a9d89a00c078b85f4b190bc1dde66fe16b5
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ba953a9d89a00c078b85f4b190bc1dde66fe16b5
af_key: Do not call xfrm_probe_algs in parallel When namespace support was added to xfrm/afkey, it caused the previously single-threaded call to xfrm_probe_algs to become multi-threaded. This is buggy and needs to be fixed with a mutex. Reported-by: Abhishek Shah <abhishek.shah@columbia.edu> Fixes: 283bc9f35bbb ("xf...
1
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) { struct pfkey_sock *pfk = pfkey_sk(sk); struct sk_buff *supp_skb; if (hdr->sadb_msg_satype > SADB_SATYPE_MAX) return -EINVAL; if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC) { if (pfk->register...
31330987608984194197058225349266288841
af_key.c
41141499114881598479952301810943667867
CWE-362
CVE-2022-3028
A race condition was found in the Linux kernel's IP framework for transforming packets (XFRM subsystem) when multiple calls to xfrm_probe_algs occurred simultaneously. This flaw could allow a local attacker to potentially trigger an out-of-bounds write or leak kernel heap memory by performing an out-of-bounds read and ...
https://nvd.nist.gov/vuln/detail/CVE-2022-3028
477,803
linux
ba953a9d89a00c078b85f4b190bc1dde66fe16b5
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ba953a9d89a00c078b85f4b190bc1dde66fe16b5
af_key: Do not call xfrm_probe_algs in parallel When namespace support was added to xfrm/afkey, it caused the previously single-threaded call to xfrm_probe_algs to become multi-threaded. This is buggy and needs to be fixed with a mutex. Reported-by: Abhishek Shah <abhishek.shah@columbia.edu> Fixes: 283bc9f35bbb ("xf...
0
static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) { struct pfkey_sock *pfk = pfkey_sk(sk); struct sk_buff *supp_skb; if (hdr->sadb_msg_satype > SADB_SATYPE_MAX) return -EINVAL; if (hdr->sadb_msg_satype != SADB_SATYPE_UNSPEC) { if (pfk->register...
267484480773860224509939208990668486476
af_key.c
320308785060277331715018929148947306218
CWE-362
CVE-2022-3028
A race condition was found in the Linux kernel's IP framework for transforming packets (XFRM subsystem) when multiple calls to xfrm_probe_algs occurred simultaneously. This flaw could allow a local attacker to potentially trigger an out-of-bounds write or leak kernel heap memory by performing an out-of-bounds read and ...
https://nvd.nist.gov/vuln/detail/CVE-2022-3028
214,339
linux
f62f3c20647ebd5fb6ecb8f0b477b9281c44c10a
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f62f3c20647ebd5fb6ecb8f0b477b9281c44c10a
KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow The kvmppc_rtas_hcall() sets the host rtas_args.rets pointer based on the rtas_args.nargs that was provided by the guest. That guest nargs value is not range checked, so the guest can cause the host rets pointer to be pointed outside the args array. The individual rtas...
1
int kvmppc_rtas_hcall(struct kvm_vcpu *vcpu) { struct rtas_token_definition *d; struct rtas_args args; rtas_arg_t *orig_rets; gpa_t args_phys; int rc; /* * r4 contains the guest physical address of the RTAS args * Mask off the top 4 bits since this is a guest real address */ args_phys = kvmppc_get_gpr(vcp...
66579788869283176691450230454774242085
book3s_rtas.c
244969410022637408362665450874858593503
CWE-787
CVE-2021-37576
arch/powerpc/kvm/book3s_rtas.c in the Linux kernel through 5.13.5 on the powerpc platform allows KVM guest OS users to cause host OS memory corruption via rtas_args.nargs, aka CID-f62f3c20647e.
https://nvd.nist.gov/vuln/detail/CVE-2021-37576
477,811
linux
f62f3c20647ebd5fb6ecb8f0b477b9281c44c10a
https://github.com/torvalds/linux
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f62f3c20647ebd5fb6ecb8f0b477b9281c44c10a
KVM: PPC: Book3S: Fix H_RTAS rets buffer overflow The kvmppc_rtas_hcall() sets the host rtas_args.rets pointer based on the rtas_args.nargs that was provided by the guest. That guest nargs value is not range checked, so the guest can cause the host rets pointer to be pointed outside the args array. The individual rtas...
0
int kvmppc_rtas_hcall(struct kvm_vcpu *vcpu) { struct rtas_token_definition *d; struct rtas_args args; rtas_arg_t *orig_rets; gpa_t args_phys; int rc; /* * r4 contains the guest physical address of the RTAS args * Mask off the top 4 bits since this is a guest real address */ args_phys = kvmppc_get_gpr(vcp...
270253933279643819807414798855847113264
book3s_rtas.c
244634684304024017969354424959522055540
CWE-787
CVE-2021-37576
arch/powerpc/kvm/book3s_rtas.c in the Linux kernel through 5.13.5 on the powerpc platform allows KVM guest OS users to cause host OS memory corruption via rtas_args.nargs, aka CID-f62f3c20647e.
https://nvd.nist.gov/vuln/detail/CVE-2021-37576
214,358
clamav-devel
224fee54dd6cd8933d7007331ec2bfca0398d4b4
https://github.com/vrtadmin/clamav-devel
http://git.clamav.net/gitweb?p=clamav-devel.git;a=commit;h=224fee54dd6cd8933d7007331ec2bfca0398d4b4
libclamav/mspack.c: fix Quantum decompressor (bb#1771)
1
int qtm_decompress(struct qtm_stream *qtm, off_t out_bytes) { unsigned int frame_start, frame_end, window_posn, match_offset, range; unsigned char *window, *i_ptr, *i_end, *runsrc, *rundest; int i, j, selector, extra, sym, match_length, ret; unsigned short H, L, C, symf; register unsigned int bit_buffer; r...
291050376752284006088755347145639053650
mspack.c
137114659534783781079186144852150621076
CWE-20
CVE-2010-1311
The qtm_decompress function in libclamav/mspack.c in ClamAV before 0.96 allows remote attackers to cause a denial of service (memory corruption and application crash) via a crafted CAB archive that uses the Quantum (aka .Q) compression format. NOTE: some of these details are obtained from third party information.
https://nvd.nist.gov/vuln/detail/CVE-2010-1311
477,946
clamav-devel
224fee54dd6cd8933d7007331ec2bfca0398d4b4
https://github.com/vrtadmin/clamav-devel
http://git.clamav.net/gitweb?p=clamav-devel.git;a=commit;h=224fee54dd6cd8933d7007331ec2bfca0398d4b4
libclamav/mspack.c: fix Quantum decompressor (bb#1771)
0
int qtm_decompress(struct qtm_stream *qtm, off_t out_bytes) { unsigned int frame_start, frame_end, window_posn, match_offset, range; unsigned char *window, *i_ptr, *i_end, *runsrc, *rundest; int i, j, selector, extra, sym, match_length, ret; unsigned short H, L, C, symf; register unsigned int bit_buffer; r...
309561544522405112370599990059884786931
mspack.c
294647704290965311324683497678599566631
CWE-20
CVE-2010-1311
The qtm_decompress function in libclamav/mspack.c in ClamAV before 0.96 allows remote attackers to cause a denial of service (memory corruption and application crash) via a crafted CAB archive that uses the Quantum (aka .Q) compression format. NOTE: some of these details are obtained from third party information.
https://nvd.nist.gov/vuln/detail/CVE-2010-1311
214,364
php-src
e6c48213c22ed50b2b987b479fcc1ac709394caa
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=e6c48213c22ed50b2b987b479fcc1ac709394caa
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
1
void simplestring_addn(simplestring* target, const char* source, int add_len) { if(target && source) { if(!target->str) { simplestring_init_str(target); } if(target->len + add_len + 1 > target->size) { /* newsize is current length + new length */ int newsize = target->len...
48339101902926135808878707654868204878
simplestring.c
338610095237188637437183530843859723766
CWE-119
CVE-2016-6296
Integer signedness error in the simplestring_addn function in simplestring.c in xmlrpc-epi through 0.54.2, as used in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a long first...
https://nvd.nist.gov/vuln/detail/CVE-2016-6296
477,975
php-src
e6c48213c22ed50b2b987b479fcc1ac709394caa
https://github.com/php/php-src
http://git.php.net/?p=php-src.git;a=commit;h=e6c48213c22ed50b2b987b479fcc1ac709394caa
Fix bug #72606: heap-buffer-overflow (write) simplestring_addn simplestring.c
0
void simplestring_addn(simplestring* target, const char* source, size_t add_len) { size_t newsize = target->size, incr = 0; if(target && source) { if(!target->str) { simplestring_init_str(target); } if((SIZE_MAX - add_len) < target->len || (SIZE_MAX - add_len - 1) < target->len) { ...
17303339734462956863208308798642286429
simplestring.c
335043387623274482983135088926291395510
CWE-119
CVE-2016-6296
Integer signedness error in the simplestring_addn function in simplestring.c in xmlrpc-epi through 0.54.2, as used in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via a long first...
https://nvd.nist.gov/vuln/detail/CVE-2016-6296
214,909
linux
c8c2a057fdc7de1cd16f4baa51425b932a42eb39
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c8c2a057fdc7de1cd16f4baa51425b932a42eb39
net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated memory should be released. Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Saeed Mahameed <s...
1
static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size) { struct mlx5_fpga_device *fdev = conn->fdev; struct mlx5_core_dev *mdev = fdev->mdev; u32 temp_cqc[MLX5_ST_SZ_DW(cqc)] = {0}; u32 out[MLX5_ST_SZ_DW(create_cq_out)]; struct mlx5_wq_param wqp; struct mlx5_cqe64 *cqe; int inlen, err, eqn...
49458891717982371333799410023640328338
conn.c
180696471421094307893886411619232621599
CWE-401
CVE-2019-19045
A memory leak in the mlx5_fpga_conn_create_cq() function in drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering mlx5_vector2eqn() failures, aka CID-c8c2a057fdc7.
https://nvd.nist.gov/vuln/detail/CVE-2019-19045
481,267
linux
c8c2a057fdc7de1cd16f4baa51425b932a42eb39
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c8c2a057fdc7de1cd16f4baa51425b932a42eb39
net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated memory should be released. Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Saeed Mahameed <s...
0
static int mlx5_fpga_conn_create_cq(struct mlx5_fpga_conn *conn, int cq_size) { struct mlx5_fpga_device *fdev = conn->fdev; struct mlx5_core_dev *mdev = fdev->mdev; u32 temp_cqc[MLX5_ST_SZ_DW(cqc)] = {0}; u32 out[MLX5_ST_SZ_DW(create_cq_out)]; struct mlx5_wq_param wqp; struct mlx5_cqe64 *cqe; int inlen, err, eqn...
166786309951983227645990078525765970677
conn.c
179201474190149214779616550859114985162
CWE-401
CVE-2019-19045
A memory leak in the mlx5_fpga_conn_create_cq() function in drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c in the Linux kernel before 5.3.11 allows attackers to cause a denial of service (memory consumption) by triggering mlx5_vector2eqn() failures, aka CID-c8c2a057fdc7.
https://nvd.nist.gov/vuln/detail/CVE-2019-19045
214,948
nagioscore
b1a92a3b52d292ccb601e77a0b29cb1e67ac9d76
https://github.com/NagiosEnterprises/nagioscore
https://github.com/NagiosEnterprises/nagioscore/commit/b1a92a3b52d292ccb601e77a0b29cb1e67ac9d76
merge accidental master PR (#553) into maint and fix changelog merge conflict
1
static int qh_help(int sd, char *buf, unsigned int len) { struct query_handler *qh = NULL; if (!*buf || !strcmp(buf, "help")) { nsock_printf_nul(sd, " help <name> show help for handler <name>\n" " help list list registered handlers\n"); return 0; } if (!strcmp(buf, "list")) { for (qh = qhandl...
94205848469413247134990431510795041073
query-handler.c
69411467652185615530893490033539842403
CWE-476
CVE-2018-13441
qh_help in Nagios Core version 4.4.1 and earlier is prone to a NULL pointer dereference vulnerability, which allows attacker to cause a local denial-of-service condition by sending a crafted payload to the listening UNIX socket.
https://nvd.nist.gov/vuln/detail/CVE-2018-13441
481,787
nagioscore
b1a92a3b52d292ccb601e77a0b29cb1e67ac9d76
https://github.com/NagiosEnterprises/nagioscore
https://github.com/NagiosEnterprises/nagioscore/commit/b1a92a3b52d292ccb601e77a0b29cb1e67ac9d76
merge accidental master PR (#553) into maint and fix changelog merge conflict
0
static int qh_help(int sd, char *buf, unsigned int len) { struct query_handler *qh = NULL; if (buf == NULL || !strcmp(buf, "help")) { nsock_printf_nul(sd, " help <name> show help for handler <name>\n" " help list list registered handlers\n"); return 0; } if (!strcmp(buf, "list")) { for (qh = ...
205155132129673453942496407625358391443
query-handler.c
275184931270866221094094086326042798019
CWE-476
CVE-2018-13441
qh_help in Nagios Core version 4.4.1 and earlier is prone to a NULL pointer dereference vulnerability, which allows attacker to cause a local denial-of-service condition by sending a crafted payload to the listening UNIX socket.
https://nvd.nist.gov/vuln/detail/CVE-2018-13441
214,997
liblouis
2e4772befb2b1c37cb4b9d6572945115ee28630a
https://github.com/liblouis/liblouis
https://github.com/liblouis/liblouis/commit/2e4772befb2b1c37cb4b9d6572945115ee28630a
Prevent an invalid memory writes in compileRule Thanks to Han Zheng for reporting it Fixes #1214
1
compileRule(FileInfo *file, TranslationTableHeader **table, DisplayTableHeader **displayTable, const MacroList **inScopeMacros) { CharsString token; TranslationTableOpcode opcode; CharsString ruleChars; CharsString ruleDots; CharsString cells; CharsString scratchPad; CharsString emphClass; TranslationTableCha...
114188111189139492438388270487144198902
compileTranslationTable.c
130160890521779483138755278607355501086
CWE-787
CVE-2022-31783
Liblouis 3.21.0 has an out-of-bounds write in compileRule in compileTranslationTable.c, as demonstrated by lou_trace.
https://nvd.nist.gov/vuln/detail/CVE-2022-31783
482,533
liblouis
2e4772befb2b1c37cb4b9d6572945115ee28630a
https://github.com/liblouis/liblouis
https://github.com/liblouis/liblouis/commit/2e4772befb2b1c37cb4b9d6572945115ee28630a
Prevent an invalid memory writes in compileRule Thanks to Han Zheng for reporting it Fixes #1214
0
compileRule(FileInfo *file, TranslationTableHeader **table, DisplayTableHeader **displayTable, const MacroList **inScopeMacros) { CharsString token; TranslationTableOpcode opcode; CharsString ruleChars; CharsString ruleDots; CharsString cells; CharsString scratchPad; CharsString emphClass; TranslationTableCha...
188995041946566375099409962387038802381
compileTranslationTable.c
129515444966510079462991982245291196170
CWE-787
CVE-2022-31783
Liblouis 3.21.0 has an out-of-bounds write in compileRule in compileTranslationTable.c, as demonstrated by lou_trace.
https://nvd.nist.gov/vuln/detail/CVE-2022-31783
215,038
gst-plugins-good
b31c504645a814c59d91d49e4fe218acaf93f4ca
https://github.com/GStreamer/gst-plugins-good
https://github.com/GStreamer/gst-plugins-good/commit/b31c504645a814c59d91d49e4fe218acaf93f4ca
flxdec: Don't unref() parent in the chain function We don't own the reference here, it is owned by the caller and given to us for the scope of this function. Leftover mistake from 0.10 porting. https://bugzilla.gnome.org/show_bug.cgi?id=774897
1
gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) { GstCaps *caps; guint avail; GstFlowReturn res = GST_FLOW_OK; GstFlxDec *flxdec; FlxHeader *flxh; g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR); flxdec = (GstFlxDec *) parent; g_return_val_if_fail (flxdec != NULL, GST_FLOW_ERRO...
293682781429111556527181973502820056353
gstflxdec.c
257993996858330004218595538099349772474
CWE-125
CVE-2016-9810
The gst_decode_chain_free_internal function in the flxdex decoder in gst-plugins-good in GStreamer before 1.10.2 allows remote attackers to cause a denial of service (invalid memory read and crash) via an invalid file, which triggers an incorrect unref call.
https://nvd.nist.gov/vuln/detail/CVE-2016-9810
482,692
gst-plugins-good
b31c504645a814c59d91d49e4fe218acaf93f4ca
https://github.com/GStreamer/gst-plugins-good
https://github.com/GStreamer/gst-plugins-good/commit/b31c504645a814c59d91d49e4fe218acaf93f4ca
flxdec: Don't unref() parent in the chain function We don't own the reference here, it is owned by the caller and given to us for the scope of this function. Leftover mistake from 0.10 porting. https://bugzilla.gnome.org/show_bug.cgi?id=774897
0
gst_flxdec_chain (GstPad * pad, GstObject * parent, GstBuffer * buf) { GstCaps *caps; guint avail; GstFlowReturn res = GST_FLOW_OK; GstFlxDec *flxdec; FlxHeader *flxh; g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR); flxdec = (GstFlxDec *) parent; g_return_val_if_fail (flxdec != NULL, GST_FLOW_ERRO...
307699482792832838844638071066338187796
gstflxdec.c
15220895690601023240129213899493293437
CWE-125
CVE-2016-9810
The gst_decode_chain_free_internal function in the flxdex decoder in gst-plugins-good in GStreamer before 1.10.2 allows remote attackers to cause a denial of service (invalid memory read and crash) via an invalid file, which triggers an incorrect unref call.
https://nvd.nist.gov/vuln/detail/CVE-2016-9810
215,073
linux
24f6008564183aa120d07c03d9289519c2fe02af
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/24f6008564183aa120d07c03d9289519c2fe02af
cgroup-v1: Require capabilities to set release_agent The cgroup release_agent is called with call_usermodehelper. The function call_usermodehelper starts the release_agent with a full set fo capabilities. Therefore require capabilities when setting the release_agaent. Reported-by: Tabitha Sable <tabitha.c.sable@gmai...
1
static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) { struct cgroup *cgrp; BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); cgrp = cgroup_kn_lock_live(of->kn, false); if (!cgrp) return -ENODEV; spin_lock(&release_agent_path_lock); ...
62903931031364372249216035169426622389
cgroup-v1.c
159693224935670518088988394061249784059
CWE-269
CVE-2022-0492
A vulnerability was found in the Linux kernel’s cgroup_release_agent_write in the kernel/cgroup/cgroup-v1.c function. This flaw, under certain circumstances, allows the use of the cgroups v1 release_agent feature to escalate privileges and bypass the namespace isolation unexpectedly.
https://nvd.nist.gov/vuln/detail/CVE-2022-0492
483,053
linux
24f6008564183aa120d07c03d9289519c2fe02af
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/24f6008564183aa120d07c03d9289519c2fe02af
cgroup-v1: Require capabilities to set release_agent The cgroup release_agent is called with call_usermodehelper. The function call_usermodehelper starts the release_agent with a full set fo capabilities. Therefore require capabilities when setting the release_agaent. Reported-by: Tabitha Sable <tabitha.c.sable@gmai...
0
static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off) { struct cgroup *cgrp; BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); /* * Release agent gets called with all capabilities, * require capabilities to set release agent. */ if...
43963490668592516286761666416958152261
cgroup-v1.c
124298823051510119794232043748065237512
CWE-269
CVE-2022-0492
A vulnerability was found in the Linux kernel’s cgroup_release_agent_write in the kernel/cgroup/cgroup-v1.c function. This flaw, under certain circumstances, allows the use of the cgroups v1 release_agent feature to escalate privileges and bypass the namespace isolation unexpectedly.
https://nvd.nist.gov/vuln/detail/CVE-2022-0492