func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
add_bwrap (GPtrArray *array, ScriptExec *script) { const char * const usrmerged_dirs[] = { "bin", "lib64", "lib", "sbin" }; int i; g_return_val_if_fail (script->outdir != NULL, FALSE); g_return_val_if_fail (script->s_infile != NULL, FALSE); add_args (array, "bwrap", "--ro-bind", "/usr", "/u...
1
[]
nautilus
2ddba428ef2b13d0620bd599c3635b9c11044659
45,307,206,411,643,750,000,000,000,000,000,000,000
74
Update gnome-desktop code Closes https://gitlab.gnome.org/GNOME/nautilus/issues/987
amstar_estimate( application_argument_t *argument) { GPtrArray *argv_ptr; int nullfd; int pipefd; FILE *dumpout = NULL; off_t size = -1; char line[32768]; char *errmsg = NULL; char *qerrmsg; char *qdisk; amwait_t wait_s...
0
[ "CWE-264" ]
amanda
4bf5b9b356848da98560ffbb3a07a9cb5c4ea6d7
287,440,053,018,186,530,000,000,000,000,000,000,000
180
* Add a /etc/amanda-security.conf file git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/branches/3_3@6486 a8d146d6-cc15-0410-8900-af154a0219e0
check_minimum0(struct table *t, int min) { int i, w, ww; struct table_cell *cell; if (t->col < 0) return; if (t->tabwidth[t->col] < 0) return; check_row(t, t->row); w = table_colspan(t, t->row, t->col); min += t->indent; if (w == 1) ww = min; else { cell = &t->cell; ww = 0; if...
0
[ "CWE-119" ]
w3m
67a3db378f5ee3047c158eae4342f7e3245a2ab1
229,872,871,307,403,700,000,000,000,000,000,000,000
27
Fix table rowspan and colspan Origin: https://github.com/tats/w3m/pull/19 Bug-Debian: https://github.com/tats/w3m/issues/8
formatint(char *buf, size_t buflen, int flags, int prec, int type, PyObject *v) { /* fmt = '%#.' + `prec` + 'l' + `type` worst case length = 3 + 19 (worst len of INT_MAX on 64-bit machine) + 1 + 1 = 24 */ char fmt[64]; /* plenty big enough! */ char *sign; long x; x = P...
0
[ "CWE-190" ]
cpython
c3c9db89273fabc62ea1b48389d9a3000c1c03ae
196,323,800,790,619,840,000,000,000,000,000,000,000
71
[2.7] bpo-30657: Check & prevent integer overflow in PyString_DecodeEscape (#2174)
I2CBus *pxa2xx_i2c_bus(PXA2xxI2CState *s) { return s->bus; }
0
[ "CWE-119" ]
qemu
caa881abe0e01f9931125a0977ec33c5343e4aa7
122,510,306,779,809,510,000,000,000,000,000,000,000
4
pxa2xx: avoid buffer overrun on incoming migration CVE-2013-4533 s->rx_level is read from the wire and used to determine how many bytes to subsequently read into s->rx_fifo[]. If s->rx_level exceeds the length of s->rx_fifo[] the buffer can be overrun with arbitrary data from the wire. Fix this by validating rx_leve...
static bool gatt_server_register_att_handlers(struct bt_gatt_server *server) { /* Exchange MTU */ server->mtu_id = bt_att_register(server->att, BT_ATT_OP_MTU_REQ, exchange_mtu_cb, server, NULL); if (!server->mtu_id) return false; /* Read By Group Type */ server->read_by_grp_type_id = bt_att_regi...
0
[ "CWE-287" ]
bluez
00da0fb4972cf59e1c075f313da81ea549cb8738
183,658,714,042,551,700,000,000,000,000,000,000,000
105
shared/gatt-server: Fix not properly checking for secure flags When passing the mask to check_permissions all valid permissions for the operation must be set including BT_ATT_PERM_SECURE flags.
size_t MemIo::write(const byte* data, size_t wcount) { p_->reserve(wcount); assert(p_->isMalloced_); if (data != nullptr) { std::memcpy(&p_->data_[p_->idx_], data, wcount); } p_->idx_ += wcount; return wcount; }
0
[ "CWE-125" ]
exiv2
bd0afe0390439b2c424d881c8c6eb0c5624e31d9
132,736,616,973,961,280,000,000,000,000,000,000,000
10
Add bounds check to MemIo::seek(). (#944) - Regression test for missing bounds check in MemIo::seek() - Add bounds check to MemIo::seek(), this fixes CVE-2019-13504
static inline int __queue_kicked_iocb(struct kiocb *iocb) { struct kioctx *ctx = iocb->ki_ctx; assert_spin_locked(&ctx->ctx_lock); if (list_empty(&iocb->ki_run_list)) { list_add_tail(&iocb->ki_run_list, &ctx->run_list); return 1; } return 0; }
0
[ "CWE-190" ]
linux-2.6
75e1c70fc31490ef8a373ea2a4bea2524099b478
40,628,005,164,507,577,000,000,000,000,000,000,000
13
aio: check for multiplication overflow in do_io_submit Tavis Ormandy pointed out that do_io_submit does not do proper bounds checking on the passed-in iocb array:        if (unlikely(nr < 0))                return -EINVAL;        if (unlikely(!access_ok(VERIFY_READ, iocbpp, (nr*sizeof(iocbpp)))))                retu...
UnicodeString::refCount() const { return umtx_loadAcquire(*((u_atomic_int32_t *)fUnion.fFields.fArray - 1)); }
0
[ "CWE-190", "CWE-787" ]
icu
b7d08bc04a4296982fcef8b6b8a354a9e4e7afca
85,412,626,633,807,710,000,000,000,000,000,000,000
3
ICU-20958 Prevent SEGV_MAPERR in append See #971
int kvm_arch_vcpu_runnable(struct kvm_vcpu *v) { return !!(v->arch.pending_exceptions) || kvm_request_pending(v); }
0
[ "CWE-476" ]
linux
ac64115a66c18c01745bbd3c47a36b124e5fd8c0
10,496,674,813,555,218,000,000,000,000,000,000,000
4
KVM: PPC: Fix oops when checking KVM_CAP_PPC_HTM The following program causes a kernel oops: #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/kvm.h> main() { int fd = open("/dev/kvm", O_RDWR); ioctl(fd, KVM_CHECK_EXTENSION, KVM_CAP_PPC_HTM); } This happe...
static void tipc_node_delete_from_list(struct tipc_node *node) { #ifdef CONFIG_TIPC_CRYPTO tipc_crypto_key_flush(node->crypto_rx); #endif list_del_rcu(&node->list); hlist_del_rcu(&node->hash); tipc_node_put(node); }
0
[]
linux
0217ed2848e8538bcf9172d97ed2eeb4a26041bb
190,532,839,997,302,600,000,000,000,000,000,000,000
9
tipc: better validate user input in tipc_nl_retrieve_key() Before calling tipc_aead_key_size(ptr), we need to ensure we have enough data to dereference ptr->keylen. We probably also want to make sure tipc_aead_key_size() wont overflow with malicious ptr->keylen values. Syzbot reported: BUG: KMSAN: uninit-value in _...
my_ulonglong STDCALL mysql_stmt_insert_id(MYSQL_STMT *stmt) { return stmt->insert_id; }
0
[]
mysql-server
3d8134d2c9b74bc8883ffe2ef59c168361223837
318,735,219,444,780,560,000,000,000,000,000,000,000
4
Bug#25988681: USE-AFTER-FREE IN MYSQL_STMT_CLOSE() Description: If mysql_stmt_close() encountered error, it recorded error in prepared statement but then frees memory assigned to prepared statement. If mysql_stmt_error() is used to get error information, it will resu...
char get_header_code(struct hdr_field *hf) { switch(hf->type){ case HDR_CALLID_T: return 'i'; case HDR_CONTACT_T: return 'm'; case HDR_CONTENTLENGTH_T: return 'l'; case HDR_CONTENTTYPE_T: return 'c'; case HDR_FROM_T: return 'f'; case HDR_SUBJECT_T: return 's'; ca...
0
[ "CWE-119", "CWE-284" ]
kamailio
f50c9c853e7809810099c970780c30b0765b0643
19,641,402,871,440,398,000,000,000,000,000,000,000
46
seas: safety check for target buffer size before copying message in encode_msg() - avoid buffer overflow for large SIP messages - reported by Stelios Tsampas
static int hns_ppe_common_init_hw(struct ppe_common_cb *ppe_common) { enum ppe_qid_mode qid_mode; struct dsaf_device *dsaf_dev = ppe_common->dsaf_dev; enum dsaf_mode dsaf_mode = dsaf_dev->dsaf_mode; dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 0); mdelay(100); dsaf_dev->misc_op->ppe_comm_srst(dsaf_dev, 1); mdelay...
0
[ "CWE-119", "CWE-703" ]
linux
412b65d15a7f8a93794653968308fc100f2aa87c
41,530,377,909,045,352,000,000,000,000,000,000,000
58
net: hns: fix ethtool_get_strings overflow in hns driver hns_get_sset_count() returns HNS_NET_STATS_CNT and the data space allocated is not enough for ethtool_get_strings(), which will cause random memory corruption. When SLAB and DEBUG_SLAB are both enabled, memory corruptions like the the following can be observed ...
get_term_code(char_u *tname) { int opt_idx; char_u *varp; if (tname[0] != 't' || tname[1] != '_' || tname[2] == NUL || tname[3] == NUL) return NULL; if ((opt_idx = findoption(tname)) >= 0) { varp = get_varp(&(options[opt_idx])); if (varp != NULL) varp = *(char_u **)(varp); return...
0
[ "CWE-20" ]
vim
d0b5138ba4bccff8a744c99836041ef6322ed39a
269,302,810,778,548,000,000,000,000,000,000,000,000
17
patch 8.0.0056 Problem: When setting 'filetype' there is no check for a valid name. Solution: Only allow valid characters in 'filetype', 'syntax' and 'keymap'.
static void load_xsave(struct kvm_vcpu *vcpu, u8 *src) { struct xregs_state *xsave = &vcpu->arch.guest_fpu.state.xsave; u64 xstate_bv = *(u64 *)(src + XSAVE_HDR_OFFSET); u64 valid; /* * Copy legacy XSAVE area, to avoid complications with CPUID * leaves 0 and 1 in the loop below. */ memcpy(xsave, src, XSAVE_...
0
[ "CWE-369" ]
linux
0185604c2d82c560dab2f2933a18f797e74ab5a8
4,806,329,731,430,965,500,000,000,000,000,000,000
37
KVM: x86: Reload pit counters for all channels when restoring state Currently if userspace restores the pit counters with a count of 0 on channels 1 or 2 and the guest attempts to read the count on those channels, then KVM will perform a mod of 0 and crash. This will ensure that 0 values are converted to 65536 as per...
set_salt_padata(METHOD_DATA *md, Salt *salt) { if (salt) { realloc_method_data(md); md->val[md->len - 1].padata_type = salt->type; der_copy_octet_string(&salt->salt, &md->val[md->len - 1].padata_value); } }
0
[ "CWE-476" ]
heimdal
1a6a6e462dc2ac6111f9e02c6852ddec4849b887
207,736,870,850,332,200,000,000,000,000,000,000,000
9
Security: Avoid NULL structure pointer member dereference This can happen in the error path when processing malformed AS requests with a NULL client name. Bug originally introduced on Fri Feb 13 09:26:01 2015 +0100 in commit: a873e21d7c06f22943a90a41dc733ae76799390d kdc: base _kdc_fast_mk_error() on krb5_mk...
xmlXPtrEvalFullXPtr(xmlXPathParserContextPtr ctxt, xmlChar *name) { if (name == NULL) name = xmlXPathParseName(ctxt); if (name == NULL) XP_ERROR(XPATH_EXPR_ERROR); while (name != NULL) { ctxt->error = XPATH_EXPRESSION_OK; xmlXPtrEvalXPtrPart(ctxt, name); /* in case of syntax error, break here */ i...
0
[ "CWE-415" ]
libxml2
f5048b3e71fc30ad096970b8df6e7af073bae4cb
259,916,513,709,300,560,000,000,000,000,000,000,000
57
Hardening of XPath evaluation Add a mechanism of frame for XPath evaluation when entering a function or a scoped evaluation, also fix a potential problem in predicate evaluation.
entry_guard_consider_retry(entry_guard_t *guard) { if (guard->is_reachable != GUARD_REACHABLE_NO) return; /* No retry needed. */ const time_t now = approx_time(); const int delay = get_retry_schedule(guard->failing_since, now, guard->is_primary); const time_t last_attempt = guard->last_tried_to_connect...
0
[ "CWE-200" ]
tor
665baf5ed5c6186d973c46cdea165c0548027350
137,271,603,939,493,160,000,000,000,000,000,000,000
27
Consider the exit family when applying guard restrictions. When the new path selection logic went into place, I accidentally dropped the code that considered the _family_ of the exit node when deciding if the guard was usable, and we didn't catch that during code review. This patch makes the guard_restriction_t code ...
static int smtp_data(struct Connection *conn, const char *msgfile) { char buf[1024]; struct Progress progress; struct stat st; int rc, term = 0; size_t buflen = 0; FILE *fp = fopen(msgfile, "r"); if (!fp) { mutt_error(_("SMTP session failed: unable to open %s"), msgfile); return -1; } stat(...
0
[ "CWE-94", "CWE-74" ]
neomutt
fb013ec666759cb8a9e294347c7b4c1f597639cc
50,402,002,451,614,270,000,000,000,000,000,000,000
69
tls: clear data after a starttls acknowledgement After a starttls acknowledgement message, clear the buffers of any incoming data / commands. This will ensure that all future data is handled securely. Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
static int copy_verifier_state(struct bpf_verifier_state *dst_state, const struct bpf_verifier_state *src) { struct bpf_func_state *dst; int i, err; /* if dst has more stack frames then src frame, free them */ for (i = src->curframe + 1; i <= dst_state->curframe; i++) { free_func_state(dst_state->frame...
0
[ "CWE-703", "CWE-189" ]
linux
979d63d50c0c0f7bc537bf821e056cc9fe5abd38
155,805,037,833,285,600,000,000,000,000,000,000,000
27
bpf: prevent out of bounds speculation on pointer arithmetic Jann reported that the original commit back in b2157399cc98 ("bpf: prevent out-of-bounds speculation") was not sufficient to stop CPU from speculating out of bounds memory access: While b2157399cc98 only focussed on masking array map access for unprivileged ...
void flush_font_metrics(void) { TFMPool *ptr; for(; (ptr = (TFMPool *)tfmpool.head); ) { tfmpool.head = LIST(ptr->next); mdvi_free(ptr->short_name); mdvi_free(ptr->tfminfo.chars); mdvi_free(ptr); } mdvi_hash_reset(&tfmhash, 0); }
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
41,875,252,252,887,255,000,000,000,000,000,000,000
13
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
smb2_negotiate(const unsigned int xid, struct cifs_ses *ses, struct TCP_Server_Info *server) { int rc; spin_lock(&GlobalMid_Lock); server->CurrentMid = 0; spin_unlock(&GlobalMid_Lock); rc = SMB2_negotiate(xid, ses, server); /* BB we probably don't need to retry with modern servers */ if (rc == -...
0
[ "CWE-476" ]
linux
d6f5e358452479fa8a773b5c6ccc9e4ec5a20880
81,395,044,481,338,110,000,000,000,000,000,000,000
15
cifs: fix NULL ptr dereference in smb2_ioctl_query_info() When calling smb2_ioctl_query_info() with invalid smb_query_info::flags, a NULL ptr dereference is triggered when trying to kfree() uninitialised rqst[n].rq_iov array. This also fixes leaked paths that are created in SMB2_open_init() which required SMB2_open_f...
poly_path(PG_FUNCTION_ARGS) { POLYGON *poly = PG_GETARG_POLYGON_P(0); PATH *path; int size; int i; size = offsetof(PATH, p[0]) +sizeof(path->p[0]) * poly->npts; path = (PATH *) palloc(size); SET_VARSIZE(path, size); path->npts = poly->npts; path->closed = TRUE; /* prevent instability in unused pad...
1
[ "CWE-703", "CWE-189" ]
postgres
31400a673325147e1205326008e32135a78b4d8a
65,909,878,879,363,220,000,000,000,000,000,000,000
24
Predict integer overflow to avoid buffer overruns. Several functions, mostly type input functions, calculated an allocation size such that the calculation wrapped to a small positive value when arguments implied a sufficiently-large requirement. Writes past the end of the inadvertent small allocation followed shortly...
static void test_unescape_char_quoted_one(const char *string, size_t n_string, bool escaped) { char buf[2]; char *out = buf; size_t n_out = sizeof(buf); const char *in = string; size_t n_in = n_string; int r; r = c_shquote_unescape_char_quoted(&out, &n_out, &in, ...
0
[ "CWE-787" ]
c-shquote
7fd15f8e272136955f7ffc37df29fbca9ddceca1
144,194,658,417,052,410,000,000,000,000,000,000,000
23
strnspn: fix buffer overflow Fix the strnspn and strncspn functions to use a properly sized buffer. It used to be 1 byte too short. Checking for `0xff` in a string will thus write `0xff` once byte beyond the stack space of the local buffer. Note that the public API does not allow to pass `0xff` to those functions. Th...
bool ZrtpQueue::srtpSecretsReady(SrtpSecret_t* secrets, EnableSecurity part) { CryptoContext* recvCryptoContext; CryptoContext* senderCryptoContext; CryptoContextCtrl* recvCryptoContextCtrl; CryptoContextCtrl* senderCryptoContextCtrl; int cipher; int authn; int authKeyLen; if (secrets-...
0
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
41,215,603,201,823,900,000,000,000,000,000,000,000
168
Fix vulnerabilities found and reported by Mark Dowd - limit length of memcpy - limit number of offered algorithms in Hello packet - length check in PING packet - fix a small coding error
uint32_t ldb_req_get_custom_flags(struct ldb_request *req) { if (req != NULL && req->handle != NULL) { return req->handle->custom_flags; } /* * 0 is not something any better or worse than * anything else as req or the handle is NULL */ return 0; }
0
[ "CWE-476" ]
samba
d8b9bb274b7e7a390cf3bda9cd732cb2227bdbde
4,846,619,180,965,207,000,000,000,000,000,000,000
12
CVE-2020-10730: lib ldb: Check if ldb_lock_backend_callback called twice Prevent use after free issues if ldb_lock_backend_callback is called twice, usually due to ldb_module_done being called twice. This can happen if a module ignores the return value from function a function that calls ldb_module_done as part of it'...
dlz_allowzonexfr(void *dbdata, const char *name, const char *client) { isc_result_t result; result = dlz_findzonedb(dbdata, name, NULL, NULL); if (result != ISC_R_SUCCESS) { return (result); } /* * Exception for 10.53.0.5 so we can test that allow-transfer * is effective. */ if (strcmp(client, "10.53.0....
0
[ "CWE-732" ]
bind9
34348d9ee4db15307c6c42db294419b4df569f76
260,277,336,593,785,400,000,000,000,000,000,000,000
18
denied axfr requests were not effective for writable DLZ zones (cherry picked from commit d9077cd0038e59726e1956de18b4b7872038a283)
process_tree(void) { int mymask = 0; tcpr_buildcidr_t *bcdata; tcpprep_opt_t *options = tcpprep->options; dbg(1, "Running: process_tree()"); bcdata = (tcpr_buildcidr_t *)safe_malloc(sizeof(tcpr_buildcidr_t)); for (mymask = options->max_mask; mymask <= options->min_mask; mymask++) { d...
0
[ "CWE-476" ]
tcpreplay
46cf964a7db636da76abeebf10482acf6f682a87
133,676,918,551,316,140,000,000,000,000,000,000,000
43
Bug #677 - fixes for tcpprep tree
ex_cc(exarg_T *eap) { qf_info_T *qi; int errornr; if ((qi = qf_cmd_get_stack(eap, TRUE)) == NULL) return; if (eap->addr_count > 0) errornr = (int)eap->line2; else { switch (eap->cmdidx) { case CMD_cc: case CMD_ll: errornr = 0; break; case CMD_crewind: case CMD_lrewind: case ...
0
[ "CWE-416" ]
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
190,555,960,361,996,830,000,000,000,000,000,000,000
36
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.
bytesPerDeepLineTable (const Header &header, char* base, int xStride, int yStride, vector<size_t> &bytesPerLine) { return bytesPerDeepLineTable(header, header.dataWindow().min.y, ...
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
152,629,910,955,578,040,000,000,000,000,000,000,000
14
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
intrusive_ptr<Expression> ExpressionReplaceAll::parse(ExpressionContext* const expCtx, BSONElement expr, const VariablesParseState& vps) { auto [input, find, replacement] = parseExpressionReplaceBase(opName, ...
0
[]
mongo
1772b9a0393b55e6a280a35e8f0a1f75c014f301
133,434,317,841,076,780,000,000,000,000,000,000,000
7
SERVER-49404 Enforce additional checks in $arrayToObject
int rom_copy(uint8_t *dest, hwaddr addr, size_t size) { hwaddr end = addr + size; uint8_t *s, *d = dest; size_t l = 0; Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (rom->fw_file) { continue; } if (rom->mr) { continue; } if (rom->add...
0
[ "CWE-787" ]
qemu
e423455c4f23a1a828901c78fe6d03b7dde79319
11,941,405,663,358,838,000,000,000,000,000,000,000
56
hw/core/loader: Fix possible crash in rom_copy() Both, "rom->addr" and "addr" are derived from the binary image that can be loaded with the "-kernel" paramer. The code in rom_copy() then calculates: d = dest + (rom->addr - addr); and uses "d" as destination in a memcpy() some lines later. Now with bad kernel ima...
GF_Err pssh_dump(GF_Box *a, FILE * trace) { GF_ProtectionSystemHeaderBox *ptr = (GF_ProtectionSystemHeaderBox*) a; if (!a) return GF_BAD_PARAM; gf_isom_box_dump_start(a, "ProtectionSystemHeaderBox", trace); fprintf(trace, "SystemID=\""); dump_data_hex(trace, (char *) ptr->SystemID, 16); fprintf(trace, "\">\n");...
0
[ "CWE-125" ]
gpac
bceb03fd2be95097a7b409ea59914f332fb6bc86
76,518,510,112,924,930,000,000,000,000,000,000,000
31
fixed 2 possible heap overflows (inc. #1088)
handle_client_initial_response_cookie_sha1_mech (DBusAuth *auth, DBusString *response) { DBusString username; dbus_bool_t retval; retval = FALSE; if (!_dbus_string_init (&username)) return FALSE; if (!_dbus_append_user_from_current_process (&username...
0
[ "CWE-59" ]
dbus
47b1a4c41004bf494b87370987b222c934b19016
233,231,418,772,199,750,000,000,000,000,000,000,000
26
auth: Reject DBUS_COOKIE_SHA1 for users other than the server owner The DBUS_COOKIE_SHA1 authentication mechanism aims to prove ownership of a shared home directory by having the server write a secret "cookie" into a .dbus-keyrings subdirectory of the desired identity's home directory with 0700 permissions, and having...
server_connect_success (server *serv) { #ifdef USE_OPENSSL #define SSLDOCONNTMOUT 300 if (serv->use_ssl) { char *err; /* it'll be a memory leak, if connection isn't terminated by server_cleanup() */ serv->ssl = _SSL_socket (serv->ctx, serv->sok); if ((err = _SSL_set_verify (serv->ctx, ssl_cb_verify, NUL...
0
[ "CWE-310" ]
hexchat
c9b63f7f9be01692b03fa15275135a4910a7e02d
88,211,740,694,399,160,000,000,000,000,000,000,000
32
ssl: Validate hostnames Closes #524
i2rgb(UINT8 *out, const UINT8 *in_, int xsize) { int x; INT32 *in = (INT32 *)in_; for (x = 0; x < xsize; x++, in++, out += 4) { if (*in <= 0) { out[0] = out[1] = out[2] = 0; } else if (*in >= 255) { out[0] = out[1] = out[2] = 255; } else { out[0] =...
0
[ "CWE-120" ]
Pillow
518ee3722a99d7f7d890db82a20bd81c1c0327fb
56,082,130,523,875,750,000,000,000,000,000,000,000
14
Use snprintf instead of sprintf
virtual unsigned long long lastUsed() const { lock_guard<boost::mutex> lock(simpleFieldSyncher); return m_lastUsed; }
0
[]
passenger
8c6693e0818772c345c979840d28312c2edd4ba4
280,787,364,527,966,640,000,000,000,000,000,000,000
4
Security check socket filenames reported by spawned application processes.
compile_cclass_node(CClassNode* cc, regex_t* reg) { int r; if (IS_NULL(cc->mbuf)) { r = add_op(reg, IS_NCCLASS_NOT(cc) ? OP_CCLASS_NOT : OP_CCLASS); if (r != 0) return r; COP(reg)->cclass.bsp = xmalloc(SIZE_BITSET); CHECK_NULL_RETURN_MEMERR(COP(reg)->cclass.bsp); xmemcpy(COP(reg)->cclass.bsp, ...
0
[ "CWE-476", "CWE-125" ]
oniguruma
c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c
335,111,535,721,970,350,000,000,000,000,000,000,000
39
Fix CVE-2019-13225: problem in converting if-then-else pattern to bytecode.
RGWOp *RGWHandler_REST_Obj_SWIFT::op_head() { return get_obj_op(false); }
0
[ "CWE-617" ]
ceph
f44a8ae8aa27ecef69528db9aec220f12492810e
101,711,086,821,814,900,000,000,000,000,000,000,000
4
rgw: RGWSwiftWebsiteHandler::is_web_dir checks empty subdir_name checking for empty name avoids later assertion in RGWObjectCtx::set_atomic Fixes: CVE-2021-3531 Reviewed-by: Casey Bodley <cbodley@redhat.com> Signed-off-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit 7196a469b4470f3c8628489df9a41ec8b...
StrUtil_SafeStrcat(char **prefix, // IN/OUT const char *str) // IN { char *tmp; size_t plen = *prefix != NULL ? strlen(*prefix) : 0; size_t slen = strlen(str); /* Check for overflow */ VERIFY((size_t)-1 - plen > slen + 1); tmp = Util_SafeRealloc(*prefix, plen + slen + 1 /* NUL...
0
[ "CWE-362" ]
open-vm-tools
b3068b04880eda4ca3e13f2d34fb8ce336ad1a4f
167,992,234,797,040,130,000,000,000,000,000,000,000
15
randomly generate tmp directory name, and add StrUtil_ReplaceAll() function
void Server::updateChannel(const Channel *c) { if (c->bTemporary) return; TransactionHolder th; Group *g; ChanACL *acl; QSqlQuery &query = *th.qsqQuery; SQLPREP("UPDATE `%1channels` SET `name` = ?, `parent_id` = ?, `inheritacl` = ? WHERE `server_id` = ? AND `channel_id` = ?"); query.addBindValue(c->qsName); ...
0
[ "CWE-20" ]
mumble
6b33dda344f89e5a039b7d79eb43925040654242
225,932,056,309,649,700,000,000,000,000,000,000,000
88
Don't crash on long usernames
static void pf1(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { if (ev == MG_EV_READ) mg_iobuf_free(&c->recv); (void) ev_data, (void) fn_data; }
0
[ "CWE-552" ]
mongoose
c65c8fdaaa257e0487ab0aaae9e8f6b439335945
162,318,162,741,130,730,000,000,000,000,000,000,000
4
Protect against the directory traversal in mg_upload()
int LibRaw::dcraw_process(void) { int quality,i; int iterations=-1, dcb_enhance=1, noiserd=0; int eeci_refine_fl=0, es_med_passes_fl=0; float cared=0,cablue=0; float linenoise=0; float lclean=0,cclean=0; float thresh=0; float preser=0; float expos=1.0; CHECK_ORDER_LOW(LIBRAW_PROGRESS_LOAD_RAW); ...
0
[ "CWE-129" ]
LibRaw
89d065424f09b788f443734d44857289489ca9e2
155,588,362,309,437,130,000,000,000,000,000,000,000
249
fixed two more problems found by fuzzer
static int input_default_setkeycode(struct input_dev *dev, const struct input_keymap_entry *ke, unsigned int *old_keycode) { unsigned int index; int error; int i; if (!dev->keycodesize) return -EINVAL; if (ke->flags & INPUT_KEYMAP_BY_INDEX) { index = ke->index; } else { error = input_scanc...
1
[ "CWE-703", "CWE-787" ]
linux
cb222aed03d798fc074be55e59d9a112338ee784
121,416,750,715,190,980,000,000,000,000,000,000,000
59
Input: add safety guards to input_set_keycode() If we happen to have a garbage in input device's keycode table with values too big we'll end up doing clear_bit() with offset way outside of our bitmaps, damaging other objects within an input device or even outside of it. Let's add sanity checks to the returned old keyc...
static inline void tcp_prequeue_init(struct tcp_sock *tp) { tp->ucopy.task = NULL; tp->ucopy.len = 0; tp->ucopy.memory = 0; skb_queue_head_init(&tp->ucopy.prequeue); }
0
[ "CWE-416", "CWE-269" ]
linux
bb1fceca22492109be12640d49f5ea5a544c6bb4
116,928,512,287,699,490,000,000,000,000,000,000,000
7
tcp: fix use after free in tcp_xmit_retransmit_queue() When tcp_sendmsg() allocates a fresh and empty skb, it puts it at the tail of the write queue using tcp_add_write_queue_tail() Then it attempts to copy user data into this fresh skb. If the copy fails, we undo the work and remove the fresh skb. Unfortunately, t...
v8::MaybeLocal<v8::Value> GetSubjectAltNameString( Environment* env, const BIOPointer& bio, X509* cert) { int index = X509_get_ext_by_NID(cert, NID_subject_alt_name, -1); if (index < 0) return Undefined(env->isolate()); X509_EXTENSION* ext = X509_get_ext(cert, index); CHECK_NOT_NULL(ext); if...
0
[ "CWE-295" ]
node
466e5415a2b7b3574ab5403acb87e89a94a980d1
138,897,010,698,791,220,000,000,000,000,000,000,000
18
crypto,tls: implement safe x509 GeneralName format This change introduces JSON-compatible escaping rules for strings that include X.509 GeneralName components (see RFC 5280). This non-standard format avoids ambiguities and prevents injection attacks that could previously lead to X.509 certificates being accepted even ...
static void qxl_vm_change_state_handler(void *opaque, int running, RunState state) { PCIQXLDevice *qxl = opaque; if (running) { /* * if qxl_send_events was called from spice server context before * migration ended, qxl_update_irq for these event...
0
[ "CWE-476" ]
qemu
d52680fc932efb8a2f334cc6993e705ed1e31e99
192,950,551,598,433,900,000,000,000,000,000,000,000
17
qxl: check release info object When releasing spice resources in release_resource() routine, if release info object 'ext.info' is null, it leads to null pointer dereference. Add check to avoid it. Reported-by: Bugs SysSec <bugs-syssec@rub.de> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 20190425...
void st_select_lex::print(THD *thd, String *str, enum_query_type query_type) { DBUG_ASSERT(thd); str->append(STRING_WITH_LEN("select ")); if (join && join->cleaned) { /* JOIN already cleaned up so it is dangerous to print items because temporary tables they pointed on could be freed. */ ...
0
[ "CWE-89" ]
server
5ba77222e9fe7af8ff403816b5338b18b342053c
12,690,589,502,390,920,000,000,000,000,000,000,000
169
MDEV-21028 Server crashes in Query_arena::set_query_arena upon SELECT from view if the view has algorithm=temptable it is not updatable, so DEFAULT() for its fields is meaningless, and thus it's NULL or 0/'' for NOT NULL columns.
static void nft_fwd_neigh_eval(const struct nft_expr *expr, struct nft_regs *regs, const struct nft_pktinfo *pkt) { struct nft_fwd_neigh *priv = nft_expr_priv(expr); void *addr = &regs->data[priv->sreg_addr]; int oif = regs->data[priv->sreg_dev]; unsigned int verdict = NF_STOLEN; struct sk_buff *...
0
[ "CWE-269" ]
nf
b1a5983f56e371046dcf164f90bfaf704d2b89f6
22,565,014,169,365,477,000,000,000,000,000,000,000
60
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...
ews_backend_sync_authentication (EEwsBackend *ews_backend, ESource *child_source) { ESourceAuthentication *coll_authentication_extension, *child_authentication_extension; ESource *collection_source; g_return_if_fail (E_IS_EWS_BACKEND (ews_backend)); g_return_if_fail (E_IS_SOURCE (child_source)); collection_...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
215,908,019,433,903,800,000,000,000,000,000,000,000
20
I#27 - SSL Certificates are not validated This depends on https://gitlab.gnome.org/GNOME/evolution-data-server/commit/6672b8236139bd6ef41ecb915f4c72e2a052dba5 too. Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
DeepTiledInputFile::rawTileData (int &dx, int &dy, int &lx, int &ly, char * pixelData, Int64 &pixelDataSize) const { if (!isValidTile (dx, dy, lx, ly)) throw IEX_NAMESPACE::ArgExc ("Tried to read a tile outside " ...
0
[ "CWE-125" ]
openexr
467be80b75642efbbe6bdace558079f68c16acb1
104,486,942,944,329,900,000,000,000,000,000,000,000
114
Fix overflow computing deeptile sample table size (#861) Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
utf16le_is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end) { const UChar* p = *pp; (*pp) += EncLen_UTF16[*(p+1)]; if (*(p+1) == 0) { int c, v; if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) { return TRUE; } c = *p; v = ONIGENC_IS_U...
0
[ "CWE-125" ]
php-src
b6fe458ef9ac1372b60c3d3810b0358e2e20840d
91,349,128,941,983,670,000,000,000,000,000,000,000
29
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code (cherry picked from commit aeec40cb50eca6a97975765e2bacc28a5950cfa9)
static inline void set_max_mapnr(unsigned long limit) { }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
161,348,896,810,716,150,000,000,000,000,000,000,000
1
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
**/ inline double rand(const double val_max=1) { return cimg::rand(0,val_max);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
112,492,017,600,279,850,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
int ber_write_contextual_tag(wStream* s, BYTE tag, int length, BOOL pc) { Stream_Write_UINT8(s, (BER_CLASS_CTXT | BER_PC(pc)) | (BER_TAG_MASK & tag)); return 1 + ber_write_length(s, length); }
0
[ "CWE-476" ]
FreeRDP
0dc22d5a30a1c7d146b2a835b2032668127c33e9
93,156,606,400,829,170,000,000,000,000,000,000,000
5
Fixed a range of BER boundary encoding bugs which would occur when any NLA packet hit the 127 character mark. Removed ber#get_content_length as it was not behaving deterministically.
DECLAREContigPutFunc(putcontig8bitYCbCr44tile) { uint32* cp1 = cp+w+toskew; uint32* cp2 = cp1+w+toskew; uint32* cp3 = cp2+w+toskew; int32 incr = 3*w+4*toskew; (void) y; /* adjust fromskew */ fromskew = (fromskew / 4) * (4*2+2); if ((h & 3) == 0 && (w & 3) == 0) { for...
0
[ "CWE-787" ]
libtiff
4bb584a35f87af42d6cf09d15e9ce8909a839145
69,150,184,260,576,835,000,000,000,000,000,000,000
102
RGBA interface: fix integer overflow potentially causing write heap buffer overflow, especially on 32 bit builds. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16443. Credit to OSS Fuzz
static void *mmap_file(char const *fname) { void *addr; fd_map = open(fname, O_RDWR); if (fd_map < 0 || fstat(fd_map, &sb) < 0) { perror(fname); fail_file(); } if (!S_ISREG(sb.st_mode)) { fprintf(stderr, "not a regular file: %s\n", fname); fail_file(); } addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, ...
0
[ "CWE-264" ]
linux
548acf19234dbda5a52d5a8e7e205af46e9da840
110,848,906,115,665,640,000,000,000,000,000,000,000
22
x86/mm: Expand the exception table logic to allow new handling options Huge amounts of help from Andy Lutomirski and Borislav Petkov to produce this. Andy provided the inspiration to add classes to the exception table with a clever bit-squeezing trick, Boris pointed out how much cleaner it would all be if we just had...
nbd_unlocked_get_private_data (struct nbd_handle *h) { return h->private_data; }
0
[ "CWE-252" ]
libnbd
c79706af4e7475bf58861a143b77b77a54e7a1cd
144,734,179,965,775,600,000,000,000,000,000,000,000
4
api: Add new API nbd_set_pread_initialize() The recent patch series for CVE-2022-0485 demonstrated that when applications using libnbd are not careful about error checking, the difference on whether a data leak is at least sanitized (all zeroes, partial reads, or data leftover from a prior read) vs. a dangerous inform...
bool run_set_statement_if_requested(THD *thd, LEX *lex) { if (!lex->stmt_var_list.is_empty() && !thd->slave_thread) { Query_arena backup; DBUG_PRINT("info", ("SET STATEMENT %d vars", lex->stmt_var_list.elements)); lex->old_var_list.empty(); List_iterator_fast<set_var_base> it(lex->stmt_var_list); ...
0
[]
server
ba4927e520190bbad763bb5260ae154f29a61231
231,583,606,422,985,330,000,000,000,000,000,000,000
128
MDEV-19398: Assertion `item1->type() == Item::FIELD_ITEM ... Window Functions code tries to minimize the number of times it needs to sort the select's resultset by finding "compatible" OVER (PARTITION BY ... ORDER BY ...) clauses. This employs compare_order_elements(). That function assumed that the order expressions...
bool AuthorizationSessionImpl::isAuthorizedForActionsOnNamespace(const NamespaceString& ns, const ActionSet& actions) { return isAuthorizedForPrivilege(Privilege(ResourcePattern::forExactNamespace(ns), actions)); }
0
[ "CWE-613" ]
mongo
e55d6e2292e5dbe2f97153251d8193d1cc89f5d7
166,975,117,887,451,090,000,000,000,000,000,000,000
4
SERVER-38984 Validate unique User ID on UserCache hit
Symbol* Binary::add_local_symbol(uint64_t address, const std::string& name) { Symbol* symbol = nullptr; auto sym = std::make_unique<Symbol>(); sym->category_ = Symbol::CATEGORY::LOCAL; sym->origin_ = SYMBOL_ORIGINS::SYM_ORIGIN_LC_SYMTAB; sym->numberof_sections_ = 0; sym->description_ ...
0
[ "CWE-703" ]
LIEF
7acf0bc4224081d4f425fcc8b2e361b95291d878
272,792,758,769,406,330,000,000,000,000,000,000,000
15
Resolve #764
int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length) { int frg_cnt = 0; skb_frag_t *frag = NULL; struct page *page = NULL; int copy, left; int offset = 0; int ret; do { /* Retu...
0
[]
linux
e89e9cf539a28df7d0eb1d0a545368e9920b34ac
272,388,274,174,741,530,000,000,000,000,000,000,000
60
[IPv4/IPv6]: UFO Scatter-gather approach Attached is kernel patch for UDP Fragmentation Offload (UFO) feature. 1. This patch incorporate the review comments by Jeff Garzik. 2. Renamed USO as UFO (UDP Fragmentation Offload) 3. udp sendfile support with UFO This patches uses scatter-gather feature of skb to generate l...
TEST_F(QuicServerTransportTest, SwitchServerCidsNoOtherIds) { auto& conn = server->getNonConstConn(); EXPECT_EQ(conn.retireAndSwitchPeerConnectionIds(), false); EXPECT_EQ(conn.pendingEvents.frames.size(), 0); EXPECT_EQ(conn.peerConnectionIds.size(), 1); }
0
[ "CWE-617", "CWE-703" ]
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
24,955,416,925,691,153,000,000,000,000,000,000,000
7
Close connection if we derive an extra 1-rtt write cipher Summary: Fixes CVE-2021-24029 Reviewed By: mjoras, lnicco Differential Revision: D26613890 fbshipit-source-id: 19bb2be2c731808144e1a074ece313fba11f1945
TEST(RouterFilterUtilityTest, SetTimeoutHeaders) { { NiceMock<MockRouteEntry> route; Http::TestRequestHeaderMapImpl headers; FilterUtility::TimeoutData timeout; timeout.global_timeout_ = std::chrono::milliseconds(200); timeout.per_try_timeout_ = std::chrono::milliseconds(0); FilterUtility::se...
0
[ "CWE-703" ]
envoy
5bf9b0f1e7f247a4eee7180849cb0823926f7fff
255,914,644,773,912,400,000,000,000,000,000,000,000
96
[1.21] CVE-2022-21655 Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
static NTSTATUS cli_connect_sock_recv(struct tevent_req *req, int *pfd, uint16_t *pport) { struct cli_connect_sock_state *state = tevent_req_data( req, struct cli_connect_sock_state); NTSTATUS status; if (tevent_req_is_nterror(req, &status)) { return status; } *pfd = state->fd; *pport = state->port...
0
[ "CWE-94" ]
samba
94295b7aa22d2544af5323bca70d3dcb97fd7c64
276,811,201,469,890,560,000,000,000,000,000,000,000
14
CVE-2016-2019: s3:libsmb: add comment regarding smbXcli_session_is_guest() with mandatory signing BUG: https://bugzilla.samba.org/show_bug.cgi?id=11860 Signed-off-by: Stefan Metzmacher <metze@samba.org>
Error Box_url::parse(BitstreamRange& range) { parse_full_box_header(range); m_location = range.read_string(); return range.get_error(); }
0
[ "CWE-703" ]
libheif
2710c930918609caaf0a664e9c7bc3dce05d5b58
36,291,652,175,160,833,000,000,000,000,000,000,000
8
force fraction to a limited resolution to finally solve those pesky numerical edge cases
static void vrend_update_scissor_state(struct vrend_sub_context *sub_ctx) { struct pipe_scissor_state *ss; GLint y; GLuint idx; unsigned mask = sub_ctx->scissor_state_dirty; while (mask) { idx = u_bit_scan(&mask); if (idx >= PIPE_MAX_VIEWPORTS) { vrend_report_buffer_error(sub_ctx->p...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
41,699,862,078,099,783,000,000,000,000,000,000,000
23
vrend: Add test to resource OOB write and fix it v2: Also check that no depth != 1 has been send when none is due Closes: #250 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
bool Item_subselect::fix_fields(THD *thd_param, Item **ref) { char const *save_where= thd_param->where; uint8 uncacheable; bool res; thd= thd_param; DBUG_ASSERT(unit->thd == thd); status_var_increment(thd_param->status_var.feature_subquery); DBUG_ASSERT(fixed == 0); engine->set_thd((thd= thd_param))...
0
[ "CWE-89" ]
server
3c209bfc040ddfc41ece8357d772547432353fd2
193,748,442,790,990,500,000,000,000,000,000,000,000
98
MDEV-25994: Crash with union of my_decimal type in ORDER BY clause When single-row subquery fails with "Subquery reutrns more than 1 row" error, it will raise an error and return NULL. On the other hand, Item_singlerow_subselect sets item->maybe_null=0 for table-less subqueries like "(SELECT not_null_value)" (*) Th...
plperl_inline_callback(void *arg) { errcontext("PL/Perl anonymous code block"); }
0
[ "CWE-264" ]
postgres
537cbd35c893e67a63c59bc636c3e888bd228bc7
153,308,397,904,276,460,000,000,000,000,000,000,000
4
Prevent privilege escalation in explicit calls to PL validators. The primary role of PL validators is to be called implicitly during CREATE FUNCTION, but they are also normal functions that a user can call explicitly. Add a permissions check to each validator to ensure that a user cannot use explicit validator calls ...
void CoreUserInputHandler::handleMsg(const BufferInfo &bufferInfo, const QString &msg) { Q_UNUSED(bufferInfo); if (!msg.contains(' ')) return; QString target = msg.section(' ', 0, 0); QByteArray encMsg = userEncode(target, msg.section(' ', 1)); #ifdef HAVE_QCA2 putPrivmsg(serverEncode(targ...
1
[ "CWE-399" ]
quassel
b5e38970ffd55e2dd9f706ce75af9a8d7730b1b8
96,090,654,480,204,370,000,000,000,000,000,000,000
15
Improve the message-splitting algorithm for PRIVMSG and CTCP This introduces a new message splitting algorithm based on QTextBoundaryFinder. It works by first starting with the entire message to be sent, encoding it, and checking to see if it is over the maximum message length. If it is, it uses QTBF to find the wor...
init_decompression(struct archive_read *a, struct _7zip *zip, const struct _7z_coder *coder1, const struct _7z_coder *coder2) { int r; zip->codec = coder1->codec; zip->codec2 = -1; switch (zip->codec) { case _7Z_COPY: case _7Z_BZ2: case _7Z_DEFLATE: case _7Z_PPMD: if (coder2 != NULL) { if (coder2->co...
0
[ "CWE-125" ]
libarchive
65a23f5dbee4497064e9bb467f81138a62b0dae1
6,438,359,954,045,534,000,000,000,000,000,000,000
294
7zip: fix crash when parsing certain archives Fuzzing with CRCs disabled revealed that a call to get_uncompressed_data() would sometimes fail to return at least 'minimum' bytes. This can cause the crc32() invocation in header_bytes to read off into invalid memory. A specially crafted archive can use this to cause a c...
ex_insn_addr(const struct exception_table_entry *x) { return (unsigned long)&x->insn + x->insn; }
0
[ "CWE-264" ]
linux
548acf19234dbda5a52d5a8e7e205af46e9da840
154,373,708,503,100,590,000,000,000,000,000,000,000
4
x86/mm: Expand the exception table logic to allow new handling options Huge amounts of help from Andy Lutomirski and Borislav Petkov to produce this. Andy provided the inspiration to add classes to the exception table with a clever bit-squeezing trick, Boris pointed out how much cleaner it would all be if we just had...
static int adjust_tp(struct atm_trafprm *tp, unsigned char aal) { int max_sdu; if (!tp->traffic_class) return 0; switch (aal) { case ATM_AAL0: max_sdu = ATM_CELL_SIZE-1; break; case ATM_AAL34: max_sdu = ATM_MAX_AAL34_PDU; break; default: pr_warning("AAL problems ... (%d)\n", aal); /* fall through *...
0
[ "CWE-20", "CWE-269" ]
linux
f3d3342602f8bcbf37d7c46641cb9bca7618eb1c
2,957,859,293,233,192,000,000,000,000,000,000,000
27
net: rework recvmsg handler msg_name and msg_namelen logic This patch now always passes msg->msg_namelen as 0. recvmsg handlers must set msg_namelen to the proper size <= sizeof(struct sockaddr_storage) to return msg_name to the user. This prevents numerous uninitialized memory leaks we had in the recvmsg handlers an...
free_deregistered_data (gpointer data, gpointer user_data _U_) { g_free (data); }
0
[ "CWE-401" ]
wireshark
a9fc769d7bb4b491efb61c699d57c9f35269d871
60,987,378,938,341,920,000,000,000,000,000,000,000
4
epan: Fix a memory leak. Make sure _proto_tree_add_bits_ret_val allocates a bits array using the packet scope, otherwise we leak memory. Fixes #17032.
void cgit_vprint_error(const char *fmt, va_list ap) { va_list cp; html("<div class='error'>"); va_copy(cp, ap); html_vtxtf(fmt, cp); va_end(cp); html("</div>\n"); }
0
[]
cgit
513b3863d999f91b47d7e9f26710390db55f9463
155,062,210,170,017,290,000,000,000,000,000,000,000
9
ui-shared: prevent malicious filename from injecting headers
get_external_key_retries(struct sc_card *card, unsigned char kid, unsigned char *retries) { int r; struct sc_apdu apdu; unsigned char random[16] = { 0 }; r = sc_get_challenge(card, random, 8); LOG_TEST_RET(card->ctx, r, "get challenge get_external_key_retries failed"); sc_format_apdu(card, &apdu, SC_APDU_CASE_1...
0
[ "CWE-415", "CWE-119" ]
OpenSC
360e95d45ac4123255a4c796db96337f332160ad
70,085,580,604,630,860,000,000,000,000,000,000,000
27
fixed out of bounds writes Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting the problems.
window_select_shape_events (GSWindow *window) { #ifdef HAVE_SHAPE_EXT unsigned long events; int shape_error_base; gdk_error_trap_push (); if (XShapeQueryExtension (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), &window->priv->shape_event_base, &shape_error_base)) { ...
0
[ "CWE-284" ]
cinnamon-screensaver
da7af55f1fa966c52e15cc288d4f8928eca8cc9f
78,259,456,656,284,620,000,000,000,000,000,000,000
16
Workaround gtk3 bug, don't allow GtkWindow to handle popup_menu.
ldp_pdu_print(netdissect_options *ndo, register const u_char *pptr) { const struct ldp_common_header *ldp_com_header; const struct ldp_msg_header *ldp_msg_header; const u_char *tptr,*msg_tptr; u_short tlen; u_short pdu_len,msg_len,msg_type,msg_tlen; int hexdump,processed; ldp_...
1
[ "CWE-125" ]
tcpdump
aa5c6b710dfd8020d2c908d6b3bd41f1da719b3b
88,213,586,602,458,170,000,000,000,000,000,000,000
132
(for 4.9.3) CVE-2018-14461/LDP: Fix a bounds check In ldp_tlv_print(), the FT Session TLV length must be 12, not 8 (RFC3479) This fixes a buffer over-read discovered by Konrad Rieck and Bhargava Shastry. Add a test using the capture file supplied by the reporter(s). Moreover: Add and use tstr[]. Add a comment.
void bpf_jit_prog_release_other(struct bpf_prog *fp, struct bpf_prog *fp_other) { /* We have to repoint aux->prog to self, as we don't * know whether fp here is the clone or the original. */ fp->aux->prog = fp; bpf_prog_clone_free(fp_other); }
0
[ "CWE-120" ]
linux
050fad7c4534c13c8eb1d9c2ba66012e014773cb
10,502,584,426,034,164,000,000,000,000,000,000,000
8
bpf: fix truncated jump targets on heavy expansions Recently during testing, I ran into the following panic: [ 207.892422] Internal error: Accessing user space memory outside uaccess.h routines: 96000004 [#1] SMP [ 207.901637] Modules linked in: binfmt_misc [...] [ 207.966530] CPU: 45 PID: 2256 Comm: test_ve...
bit_and(PG_FUNCTION_ARGS) { VarBit *arg1 = PG_GETARG_VARBIT_P(0); VarBit *arg2 = PG_GETARG_VARBIT_P(1); VarBit *result; int len, bitlen1, bitlen2, i; bits8 *p1, *p2, *r; bitlen1 = VARBITLEN(arg1); bitlen2 = VARBITLEN(arg2); if (bitlen1 != bitlen2) ereport(ERROR, (err...
0
[ "CWE-703", "CWE-189" ]
postgres
31400a673325147e1205326008e32135a78b4d8a
141,113,275,517,656,290,000,000,000,000,000,000,000
35
Predict integer overflow to avoid buffer overruns. Several functions, mostly type input functions, calculated an allocation size such that the calculation wrapped to a small positive value when arguments implied a sufficiently-large requirement. Writes past the end of the inadvertent small allocation followed shortly...
void sendReplyToClient(connection *conn) { client *c = connGetPrivateData(conn); writeToClient(c,1); }
0
[ "CWE-770" ]
redis
5674b0057ff2903d43eaff802017eddf37c360f8
17,075,351,359,346,460,000,000,000,000,000,000,000
4
Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) This change sets a low limit for multibulk and bulk length in the protocol for unauthenticated connections, so that they can't easily cause redis to allocate massive amounts of memory by sending just a few characters on the network. T...
void NumberFormatTest::expectCurrency(NumberFormat& nf, const Locale& locale, double value, const UnicodeString& string) { UErrorCode ec = U_ZERO_ERROR; DecimalFormat& fmt = * (DecimalFormat*) &nf; const UChar DEFAULT_CURR[] = {45/*-*/,0}; UChar curr[4]; u_strcp...
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
282,891,844,453,077,300,000,000,000,000,000,000,000
40
ICU-20246 Fixing another integer overflow in number parsing.
splice_stream_with_progress (GInputStream *in, GOutputStream *out, GCancellable *cancellable, GFileProgressCallback progress_callback, gpointer progress_callb...
0
[ "CWE-362" ]
glib
d8f8f4d637ce43f8699ba94c9b7648beda0ca174
33,244,884,185,994,667,000,000,000,000,000,000,000
114
gfile: Limit access to files when copying file_copy_fallback creates new files with default permissions and set the correct permissions after the operation is finished. This might cause that the files can be accessible by more users during the operation than expected. Use G_FILE_CREATE_PRIVATE for the new files to lim...
static inline int is_valid_mmap(u64 token) { return (HFI1_MMAP_TOKEN_GET(MAGIC, token) == HFI1_MMAP_MAGIC); }
0
[ "CWE-416" ]
linux
3d2a9d642512c21a12d19b9250e7a835dcb41a79
205,089,436,361,385,300,000,000,000,000,000,000,000
4
IB/hfi1: Ensure correct mm is used at all times Two earlier bug fixes have created a security problem in the hfi1 driver. One fix aimed to solve an issue where current->mm was not valid when closing the hfi1 cdev. It attempted to do this by saving a cached value of the current->mm pointer at file open time. This is a ...
struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb, u32 features) { struct sk_buff *segs = ERR_PTR(-EINVAL); unsigned int mss; int offset; __wsum csum; mss = skb_shinfo(skb)->gso_size; if (unlikely(skb->len <= mss)) goto out; if (skb_gso_ok(skb, features | NETIF_F_GSO_ROBUST)) { /* Packet is from an unt...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
6,206,510,690,073,357,000,000,000,000,000,000,000
41
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
BSONObj operand2() { return BSON("" << 5); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
121,443,907,050,661,980,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
void libxsmm_sparse_csc_reader( libxsmm_generated_code* io_generated_code, const char* i_csc_file_in, unsigned int** o_row_idx, unsigned int** o_column_idx, doubl...
0
[ "CWE-119", "CWE-787" ]
libxsmm
151481489192e6d1997f8bde52c5c425ea41741d
140,983,365,412,809,230,000,000,000,000,000,000,000
124
Issue #287: made CSR/CSC readers more robust against invalid input (case #1).
get_buffcont( buffheader_T *buffer, int dozero) // count == zero is not an error { long_u count = 0; char_u *p = NULL; char_u *p2; char_u *str; buffblock_T *bp; // compute the total length of the string for (bp = buffer->bh_first.b_next; bp != NULL; bp = bp->b_...
0
[ "CWE-125" ]
vim
a4bc2dd7cccf5a4a9f78b58b6f35a45d17164323
85,472,208,984,311,370,000,000,000,000,000,000,000
24
patch 8.2.4233: crash when recording and using Select mode Problem: Crash when recording and using Select mode. Solution: When deleting the last recorded character check there is something to delete.
View_creation_ctx * View_creation_ctx::create(THD *thd, TABLE_LIST *view) { View_creation_ctx *ctx= new (thd->mem_root) View_creation_ctx(thd); /* Throw a warning if there is NULL cs name. */ if (!view->view_client_cs_name.str || !view->view_connection_cl_name...
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
274,036,428,740,596,830,000,000,000,000,000,000,000
53
MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob the bug was that in_vector array in Item_func_in was allocated in the statement arena, not in the table->expr_arena. revert part of the 5acd391e8b2d. Instead, change the arena correctly in fix_all_session_vcol_exprs(). Remove TABLE_ARENA, t...
CharString *Formattable::internalGetCharString(UErrorCode &status) { if(fDecimalStr == NULL) { if (fDecimalQuantity == NULL) { // No decimal number for the formattable yet. Which means the value was // set directly by the user as an int, int64 or double. If the value came // from par...
1
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
178,923,371,622,098,230,000,000,000,000,000,000,000
33
ICU-20246 Fixing another integer overflow in number parsing.
static void kvmclock_reset(struct kvm_vcpu *vcpu) { kvm_gfn_to_pfn_cache_destroy(vcpu->kvm, &vcpu->arch.pv_time); vcpu->arch.time = 0; }
0
[ "CWE-476" ]
linux
fee060cd52d69c114b62d1a2948ea9648b5131f9
57,647,732,993,717,800,000,000,000,000,000,000,000
5
KVM: x86: avoid calling x86 emulator without a decoded instruction Whenever x86_decode_emulated_instruction() detects a breakpoint, it returns the value that kvm_vcpu_check_breakpoint() writes into its pass-by-reference second argument. Unfortunately this is completely bogus because the expected outcome of x86_decode...
static uint8_t avrcp_handle_get_play_status(struct avrcp *session, struct avrcp_header *pdu, uint8_t transaction) { struct avrcp_player *player = target_get_player(session); uint16_t len = ntohs(pdu->params_len); uint32_t position; uint32_t duration; if (len != 0) { pdu->params_len = htons(1); pdu...
0
[ "CWE-200" ]
bluez
e2b0f0d8d63e1223bb714a9efb37e2257818268b
16,505,520,710,786,870,000,000,000,000,000,000,000
29
avrcp: Fix not checking if params_len match number of received bytes This makes sure the number of bytes in the params_len matches the remaining bytes received so the code don't end up accessing invalid memory.
bool Config::have(ParmStr key) const { PosibErr<const KeyInfo *> pe = keyinfo(key); if (pe.has_err()) {pe.ignore_err(); return false;} return lookup(pe.data->name); }
0
[ "CWE-125" ]
aspell
80fa26c74279fced8d778351cff19d1d8f44fe4e
299,214,850,962,219,800,000,000,000,000,000,000,000
6
Fix various bugs found by OSS-Fuze.
R_API void r_bin_java_print_synthetic_attr_summary(RBinJavaAttrInfo *attr) { if (attr == NULL) { eprintf ("Attempting to print an invalid RBinJavaAttrInfo *Synthetic.\n"); return; } Eprintf ("Synthetic Attribute Information:\n"); Eprintf (" Attribute Offset: 0x%08"PFMT64x "\n", attr->file_offset); Eprintf (" ...
0
[ "CWE-787" ]
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
37,637,662,817,357,450,000,000,000,000,000,000,000
11
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
void vhost_work_queue(struct vhost_dev *dev, struct vhost_work *work) { unsigned long flags; spin_lock_irqsave(&dev->work_lock, flags); if (list_empty(&work->node)) { list_add_tail(&work->node, &dev->work_list); work->queue_seq++; wake_up_process(dev->worker); } spin_unlock_irqrestore(&dev->work_lock, flags...
0
[]
linux-2.6
bd97120fc3d1a11f3124c7c9ba1d91f51829eb85
317,410,949,102,574,600,000,000,000,000,000,000,000
12
vhost: fix length for cross region descriptor If a single descriptor crosses a region, the second chunk length should be decremented by size translated so far, instead it includes the full descriptor length. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: D...
sync_cookie_create(Slapi_PBlock *pb, Sync_Cookie *client_cookie) { Sync_CallBackData scbd = {0}; int rc = 0; Sync_Cookie *sc = (Sync_Cookie *)slapi_ch_calloc(1, sizeof(Sync_Cookie)); scbd.cb_err = SYNC_CALLBACK_PREINIT; rc = sync_cookie_get_change_info(&scbd); if (rc == 0) { /* If the ...
0
[ "CWE-476" ]
389-ds-base
d7eef2fcfbab2ef8aa6ee0bf60f0a9b16ede66e0
327,436,226,515,446,850,000,000,000,000,000,000,000
34
Issue 4711 - SIGSEV with sync_repl (#4738) Bug description: sync_repl sends back entries identified with a unique identifier that is 'nsuniqueid'. If 'nsuniqueid' is missing, then it may crash Fix description: Check a nsuniqueid is available else returns OP_ERR relates: https://github.com/389ds/389-ds-ba...
int ssl_init( ssl_context *ssl ) { int ret; int len = SSL_BUFFER_LEN; memset( ssl, 0, sizeof( ssl_context ) ); /* * Sane defaults */ ssl->min_major_ver = SSL_MIN_MAJOR_VERSION; ssl->min_minor_ver = SSL_MIN_MINOR_VERSION; ssl->max_major_ver = SSL_MAX_MAJOR_VERSION; ssl->max_mi...
0
[ "CWE-119" ]
mbedtls
c988f32adde62a169ba340fee0da15aecd40e76e
86,553,265,990,532,710,000,000,000,000,000,000,000
78
Added max length checking of hostname
add_cipher_name_to_ary(const OBJ_NAME *name, VALUE ary) { rb_ary_push(ary, rb_str_new2(name->name)); return NULL; }
0
[ "CWE-326", "CWE-310", "CWE-703" ]
openssl
8108e0a6db133f3375608303fdd2083eb5115062
255,051,342,800,021,800,000,000,000,000,000,000,000
5
cipher: don't set dummy encryption key in Cipher#initialize Remove the encryption key initialization from Cipher#initialize. This is effectively a revert of r32723 ("Avoid possible SEGV from AES encryption/decryption", 2011-07-28). r32723, which added the key initialization, was a workaround for Ruby Bug #2768. For s...
njs_vm_retval_set(njs_vm_t *vm, const njs_value_t *value) { vm->retval = *value; }
0
[ "CWE-416" ]
njs
6a07c2156a07ef307b6dcf3c2ca8571a5f1af7a6
121,461,084,884,912,130,000,000,000,000,000,000,000
4
Fixed recursive async function calls. Previously, PromiseCapability record was stored (function->context) directly in function object during a function invocation. This is not correct, because PromiseCapability record should be linked to current execution context. As a result, function->context is overwritten with c...