func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static int xfrm_flush_sa(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) { struct net *net = sock_net(skb->sk); struct km_event c; struct xfrm_usersa_flush *p = nlmsg_data(nlh); int err; err = xfrm_state_flush(net, p->proto, true, false); if (err) { if (err == -ESRCH) /* empty table */ r...
0
[ "CWE-125" ]
linux
b805d78d300bcf2c83d6df7da0c818b0fee41427
293,982,500,392,341,900,000,000,000,000,000,000,000
23
xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink UBSAN report this: UBSAN: Undefined behaviour in net/xfrm/xfrm_policy.c:1289:24 index 6 is out of range for type 'unsigned int [6]' CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.162-514.55.6.9.x86_64+ #13 Hardware name: QEMU Standard PC (i440FX + P...
const char *cJSON_GetErrorPtr(void) {return global_ep;}
0
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
198,349,482,137,893,150,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...
fm_mgr_sm_cfg_query ( IN p_fm_config_conx_hdlt hdl, IN fm_mgr_action_t action, OUT sm_config_t *info, OUT fm_msg_ret_code_t *ret_code ) { p_hsm_com_client_hdl_t client_hdl; if ( (client_hdl = get_mgr_hdl(hdl,FM_MGR_SM)) != NULL ) { ...
0
[ "CWE-362" ]
opa-fm
c5759e7b76f5bf844be6c6641cc1b356bbc83869
230,397,817,912,489,430,000,000,000,000,000,000,000
18
Fix scripts and code that use well-known tmp files.
int ParseCaffHeaderConfig (FILE *infile, char *infilename, char *fourcc, WavpackContext *wpc, WavpackConfig *config) { uint32_t chan_chunk = 0, channel_layout = 0, bcount; unsigned char *channel_identities = NULL; unsigned char *channel_reorder = NULL; int64_t total_samples = 0, infilesize; CAFFileH...
1
[ "CWE-125", "CWE-787" ]
WavPack
8e3fe45a7bac31d9a3b558ae0079e2d92a04799e
228,009,833,729,007,500,000,000,000,000,000,000,000
389
issue #28, fix buffer overflows and bad allocs on corrupt CAF files
static COMMANDS *find_command(char *name) { uint len; char *end; DBUG_ENTER("find_command"); DBUG_ASSERT(name != NULL); DBUG_PRINT("enter", ("name: '%s'", name)); while (my_isspace(charset_info, *name)) name++; /* If there is an \\g in the row or if the row has a delimiter but this is not a ...
0
[]
server
383007c75d6ef5043fa5781956a6a02b24e2b79e
274,207,801,553,157,500,000,000,000,000,000,000,000
64
mysql cli: fix USE command quoting * use proper sql quoting rules for USE, while preserving as much of historical behavior as possible * short commands (\u) behave as before
uint8_t ndp_msgra_curhoplimit(struct ndp_msgra *msgra) { return msgra->ra->nd_ra_curhoplimit; }
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
285,513,125,061,033,750,000,000,000,000,000,000,000
4
libndp: validate the IPv6 hop limit None of the NDP messages should ever come from a non-local network; as stated in RFC4861's 6.1.1 (RS), 6.1.2 (RA), 7.1.1 (NS), 7.1.2 (NA), and 8.1. (redirect): - The IP Hop Limit field has a value of 255, i.e., the packet could not possibly have been forwarded by a router. T...
static void ioat1_intr_quirk(struct ioatdma_device *device) { struct pci_dev *pdev = device->pdev; u32 dmactrl; pci_read_config_dword(pdev, IOAT_PCI_DMACTRL_OFFSET, &dmactrl); if (pdev->msi_enabled) dmactrl |= IOAT_PCI_DMACTRL_MSI_EN; else dmactrl &= ~IOAT_PCI_DMACTRL_MSI_EN; pci_write_config_dword(pdev, IOA...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
292,018,943,082,102,930,000,000,000,000,000,000,000
12
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) { struct vcpu_vmx *vmx = to_vmx(vcpu); u64 tsc_this, delta, new_offset; u64 phys_addr = __pa(per_cpu(vmxarea, cpu)); if (!vmm_exclusive) kvm_cpu_vmxon(phys_addr); else if (vcpu->cpu != cpu) vcpu_clear(vmx); if (per_cpu(current_vmcs, cpu) != vmx->vmcs...
0
[ "CWE-400" ]
linux-2.6
9581d442b9058d3699b4be568b6e5eae38a41493
58,101,223,696,932,685,000,000,000,000,000,000,000
50
KVM: Fix fs/gs reload oops with invalid ldt kvm reloads the host's fs and gs blindly, however the underlying segment descriptors may be invalid due to the user modifying the ldt after loading them. Fix by using the safe accessors (loadsegment() and load_gs_index()) instead of home grown unsafe versions. This is CVE-...
static void tcp_update_scoreboard(struct sock *sk, int fast_rexmit) { struct tcp_sock *tp = tcp_sk(sk); if (tcp_is_reno(tp)) { tcp_mark_head_lost(sk, 1, 1); } else if (tcp_is_fack(tp)) { int lost = tp->fackets_out - tp->reordering; if (lost <= 0) lost = 1; tcp_mark_head_lost(sk, lost, 0); } else { int...
0
[]
net-next
fdf5af0daf8019cec2396cdef8fb042d80fe71fa
45,270,581,961,595,900,000,000,000,000,000,000,000
21
tcp: drop SYN+FIN messages Denys Fedoryshchenko reported that SYN+FIN attacks were bringing his linux machines to their limits. Dont call conn_request() if the TCP flags includes SYN flag Reported-by: Denys Fedoryshchenko <denys@visp.net.lb> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S...
evdev_read_attr_size_prop(struct evdev_device *device, size_t *size_x, size_t *size_y) { struct quirks_context *quirks; struct quirks *q; struct quirk_dimensions dim; bool rc = false; quirks = evdev_libinput_context(device)->quirks; q = quirks_fetch_for_device(quirks, device->udev_device); if (!q) r...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
113,261,510,068,418,920,000,000,000,000,000,000,000
24
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
static int nfs4_xdr_enc_link(struct rpc_rqst *req, __be32 *p, const struct nfs4_link_arg *args) { struct xdr_stream xdr; struct compound_hdr hdr = { .nops = 7, }; int status; xdr_init_encode(&xdr, &req->rq_snd_buf, p); encode_compound_hdr(&xdr, &hdr); if ((status = encode_putfh(&xdr, args->fh)) != 0) goto o...
0
[ "CWE-703" ]
linux
dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
260,216,181,795,624,900,000,000,000,000,000,000,000
26
NFSv4: Convert the open and close ops to use fmode Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
xmlPreviousElementSibling(xmlNodePtr node) { if (node == NULL) return(NULL); switch (node->type) { case XML_ELEMENT_NODE: case XML_TEXT_NODE: case XML_CDATA_SECTION_NODE: case XML_ENTITY_REF_NODE: case XML_ENTITY_NODE: case XML_PI_NODE: case XML_CO...
0
[ "CWE-20" ]
libxml2
bdd66182ef53fe1f7209ab6535fda56366bd7ac9
254,736,291,738,307,320,000,000,000,000,000,000,000
25
Avoid building recursive entities For https://bugzilla.gnome.org/show_bug.cgi?id=762100 When we detect a recusive entity we should really not build the associated data, moreover if someone bypass libxml2 fatal errors and still tries to serialize a broken entity make sure we don't risk to get ito a recursion * parser...
int kvm_s390_store_status_unloaded(struct kvm_vcpu *vcpu, unsigned long gpa) { unsigned char archmode = 1; freg_t fprs[NUM_FPRS]; unsigned int px; u64 clkcomp, cputm; int rc; px = kvm_s390_get_prefix(vcpu); if (gpa == KVM_S390_STORE_STATUS_NOADDR) { if (write_guest_abs(vcpu, 163, &archmode, 1)) return -EFA...
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
12,885,955,888,395,058,000,000,000,000,000,000,000
51
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
string readFromRevisionFile(const SpawnPreparationInfo &info) const { string filename = info.appRoot + "/REVISION"; try { if (fileExists(filename)) { return strip(readAll(filename)); } } catch (const SystemException &e) { P_WARN("Cannot access " << filename << ": " << e.what()); } return string(...
0
[ "CWE-200", "CWE-61" ]
passenger
4043718264095cde6623c2cbe8c644541036d7bf
131,390,142,402,311,800,000,000,000,000,000,000,000
11
Disable unused feature.
XML_SetEndDoctypeDeclHandler(XML_Parser parser, XML_EndDoctypeDeclHandler end) { if (parser != NULL) parser->m_endDoctypeDeclHandler = end; }
0
[ "CWE-611", "CWE-776", "CWE-415", "CWE-125" ]
libexpat
c20b758c332d9a13afbbb276d30db1d183a85d43
18,935,265,092,243,633,000,000,000,000,000,000,000
4
xmlparse.c: Deny internal entities closing the doctype
Result visit_double(double value) { return FMT_DISPATCH(visit_any_double(value)); }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
125,891,573,649,164,830,000,000,000,000,000,000,000
3
Fix segfault on complex pointer formatting (#642)
xfs_dir_fsync( struct file *file, loff_t start, loff_t end, int datasync) { struct xfs_inode *ip = XFS_I(file->f_mapping->host); struct xfs_mount *mp = ip->i_mount; xfs_lsn_t lsn = 0; trace_xfs_dir_fsync(ip); xfs_ilock(ip, XFS_ILOCK_SHARED); if (xfs_ipincount(ip)) lsn = ip->i_itemp->ili_last_lsn; ...
0
[ "CWE-284", "CWE-264" ]
linux
8d0207652cbe27d1f962050737848e5ad4671958
231,486,578,346,092,080,000,000,000,000,000,000,000
21
->splice_write() via ->write_iter() iter_file_splice_write() - a ->splice_write() instance that gathers the pipe buffers, builds a bio_vec-based iov_iter covering those and feeds it to ->write_iter(). A bunch of simple cases coverted to that... [AV: fixed the braino spotted by Cyrill] Signed-off-by: Al Viro <viro@z...
static bool ok_jpg_read_dht(ok_jpg_decoder *decoder) { // JPEG spec: Table B.5 ok_jpg *jpg = decoder->jpg; uint8_t buffer[17]; if (!ok_read(decoder, buffer, 2)) { return false; } int length = readBE16(buffer) - 2; while (length >= 17) { if (!ok_read(decoder, buffer, 17)) { ...
1
[ "CWE-787" ]
ok-file-formats
a9cc1711dd4ed6a215038f1c5c03af0ef52c3211
179,470,617,354,079,480,000,000,000,000,000,000,000
44
ok_jpg: Fix invalid DHT (#11)
static int io_connect_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { #if defined(CONFIG_NET) struct io_connect *conn = &req->connect; struct io_async_ctx *io = req->io; if (unlikely(req->ctx->flags & (IORING_SETUP_IOPOLL|IORING_SETUP_SQPOLL))) return -EINVAL; if (sqe->ioprio || sqe->len || sqe->buf...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
99,776,309,785,061,320,000,000,000,000,000,000,000
23
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size, unsigned int, flags, struct sockaddr __user *, addr, int __user *, addr_len) { struct socket *sock; struct iovec iov; struct msghdr msg; struct sockaddr_storage address; int err, err2; int fput_needed; if (size > INT_MAX) size = INT_MAX...
0
[ "CWE-264" ]
net
4de930efc23b92ddf88ce91c405ee645fe6e27ea
244,183,653,309,896,800,000,000,000,000,000,000,000
43
net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom Cc: stable@vger.kernel.org # v3.19 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
PHP_METHOD(Phar, getPath) { PHAR_ARCHIVE_OBJECT(); if (zend_parse_parameters_none() == FAILURE) { return; } RETURN_STRINGL(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, 1); }
0
[ "CWE-416" ]
php-src
b2cf3f064b8f5efef89bb084521b61318c71781b
32,187,080,336,578,120,000,000,000,000,000,000,000
10
Fixed bug #68901 (use after free)
template<typename t> CImg<T>& operator-=(const CImg<t>& img) { const ulongT siz = size(), isiz = img.size(); if (siz && isiz) { if (is_overlapped(img)) return *this-=+img; T *ptrd = _data, *const ptre = _data + siz; if (siz>isiz) for (ulongT n = siz/isiz; n; --n) fo...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
115,766,582,118,900,200,000,000,000,000,000,000,000
12
Fix other issues in 'CImg<T>::load_bmp()'.
static void ipa_udata_copy(wmfAPI * API, wmfUserData_t * userdata) { (void) API; (void) userdata; /* wmf_magick_t* ddata = WMF_MAGICK_GetData (API); */ }
0
[ "CWE-772" ]
ImageMagick
b2b48d50300a9fbcd0aa0d9230fd6d7a08f7671e
93,192,134,034,183,120,000,000,000,000,000,000,000
7
https://github.com/ImageMagick/ImageMagick/issues/544
void ptrace_triggered(struct perf_event *bp, struct perf_sample_data *data, struct pt_regs *regs) { struct perf_event_attr attr; /* * Disable the breakpoint request here since ptrace has defined a * one-shot behaviour for breakpoint exceptions in PPC64. * The SIGTRAP signal is generated automatically f...
0
[ "CWE-119", "CWE-787" ]
linux
c1fa0768a8713b135848f78fd43ffc208d8ded70
112,767,567,846,280,570,000,000,000,000,000,000,000
15
powerpc/tm: Flush TM only if CPU has TM feature Commit cd63f3c ("powerpc/tm: Fix saving of TM SPRs in core dump") added code to access TM SPRs in flush_tmregs_to_thread(). However flush_tmregs_to_thread() does not check if TM feature is available on CPU before trying to access TM SPRs in order to copy live state to th...
void LIRGenerator::do_MonitorExit(MonitorExit* x) { assert(x->is_pinned(),""); LIRItem obj(x->obj(), this); obj.dont_load_item(); LIR_Opr lock = new_register(T_INT); LIR_Opr obj_temp = new_register(T_INT); set_no_result(x); monitor_exit(obj_temp, lock, syncTempOpr(), LIR_OprFact::illegalOpr, x->monitor_...
0
[]
jdk17u
268c0159253b3de5d72eb826ef2329b27bb33fea
325,581,749,943,015,240,000,000,000,000,000,000,000
11
8272014: Better array indexing Reviewed-by: thartmann Backport-of: 937c31d896d05aa24543b74e98a2ea9f05b5d86f
static bool lxc_cgroupfs_attach(const char *name, const char *lxcpath, pid_t pid) { struct cgroup_meta_data *meta_data; struct cgroup_process_info *container_info; int ret; meta_data = lxc_cgroup_load_meta(); if (!meta_data) { ERROR("could not move attached process %d to cgroup of container", pid); return fal...
0
[ "CWE-59", "CWE-61" ]
lxc
592fd47a6245508b79fe6ac819fe6d3b2c1289be
255,362,079,025,461,580,000,000,000,000,000,000,000
27
CVE-2015-1335: Protect container mounts against symlinks When a container starts up, lxc sets up the container's inital fstree by doing a bunch of mounting, guided by the container configuration file. The container config is owned by the admin or user on the host, so we do not try to guard against bad entries. Howev...
load_image (const gchar *filename, GError **error) { FILE *ifp; gint depth, bpp; gint32 image_ID; L_XWDFILEHEADER xwdhdr; L_XWDCOLOR *xwdcolmap = NULL; ifp = g_fopen (filename, "rb"); if (!ifp) { g_set_error (error, G_FILE_ERROR, g_file_e...
0
[ "CWE-787" ]
gimp
0b35f6a082a0b3c372c568ea6bde39a4796acde2
154,113,476,994,871,260,000,000,000,000,000,000,000
164
Bug 687392 - Memory corruption vulnerability when reading XWD files Applied and enhanced patch from andres which makes file-xwd detect this kind of file corruption and abort loading with an error message.
PHP_FUNCTION(ldap_search) { php_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_SUBTREE); }
0
[ "CWE-476" ]
php-src
49782c54994ecca2ef2a061063bd5a7079c43527
11,847,098,690,799,283,000,000,000,000,000,000,000
4
Fix bug #76248 - Malicious LDAP-Server Response causes Crash
bool TABLE::add_tmp_key(uint key, uint key_parts, uint (*next_field_no) (uchar *), uchar *arg, bool unique) { DBUG_ASSERT(key < max_keys); char buf[NAME_CHAR_LEN]; KEY* keyinfo; Field **reg_field; uint i; bool key_start= TRUE; KEY_PART_INFO* key_part_info=...
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
83,871,727,916,621,030,000,000,000,000,000,000,000
56
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...
char* parseTag( char* ptr, std::string& tag_name, std::string& type_name, int& tag_type ) { if (!ptr) CV_PARSE_ERROR_CPP("Invalid tag input"); if( *ptr == '\0' ) CV_PARSE_ERROR_CPP( "Unexpected end of the stream" ); if( *ptr != '<' ) ...
0
[ "CWE-787" ]
opencv
f42d5399aac80d371b17d689851406669c9b9111
322,520,905,526,865,550,000,000,000,000,000,000,000
135
core(persistence): add more checks for implementation limitations
static void hns_ppe_uninit_hw(struct hns_ppe_cb *ppe_cb) { u32 port; if (ppe_cb->ppe_common_cb) { struct dsaf_device *dsaf_dev = ppe_cb->ppe_common_cb->dsaf_dev; port = ppe_cb->index; dsaf_dev->misc_op->ppe_srst(dsaf_dev, port, 0); } }
0
[ "CWE-119", "CWE-703" ]
linux
412b65d15a7f8a93794653968308fc100f2aa87c
151,097,021,794,224,670,000,000,000,000,000,000,000
11
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 ...
Lex_ident_sys & operator=(const Lex_ident_sys_st &name) { Lex_ident_sys_st::operator=(name); return *this; }
0
[ "CWE-703" ]
server
39feab3cd31b5414aa9b428eaba915c251ac34a2
49,473,315,708,976,610,000,000,000,000,000,000,000
5
MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECT IF an INSERT/REPLACE SELECT statement contained an ON expression in the top level select and this expression used a subquery with a column reference that could not be resolved then an attempt to resolve this reference as an outer reference caused...
snmp_in_toggle_options_usage(const char *lead, FILE * outf) { fprintf(outf, "%sb: do best/regex matching to find a MIB node\n", lead); fprintf(outf, "%sh: don't apply DISPLAY-HINTs\n", lead); fprintf(outf, "%sr: do not check values for range/type legality\n", lead); fprintf(outf, "%sR: do random acc...
0
[ "CWE-59", "CWE-61" ]
net-snmp
4fd9a450444a434a993bc72f7c3486ccce41f602
147,614,729,551,288,200,000,000,000,000,000,000,000
15
CHANGES: snmpd: Stop reading and writing the mib_indexes/* files Caching directory contents is something the operating system should do and is not something Net-SNMP should do. Instead of storing a copy of the directory contents in ${tmp_dir}/mib_indexes/${n}, always scan a MIB directory.
nbd_unlocked_aio_block_status (struct nbd_handle *h, uint64_t count, uint64_t offset, nbd_extent_callback *extent, nbd_completion_callback *completion, uint32_t flags) { struct command_cb cb = {...
0
[ "CWE-252" ]
libnbd
56d2611bd6fcdb559ee5ff11532dec75eb2f8472
151,462,394,374,584,880,000,000,000,000,000,000,000
28
api: Drop server control of memset() prior to NBD_CMD_READ The recent CVE-2022-0485 demonstrated that clients that pass in an uninitialized buffer to nbd_pread and friends, but are then not careful about checking for read errors, were subjected to server-dependent behavior on whether their use of the buffer after fail...
TEST(ComparisonMatchExpression, ComparisonMatchExpressionsWithEqualCollatorsAreEqual) { CollatorInterfaceMock collator1(CollatorInterfaceMock::MockType::kAlwaysEqual); EqualityMatchExpression eq1; eq1.setCollator(&collator1); CollatorInterfaceMock collator2(CollatorInterfaceMock::MockType::kAlwaysEqual)...
0
[]
mongo
b0ef26c639112b50648a02d969298650fbd402a4
238,975,797,309,189,130,000,000,000,000,000,000,000
9
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
static noinline void preempt_reset(struct intel_engine_cs *engine) { const unsigned int bit = I915_RESET_ENGINE + engine->id; unsigned long *lock = &engine->gt->reset.flags; if (i915_modparams.reset < 3) return; if (test_and_set_bit(bit, lock)) return; /* Mark this tasklet as disabled to avoid waiting for i...
0
[]
linux
bc8a76a152c5f9ef3b48104154a65a68a8b76946
200,386,132,518,760,930,000,000,000,000,000,000,000
23
drm/i915/gen9: Clear residual context state on context switch Intel ID: PSIRT-TA-201910-001 CVEID: CVE-2019-14615 Intel GPU Hardware prior to Gen11 does not clear EU state during a context switch. This can result in information leakage between contexts. For Gen8 and Gen9, hardware provides a mechanism for fast clear...
f_gt_p(VALUE x, VALUE y) { if (FIXNUM_P(x) && FIXNUM_P(y)) return f_boolcast(FIX2LONG(x) > FIX2LONG(y)); return rb_funcall(x, '>', 1, y); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
144,486,733,516,901,440,000,000,000,000,000,000,000
6
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
CheckSumManager *DefaultEnv::GetCheckSumManager() { if( unlikely( !sCheckSumManager ) ) { XrdSysMutexHelper scopedLock( sInitMutex ); if( !sCheckSumManager ) sCheckSumManager = new CheckSumManager(); } return sCheckSumManager; }
0
[ "CWE-78" ]
xrootd
befa2e627a5a33a38c92db3e57c07d8246a24acf
16,450,932,439,714,618,000,000,000,000,000,000,000
10
secgsi: do not build/package libXrdSecgsiGMAPLDAP-4.so The way the LDAP query is implemented may represent a security threat. Any related building and packaging reference is removed. The code is left in place (for the time being) to remind its functionality in the case a sanitized version is required.
void add_map_bl(epoch_t e, bufferlist& bl) { return service.add_map_bl(e, bl); }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
119,769,855,735,481,450,000,000,000,000,000,000,000
3
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 ...
CImg<T>& pow(const CImg<t>& img) { const ulongT siz = size(), isiz = img.size(); if (siz && isiz) { if (is_overlapped(img)) return pow(+img); T *ptrd = _data, *const ptre = _data + siz; if (siz>isiz) for (ulongT n = siz/isiz; n; --n) for (const t *ptrs = img._data, *ptr...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
144,779,666,656,602,600,000,000,000,000,000,000,000
12
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
ves_icall_System_Diagnostics_Debugger_IsAttached_internal (void) { return mono_debug_using_mono_debugger () || mono_is_debugger_attached (); }
0
[ "CWE-264" ]
mono
035c8587c0d8d307e45f1b7171a0d337bb451f1e
291,334,795,402,148,770,000,000,000,000,000,000,000
4
Allow only primitive types/enums in RuntimeHelpers.InitializeArray ().
static void tcp_check_urg(struct sock *sk, const struct tcphdr *th) { struct tcp_sock *tp = tcp_sk(sk); u32 ptr = ntohs(th->urg_ptr); if (ptr && !sysctl_tcp_stdurg) ptr--; ptr += ntohl(th->seq); /* Ignore urgent data that we've already seen and read. */ if (after(tp->copied_seq, ptr)) return; /* Do not re...
0
[]
net-next
fdf5af0daf8019cec2396cdef8fb042d80fe71fa
144,448,532,687,311,850,000,000,000,000,000,000,000
64
tcp: drop SYN+FIN messages Denys Fedoryshchenko reported that SYN+FIN attacks were bringing his linux machines to their limits. Dont call conn_request() if the TCP flags includes SYN flag Reported-by: Denys Fedoryshchenko <denys@visp.net.lb> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S...
sftp_attributes sftp_parse_attr(sftp_session session, ssh_buffer buf, int expectname) { switch(session->version) { case 4: return sftp_parse_attr_4(session, buf, expectname); case 3: case 2: case 1: case 0: return sftp_parse_attr_3(session, buf, expectname); default: ssh_...
0
[]
libssh
4d8420f3282ed07fc99fc5e930c17df27ef1e9b2
221,917,190,728,489,480,000,000,000,000,000,000,000
18
sftp: Fix bug in sftp_mkdir not returning on error. resolves: #84 (cherry picked from commit a92c97b2e17715c1b3cdd693d14af6c3311d8e44)
static u32 tg3_nvram_logical_addr(struct tg3 *tp, u32 addr) { if (tg3_flag(tp, NVRAM) && tg3_flag(tp, NVRAM_BUFFERED) && tg3_flag(tp, FLASH) && !tg3_flag(tp, NO_NVRAM_ADDR_TRANS) && (tp->nvram_jedecnum == JEDEC_ATMEL)) addr = ((addr >> ATMEL_AT45DB0X1B_PAGE_POS) * tp->nvram_pagesize) + ...
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
316,383,774,053,250,600,000,000,000,000,000,000,000
14
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 ...
CoalesceProvider(QPDFObjectHandle containing_page, QPDFObjectHandle old_contents) : containing_page(containing_page), old_contents(old_contents) { }
0
[ "CWE-399", "CWE-674" ]
qpdf
b4d6cf6836ce025ba1811b7bbec52680c7204223
256,381,371,557,407,700,000,000,000,000,000,000,000
6
Limit depth of nesting in direct objects (fixes #202) This fixes CVE-2018-9918.
static inline bool kvm_arch_has_assigned_device(struct kvm *kvm) { return false; }
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
32,850,749,792,732,073,000,000,000,000,000,000,000
4
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
int sched_setscheduler_nocheck(struct task_struct *p, int policy, struct sched_param *param) { return __sched_setscheduler(p, policy, param, false); }
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
7,116,770,783,841,701,000,000,000,000,000,000,000
5
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
static MagickBooleanType ReadProfile(Image *image,const char *name, const unsigned char *datum,ssize_t length) { MagickBooleanType status; StringInfo *profile; if (length < 4) return(MagickFalse); profile=BlobToStringInfo(datum,(size_t) length); if (profile == (StringInfo *) NULL) ThrowBin...
0
[ "CWE-787" ]
ImageMagick6
1aea203eb36409ce6903b9e41fe7cb70030e8750
12,737,547,071,849,570,000,000,000,000,000,000,000
19
squash heap-buffer-overflow, PoC TIFF from Hardik
end_write_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)), bool end_of_records) { TABLE *table= join_tab->table; int idx= -1; DBUG_ENTER("end_write_group"); if (!join->first_record || end_of_records || (idx=test_if_group_changed(join->group_fields)) >= 0) { if (join->first_record |...
0
[ "CWE-89" ]
server
5ba77222e9fe7af8ff403816b5338b18b342053c
81,585,365,211,303,840,000,000,000,000,000,000,000
77
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 Double amix_get_s16(u8 *data) { u16 val = data[1]; val <<= 8; val |= data[0]; return ((Double) (s16) val) / 65535;
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
207,266,562,100,364,880,000,000,000,000,000,000,000
8
fixed #2138
static int ovl_fill_super(struct super_block *sb, void *data, int silent) { struct path lowerpath; struct path upperpath; struct path workpath; struct inode *root_inode; struct dentry *root_dentry; struct ovl_entry *oe; struct ovl_fs *ufs; struct kstatfs statfs; int err; err = -ENOMEM; ufs = kzalloc(sizeof(...
0
[ "CWE-284", "CWE-264" ]
linux
69c433ed2ecd2d3264efd7afec4439524b319121
31,423,680,934,001,033,000,000,000,000,000,000,000
170
fs: limit filesystem stacking depth Add a simple read-only counter to super_block that indicates how deep this is in the stack of filesystems. Previously ecryptfs was the only stackable filesystem and it explicitly disallowed multiple layers of itself. Overlayfs, however, can be stacked recursively and also may be s...
xmlDOMWrapFreeCtxt(xmlDOMWrapCtxtPtr ctxt) { if (ctxt == NULL) return; if (ctxt->namespaceMap != NULL) xmlDOMWrapNsMapFree((xmlNsMapPtr) ctxt->namespaceMap); /* * TODO: Store the namespace map in the context. */ xmlFree(ctxt); }
0
[ "CWE-20" ]
libxml2
bdd66182ef53fe1f7209ab6535fda56366bd7ac9
150,328,720,626,237,260,000,000,000,000,000,000,000
11
Avoid building recursive entities For https://bugzilla.gnome.org/show_bug.cgi?id=762100 When we detect a recusive entity we should really not build the associated data, moreover if someone bypass libxml2 fatal errors and still tries to serialize a broken entity make sure we don't risk to get ito a recursion * parser...
g_tls_connection_base_is_handshaking (GTlsConnectionBase *tls) { GTlsConnectionBasePrivate *priv = g_tls_connection_base_get_instance_private (tls); return priv->handshaking; }
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
238,078,419,306,259,320,000,000,000,000,000,000,000
6
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
xps_draw_one_linear_gradient(xps_document *doc, const fz_matrix *ctm, struct stop *stops, int count, int extend, float x0, float y0, float x1, float y1) { fz_shade *shade; /* TODO: this (and the stuff in pdf_shade) should move to res_shade.c */ shade = fz_malloc_struct(doc->ctx, fz_shade); FZ_INIT_STORABLE(shad...
0
[ "CWE-119" ]
mupdf
60dabde18d7fe12b19da8b509bdfee9cc886aafc
70,325,020,042,971,000,000,000,000,000,000,000,000
32
Bug 694957: fix stack buffer overflow in xps_parse_color xps_parse_color happily reads more than FZ_MAX_COLORS values out of a ContextColor array which overflows the passed in samples array. Limiting the number of allowed samples to FZ_MAX_COLORS and make sure to use that constant for all callers fixes the problem. T...
pfm_uuid_cmp(pfm_uuid_t a, pfm_uuid_t b) { return memcmp(a, b, sizeof(pfm_uuid_t)); }
0
[]
linux-2.6
41d5e5d73ecef4ef56b7b4cde962929a712689b4
174,842,971,621,873,700,000,000,000,000,000,000,000
4
[IA64] permon use-after-free fix Perfmon associates vmalloc()ed memory with a file descriptor, and installs a vma mapping that memory. Unfortunately, the vm_file field is not filled in, so processes with mappings to that memory do not prevent the file from being closed and the memory freed. This results in use-after...
static struct nft_table *nft_table_lookup(const struct net *net, const struct nlattr *nla, u8 family, u8 genmask, u32 nlpid) { struct nftables_pernet *nft_net; struct nft_table *table; if (nla == NULL) return ERR_PTR(-EINVAL); nft_net = nft_pernet(net); list_for_each_entry_rcu(table, &nft_net->ta...
0
[]
net
520778042ccca019f3ffa136dd0ca565c486cedd
83,458,613,578,220,870,000,000,000,000,000,000,000
26
netfilter: nf_tables: disallow non-stateful expression in sets earlier Since 3e135cd499bf ("netfilter: nft_dynset: dynamic stateful expression instantiation"), it is possible to attach stateful expressions to set elements. cd5125d8f518 ("netfilter: nf_tables: split set destruction in deactivate and destroy phase") in...
static int hdr_validate_segments(struct crypt_device *cd, json_object *hdr_jobj) { json_object *jobj_segments, *jobj_digests, *jobj_offset, *jobj_size, *jobj_type, *jobj_flags, *jobj; uint64_t offset, size; int i, r, count, first_backup = -1; struct interval *intervals = NULL; if (!json_object_object_get_ex(hdr_j...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
69,790,805,926,149,890,000,000,000,000,000,000,000
128
Fix CVE-2021-4122 - LUKS2 reencryption crash recovery attack Fix possible attacks against data confidentiality through LUKS2 online reencryption extension crash recovery. An attacker can modify on-disk metadata to simulate decryption in progress with crashed (unfinished) reencryption step and persistently decrypt par...
int avahi_server_set_domain_name(AvahiServer *s, const char *domain_name) { char *dn = NULL; assert(s); AVAHI_CHECK_VALIDITY(s, !domain_name || avahi_is_valid_domain_name(domain_name), AVAHI_ERR_INVALID_DOMAIN_NAME); if (!domain_name) dn = avahi_strdup("local"); else dn = avahi_nor...
0
[ "CWE-346" ]
avahi
e111def44a7df4624a4aa3f85fe98054bffb6b4f
298,159,598,625,395,440,000,000,000,000,000,000,000
27
Drop legacy unicast queries from address not on local link When handling legacy unicast queries, ensure that the source IP is inside a subnet on the local link, otherwise drop the packet. Fixes #145 Fixes #203 CVE-2017-6519 CVE-2018-100084
u32 gf_sg_get_max_node_id(GF_SceneGraph *sg) { NodeIDedItem *reg_node; if (!sg->id_node) return 0; if (sg->id_node_last) return sg->id_node_last->NodeID; reg_node = sg->id_node; while (reg_node->next) reg_node = reg_node->next; return reg_node->NodeID; }
0
[ "CWE-416" ]
gpac
9723dd0955894f2cb7be13b94cf7a47f2754b893
66,947,297,722,341,500,000,000,000,000,000,000,000
9
fixed #2109
static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct dns_server *dns, DATA_BLOB *in) { struct tevent_req *req, *subreq; struct dns_process_state *state; enum ndr_err_code ndr_err; WERROR ret; const char *forwarder = lpcfg_dns_forwarder(dns->task-...
1
[ "CWE-20" ]
samba
392ec4d241eb19c812cd49ff73bd32b2b09d8533
162,406,082,138,632,670,000,000,000,000,000,000,000
81
bug #10609: CVE-2014-0239 Don't reply to replies Due to insufficient input checking, the DNS server will reply to a packet that has the "reply" bit set. Over UDP, this allows to send a packet with a spoofed sender address and have two servers DOS each other with circular replies. This patch fixes bug #10609 and adds ...
_pixops_composite (guchar *dest_buf, int dest_width, int dest_height, int dest_rowstride, int dest_channels, int dest_has_alpha, con...
0
[]
gdk-pixbuf
ffec86ed5010c5a2be14f47b33bcf4ed3169a199
218,259,234,929,477,880,000,000,000,000,000,000,000
63
pixops: Be more careful about integer overflow Our loader code is supposed to handle out-of-memory and overflow situations gracefully, reporting errors instead of aborting. But if you load an image at a specific size, we also execute our scaling code, which was not careful enough about overflow in some places. This c...
static int isansicode(int x) { return x == 0x1B || x == 0x0A || x == 0x0D || (x >= 0x20 && x < 0x7f); }
0
[]
FFmpeg
3bce9e9b3ea35c54bacccc793d7da99ea5157532
18,833,225,711,852,085,000,000,000,000,000,000,000
4
avformat/tty: add probe function
void i40e_pf_reset_stats(struct i40e_pf *pf) { int i; memset(&pf->stats, 0, sizeof(pf->stats)); memset(&pf->stats_offsets, 0, sizeof(pf->stats_offsets)); pf->stat_offsets_loaded = false; for (i = 0; i < I40E_MAX_VEB; i++) { if (pf->veb[i]) { memset(&pf->veb[i]->stats, 0, sizeof(pf->veb[i]->stats))...
0
[ "CWE-400", "CWE-401" ]
linux
27d461333459d282ffa4a2bdb6b215a59d493a8f
90,756,370,277,095,250,000,000,000,000,000,000,000
23
i40e: prevent memory leak in i40e_setup_macvlans In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for ch should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
static inline void set_32bit_tls(struct task_struct *t, int tls, u32 addr) { struct user_desc ud = { .base_addr = addr, .limit = 0xfffff, .seg_32bit = 1, .limit_in_pages = 1, .useable = 1, }; struct desc_struct *desc = t->thread.tls_array; desc += tls; fill_ldt(desc, &ud); }
0
[ "CWE-200", "CWE-401" ]
linux
f647d7c155f069c1a068030255c300663516420e
30,848,953,157,351,095,000,000,000,000,000,000,000
13
x86_64, switch_to(): Load TLS descriptors before switching DS and ES Otherwise, if buggy user code points DS or ES into the TLS array, they would be corrupted after a context switch. This also significantly improves the comments and documents some gotchas in the code. Before this patch, the both tests below failed. ...
maybe_handle_activity (GSWindow *window) { gboolean handled; handled = FALSE; /* if we already have a socket then don't bother */ if (! window->priv->lock_socket && gtk_widget_get_sensitive (GTK_WIDGET (window))) { g_signal_emit (window, signals [ACTIVITY], ...
0
[ "CWE-284" ]
cinnamon-screensaver
da7af55f1fa966c52e15cc288d4f8928eca8cc9f
284,535,844,078,606,600,000,000,000,000,000,000,000
14
Workaround gtk3 bug, don't allow GtkWindow to handle popup_menu.
static int default_local_infile_read(void *ptr, char *buf, uint buf_len) { int count; default_local_infile_data*data = (default_local_infile_data *) ptr; if ((count= (int) my_read(data->fd, (uchar *) buf, buf_len, MYF(0))) < 0) { data->error_num= EE_READ; /* the errmsg for not entire file read */ my_sn...
0
[]
mysql-server
3d8134d2c9b74bc8883ffe2ef59c168361223837
285,588,998,747,676,500,000,000,000,000,000,000,000
14
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...
void Statement::Work_AfterEach(napi_env e, napi_status status, void* data) { std::unique_ptr<EachBaton> baton(static_cast<EachBaton*>(data)); Statement* stmt = baton->stmt; Napi::Env env = stmt->Env(); Napi::HandleScope scope(env); if (stmt->status != SQLITE_DONE) { Error(baton.get()); ...
0
[]
node-sqlite3
593c9d498be2510d286349134537e3bf89401c4a
284,207,582,619,236,170,000,000,000,000,000,000,000
13
bug: fix segfault of invalid toString() object (#1450) * bug: verify toString() returns valid data * test: faulty toString test
get_func_tv( char_u *name, // name of the function int len, // length of "name" or -1 to use strlen() typval_T *rettv, char_u **arg, // argument, pointing to the '(' evalarg_T *evalarg, // for line continuation funcexe_T *funcexe) // various values { char_u *argp; int ret = OK; ...
0
[ "CWE-416" ]
vim
9f1a39a5d1cd7989ada2d1cb32f97d84360e050f
27,591,536,861,970,750,000,000,000,000,000,000,000
105
patch 8.2.4040: keeping track of allocated lines is too complicated Problem: Keeping track of allocated lines in user functions is too complicated. Solution: Instead of freeing individual lines keep them all until the end.
bash_complete_filename_internal (what_to_do) int what_to_do; { rl_compentry_func_t *orig_func; rl_completion_func_t *orig_attempt_func; rl_icppfunc_t *orig_dir_func; rl_compignore_func_t *orig_ignore_func; /*const*/ char *orig_rl_completer_word_break_characters; int r; orig_func = rl_completion_entr...
0
[ "CWE-20" ]
bash
4f747edc625815f449048579f6e65869914dd715
261,380,338,257,773,100,000,000,000,000,000,000,000
33
Bash-4.4 patch 7
static inline int smb_hc_write(struct acpi_smb_hc *hc, u8 address, u8 data) { return ec_write(hc->offset + address, data); }
0
[ "CWE-200" ]
linux
43cdd1b716b26f6af16da4e145b6578f98798bf6
191,584,484,946,296,080,000,000,000,000,000,000,000
4
ACPI: sbshc: remove raw pointer from printk() message There's no need to be printing a raw kernel pointer to the kernel log at every boot. So just remove it, and change the whole message to use the correct dev_info() call at the same time. Reported-by: Wang Qize <wang_qize@venustech.com.cn> Cc: All applicable <stabl...
static void convert(float y, float u, float v, float *b, float *g, float *r) { *r = y + 1.5747f * v; *g = y - 0.1873f * u - 0.4682f * v; *b = y + 1.8556f * u; }
0
[ "CWE-20", "CWE-129" ]
FFmpeg
26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777
144,072,938,113,957,140,000,000,000,000,000,000,000
7
avcodec/exr: More strictly check dc_count Fixes: out of array access Fixes: exr/deneme Found-by: Burak Çarıkçı <burakcarikci@crypttech.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
const Network::Socket& socket() override { return *socket_; }
0
[ "CWE-400" ]
envoy
dfddb529e914d794ac552e906b13d71233609bf7
127,056,094,199,396,560,000,000,000,000,000,000,000
1
listener: Add configurable accepted connection limits (#153) Add support for per-listener limits on accepted connections. Signed-off-by: Tony Allen <tony@allen.gg>
static int listfile(const PureFileInfo * const fi, const char *name) { int rval = 0; struct stat st; struct tm *t; char suffix[2] = { 0, 0 }; char m[PATH_MAX + 1U]; const char *format; if (fi == NULL) { if (lstat(name, &st) < 0) { return 0; } } else { ...
0
[ "CWE-400", "CWE-703" ]
pure-ftpd
aea56f4bcb9948d456f3fae4d044fd3fa2e19706
338,503,390,040,055,700,000,000,000,000,000,000,000
187
listdir(): reuse a single buffer to store every file name to display Allocating a new buffer for each entry is useless. And as these buffers are allocated on the stack, on systems with a small stack size, with many entries, the limit can easily be reached, causing a stack exhaustion and aborting the user session. Re...
static int bmp_read_windows_v3_info(gdIOCtxPtr infile, bmp_info_t *info) { if ( !gdGetIntLSB(&info->width, infile) || !gdGetIntLSB(&info->height, infile) || !gdGetWordLSB(&info->numplanes, infile) || !gdGetWordLSB(&info->depth, infile) || !gdGetIntLSB(&info->enctype, infile) || !gdGetIntL...
0
[ "CWE-415" ]
libgd
ac16bdf2d41724b5a65255d4c28fb0ec46bc42f5
25,718,753,115,727,585,000,000,000,000,000,000,000
37
bmp: check return value in gdImageBmpPtr Closes #447.
msg_outtrans_long_attr(char_u *longstr, int attr) { msg_outtrans_long_len_attr(longstr, (int)STRLEN(longstr), attr); }
0
[ "CWE-416" ]
vim
9f1a39a5d1cd7989ada2d1cb32f97d84360e050f
99,135,792,170,634,500,000,000,000,000,000,000,000
4
patch 8.2.4040: keeping track of allocated lines is too complicated Problem: Keeping track of allocated lines in user functions is too complicated. Solution: Instead of freeing individual lines keep them all until the end.
babel_packet_examin(const unsigned char *packet, int packetlen) { unsigned i = 0, bodylen; const unsigned char *message; unsigned char type, len; if(packetlen < 4 || packet[0] != 42 || packet[1] != 2) return 1; DO_NTOHS(bodylen, packet + 2); while (i < bodylen){ message = packet...
1
[ "CWE-787" ]
frr
c3793352a8d76d2eee1edc38a9a16c1c8a6573f4
21,005,280,074,890,454,000,000,000,000,000,000,000
34
babeld: fix #10502 #10503 by repairing the checks on length This patch repairs the checking conditions on length in four functions: babel_packet_examin, parse_hello_subtlv, parse_ihu_subtlv, and parse_update_subtlv Signed-off-by: qingkaishi <qingkaishi@gmail.com>
static BOOL check_opcode_types(compiler_common *common, PCRE2_SPTR cc, PCRE2_SPTR ccend) { int count; PCRE2_SPTR slot; PCRE2_SPTR assert_back_end = cc - 1; PCRE2_SPTR assert_na_end = cc - 1; /* Calculate important variables (like stack size) and checks whether all opcodes are supported. */ while (cc < ccend) { swi...
0
[ "CWE-125" ]
pcre2
50a51cb7e67268e6ad417eb07c9de9bfea5cc55a
104,144,699,881,640,660,000,000,000,000,000,000,000
160
Fixed a unicode properrty matching issue in JIT
ArgParser::parseUnderOverlayOptions(UnderOverlay* uo) { o.under_overlay = uo; this->option_table = &(this->under_overlay_option_table); }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
293,238,173,182,899,200,000,000,000,000,000,000,000
5
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
void fd_install(unsigned int fd, struct file *file) { struct files_struct *files = current->files; struct fdtable *fdt; spin_lock(&files->file_lock); fdt = files_fdtable(files); BUG_ON(fdt->fd[fd] != NULL); rcu_assign_pointer(fdt->fd[fd], file); spin_unlock(&files->file_lock); }
0
[ "CWE-732" ]
linux-stable
e57712ebebbb9db7d8dcef216437b3171ddcf115
65,415,618,928,358,780,000,000,000,000,000,000,000
10
merge fchmod() and fchmodat() guts, kill ancient broken kludge The kludge in question is undocumented and doesn't work for 32bit binaries on amd64, sparc64 and s390. Passing (mode_t)-1 as mode had (since 0.99.14v and contrary to behaviour of any other Unix, prescriptions of POSIX, SuS and our own manpages) was kinda-...
leaving_window(win_T *win) { // Only matters for a prompt window. if (!bt_prompt(win->w_buffer)) return; // When leaving a prompt window stop Insert mode and perhaps restart // it when entering that window again. win->w_buffer->b_prompt_insert = restart_edit; if (restart_edit != 0 && mode_disp...
0
[ "CWE-416" ]
vim
28d032cc688ccfda18c5bbcab8b50aba6e18cde5
287,561,682,208,906,970,000,000,000,000,000,000,000
23
patch 8.2.4979: accessing freed memory when line is flushed Problem: Accessing freed memory when line is flushed. Solution: Make a copy of the pattern to search for.
static int php_date_modify(zval *object, char *modify, int modify_len TSRMLS_DC) { php_date_obj *dateobj; timelib_time *tmp_time; timelib_error_container *err = NULL; dateobj = (php_date_obj *) zend_object_store_get_object(object TSRMLS_CC); if (!(dateobj->time)) { php_error_docref(NULL TSRMLS_CC, E_WARNING, ...
0
[]
php-src
c377f1a715476934133f3254d1e0d4bf3743e2d2
201,292,493,254,783,400,000,000,000,000,000,000,000
61
Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone)
xsltApplyStylesheetInternal(xsltStylesheetPtr style, xmlDocPtr doc, const char **params, const char *output, FILE * profile, xsltTransformContextPtr userCtxt) { xmlDocPtr res = NULL; xsltTransformContextPtr ctxt = NULL; xmlNodePtr root, node; const...
0
[ "CWE-416" ]
libxslt
2232473733b7313d67de8836ea3b29eec6e8e285
6,114,633,063,157,571,000,000,000,000,000,000,000
402
Fix dangling pointer in xsltCopyText xsltCopyText didn't reset ctxt->lasttext in some cases which could lead to various memory errors in relation with CDATA sections in input documents. Found by OSS-Fuzz.
void OSDService::reply_op_error(OpRequestRef op, int err, eversion_t v, version_t uv) { const MOSDOp *m = static_cast<const MOSDOp*>(op->get_req()); assert(m->get_type() == CEPH_MSG_OSD_OP); int flags; flags = m->get_flags() & (CEPH_OSD_FLAG_ACK|CEPH_OSD_FLAG_ONDISK); MOSDOpRe...
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
133,639,301,521,105,200,000,000,000,000,000,000,000
13
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 ...
static int smack_sb_mount(char *dev_name, struct path *path, char *type, unsigned long flags, void *data) { struct superblock_smack *sbp = path->mnt->mnt_sb->s_security; struct smk_audit_info ad; smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_FS); smk_ad_setfield_u_fs_path(&ad, *path); return smk_curacc(sbp->smk...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
205,696,954,106,318,800,000,000,000,000,000,000,000
11
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...
static stbi__uint32 stbi__get32le(stbi__context *s) { stbi__uint32 z = stbi__get16le(s); z += (stbi__uint32)stbi__get16le(s) << 16; return z; }
0
[ "CWE-787" ]
stb
5ba0baaa269b3fd681828e0e3b3ac0f1472eaf40
86,169,206,714,327,240,000,000,000,000,000,000,000
6
stb_image: Reject fractional JPEG component subsampling ratios The component resamplers are not written to support this and I've never seen it happen in a real (non-crafted) JPEG file so I'm fine rejecting this as outright corrupt. Fixes issue #1178.
bool CUser::AuthOnlyViaModule() const { return m_bAuthOnlyViaModule; }
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
62,740,903,407,416,220,000,000,000,000,000,000,000
1
Don't crash if user specified invalid encoding. This is CVE-2019-9917
static inline unsigned long vm_end_gap(struct vm_area_struct *vma) { unsigned long vm_end = vma->vm_end; if (vma->vm_flags & VM_GROWSUP) { vm_end += stack_guard_gap; if (vm_end < vma->vm_end) vm_end = -PAGE_SIZE; } return vm_end; }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
268,625,923,040,279,600,000,000,000,000,000,000,000
11
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 ...
void CLASS pentax_load_raw() { ushort bit[2][15], huff[4097]; int dep, row, col, diff, c, i; ushort vpred[2][2] = {{0,0},{0,0}}, hpred[2]; fseek (ifp, meta_offset, SEEK_SET); dep = (get2() + 12) & 15; fseek (ifp, 12, SEEK_CUR); FORC(dep) bit[0][c] = get2(); FORC(dep) bit[1][c] = fgetc(ifp); FORC(dep)...
0
[ "CWE-189" ]
rawstudio
983bda1f0fa5fa86884381208274198a620f006e
282,028,700,404,293,830,000,000,000,000,000,000,000
28
Avoid overflow in ljpeg_start().
void ESTreeIRGen::addLexicalDebugInfo( Function *child, Function *global, const std::shared_ptr<const SerializedScope> &scope) { if (!scope || !scope->parentScope) { buildDummyLexicalParent(Builder, global, child); return; } auto *current = Builder.createFunction( scope->originalName, ...
0
[ "CWE-125", "CWE-787" ]
hermes
091835377369c8fd5917d9b87acffa721ad2a168
200,050,086,864,042,500,000,000,000,000,000,000,000
24
Correctly restore whether or not a function is an inner generator Summary: If a generator was large enough to be lazily compiled, we would lose that information when reconstituting the function's context. This meant the function was generated as a regular function instead of a generator. #utd-hermes-ignore-android R...
static int bgp_attr_aggregator(struct bgp_attr_parser_args *args) { struct peer *const peer = args->peer; struct attr *const attr = args->attr; const bgp_size_t length = args->length; int wantedlen = 6; /* peer with AS4 will send 4 Byte AS, peer without will send 2 Byte */ if (CHECK_FLAG(peer->cap, PEER_CAP_AS4...
0
[ "CWE-20", "CWE-436" ]
frr
943d595a018e69b550db08cccba1d0778a86705a
231,580,347,216,072,600,000,000,000,000,000,000,000
31
bgpd: don't use BGP_ATTR_VNC(255) unless ENABLE_BGP_VNC_ATTR is defined Signed-off-by: Lou Berger <lberger@labn.net>
onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo) { #define COMPILE_INIT_SIZE 20 int r, init_size; Node* root; ScanEnv scan_env; #ifdef USE_SUBEXP_CALL UnsetAddrList uslist; #endif if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL; reg->state = O...
0
[ "CWE-125" ]
php-src
c6e34d91b88638966662caac62c4d0e90538e317
258,335,571,563,467,650,000,000,000,000,000,000,000
186
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
get_iter_from_proxy(GtkTreeStore *store, GtkTreeIter *iter, GDBusProxy *proxy) { return iter_search(store, iter, NULL, compare_path, (gpointer) g_dbus_proxy_get_object_path (proxy)); }
0
[]
gnome-bluetooth
6b5086d42ea64d46277f3c93b43984f331d12f89
245,703,016,736,959,840,000,000,000,000,000,000,000
7
lib: Fix Discoverable being reset when turned off Work-around race in bluetoothd which would reset the discoverable flag if a timeout change was requested before discoverable finished being set to off: See https://bugzilla.redhat.com/show_bug.cgi?id=1602985
static int bond_kobj_init(struct slave *slave) { int err; err = kobject_init_and_add(&slave->kobj, &slave_ktype, &(slave->dev->dev.kobj), "bonding_slave"); if (err) kobject_put(&slave->kobj); return err; }
0
[ "CWE-476", "CWE-703" ]
linux
105cd17a866017b45f3c45901b394c711c97bf40
119,586,915,373,401,960,000,000,000,000,000,000,000
11
bonding: fix null dereference in bond_ipsec_add_sa() If bond doesn't have real device, bond->curr_active_slave is null. But bond_ipsec_add_sa() dereferences bond->curr_active_slave without null checking. So, null-ptr-deref would occur. Test commands: ip link add bond0 type bond ip link set bond0 up ip x s...
static int count_addresses(sd_bus_message *m, int af, unsigned *ret) { unsigned c = 0; int r; assert(m); assert(ret); while ((r = sd_bus_message_enter_container(m, 'r', "iay")) > 0) { int family; r = sd_bus_message_read(m, "i", &family); ...
0
[ "CWE-415", "CWE-119" ]
systemd
cb31827d62066a04b02111df3052949fda4b6888
329,704,337,307,735,100,000,000,000,000,000,000,000
37
nss-mymachines: do not allow overlong machine names https://github.com/systemd/systemd/issues/2002
inline double grand(cimg_uint64 *const p_rng) { double x1, w; do { const double x2 = cimg::rand(-1,1,p_rng); x1 = cimg::rand(-1,1,p_rng); w = x1*x1 + x2*x2; } while (w<=0 || w>=1.); return x1*std::sqrt((-2*std::log(w))/w); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
274,797,315,651,627,900,000,000,000,000,000,000,000
9
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
void derive_combined_bipredictive_merging_candidates(const base_context* ctx, const slice_segment_header* shdr, PBMotion* inout_mergeCandList, int* inout_numMerg...
0
[ "CWE-787" ]
libde265
697aa4f7c774abd6374596e6707a6f4f54265355
86,460,754,254,706,360,000,000,000,000,000,000,000
65
fix MC with HDR chroma, but SDR luma (#301)
GF_Err maxr_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_MAXRBox *ptr = (GF_MAXRBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->granularity); gf_bs_write_u32(bs, ptr->maxDataRate); return GF_OK; }
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
46,061,900,966,408,190,000,000,000,000,000,000,000
11
fixed #1587
lka_filter_data_end(uint64_t reqid) { struct filter_session *fs; fs = tree_xget(&sessions, reqid); if (fs->io) { io_free(fs->io); fs->io = NULL; } log_trace(TRACE_FILTERS, "%016"PRIx64" filters data-end", reqid); }
0
[ "CWE-476" ]
src
6c3220444ed06b5796dedfd53a0f4becd903c0d1
90,888,341,310,402,200,000,000,000,000,000,000,000
11
smtpd's filter state machine can prematurely release resources leading to a crash. From gilles@
static int check_spn_alias_collision(struct ldb_context *ldb, TALLOC_CTX *mem_ctx, const char *spn, struct ldb_dn *target_dn) { int ret; char *service_class = NULL; char *spn_tail = NULL; char *p = NULL; char **aliases = NULL; size_t n_aliases = 0; size_t i, len; TALLOC_CTX *tmp_ctx =...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
293,038,470,479,908,460,000,000,000,000,000,000,000
149
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
void nump_del(GF_Box *s) { gf_free((GF_NUMPBox *)s); }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
164,045,914,465,580,260,000,000,000,000,000,000,000
4
prevent dref memleak on invalid input (#1183)