func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
hash_semantic_type_hasher (void const *m, size_t tablesize) { return hash_semantic_type (m, tablesize); }
0
[]
bison
b7aab2dbad43aaf14eebe78d54aafa245a000988
142,643,383,992,575,420,000,000,000,000,000,000,000
4
fix: crash when redefining the EOF token Reported by Agency for Defense Development. https://lists.gnu.org/r/bug-bison/2020-08/msg00008.html On an empty such as %token FOO BAR FOO 0 %% input: %empty we crash because when we find FOO 0, we decrement ntokens (since FOO was discovered...
NotificationPresenter* ElectronBrowserClient::GetNotificationPresenter() { if (!notification_presenter_) { notification_presenter_.reset(NotificationPresenter::Create()); } return notification_presenter_.get(); }
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
35,700,649,761,565,860,000,000,000,000,000,000,000
6
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33344) * fix: ensure ElectronBrowser mojo service is only bound to authorized render frames Notes: no-notes * refactor: extract electron API IPC to its own mojo interface * fix: just check main frame not primary main frame ...
static int temporal_failure_on_header_callback( nghttp2_session *session, const nghttp2_frame *frame, const uint8_t *name, size_t namelen, const uint8_t *value, size_t valuelen, uint8_t flags, void *user_data) { on_header_callback(session, frame, name, namelen, value, valuelen, flags, ...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
105,468,521,149,826,040,000,000,000,000,000,000,000
8
Add nghttp2_option_set_max_outbound_ack
qemuProcessLookupPTYs(virDomainChrDefPtr *devices, int count, GHashTable *info) { size_t i; for (i = 0; i < count; i++) { g_autofree char *id = NULL; virDomainChrDefPtr chr = devices[i]; if (chr->source->type == VIR_DOMAIN_CHR_TYPE_PTY) { ...
0
[ "CWE-416" ]
libvirt
1ac703a7d0789e46833f4013a3876c2e3af18ec7
56,918,005,305,398,480,000,000,000,000,000,000,000
38
qemu: Add missing lock in qemuProcessHandleMonitorEOF qemuMonitorUnregister will be called in multiple threads (e.g. threads in rpc worker pool and the vm event thread). In some cases, it isn't protected by the monitor lock, which may lead to call g_source_unref more than one time and a use-after-free problem eventua...
ZEND_API const char *get_active_class_name(const char **space) /* {{{ */ { zend_function *func; if (!zend_is_executing()) { if (space) { *space = ""; } return ""; } func = EG(current_execute_data)->func; switch (func->type) { case ZEND_USER_FUNCTION: case ZEND_INTERNAL_FUNCTION: { zend_class_en...
0
[ "CWE-134" ]
php-src
b101a6bbd4f2181c360bd38e7683df4a03cba83e
327,703,873,550,517,600,000,000,000,000,000,000,000
30
Use format string
static int getlocalattribute (LexState *ls) { /* ATTRIB -> ['<' Name '>'] */ if (testnext(ls, '<')) { const char *attr = getstr(str_checkname(ls)); checknext(ls, '>'); if (strcmp(attr, "const") == 0) return RDKCONST; /* read-only variable */ else if (strcmp(attr, "close") == 0) return R...
0
[ "CWE-125" ]
lua
1f3c6f4534c6411313361697d98d1145a1f030fa
200,459,531,955,258,940,000,000,000,000,000,000,000
15
Bug: Lua can generate wrong code when _ENV is <const>
void SWFShape_useVersion(SWFShape shape, int version) { if(shape->useVersion >= version) return; if(version > SWF_SHAPE4) return; shape->useVersion = version; }
0
[ "CWE-20", "CWE-476" ]
libming
6e76e8c71cb51c8ba0aa9737a636b9ac3029887f
89,206,885,179,382,140,000,000,000,000,000,000,000
8
SWFShape_setLeftFillStyle: prevent fill overflow
GC_INNER void GC_read_dirty(void) { /* lazily enable dirty bits on newly added heap sects */ { static int onhs = 0; int nhs = GC_n_heap_sects; for(; onhs < nhs; onhs++) { PCR_VD_WriteProtectEnable( GC_heap_sects[onhs].hs_start, GC_heap_...
0
[ "CWE-119" ]
bdwgc
7292c02fac2066d39dd1bcc37d1a7054fd1e32ee
234,189,036,052,264,200,000,000,000,000,000,000,000
18
Fix malloc routines to prevent size value wrap-around See issue #135 on Github. * allchblk.c (GC_allochblk, GC_allochblk_nth): Use OBJ_SZ_TO_BLOCKS_CHECKED instead of OBJ_SZ_TO_BLOCKS. * malloc.c (GC_alloc_large): Likewise. * alloc.c (GC_expand_hp_inner): Type of "bytes" local variable changed from word to size_t; ca...
X509 *d2i_X509_fp(FILE *fp, X509 **x509) { return ASN1_item_d2i_fp(ASN1_ITEM_rptr(X509), fp, x509); }
0
[ "CWE-310" ]
openssl
684400ce192dac51df3d3e92b61830a6ef90be3e
95,171,376,891,883,780,000,000,000,000,000,000,000
4
Fix various certificate fingerprint issues. By using non-DER or invalid encodings outside the signed portion of a certificate the fingerprint can be changed without breaking the signature. Although no details of the signed portion of the certificate can be changed this can cause problems with some applications: e.g. t...
int usb_reset_configuration(struct usb_device *dev) { int i, retval; struct usb_host_config *config; struct usb_hcd *hcd = bus_to_hcd(dev->bus); if (dev->state == USB_STATE_SUSPENDED) return -EHOSTUNREACH; /* caller must have locked the device and must own * the usb bus readlock (so driver bindings are sta...
0
[ "CWE-119", "CWE-787" ]
linux
2e1c42391ff2556387b3cb6308b24f6f65619feb
205,121,653,266,731,130,000,000,000,000,000,000,000
100
USB: core: harden cdc_parse_cdc_header Andrey Konovalov reported a possible out-of-bounds problem for the cdc_parse_cdc_header function. He writes: It looks like cdc_parse_cdc_header() doesn't validate buflen before accessing buffer[1], buffer[2] and so on. The only check present is while (buflen > 0). So fix thi...
load_gif( unsigned char /* in */ *buffer, int /* in */ size, unsigned char /* in */ *bgcolor, int /* in */ reqcolors, int /* in */ fuse_palette, int /* in */ fstatic, int /* in */ loop_control, vo...
0
[ "CWE-703", "CWE-787" ]
libsixel
7808a06b88c11dbc502318cdd51fa374f8cd47ee
65,072,762,838,685,025,000,000,000,000,000,000,000
102
gif loader: check LZW code size (Issue #75)
mysql_real_query(MYSQL *mysql, const char *query, ulong length) { DBUG_ENTER("mysql_real_query"); DBUG_PRINT("enter",("handle: 0x%lx", (long) mysql)); DBUG_PRINT("query",("Query = '%-.4096s'",query)); if (mysql_send_query(mysql,query,length)) DBUG_RETURN(1); DBUG_RETURN((int) (*mysql->methods->read_query...
0
[ "CWE-254" ]
server
f0d774d48416bb06063184380b684380ca005a41
289,283,540,666,088,170,000,000,000,000,000,000,000
10
MDEV-9212 ssl-validate-cert incorrect hostname check Reimplement ssl_verify_server_cert() using the logic from https://wiki.openssl.org/index.php/Hostname_validation The bug was discovered by Alex Gaynor.
static pj_status_t respond_digest( pj_pool_t *pool, pjsip_digest_credential *cred, const pjsip_digest_challenge *chal, const pj_str_t *uri, const pjsip_cred_info *cred_info, const pj_str_t *cnonce, pj_uint32_t nc, const pj_str_t *method) { const pj_str_t pjsip_AKAv1_...
1
[ "CWE-120", "CWE-787" ]
pjproject
d27f79da11df7bc8bb56c2f291d71e54df8d2c47
51,162,783,586,984,510,000,000,000,000,000,000,000
113
Use PJ_ASSERT_RETURN() on pjsip_auth_create_digest() and pjsua_init_tpselector() (#3009) * Use PJ_ASSERT_RETURN on pjsip_auth_create_digest * Use PJ_ASSERT_RETURN on pjsua_init_tpselector() * Fix incorrect check. * Add return value to pjsip_auth_create_digest() and pjsip_auth_create_digestSHA256() * Modifi...
int Monitor::write_fsid(MonitorDBStore::TransactionRef t) { ostringstream ss; ss << monmap->get_fsid() << "\n"; string us = ss.str(); bufferlist b; b.append(us); t->put(MONITOR_NAME, "cluster_uuid", b); return 0; }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
85,120,108,654,999,240,000,000,000,000,000,000,000
12
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { TValue v; if (l_strton(obj, &v)) /* does 'obj' point to a numerical string? */ obj = &v; /* change it to point to its corresponding number */ return luaV_tointegerns(obj, p, mode); }
0
[ "CWE-416", "CWE-125", "CWE-787" ]
lua
eb41999461b6f428186c55abd95f4ce1a76217d5
177,717,190,252,865,730,000,000,000,000,000,000,000
6
Fixed bugs of stack reallocation x GC Macro 'checkstackGC' was doing a GC step after resizing the stack; the GC could shrink the stack and undo the resize. Moreover, macro 'checkstackp' also does a GC step, which could remove the preallocated CallInfo when calling a function. (Its name has been changed to 'checkstackG...
ZrtpPacketGoClear* ZRtp::prepareGoClear(uint32_t errMsg) { ZrtpPacketGoClear* gclr = &zrtpGoClear; gclr->clrClearHmac(); return gclr; }
0
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
329,507,393,768,268,400,000,000,000,000,000,000,000
5
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
repl::OpTime OpObserverMock::preRenameCollection(OperationContext* opCtx, const NamespaceString& fromCollection, const NamespaceString& toCollection, OptionalCollectionUUID ...
0
[ "CWE-20" ]
mongo
35c1b1f588f04926a958ad2fe4d9c59d79f81e8b
71,577,574,090,013,320,000,000,000,000,000,000,000
13
SERVER-35636 renameCollectionForApplyOps checks for complete namespace
rsvg_new_filter_primitive_offset (const char *element_name, RsvgNode *parent) { RsvgFilterPrimitiveOffset *filter; filter = g_new0 (RsvgFilterPrimitiveOffset, 1); filter->super.in = g_string_new ("none"); filter->super.result = g_string_new ("none"); filter->dx = rsvg_length_parse ("0", LENGTH_DIR_...
0
[ "CWE-369" ]
librsvg
ecf9267a24b2c3c0cd211dbdfa9ef2232511972a
131,784,586,667,344,190,000,000,000,000,000,000,000
19
bgo#783835 - Don't divide by zero in box_blur_line() for gaussian blurs We were making the decision to use box blurs, instead of a true Gaussian kernel, based on the size of *both* x and y dimensions. Do them individually instead.
file_find(const char *path, /* I - Path "dir;dir;dir" */ const char *s) /* I - File to find */ { int i; /* Looping var */ char *temp; /* Current position in filename */ const char *sptr; /* Pointer into "s" */ int ch; /* Quoted character */ char basename[HTTP_MAX_URI]; /* Base (unquote...
0
[ "CWE-476", "CWE-415", "CWE-787" ]
htmldoc
369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc
319,186,129,434,274,600,000,000,000,000,000,000,000
137
Fix JPEG error handling (Issue #415)
setGlobalEdgeAttr(Agraph_t * g, char *name, char *value, userdata_t * ud) { if (strncmp(name, EDGELBL, ELBLLEN)) fprintf(stderr, "Warning: global edge attribute %s in graph %s does not begin with the prefix %s\n", name, agnameof(g), EDGELBL); else name += ELBLLEN; if ((g != root) && !agattr(root, AGED...
0
[ "CWE-476" ]
graphviz
839085f8026afd6f6920a0c31ad2a9d880d97932
68,705,341,230,557,720,000,000,000,000,000,000,000
12
attempted fix for null pointer deference on malformed input
void mobi_free_opf_guide(OPFguide *guide) { if (guide) { mobi_free_opf_struct_3el(guide->reference, type, title, href); free(guide); } }
0
[ "CWE-476" ]
libmobi
c0699c8693c47f14a2e57dec7292e862ac7adf9c
311,781,065,484,424,480,000,000,000,000,000,000,000
6
Fix undefined behavior when passing null to strdup
int cap_ptrace_access_check(struct task_struct *child, unsigned int mode) { int ret = 0; const struct cred *cred, *child_cred; rcu_read_lock(); cred = current_cred(); child_cred = __task_cred(child); if (cred->user->user_ns == child_cred->user->user_ns && cap_issubset(child_cred->cap_permitted, cred->cap_pe...
0
[ "CWE-264" ]
linux
259e5e6c75a910f3b5e656151dc602f53f9d7548
211,676,141,839,199,330,000,000,000,000,000,000,000
18
Add PR_{GET,SET}_NO_NEW_PRIVS to prevent execve from granting privs With this change, calling prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) disables privilege granting operations at execve-time. For example, a process will not be able to execute a setuid binary to change their uid or gid if this bit is set. The same is t...
int ha_partition::index_init(uint inx, bool sorted) { int error= 0; handler **file; DBUG_ENTER("ha_partition::index_init"); DBUG_PRINT("info", ("inx %u sorted %u", inx, sorted)); active_index= inx; m_part_spec.start_part= NO_CURRENT_PART_ID; m_start_key.length= 0; m_ordered= sorted; m_ordered_scan_on...
0
[]
server
f305a7ce4bccbd56520d874e1d81a4f29bc17a96
207,947,501,743,507,980,000,000,000,000,000,000,000
77
bugfix: long partition names
static bool ptrace_has_cap(struct user_namespace *ns, unsigned int mode) { if (mode & PTRACE_MODE_NOAUDIT) return ns_capable_noaudit(ns, CAP_SYS_PTRACE); return ns_capable(ns, CAP_SYS_PTRACE); }
0
[ "CWE-276", "CWE-703", "CWE-863" ]
linux
ee1fee900537b5d9560e9f937402de5ddc8412f3
333,274,919,013,196,700,000,000,000,000,000,000,000
6
ptrace: Check PTRACE_O_SUSPEND_SECCOMP permission on PTRACE_SEIZE Setting PTRACE_O_SUSPEND_SECCOMP is supposed to be a highly privileged operation because it allows the tracee to completely bypass all seccomp filters on kernels with CONFIG_CHECKPOINT_RESTORE=y. It is only supposed to be settable by a process with glob...
closest_next_anchor(AnchorList *a, Anchor *an, int x, int y) { int i; if (a == NULL || a->nanchor == 0) return an; for (i = 0; i < a->nanchor; i++) { if (a->anchors[i].hseq < 0) continue; if (a->anchors[i].start.line > y || (a->anchors[i].start.line == y && a->anchors[i].start.pos > x)) { ...
0
[ "CWE-119" ]
w3m
4e464819dd360ffd3d58fa2a89216fe413cfcc74
206,332,469,382,190,200,000,000,000,000,000,000,000
19
Prevent segfault due to buffer overflows in addMultirowsForm Bug-Debian: https://github.com/tats/w3m/issues/21 Bug-Debian: https://github.com/tats/w3m/issues/26
static inline void xfrm_dev_backlog(struct softnet_data *sd) { }
0
[ "CWE-416" ]
linux
dbb2483b2a46fbaf833cfb5deb5ed9cace9c7399
172,561,653,550,412,060,000,000,000,000,000,000,000
3
xfrm: clean up xfrm protocol checks In commit 6a53b7593233 ("xfrm: check id proto in validate_tmpl()") I introduced a check for xfrm protocol, but according to Herbert IPSEC_PROTO_ANY should only be used as a wildcard for lookup, so it should be removed from validate_tmpl(). And, IPSEC_PROTO_ANY is expected to only m...
int jpc_getuint8(jas_stream_t *in, uint_fast8_t *val) { int c; if ((c = jas_stream_getc(in)) == EOF) { return -1; } if (val) { *val = c; } return 0; }
0
[]
jasper
4031ca321d8cb5798c316ab39c7a5dc88a61fdd7
328,888,143,062,233,860,000,000,000,000,000,000,000
11
Incorporated changes from patch jasper-1.900.3-libjasper-stepsizes-overflow.patch
ClientSocketImpl(const Address::InstanceConstSharedPtr& remote_address, const OptionsSharedPtr& options) : ConnectionSocketImpl( Network::SocketInterfaceSingleton::get().socket(Socket::Type::Stream, remote_address), nullptr, remote_address) { if (options) { a...
0
[ "CWE-400" ]
envoy
542f84c66e9f6479bc31c6f53157c60472b25240
39,074,513,330,180,837,000,000,000,000,000,000,000
9
overload: Runtime configurable global connection limits (#147) Signed-off-by: Tony Allen <tony@allen.gg>
static int sev_receive_start(struct kvm *kvm, struct kvm_sev_cmd *argp) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct sev_data_receive_start start; struct kvm_sev_receive_start params; int *error = &argp->error; void *session_data; void *pdh_data; int ret; if (!sev_guest(kvm)) return -ENOTT...
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
138,638,429,365,949,550,000,000,000,000,000,000,000
73
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
static inline void gen_op_movo(int d_offset, int s_offset) { tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, s_offset + offsetof(ZMMReg, ZMM_Q(0))); tcg_gen_st_i64(cpu_tmp1_i64, cpu_env, d_offset + offsetof(ZMMReg, ZMM_Q(0))); tcg_gen_ld_i64(cpu_tmp1_i64, cpu_env, s_offset + offsetof(ZMMReg, ZMM_Q(1))); tcg_gen_s...
0
[ "CWE-94" ]
qemu
30663fd26c0307e414622c7a8607fbc04f92ec14
179,569,066,787,506,800,000,000,000,000,000,000,000
7
tcg/i386: Check the size of instruction being translated This fixes the bug: 'user-to-root privesc inside VM via bad translation caching' reported by Jann Horn here: https://bugs.chromium.org/p/project-zero/issues/detail?id=1122 Reviewed-by: Richard Henderson <rth@twiddle.net> CC: Peter Maydell <peter.maydell@linaro....
bool call(std::string command, cmdmap_t& cmdmap, std::string format, bufferlist& out) override { stringstream ss; test_ops(service, store, command, cmdmap, ss); out.append(ss); return true; }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
288,104,872,962,588,200,000,000,000,000,000,000,000
7
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
D_P16 (uschar *p14, uschar *in, uschar *out) { smbhash (out, in, p14, 0); smbhash (out + 8, in + 8, p14 + 7, 0); }
0
[ "CWE-125" ]
exim
57aa14b216432be381b6295c312065b2fd034f86
322,253,086,831,224,900,000,000,000,000,000,000,000
5
Fix SPA authenticator, checking client-supplied data before using it. Bug 2571
static int snd_ftu_create_effect_duration_ctl(struct usb_mixer_interface *mixer) { static const char name[] = "Effect Duration"; const unsigned int id = 6; const int val_type = USB_MIXER_S16; const unsigned int control = 3; const unsigned int cmask = 0; return snd_create_std_mono_ctl(mixer, id, control, cmask, v...
0
[]
sound
447d6275f0c21f6cc97a88b3a0c601436a4cdf2a
165,955,273,579,751,470,000,000,000,000,000,000,000
11
ALSA: usb-audio: Add sanity checks for endpoint accesses Add some sanity check codes before actually accessing the endpoint via get_endpoint() in order to avoid the invalid access through a malformed USB descriptor. Mostly just checking bNumEndpoints, but in one place (snd_microii_spdif_default_get()), the validity o...
int iwl_fw_dbg_error_collect(struct iwl_fw_runtime *fwrt, enum iwl_fw_dbg_trigger trig_type) { int ret; struct iwl_fw_dump_desc *iwl_dump_error_desc; if (!test_bit(STATUS_DEVICE_ENABLED, &fwrt->trans->status)) return -EIO; iwl_dump_error_desc = kmalloc(sizeof(*iwl_dump_error_desc), GFP_KERNEL); if (!iw...
0
[ "CWE-400", "CWE-401" ]
linux
b4b814fec1a5a849383f7b3886b654a13abbda7d
179,299,705,507,294,300,000,000,000,000,000,000,000
24
iwlwifi: dbg_ini: fix memory leak in alloc_sgtable In alloc_sgtable if alloc_page fails, the alocated table should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
void set_width(uint64_t width) { width_ = width; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
15,960,192,314,306,253,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
GetRunner( const ReferenceHandle& that, Local<Value> key_handle, MaybeLocal<Object> maybe_options, bool inherit ) : context{that.context}, reference{that.reference}, options{maybe_options, inherit ? TransferOptions::Type::DeepReference : TransferOptions::Type::Reference}, inherit{in...
1
[ "CWE-913" ]
isolated-vm
2646e6c1558bac66285daeab54c7d490ed332b15
144,744,460,793,059,370,000,000,000,000,000,000,000
17
Don't invoke accessors or proxies via Reference functions
Perl_savesharedpv(pTHX_ const char *pv) { char *newaddr; STRLEN pvlen; PERL_UNUSED_CONTEXT; if (!pv) return NULL; pvlen = strlen(pv)+1; newaddr = (char*)PerlMemShared_malloc(pvlen); if (!newaddr) { croak_no_mem(); } return (char*)memcpy(newaddr, pv, pvlen); }
0
[ "CWE-119", "CWE-703", "CWE-787" ]
perl5
34716e2a6ee2af96078d62b065b7785c001194be
120,162,875,413,762,300,000,000,000,000,000,000,000
17
Perl_my_setenv(); handle integer wrap RT #133204 Wean this function off int/I32 and onto UV/Size_t. Also, replace all malloc-ish calls with a wrapper that does overflow checks, In particular, it was doing (nlen + vlen + 2) which could wrap when the combined length of the environment variable name and value exceeded ...
void hci_req_sync_cancel(struct hci_dev *hdev, int err) { bt_dev_dbg(hdev, "err 0x%2.2x", err); if (hdev->req_status == HCI_REQ_PEND) { hdev->req_result = err; hdev->req_status = HCI_REQ_CANCELED; wake_up_interruptible(&hdev->req_wait_q); } }
0
[ "CWE-362" ]
linux
e2cb6b891ad2b8caa9131e3be70f45243df82a80
269,171,317,728,762,730,000,000,000,000,000,000,000
10
bluetooth: eliminate the potential race condition when removing the HCI controller There is a possible race condition vulnerability between issuing a HCI command and removing the cont. Specifically, functions hci_req_sync() and hci_dev_do_close() can race each other like below: thread-A in hci_req_sync() | th...
void init_locator() { if ( !pl_ ) pl_ = new Locator(pm_); }
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
221,624,939,407,976,930,000,000,000,000,000,000,000
5
Fix Nef_2 and Nef_S2 IO
cr_tknzr_parse_string (CRTknzr * a_this, CRString ** a_str) { guint32 cur_char = 0, delim = 0; CRInputPos init_pos; enum CRStatus status = CR_OK; CRString *str = NULL; g_return_val_if_fail (a_this && PRIVATE (a_this) && PRIVATE (a_th...
0
[ "CWE-119" ]
libcroco
9ad72875e9f08e4c519ef63d44cdbd94aa9504f7
172,658,510,620,316,800,000,000,000,000,000,000,000
111
tknzr: support only max long rgb values This fixes a possible out of bound when reading rgbs which are longer than the support MAXLONG
bool subselect_single_select_engine::fix_length_and_dec(Item_cache **row) { DBUG_ASSERT(row || select_lex->item_list.elements==1); if (set_row(select_lex->item_list, row)) return TRUE; item->collation.set(row[0]->collation); if (cols() != 1) maybe_null= 0; return FALSE; }
0
[ "CWE-89" ]
server
3c209bfc040ddfc41ece8357d772547432353fd2
209,549,539,481,820,000,000,000,000,000,000,000,000
10
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...
char *last_char_is(const char *s, int c) { if (s && *s) { s += strlen(s) - 1; if ((unsigned char)*s == c) return (char*)s; } return NULL; }
0
[ "CWE-20" ]
libreport
1951e7282043dfe1268d492aea056b554baedb75
101,823,810,767,420,980,000,000,000,000,000,000,000
10
lib: fix races in dump directory handling code Florian Weimer <fweimer@redhat.com>: dd_opendir() should keep a file handle (opened with O_DIRECTORY) and use openat() and similar functions to access files in it. ... The file system manipulation functions should guard against hard links (check tha...
dissect_usb_hid_button_page(tvbuff_t *tvb, packet_info _U_ *pinfo, proto_tree *tree, hid_field_t *field, int *bit_offset) { gint32 val = 0; unsigned int usage_count = wmem_array_get_count(field->usages); guint32 usage; proto_item *ti; if ((field->properties & HID_MAIN_TYPE) != HID_MAIN_VARI...
0
[]
wireshark
0ceb46e1c28d1094a56aefa0ebf7d7c0e00f8849
96,656,788,720,166,260,000,000,000,000,000,000,000
34
proto: add support for FT_BYTES in proto_tree_add_bits Change-Id: I5030d550bd760953ac84c2700bb0e03cc7a831a1 Signed-off-by: Filipe Laíns <lains@archlinux.org>
static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off) { return readl(tp->regs + off + GRCMBOX_BASE); }
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
90,728,620,680,497,820,000,000,000,000,000,000,000
4
tg3: fix length overflow in VPD firmware parsing Commit 184b89044fb6e2a74611dafa69b1dce0d98612c6 ("tg3: Use VPD fw version when present") introduced VPD parsing that contained a potential length overflow. Limit the hardware's reported firmware string length (max 255 bytes) to stay inside the driver's firmware string ...
rdp_enum_bmpcache2(void) { STREAM s; HASH_KEY keylist[BMPCACHE2_NUM_PSTCELLS]; uint32 num_keys, offset, count, flags; offset = 0; num_keys = pstcache_enumerate(2, keylist); while (offset < num_keys) { count = MIN(num_keys - offset, 169); s = rdp_init_data(24 + count * sizeof(HASH_KEY)); flags = 0; if...
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
60,264,683,411,280,580,000,000,000,000,000,000,000
41
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
smp_fetch_hdr_val(struct proxy *px, struct session *l4, void *l7, unsigned int opt, const struct arg *args, struct sample *smp) { int ret = smp_fetch_hdr(px, l4, l7, opt, args, smp); if (ret > 0) { smp->type = SMP_T_UINT; smp->data.uint = strl2ic(smp->data.str.str, smp->data.str.len); } retu...
0
[]
haproxy
aae75e3279c6c9bd136413a72dafdcd4986bb89a
77,559,437,484,774,700,000,000,000,000,000,000,000
12
BUG/CRITICAL: using HTTP information in tcp-request content may crash the process During normal HTTP request processing, request buffers are realigned if there are less than global.maxrewrite bytes available after them, in order to leave enough room for rewriting headers after the request. This is done in http_wait_fo...
extern bool validate_slurm_user(uid_t uid) { #ifndef NDEBUG if (drop_priv) return false; #endif if ((uid == 0) || (uid == slurmctld_conf.slurm_user_id)) return true; else return false; }
0
[ "CWE-20" ]
slurm
033dc0d1d28b8d2ba1a5187f564a01c15187eb4e
111,496,155,836,439,840,000,000,000,000,000,000,000
11
Fix insecure handling of job requested gid. Only trust MUNGE signed values, unless the RPC was signed by SlurmUser or root. CVE-2018-10995.
TPM2B_NAME_Marshal(TPM2B_NAME *source, BYTE **buffer, INT32 *size) { UINT16 written = 0; written += TPM2B_Marshal(&source->b, buffer, size); return written; }
1
[ "CWE-787" ]
libtpms
3ef9b26cb9f28bd64d738bff9505a20d4eb56acd
326,108,491,662,487,560,000,000,000,000,000,000,000
6
tpm2: Add maxSize parameter to TPM2B_Marshal for sanity checks Add maxSize parameter to TPM2B_Marshal and assert on it checking the size of the data intended to be marshaled versus the maximum buffer size. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
static void process_arithmetic_command(conn *c, token_t *tokens, const size_t ntokens, const bool incr) { char temp[INCR_MAX_STORAGE_LEN]; item *it; uint64_t delta; char *key; size_t nkey; assert(c != NULL); set_noreply_maybe(c, tokens, ntokens); if (tokens[KEY_TOKEN].length > KEY_MAX...
0
[ "CWE-20" ]
memcached
d9cd01ede97f4145af9781d448c62a3318952719
110,307,338,891,796,100,000,000,000,000,000,000,000
51
Use strncmp when checking for large ascii multigets.
static int hdr_validate_tokens(struct crypt_device *cd, json_object *hdr_jobj) { json_object *jobj; if (!json_object_object_get_ex(hdr_jobj, "tokens", &jobj)) { log_dbg(cd, "Missing tokens section."); return 1; } json_object_object_foreach(jobj, key, val) { if (!numbered(cd, "Token", key)) return 1; if...
0
[ "CWE-787" ]
cryptsetup
52f5cb8cedf22fb3e14c744814ec8af7614146c7
56,992,756,753,475,100,000,000,000,000,000,000,000
18
Check segment gaps regardless of heap space. Segments are validated in hdr_validate_segments. Gaps in segment keys are detected when collecting offsets. But if an invalid segment is very large, larger than count, it could happen that cryptsetup is unable to allocate enough memory, not giving a clue about what actually...
static inline bool tm_enabled(struct task_struct *tsk) { return tsk && tsk->thread.regs && (tsk->thread.regs->msr & MSR_TM); }
0
[]
linux
5d176f751ee3c6eededd984ad409bff201f436a7
35,148,233,090,097,626,000,000,000,000,000,000,000
4
powerpc: tm: Enable transactional memory (TM) lazily for userspace Currently the MSR TM bit is always set if the hardware is TM capable. This adds extra overhead as it means the TM SPRS (TFHAR, TEXASR and TFAIR) must be swapped for each process regardless of if they use TM. For processes that don't use TM the TM MSR ...
static int catc_ctrl_msg(struct catc *catc, u8 dir, u8 request, u16 value, u16 index, void *buf, int len) { int retval = usb_control_msg(catc->usbdev, dir ? usb_rcvctrlpipe(catc->usbdev, 0) : usb_sndctrlpipe(catc->usbdev, 0), request, 0x40 | dir, value, index, buf, len, 1000); return retval < 0 ? r...
0
[ "CWE-20", "CWE-119" ]
linux
2d6a0e9de03ee658a9adc3bfb2f0ca55dff1e478
333,376,801,757,042,730,000,000,000,000,000,000,000
7
catc: Use heap buffer for memory size test Allocating USB buffers on the stack is not portable, and no longer works on x86_64 (with VMAP_STACK enabled as per default). Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
void on_compression_buffer_use() { if (++buffer_use_count == clear_buffers_trigger) { input_buffer.clear(); output_buffer.clear(); buffer_use_count = 0; } }
0
[]
scylladb
1c2eef384da439b0457b6d71c7e37d7268e471cb
335,165,958,511,613,130,000,000,000,000,000,000,000
7
transport/server.cc: Return correct size of decompressed lz4 buffer An incorrect size is returned from the function, which could lead to crashes or undefined behavior. Fix by erroring out in these cases. Fixes #11476
static void ide_bmdma_pre_save(void *opaque) { BMDMAState *bm = opaque; uint8_t abused_bits = BM_MIGRATION_COMPAT_STATUS_BITS; bm->migration_compat_status = (bm->status & ~abused_bits) | (bm->bus->error_status & abused_bits); }
0
[ "CWE-399" ]
qemu
3251bdcf1c67427d964517053c3d185b46e618e8
61,007,990,115,305,140,000,000,000,000,000,000,000
8
ide: Correct handling of malformed/short PRDTs This impacts both BMDMA and AHCI HBA interfaces for IDE. Currently, we confuse the difference between a PRDT having "0 bytes" and a PRDT having "0 complete sectors." When we receive an incomplete sector, inconsistent error checking leads to an infinite loop wherein the c...
compileSwapDots(FileInfo *nested, CharsString *source, CharsString *dest) { int k = 0; int kk = 0; CharsString dotsSource; CharsString dotsDest; dest->length = 0; dotsSource.length = 0; while (k <= source->length) { if (source->chars[k] != ',' && k != source->length) dotsSource.chars[dotsSource.length++] = ...
0
[ "CWE-787" ]
liblouis
fb2bfce4ed49ac4656a8f7e5b5526e4838da1dde
6,057,167,414,146,326,000,000,000,000,000,000,000
21
Fix yet another buffer overflow in the braille table parser Reported by Henri Salo Fixes #592
ldns_rr_list2canonical(ldns_rr_list *rr_list) { size_t i; for (i = 0; i < ldns_rr_list_rr_count(rr_list); i++) { ldns_rr2canonical(ldns_rr_list_rr(rr_list, i)); } }
0
[ "CWE-415" ]
ldns
070b4595981f48a21cc6b4f5047fdc2d09d3da91
260,659,473,918,498,900,000,000,000,000,000,000,000
7
CAA and URI
void FoFiTrueType::convertToCIDType2(char *psName, int *cidMap, int nCIDs, GBool needVerticalMetrics, FoFiOutputFunc outputFunc, void *outputStream) { GooString *buf; int cid, maxUsedGlyph; GBool ok; int i, j, k; if (openTypeCFF) { return; } // write the header ...
0
[ "CWE-125" ]
poppler
cdb7ad95f7c8fbf63ade040d8a07ec96467042fc
41,557,527,561,978,450,000,000,000,000,000,000,000
129
Fix malformed file crash in bug #85243
static unsigned int __user *signal_frame_32_regs(unsigned int sp, unsigned int next_sp, unsigned int next_ip) { struct mcontext32 __user *mctx = NULL; struct signal_frame_32 __user *sf; struct rt_signal_frame_32 __user *rt_sf; /* * Note: the next_sp - sp >= signal frame size check * is true when next_sp < ...
0
[ "CWE-399" ]
linux
9a5cbce421a283e6aea3c4007f141735bf9da8c3
309,549,080,813,881,560,000,000,000,000,000,000,000
31
powerpc/perf: Cap 64bit userspace backtraces to PERF_MAX_STACK_DEPTH We cap 32bit userspace backtraces to PERF_MAX_STACK_DEPTH (currently 127), but we forgot to do the same for 64bit backtraces. Cc: stable@vger.kernel.org Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.i...
void ihold(struct inode *inode) { WARN_ON(atomic_inc_return(&inode->i_count) < 2); }
0
[ "CWE-269" ]
linux
0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
58,361,274,639,040,210,000,000,000,000,000,000,000
4
Fix up non-directory creation in SGID directories sgid directories have special semantics, making newly created files in the directory belong to the group of the directory, and newly created subdirectories will also become sgid. This is historically used for group-shared directories. But group directories writable b...
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; if (sent_header) goto send_data; if (custo...
1
[ "CWE-79" ]
ceph
c7da604cb101cbe78a257a29498a98c69964e0a6
107,958,417,671,493,340,000,000,000,000,000,000,000
207
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 ...
inline int ArgMaxVector(const uint8_t* input_data, int size) { int32_t max_index = 0; uint8_t max_value = input_data[0]; int32_t i = 0; #ifdef USE_NEON constexpr int VECTOR_SIZE = 16; if (size >= VECTOR_SIZE) { uint8x16_t max_value_u8x16; for (; i <= size - VECTOR_SIZE; i += VECTOR_SIZE) { max_v...
0
[ "CWE-476", "CWE-369" ]
tensorflow
15691e456c7dc9bd6be203b09765b063bf4a380c
115,355,154,756,171,100,000,000,000,000,000,000,000
47
Prevent dereferencing of null pointers in TFLite's `add.cc`. PiperOrigin-RevId: 387244946 Change-Id: I56094233327fbd8439b92e1dbb1262176e00eeb9
uint32_t evaluate_fixed_subframe_( FLAC__StreamEncoder *encoder, const FLAC__int32 signal[], FLAC__int32 residual[], FLAC__uint64 abs_residual_partition_sums[], uint32_t raw_bits_per_partition[], uint32_t blocksize, uint32_t subframe_bps, uint32_t order, uint32_t rice_parameter, uint32_t rice_parameter_limit,...
0
[ "CWE-787" ]
flac
e1575e4a7c5157cbf4e4a16dbd39b74f7174c7be
55,941,607,153,710,800,000,000,000,000,000,000,000
60
libFlac: Exit at EOS in verify mode When verify mode is enabled, once decoder flags end of stream, encode processing is considered complete. CVE-2021-0561 Signed-off-by: Ralph Giles <giles@thaumas.net>
void JSStream::Finish(const FunctionCallbackInfo<Value>& args) { CHECK(args[0]->IsObject()); Wrap* w = static_cast<Wrap*>(StreamReq::FromObject(args[0].As<Object>())); CHECK(args[1]->IsInt32()); w->Done(args[1].As<Int32>()->Value()); }
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
313,564,314,780,721,500,000,000,000,000,000,000,000
7
src: use unique_ptr for WriteWrap This commit attempts to avoid a use-after-free error by using unqiue_ptr and passing a reference to it. CVE-ID: CVE-2020-8265 Fixes: https://github.com/nodejs-private/node-private/issues/227 PR-URL: https://github.com/nodejs-private/node-private/pull/238 Reviewed-By: Michael Dawson <...
bool kvm_is_linear_rip(struct kvm_vcpu *vcpu, unsigned long linear_rip) { unsigned long current_rip = kvm_rip_read(vcpu) + get_segment_base(vcpu, VCPU_SREG_CS); return current_rip == linear_rip; }
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
324,785,860,825,836,500,000,000,000,000,000,000,000
7
KVM: x86: fix information leak to userland Structures kvm_vcpu_events, kvm_debugregs, kvm_pit_state2 and kvm_clock_data are copied to userland with some padding and reserved fields unitialized. It leads to leaking of contents of kernel stack memory. We have to initialize them to zero. In patch v1 Jan Kiszka suggest...
xsltLoadStyleDocument(xsltStylesheetPtr style, const xmlChar *URI) { xsltDocumentPtr ret; xmlDocPtr doc; xsltSecurityPrefsPtr sec; if ((style == NULL) || (URI == NULL)) return(NULL); /* * Security framework check */ sec = xsltGetDefaultSecurityPrefs(); if (sec != NULL) { int re...
1
[]
libxslt
e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
37,603,550,326,102,175,000,000,000,000,000,000,000
43
Fix security framework bypass xsltCheckRead and xsltCheckWrite return -1 in case of error but callers don't check for this condition and allow access. With a specially crafted URL, xsltCheckRead could be tricked into returning an error because of a supposedly invalid URL that would still be loaded succesfully later on...
ar6000_dbglog_get_debug_logs(struct ar6_softc *ar) { u32 data[8]; /* Should be able to accommodate struct dbglog_buf_s */ u32 address; u32 length; u32 dropped; u32 firstbuf; u32 debug_hdr_ptr; if (!ar->dbglog_init_done) return A_ERROR; AR6000_SPIN_LOCK(&ar->arLock, 0); if (ar->db...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
184,819,887,414,458,030,000,000,000,000,000,000,000
76
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
static void add_binary_option(gpointer key, gpointer value, gpointer user_data) { uint8_t *option = value; struct dhcp_packet *packet = user_data; dhcp_add_binary_option(packet, option); }
0
[]
connman
a74524b3e3fad81b0fd1084ffdf9f2ea469cd9b1
224,380,295,872,855,980,000,000,000,000,000,000,000
7
gdhcp: Avoid leaking stack data via unitiialized variable Fixes: CVE-2021-26676
cJSON *cJSON_CreateString(const char *string) {cJSON *item=cJSON_New_Item();if(item){item->type=cJSON_String;item->valuestring=cJSON_strdup(string);if(!item->valuestring){cJSON_Delete(item);return 0;}}return item;}
0
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
194,690,220,324,111,650,000,000,000,000,000,000,000
1
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
static int inet6_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb) { struct net *net = sock_net(skb->sk); int h, s_h; int idx = 0, s_idx; struct net_device *dev; struct inet6_dev *idev; struct hlist_head *head; s_h = cb->args[0]; s_idx = cb->args[1]; rcu_read_lock(); for (h = s_h; h < NETDEV_HAS...
0
[ "CWE-20" ]
linux
77751427a1ff25b27d47a4c36b12c3c8667855ac
259,739,519,149,741,900,000,000,000,000,000,000,000
38
ipv6: addrconf: validate new MTU before applying it Currently we don't check if the new MTU is valid or not and this allows one to configure a smaller than minimum allowed by RFCs or even bigger than interface own MTU, which is a problem as it may lead to packet drops. If you have a daemon like NetworkManager running...
cell_queues_check_size(void) { size_t alloc = total_cells_allocated * packed_cell_mem_cost(); if (alloc >= get_options()->MaxMemInCellQueues) { circuits_handle_oom(alloc); return 1; } return 0; }
0
[ "CWE-200", "CWE-617" ]
tor
56a7c5bc15e0447203a491c1ee37de9939ad1dcd
245,393,064,710,138,280,000,000,000,000,000,000,000
9
TROVE-2017-005: Fix assertion failure in connection_edge_process_relay_cell On an hidden service rendezvous circuit, a BEGIN_DIR could be sent (maliciously) which would trigger a tor_assert() because connection_edge_process_relay_cell() thought that the circuit is an or_circuit_t but is an origin circuit in reality. ...
call_by_name( char_u *name, int argcount, ectx_T *ectx, isn_T *iptr, dict_T *selfdict) { ufunc_T *ufunc; if (builtin_function(name, -1)) { int func_idx = find_internal_func(name); if (func_idx < 0) return FAIL; if (check_internal_func(func_idx, argcount) < 0) return F...
0
[ "CWE-416" ]
vim
9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04
142,351,077,670,377,070,000,000,000,000,000,000,000
62
patch 8.2.3902: Vim9: double free with nested :def function Problem: Vim9: double free with nested :def function. Solution: Pass "line_to_free" from compile_def_function() and make sure cmdlinep is valid.
static int tc_cls_act_prologue(struct bpf_insn *insn_buf, bool direct_write, const struct bpf_prog *prog) { return bpf_unclone_prologue(insn_buf, direct_write, prog, TC_ACT_SHOT); }
0
[ "CWE-120" ]
linux
050fad7c4534c13c8eb1d9c2ba66012e014773cb
204,333,673,868,317,630,000,000,000,000,000,000,000
5
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...
static void qeth_start_kernel_thread(struct work_struct *work) { struct task_struct *ts; struct qeth_card *card = container_of(work, struct qeth_card, kernel_thread_starter); QETH_CARD_TEXT(card , 2, "strthrd"); if (card->read.state != CH_STATE_UP && card->write.state != CH_STATE_UP) return; if (qeth_...
0
[ "CWE-200", "CWE-119" ]
linux
6fb392b1a63ae36c31f62bc3fc8630b49d602b62
84,891,786,961,509,410,000,000,000,000,000,000,000
20
qeth: avoid buffer overflow in snmp ioctl Check user-defined length in snmp ioctl request and allow request only if it fits into a qeth command buffer. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Reviewed-by: Heiko Carstens <heicars2@linux.vnet.ibm.c...
method_from_memberref (MonoImage *image, guint32 idx, MonoGenericContext *typespec_context, gboolean *used_context) { MonoClass *klass = NULL; MonoMethod *method = NULL; MonoTableInfo *tables = image->tables; guint32 cols[6]; guint32 nindex, class, sig_idx; const char *mname; MonoMethodSignature *sig; ...
0
[]
mono
8e890a3bf80a4620e417814dc14886b1bbd17625
41,988,716,889,051,352,000,000,000,000,000,000,000
142
Search for dllimported shared libs in the base directory, not cwd. * loader.c: we don't search the current directory anymore for shared libraries referenced in DllImport attributes, as it has a slight security risk. We search in the same directory where the referencing image was loaded from, instead. Fixes bug# 641915...
void Client::handleAdaptedBodyProducerAborted() { if (abortOnBadEntry("entry went bad while waiting for the now-aborted adapted body")) return; Must(adaptedBodySource != nullptr); if (!adaptedBodySource->exhausted()) { debugs(11,5, "waiting to consume the remainder of the aborted adapted bo...
0
[ "CWE-20" ]
squid
6c9c44d0e9cf7b72bb233360c5308aa063af3d69
209,358,010,292,717,640,000,000,000,000,000,000,000
19
Handle more partial responses (#791)
utf16be_is_mbc_newline(const UChar* p, const UChar* end) { if (p + 1 < end) { if (*(p+1) == 0x0a && *p == 0x00) return 1; #ifdef USE_UNICODE_ALL_LINE_TERMINATORS if (( #ifndef USE_CRNL_AS_LINE_TERMINATOR *(p+1) == 0x0d || #endif *(p+1) == 0x85) && *p == 0x00) return 1; if (*p == 0x20 && (*...
0
[ "CWE-125" ]
php-src
9d6c59eeea88a3e9d7039cb4fed5126ef704593a
154,597,880,859,480,680,000,000,000,000,000,000,000
18
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
absl::string_view root_id() const { return plugin_->root_id_; }
0
[ "CWE-476" ]
envoy
8788a3cf255b647fd14e6b5e2585abaaedb28153
90,952,640,002,825,530,000,000,000,000,000,000,000
1
1.4 - Do not call into the VM unless the VM Context has been created. (#24) * Ensure that the in VM Context is created before onDone is called. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Update as per offline discussion. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Set in_vm_context_created_ in onNet...
void read_header_data(void) { struct file_magic file_magic; struct file_activity file_act; int rc, i, p; char version[16]; /* Read magic header */ rc = sa_read(&file_magic, FILE_MAGIC_SIZE); sprintf(version, "%d.%d.%d.%d", file_magic.sysstat_version, file_magic.sysstat_patchlevel, file_magic.sysstat_subl...
0
[ "CWE-125" ]
sysstat
fbc691eaaa10d0bcea6741d5a223dc3906106548
87,894,481,050,335,250,000,000,000,000,000,000,000
115
Fix #196 and #199: Out of bound reads security issues Check args before calling memmove() and memset() in remap_struct() function to avoid out of bound reads which would possibly lead to unknown code execution and/or sadf command crash. Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pipe_read_line(char *cmd, char *line, int maxsize) { #ifndef WIN32 FILE *pgver; /* flush output buffers in case popen does not... */ fflush(stdout); fflush(stderr); errno = 0; if ((pgver = popen(cmd, "r")) == NULL) { perror("popen failure"); return NULL; } errno = 0; if (fgets(line, maxsize, pgver) ...
0
[ "CWE-119" ]
postgres
01824385aead50e557ca1af28640460fa9877d51
260,565,774,502,141,140,000,000,000,000,000,000,000
156
Prevent potential overruns of fixed-size buffers. Coverity identified a number of places in which it couldn't prove that a string being copied into a fixed-size buffer would fit. We believe that most, perhaps all of these are in fact safe, or are copying data that is coming from a trusted source so that any overrun i...
int32_t ZrtpQueue::activateTimer(int32_t time) { std::string s("ZRTP"); if (staticTimeoutProvider != NULL) { staticTimeoutProvider->requestTimeout(time, this, s); } return 1; }
0
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
160,602,089,536,152,110,000,000,000,000,000,000,000
7
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
TEST(IndexBoundsBuilderTest, TranslateLTNumberWithMockCollator) { CollatorInterfaceMock collator(CollatorInterfaceMock::MockType::kReverseString); auto testIndex = buildSimpleIndexEntry(); testIndex.collator = &collator; BSONObj obj = fromjson("{a: {$lt: 3}}"); auto expr = parseMatchExpression(obj)...
0
[ "CWE-754" ]
mongo
f8f55e1825ee5c7bdb3208fc7c5b54321d172732
19,500,906,661,876,280,000,000,000,000,000,000,000
20
SERVER-44377 generate correct plan for indexed inequalities to null
int MAIN(int argc, char **argv) { unsigned int off=0, clr=0; SSL *con=NULL; int s,k,width,state=0; char *cbuf=NULL,*sbuf=NULL,*mbuf=NULL; int cbuf_len,cbuf_off; int sbuf_len,sbuf_off; fd_set readfds,writefds; short port=PORT; int full_log=1; char *host=SSL_HOST_NAME; char *cert_file=NULL,*key_file=NULL; in...
0
[]
openssl
edc032b5e3f3ebb1006a9c89e0ae00504f47966f
279,129,103,714,429,750,000,000,000,000,000,000,000
1,332
Add SRP support.
BOOL msusb_mspipes_replace(MSUSB_INTERFACE_DESCRIPTOR* MsInterface, MSUSB_PIPE_DESCRIPTOR** NewMsPipes, UINT32 NewNumberOfPipes) { if (!MsInterface || !NewMsPipes) return FALSE; /* free orignal MsPipes */ msusb_mspipes_free(MsInterface->MsPipes, MsInterface->NumberOfPipes); /* And repl...
0
[ "CWE-190" ]
FreeRDP
9f77fc3dd2394373e1be753952b00dafa1a9b7da
272,826,545,862,192,200,000,000,000,000,000,000,000
13
Fixed int overflow in msusb_mspipes_read Thanks to hac425
side_in_cb (GSocket *socket, GIOCondition condition, gpointer user_data) { ProxySide *side = user_data; FlatpakProxyClient *client = side->client; GError *error = NULL; Buffer *buffer; gboolean retval = G_SOURCE_CONTINUE; g_object_ref (client); while (!side->closed) { if (!side->got_first_byte...
0
[ "CWE-284", "CWE-436" ]
flatpak
52346bf187b5a7f1c0fe9075b328b7ad6abe78f6
213,122,244,444,460,880,000,000,000,000,000,000,000
110
Fix vulnerability in dbus proxy During the authentication all client data is directly forwarded to the dbus daemon as is, until we detect the BEGIN command after which we start filtering the binary dbus protocol. Unfortunately the detection of the BEGIN command in the proxy did not exactly match the detection in the ...
//! Erode the image by a square structuring element of specified size \newinstance. CImg<T> get_erode(const unsigned int s) const { return (+*this).erode(s);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
340,275,563,063,239,160,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
bool CephXAuthorizer::add_challenge(CephContext *cct, bufferlist& challenge) { bl = base_bl; CephXAuthorize msg; msg.nonce = nonce; auto p = challenge.begin(); if (!p.end()) { std::string error; CephXAuthorizeChallenge ch; decode_decrypt_enc_bl(cct, ch, session_key, challenge, error); if (!e...
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
169,289,359,107,849,780,000,000,000,000,000,000,000
28
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
void move(Buffer::Instance& rhs, uint64_t length) override { StringBuffer& src = dynamic_cast<StringBuffer&>(rhs); add(src.start(), length); src.start_ += length; src.size_ -= length; }
0
[ "CWE-401" ]
envoy
5eba69a1f375413fb93fab4173f9c393ac8c2818
13,810,211,192,614,942,000,000,000,000,000,000,000
6
[buffer] Add on-drain hook to buffer API and use it to avoid fragmentation due to tracking of H2 data and control frames in the output buffer (#144) Signed-off-by: antonio <avd@google.com>
static JSValue js_file_putc(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) { int val=0; FILE *f = JS_GetOpaque(this_val, file_class_id); if (!f || !argc) return GF_JS_EXCEPTION(ctx); if (JS_IsString(argv[0])) { const char *string = JS_ToCString(ctx, argv[0]); if (!string) return GF_JS_EX...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
33,894,085,074,789,534,000,000,000,000,000,000,000
17
fixed #2138
int blkid_partition_set_uuid(blkid_partition par, const unsigned char *uuid) { if (!par) return -1; blkid_unparse_uuid(uuid, par->uuid, sizeof(par->uuid)); return 0; }
0
[]
util-linux
50d1594c2e6142a3b51d2143c74027480df082e0
271,731,780,586,046,200,000,000,000,000,000,000,000
8
libblkid: avoid non-empty recursion in EBR This is extension to the patch 7164a1c34d18831ac61c6744ad14ce916d389b3f. We also need to detect non-empty recursion in the EBR chain. It's possible to create standard valid logical partitions and in the last one points back to the EBR chain. In this case all offsets will be ...
ex_mkrc( exarg_T *eap) { FILE *fd; int failed = FALSE; char_u *fname; #ifdef FEAT_BROWSE char_u *browseFile = NULL; #endif #ifdef FEAT_SESSION int view_session = FALSE; int using_vdir = FALSE; /* using 'viewdir'? */ char_u *viewFile = NULL; unsigned *flagp; #endif if (eap->cm...
0
[ "CWE-78" ]
vim
8c62a08faf89663e5633dc5036cd8695c80f1075
26,508,290,805,883,886,000,000,000,000,000,000,000
227
patch 8.1.0881: can execute shell commands in rvim through interfaces Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others.
int FLTIsTemporalFilterType(const char *pszValue) { if (pszValue) { if ( strcasecmp(pszValue, "During") == 0 ) return MS_TRUE; } return MS_FALSE; }
0
[ "CWE-200", "CWE-119" ]
mapserver
e52a436c0e1c5e9f7ef13428dba83194a800f4df
22,942,700,181,189,915,000,000,000,000,000,000,000
9
security fix (patch by EvenR)
void fx_DataView_prototype_setBigUint64(txMachine* the) { fx_DataView_prototype_set(the, 8, fxBigIntCoerce, fxBigUint64Setter); }
0
[ "CWE-125" ]
moddable
135aa9a4a6a9b49b60aa730ebc3bcc6247d75c45
102,260,681,219,571,440,000,000,000,000,000,000,000
4
XS: #896
static Variant setVariable(const Object& obj, const char* varName, const Variant& varValue) { return obj->o_set(varName, varValue, s_ZipArchive); }
0
[ "CWE-22" ]
hhvm
65c95a01541dd2fbc9c978ac53bed235b5376686
206,992,739,845,032,860,000,000,000,000,000,000,000
3
ZipArchive::extractTo bug 70350 Summary:Don't allow upward directory traversal when extracting zip archive files. Files in zip files with `..` or starting at main root `/` should be normalized to something where the file being extracted winds up within the directory or a subdirectory where the actual extraction is ta...
set_ref_in_previous_funccal(int copyID) { funccall_T *fc; for (fc = previous_funccal; fc != NULL; fc = fc->caller) { fc->fc_copyID = copyID + 1; if (set_ref_in_ht(&fc->l_vars.dv_hashtab, copyID + 1, NULL) || set_ref_in_ht(&fc->l_avars.dv_hashtab, copyID + 1, NULL) || set_ref_in_list_items(&fc->l_varl...
0
[ "CWE-416" ]
vim
9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04
139,022,439,404,406,880,000,000,000,000,000,000,000
14
patch 8.2.3902: Vim9: double free with nested :def function Problem: Vim9: double free with nested :def function. Solution: Pass "line_to_free" from compile_def_function() and make sure cmdlinep is valid.
int fscrypt_initialize(unsigned int cop_flags) { int i, res = -ENOMEM; /* * No need to allocate a bounce page pool if there already is one or * this FS won't use it. */ if (cop_flags & FS_CFLG_OWN_PAGES || fscrypt_bounce_page_pool) return 0; mutex_lock(&fscrypt_init_mutex); if (fscrypt_bounce_page_pool) ...
0
[ "CWE-416", "CWE-476" ]
linux
1b53cf9815bb4744958d41f3795d5d5a1d365e2d
332,757,283,177,474,000,000,000,000,000,000,000,000
37
fscrypt: remove broken support for detecting keyring key revocation Filesystem encryption ostensibly supported revoking a keyring key that had been used to "unlock" encrypted files, causing those files to become "locked" again. This was, however, buggy for several reasons, the most severe of which was that when key r...
static void __net_exit ip6gre_exit_net(struct net *net) { LIST_HEAD(list); rtnl_lock(); ip6gre_destroy_tunnels(net, &list); unregister_netdevice_many(&list); rtnl_unlock(); }
0
[ "CWE-125" ]
net
7892032cfe67f4bde6fc2ee967e45a8fbaf33756
298,562,085,223,440,670,000,000,000,000,000,000,000
9
ip6_gre: fix ip6gre_err() invalid reads Andrey Konovalov reported out of bound accesses in ip6gre_err() If GRE flags contains GRE_KEY, the following expression *(((__be32 *)p) + (grehlen / 4) - 1) accesses data ~40 bytes after the expected point, since grehlen includes the size of IPv6 headers. Let's use a "struct ...
void security_sb_umount_busy(struct vfsmount *mnt) { security_ops->sb_umount_busy(mnt); }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
54,580,394,958,849,270,000,000,000,000,000,000,000
4
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
get_authorization_uri (GoaOAuth2Provider *provider) { return "https://accounts.google.com/o/oauth2/auth"; }
0
[ "CWE-310" ]
gnome-online-accounts
edde7c63326242a60a075341d3fea0be0bc4d80e
295,332,353,755,538,700,000,000,000,000,000,000,000
4
Guard against invalid SSL certificates None of the branded providers (eg., Google, Facebook and Windows Live) should ever have an invalid certificate. So set "ssl-strict" on the SoupSession object being used by GoaWebView. Providers like ownCloud and Exchange might have to deal with certificates that are not up to th...
fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) { int signvalue = 0; const char *prefix = ""; unsigned LLONG uvalue; char convert[DECIMAL_SIZE(value) + 3]; int place = 0; int spadlen = 0; int zpad...
1
[ "CWE-119" ]
openssl
9cb177301fdab492e4cfef376b28339afe3ef663
243,547,986,420,896,450,000,000,000,000,000,000,000
91
Fix memory issues in BIO_*printf functions The internal |fmtstr| function used in processing a "%s" format string in the BIO_*printf functions could overflow while calculating the length of a string and cause an OOB read when printing very long strings. Additionally the internal |doapr_outch| function can attempt to ...
PJ_DEF(void) pjmedia_rtcp_init2( pjmedia_rtcp_session *sess, const pjmedia_rtcp_session_setting *settings) { pjmedia_rtcp_sr_pkt *sr_pkt = &sess->rtcp_sr_pkt; pj_time_val now; /* Memset everything */ pj_bzero(sess, sizeof(pjmedia_rtcp_session)); /* Last RX timestamp in RTP packet */ s...
0
[ "CWE-200", "CWE-787" ]
pjproject
11559e49e65bdf00922ad5ae28913ec6a198d508
110,298,752,169,476,200,000,000,000,000,000,000,000
49
Merge pull request from GHSA-vhxv-phmx-g52q * Prevent OOB read/write when parsing RTCP FB RPSI * Add log information * Modification based on comments.