func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void Item_func_nullif::print(String *str, enum_query_type query_type) { /* NULLIF(a,b) is implemented according to the SQL standard as a short for CASE WHEN a=b THEN NULL ELSE a END The constructor of Item_func_nullif sets args[0] and args[2] to the same item "a", and sets args[1] to "b". If "th...
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
294,271,626,857,871,800,000,000,000,000,000,000,000
65
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
setenv_TZ (char const *tz) { return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ"); }
0
[]
gnulib
94e01571507835ff59dd8ce2a0b56a4b566965a4
33,627,678,670,069,030,000,000,000,000,000,000,000
4
time_rz: fix heap buffer overflow vulnerability This issue has been assigned CVE-2017-7476 and was detected with American Fuzzy Lop 2.41b run on the coreutils date(1) program with ASAN enabled. ERROR: AddressSanitizer: heap-buffer-overflow on address 0x... WRITE of size 8 at 0x60d00000cff8 thread T0 #1 0x443020...
static int opcdqe(RAsm *a, ut8 *data, const Opcode *op) { int l = 0; if (a->bits == 64) { data[l++] = 0x48; } data[l++] = 0x98; return l; }
0
[ "CWE-119", "CWE-125", "CWE-787" ]
radare2
9b46d38dd3c4de6048a488b655c7319f845af185
54,162,576,387,426,820,000,000,000,000,000,000,000
8
Fix #12372 and #12373 - Crash in x86 assembler (#12380) 0 ,0,[bP-bL-bP-bL-bL-r-bL-bP-bL-bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx-- leA ,0,[bP-bL-bL-bP-bL-bP-bL-60@bL- leA ,0,[bP-bL-r-bP-bL-bP-bL-60@bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx--
void ssl_calc_verify_tls( ssl_context *ssl, unsigned char hash[36] ) { md5_context md5; sha1_context sha1; SSL_DEBUG_MSG( 2, ( "=> calc verify tls" ) ); memcpy( &md5 , &ssl->handshake->fin_md5 , sizeof(md5_context) ); memcpy( &sha1, &ssl->handshake->fin_sha1, sizeof(sha1_context) ); md5_fin...
0
[ "CWE-119" ]
mbedtls
c988f32adde62a169ba340fee0da15aecd40e76e
63,535,704,806,864,260,000,000,000,000,000,000,000
21
Added max length checking of hostname
remove_autopickup_exception(whichape) struct autopickup_exception *whichape; { struct autopickup_exception *ape, *prev = 0; int chain = whichape->grab ? AP_GRAB : AP_LEAVE; for (ape = iflags.autopickup_exceptions[chain]; ape;) { if (ape == whichape) { struct autopickup_exception *freeape = ape; ...
0
[ "CWE-269" ]
NetHack
612755bfb5c412079795c68ba392df5d93874ed8
171,437,846,820,361,230,000,000,000,000,000,000,000
20
escapes() revamp Partial rewrite of escapes(), mostly changing its if-then-else logic so that end-of-string can be checked once instead for each case. The previous version had a bug if the input string ended with backslash and one decimal digit (due to being lumped together with the handling for trailing \X or \O...
void __init acpi_pic_sci_set_trigger(unsigned int irq, u16 trigger) { unsigned int mask = 1 << irq; unsigned int old, new; /* Real old ELCR mask */ old = inb(0x4d0) | (inb(0x4d1) << 8); /* * If we use ACPI to set PCI irq's, then we should clear ELCR * since we will set it correctly as we enable the PCI irq ...
0
[]
linux-2.6
f0f4c3432e5e1087b3a8c0e6bd4113d3c37497ff
131,688,530,211,936,340,000,000,000,000,000,000,000
35
[PATCH] i386: add HPET(s) into resource map Add HPET(s) into resource map. This will allow for the HPET(s) to be visibile within /proc/iomem. Signed-off-by: Aaron Durbin <adurbin@google.com> Signed-off-by: Andi Kleen <ak@suse.de>
static void vnc_listen_read(void *opaque) { VncDisplay *vs = opaque; struct sockaddr_in addr; socklen_t addrlen = sizeof(addr); /* Catch-up */ vga_hw_update(); int csock = qemu_accept(vs->lsock, (struct sockaddr *)&addr, &addrlen); if (csock != -1) { vnc_connect(vs, csock, 0); ...
0
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
188,842,113,225,776,260,000,000,000,000,000,000,000
14
pixman/vnc: use pixman images in vnc. The vnc code uses *three* DisplaySurfaces: First is the surface of the actual QemuConsole, usually the guest screen, but could also be a text console (monitor/serial reachable via Ctrl-Alt-<nr> keys). This is left as-is. Second is the current server's view of the screen content...
xfs_file_readdir( struct file *file, struct dir_context *ctx) { struct inode *inode = file_inode(file); xfs_inode_t *ip = XFS_I(inode); size_t bufsize; /* * The Linux API doesn't pass down the total size of the buffer * we read into down to the filesystem. With the filldir concept * it's not needed for c...
0
[ "CWE-19" ]
linux
fc0561cefc04e7803c0f6501ca4f310a502f65b8
54,940,798,577,724,350,000,000,000,000,000,000,000
24
xfs: optimise away log forces on timestamp updates for fdatasync xfs: timestamp updates cause excessive fdatasync log traffic Sage Weil reported that a ceph test workload was writing to the log on every fdatasync during an overwrite workload. Event tracing showed that the only metadata modification being made was the...
close_window_cb (gpointer data) { fr_window_close (FR_WINDOW (data)); return FALSE; }
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
256,875,579,982,154,840,000,000,000,000,000,000,000
5
libarchive: sanitize filenames before extracting
mptctl_hp_targetinfo(MPT_ADAPTER *ioc, unsigned long arg) { hp_target_info_t __user *uarg = (void __user *) arg; SCSIDevicePage0_t *pg0_alloc; SCSIDevicePage3_t *pg3_alloc; MPT_SCSI_HOST *hd = NULL; hp_target_info_t karg; int data_sz; dma_addr_t page_dma; CONFIGPARMS cfg; ConfigPageHeader_t hdr; int ...
0
[ "CWE-362", "CWE-369" ]
linux
28d76df18f0ad5bcf5fa48510b225f0ed262a99b
325,681,029,651,776,200,000,000,000,000,000,000,000
131
scsi: mptfusion: Fix double fetch bug in ioctl Tom Hatskevich reported that we look up "iocp" then, in the called functions we do a second copy_from_user() and look it up again. The problem that could cause is: drivers/message/fusion/mptctl.c 674 /* All of these commands require an interrupt or 675 ...
rsvg_new_filter_primitive_colour_matrix (void) { RsvgFilterPrimitiveColourMatrix *filter; filter = g_new (RsvgFilterPrimitiveColourMatrix, 1); _rsvg_node_init (&filter->super.super, RSVG_NODE_TYPE_FILTER_PRIMITIVE_COLOUR_MATRIX); filter->super.in = g_string_new ("none"); filter->super.result = g_str...
0
[]
librsvg
34c95743ca692ea0e44778e41a7c0a129363de84
57,980,802,691,971,250,000,000,000,000,000,000,000
16
Store node type separately in RsvgNode The node name (formerly RsvgNode:type) cannot be used to infer the sub-type of RsvgNode that we're dealing with, since for unknown elements we put type = node-name. This lead to a (potentially exploitable) crash e.g. when the element name started with "fe" which tricked the old c...
pci_bus_write_dsdt(int bus) { struct businfo *bi; struct slotinfo *si; struct pci_vdev *dev; int count, func, slot; /* * If there are no devices on this 'bus' then just return. */ bi = pci_businfo[bus]; if (bi == NULL) { /* * Bus 0 is special because it decodes the I/O ports used * for PCI config s...
0
[ "CWE-617", "CWE-703" ]
acrn-hypervisor
6199e653418eda58cd698d8769820904453e2535
290,356,925,457,301,520,000,000,000,000,000,000,000
149
dm: validate the input in 'pci_emul_mem_handler()' checking the inputs explicitly instead of using Assert. Tracked-On: #4003 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
*/ struct net_device *of_find_net_device_by_node(struct device_node *np) { struct device *dev; dev = class_find_device(&net_class, NULL, np, of_dev_node_match); if (!dev) return NULL; return to_net_dev(dev);
0
[ "CWE-401" ]
linux
895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab
97,450,278,701,508,950,000,000,000,000,000,000,000
10
net-sysfs: Fix mem leak in netdev_register_kobject syzkaller report this: BUG: memory leak unreferenced object 0xffff88837a71a500 (size 256): comm "syz-executor.2", pid 9770, jiffies 4297825125 (age 17.843s) hex dump (first 32 bytes): 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .....N.......... ff ff ...
vhost_user_send_rarp(struct virtio_net **pdev, struct VhostUserMsg *msg, int main_fd __rte_unused) { struct virtio_net *dev = *pdev; uint8_t *mac = (uint8_t *)&msg->payload.u64; struct rte_vdpa_device *vdpa_dev; int did = -1; if (validate_msg_fds(msg, 0) != 0) return RTE_VHOST_MSG_RESULT_ERR; VHOST_LOG_CON...
0
[ "CWE-190" ]
dpdk
3ae4beb079ce242240c34376a066bbccd0c0b23e
216,262,068,981,653,020,000,000,000,000,000,000,000
31
vhost: check log mmap offset and size overflow vhost_user_set_log_base() is a message handler that is called to handle the VHOST_USER_SET_LOG_BASE message. Its payload contains a 64 bit size and offset. Both are added up and used as a size when calling mmap(). There is no integer overflow check. If an integer overflo...
virDomainResctrlMonDefFree(virDomainResctrlMonDefPtr domresmon) { if (!domresmon) return; virBitmapFree(domresmon->vcpus); virObjectUnref(domresmon->instance); VIR_FREE(domresmon); }
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
221,017,464,084,058,170,000,000,000,000,000,000,000
9
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
void send_v2_notification(struct state *p1st, u_int16_t type, struct state *encst, u_char *icookie, u_char *rcookie, chunk_t *n_data) { u_char buffer[1024]; pb_stream reply; pb_stream rbody; chunk_t child_spi, notify_data; /* this function is not generic enough yet just enough for 6msg * TBD...
0
[ "CWE-20" ]
libreswan
2899351224fe2940aec37d7656e1e392c0fe07f0
8,364,095,048,614,076,000,000,000,000,000,000,000
80
SECURITY: Properly handle IKEv2 I1 notification packet without KE payload
check_ENQUEUE(const struct ofpact_enqueue *a, const struct ofpact_check_params *cp) { if (ofp_to_u16(a->port) >= ofp_to_u16(cp->max_ports) && a->port != OFPP_IN_PORT && a->port != OFPP_LOCAL) { return OFPERR_OFPBAC_BAD_OUT_PORT; } return 0; }
0
[ "CWE-416" ]
ovs
77cccc74deede443e8b9102299efc869a52b65b2
268,438,499,695,120,400,000,000,000,000,000,000,000
10
ofp-actions: Fix use-after-free while decoding RAW_ENCAP. While decoding RAW_ENCAP action, decode_ed_prop() might re-allocate ofpbuf if there is no enough space left. However, function 'decode_NXAST_RAW_ENCAP' continues to use old pointer to 'encap' structure leading to write-after-free and incorrect decoding. ==3...
parse_charset (const char *str) { const char *end; char *charset; if (!str || !*str) return NULL; str = c_strcasestr (str, "charset="); if (!str) return NULL; str += 8; end = str; /* sXXXav: which chars should be banned ??? */ while (*end && !c_isspace (*end)) end++; /* sXXXav: coul...
0
[ "CWE-787" ]
wget
692d5c5215de0db482c252492a92fc424cc6a97c
170,139,614,179,845,510,000,000,000,000,000,000,000
33
Fix a buffer overflow vulnerability * src/iri.c(do_conversion): Reallocate the output buffer to a larger size if it is already full
TEST_F(EncryptedRecordTest, TestReadUnknown) { addToQueue("17030100050123456789"); EXPECT_CALL(*readAead_, _decrypt(_, _, 0)) .WillOnce(Invoke([](std::unique_ptr<IOBuf>& buf, const IOBuf*, uint64_t) { expectSame(buf, "0123456789"); return getBuf("1234abcd20"); })); EXPECT_ANY_THROW(rea...
0
[ "CWE-400", "CWE-703", "CWE-770" ]
fizz
6bf67137ef1ee5cd70c842b014c322b7deaf994b
38,646,987,670,556,000,000,000,000,000,000,000,000
9
Reject zero length handshake records. Summary: Zero length (all padding) handshake are forbidden by RFC. Allowing these was a regression in D13754697 (2c6f78a). This is a partial fix for CVE-2019-11924 Reviewed By: xybu Differential Revision: D16285100 fbshipit-source-id: 05a19d31ad74601ce89156a0e59517aaad8dd928
static inline int __gfp_pfmemalloc_flags(gfp_t gfp_mask) { if (unlikely(gfp_mask & __GFP_NOMEMALLOC)) return 0; if (gfp_mask & __GFP_MEMALLOC) return ALLOC_NO_WATERMARKS; if (in_serving_softirq() && (current->flags & PF_MEMALLOC)) return ALLOC_NO_WATERMARKS; if (!in_interrupt()) { if (current->flags & PF_ME...
0
[]
linux
400e22499dd92613821374c8c6c88c7225359980
321,554,640,355,747,030,000,000,000,000,000,000,000
17
mm: don't warn about allocations which stall for too long Commit 63f53dea0c98 ("mm: warn about allocations which stall for too long") was a great step for reducing possibility of silent hang up problem caused by memory allocation stalls. But this commit reverts it, for it is possible to trigger OOM lockup and/or soft...
static int is_image_stream(fz_context *ctx, pdf_obj *obj) { pdf_obj *o; if ((o = pdf_dict_get(ctx, obj, PDF_NAME_Type), pdf_name_eq(ctx, o, PDF_NAME_XObject))) if ((o = pdf_dict_get(ctx, obj, PDF_NAME_Subtype), pdf_name_eq(ctx, o, PDF_NAME_Image))) return 1; if (o = pdf_dict_get(ctx, obj, PDF_NAME_Filter), filt...
0
[ "CWE-119" ]
mupdf
520cc26d18c9ee245b56e9e91f9d4fcae02be5f0
239,385,021,417,363,630,000,000,000,000,000,000,000
12
Bug 689699: Avoid buffer overrun. When cleaning a pdf file, various lists (of pdf_xref_len length) are defined early on. If we trigger a repair during the clean, this can cause pdf_xref_len to increase causing an overrun. Fix this by watching for changes in the length, and checking accesses to the list for validity....
static ssize_t ib_ucm_send_sidr_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) { struct ib_cm_sidr_req_param param; struct ib_ucm_context *ctx; struct ib_ucm_sidr_req cmd; int result; param.private_data = NULL; param.path = NULL; if (copy_from_user(&cmd, inbuf,...
0
[ "CWE-284", "CWE-264" ]
linux
e6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3
304,818,429,525,642,800,000,000,000,000,000,000,000
40
IB/security: Restrict use of the write() interface The drivers/infiniband stack uses write() as a replacement for bi-directional ioctl(). This is not safe. There are ways to trigger write calls that result in the return structure that is normally written to user space being shunted off to user specified kernel memory...
static int ssl_verify_cert(struct tunnel *tunnel) { int ret = -1; int cert_valid = 0; unsigned char digest[SHA256LEN]; unsigned int len; struct x509_digest *elem; char digest_str[SHA256STRLEN], *subject, *issuer; char *line; int i; X509_NAME *subj; SSL_set_verify(tunnel->ssl_handle, SSL_VERIFY_PEER, NULL); ...
1
[ "CWE-295" ]
openfortivpn
6328a070ddaab16faaf008cb9a8a62439c30f2a8
231,422,686,038,679,300,000,000,000,000,000,000,000
94
fix TLS Certificate CommonName NULL Byte Vulnerability CVE-2020-7043 TLS Certificate CommonName NULL Byte Vulnerability is fixed with this commit with #8 hostname validation for the certificate was introduced but unfortunately strncasecmp() was used to compare the byte array against the expected hostname. This does n...
gs_listener_error_quark (void) { static GQuark quark = 0; if (!quark) { quark = g_quark_from_static_string ("gs_listener_error"); } return quark; }
0
[]
gnome-screensaver
284c9924969a49dbf2d5fae1d680d3310c4df4a3
300,586,310,457,380,900,000,000,000,000,000,000,000
9
Remove session inhibitors if the originator falls of the bus This fixes a problem where totem leaves inhibitors behind, see bug 600488.
static avifBool avifParseCleanApertureBoxProperty(avifProperty * prop, const uint8_t * raw, size_t rawLen) { BEGIN_STREAM(s, raw, rawLen); avifCleanApertureBox * clap = &prop->u.clap; CHECK(avifROStreamReadU32(&s, &clap->widthN)); // unsigned int(32) cleanApertureWidthN; CHECK(avifROStreamReadU32(&s...
0
[ "CWE-703", "CWE-787" ]
libavif
0a8e7244d494ae98e9756355dfbfb6697ded2ff9
274,077,892,857,412,650,000,000,000,000,000,000,000
15
Set max image size to 16384 * 16384 Fix https://crbug.com/oss-fuzz/24728 and https://crbug.com/oss-fuzz/24734.
static inline void php_var_serialize_string(smart_str *buf, char *str, size_t len) /* {{{ */ { smart_str_appendl(buf, "s:", 2); smart_str_append_unsigned(buf, len); smart_str_appendl(buf, ":\"", 2); smart_str_appendl(buf, str, len); smart_str_appendl(buf, "\";", 2); }
0
[ "CWE-416" ]
php-src
b2af4e8868726a040234de113436c6e4f6372d17
290,490,693,823,623,130,000,000,000,000,000,000,000
8
Complete the fix of bug #70172 for PHP 7
static int get_device_type(SCSIDiskState *s) { uint8_t cmd[16]; uint8_t buf[36]; int ret; memset(cmd, 0, sizeof(cmd)); memset(buf, 0, sizeof(buf)); cmd[0] = INQUIRY; cmd[4] = sizeof(buf); ret = scsi_SG_IO_FROM_DEV(s->qdev.conf.blk, cmd, sizeof(cmd), buf, s...
0
[ "CWE-193" ]
qemu
b3af7fdf9cc537f8f0dd3e2423d83f5c99a457e8
217,639,554,865,077,970,000,000,000,000,000,000,000
22
hw/scsi/scsi-disk: MODE_PAGE_ALLS not allowed in MODE SELECT commands This avoids an off-by-one read of 'mode_sense_valid' buffer in hw/scsi/scsi-disk.c:mode_sense_page(). Fixes: CVE-2021-3930 Cc: qemu-stable@nongnu.org Reported-by: Alexander Bulekov <alxndr@bu.edu> Fixes: a8f4bbe2900 ("scsi-disk: store valid mode pa...
static int hub_pre_reset(struct usb_interface *intf) { struct usb_hub *hub = usb_get_intfdata(intf); hub_quiesce(hub, HUB_PRE_RESET); hub->in_reset = 1; hub_pm_barrier_for_all_ports(hub); return 0; }
0
[ "CWE-703" ]
linux
e50293ef9775c5f1cf3fcc093037dd6a8c5684ea
46,703,153,488,821,680,000,000,000,000,000,000,000
9
USB: fix invalid memory access in hub_activate() Commit 8520f38099cc ("USB: change hub initialization sleeps to delayed_work") changed the hub_activate() routine to make part of it run in a workqueue. However, the commit failed to take a reference to the usb_hub structure or to lock the hub interface while doing so. ...
int EC_GROUP_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx) { if (group->meth->group_set_curve == 0) { ECerr(EC_F_EC_GROUP_SET_CURVE, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); return 0; } return group->meth->group_set_curve(group, ...
0
[]
openssl
30c22fa8b1d840036b8e203585738df62a03cec8
91,053,227,359,950,630,000,000,000,000,000,000,000
9
[crypto/ec] for ECC parameters with NULL or zero cofactor, compute it The cofactor argument to EC_GROUP_set_generator is optional, and SCA mitigations for ECC currently use it. So the library currently falls back to very old SCA-vulnerable code if the cofactor is not present. This PR allows EC_GROUP_set_generator to ...
static int snd_ctl_elem_user_enum_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) { struct user_element *ue = kcontrol->private_data; const char *names; unsigned int item; unsigned int offset; item = uinfo->value.enumerated.item; offset = snd_ctl_get_ioff(kcontrol, &uinfo->id); ...
0
[ "CWE-416", "CWE-125" ]
linux
6ab55ec0a938c7f943a4edba3d6514f775983887
239,821,961,611,956,800,000,000,000,000,000,000,000
24
ALSA: control: Fix an out-of-bounds bug in get_ctl_id_hash() Since the user can control the arguments provided to the kernel by the ioctl() system call, an out-of-bounds bug occurs when the 'id->name' provided by the user does not end with '\0'. The following log can reveal it: [ 10.002313] BUG: KASAN: stack-out-...
static void remove_translation_table(FlowSource_t *fs, exporter_ipfix_domain_t *exporter, uint16_t id) { input_translation_t *table, *parent; LogInfo("Process_ipfix: [%u] Withdraw template id: %i", exporter->info.id, id); parent = NULL; table = exporter->input_translation_table; while ( table && ( table->id !...
0
[]
nfdump
ff0e855bd1f51bed9fc5d8559c64d3cfb475a5d8
34,403,311,571,966,270,000,000,000,000,000,000,000
39
Fix security issues in netflow_v9.c and ipfix.c
do_source_buffer_init(source_cookie_T *sp, exarg_T *eap) { linenr_T curr_lnum; char_u *line = NULL; char_u *fname; CLEAR_FIELD(*sp); if (curbuf == NULL) return NULL; // Use ":source buffer=<num>" as the script name vim_snprintf((char *)IObuff, IOSIZE, ":source buffer=%d", curbuf->b_fnum)...
0
[ "CWE-122" ]
vim
2bdad6126778f907c0b98002bfebf0e611a3f5db
72,304,830,569,629,170,000,000,000,000,000,000,000
40
patch 8.2.4647: "source" can read past end of copied line Problem: "source" can read past end of copied line. Solution: Add a terminating NUL.
MessageType wait_for_tiny_msg(uint8_t *buf) { return tiny_msg_poll_and_buffer(true, buf); }
0
[ "CWE-787" ]
keepkey-firmware
b222c66cdd7c3203d917c80ba615082d309d80c3
284,813,973,458,656,270,000,000,000,000,000,000,000
4
board: factor out tiny_dispatch And add stronger checks on what tiny_msg's are allowed to be decoded.
dump_seqs(void) { seq_t *seq; element e; LIST_FOREACH(seq_list, seq, e) log_message(LOG_INFO, "SEQ: %s => %d -> %d step %d: '%s'", seq->var, seq->next, seq->last, seq->step, seq->text); log_message(LOG_INFO, "%s", ""); }
0
[ "CWE-59", "CWE-61" ]
keepalived
04f2d32871bb3b11d7dc024039952f2fe2750306
256,025,294,226,085,080,000,000,000,000,000,000
9
When opening files for write, ensure they aren't symbolic links Issue #1048 identified that if, for example, a non privileged user created a symbolic link from /etc/keepalvied.data to /etc/passwd, writing to /etc/keepalived.data (which could be invoked via DBus) would cause /etc/passwd to be overwritten. This commit ...
*/ static int xmlXPathCompOpEvalLast(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op, xmlNodePtr * last) { int total = 0, cur; xmlXPathCompExprPtr comp; xmlXPathObjectPtr arg1, arg2; CHECK_ERROR0; comp = ctxt->comp; switch (op->op) { case XPATH_OP_END: ...
0
[ "CWE-476" ]
libxml2
a436374994c47b12d5de1b8b1d191a098fa23594
116,915,104,782,855,760,000,000,000,000,000,000,000
100
Fix nullptr deref with XPath logic ops If the XPath stack is corrupted, for example by a misbehaving extension function, the "and" and "or" XPath operators could dereference NULL pointers. Check that the XPath stack isn't empty and optimize the logic operators slightly. Closes: https://gitlab.gnome.org/GNOME/libxml2/...
GF_Err fiin_Size(GF_Box *s) { GF_Err e; FDItemInformationBox *ptr = (FDItemInformationBox *)s; ptr->size+= 2; if (ptr->partition_entries) { e = gf_isom_box_array_size(s, ptr->partition_entries); if (e) return e; } if (ptr->session_info) { e = gf_isom_box_size((GF_Box *)ptr->session_info); if (e) return e...
0
[ "CWE-125" ]
gpac
bceb03fd2be95097a7b409ea59914f332fb6bc86
218,365,440,113,968,150,000,000,000,000,000,000,000
23
fixed 2 possible heap overflows (inc. #1088)
unsigned long zuiLength(zsetopsrc *op) { if (op->subject == NULL) return 0; if (op->type == OBJ_SET) { if (op->encoding == OBJ_ENCODING_INTSET) { return intsetLen(op->subject->ptr); } else if (op->encoding == OBJ_ENCODING_HT) { dict *ht = op->subject->ptr; ...
0
[ "CWE-190" ]
redis
f6a40570fa63d5afdd596c78083d754081d80ae3
154,007,816,615,354,700,000,000,000,000,000,000,000
26
Fix ziplist and listpack overflows and truncations (CVE-2021-32627, CVE-2021-32628) - fix possible heap corruption in ziplist and listpack resulting by trying to allocate more than the maximum size of 4GB. - prevent ziplist (hash and zset) from reaching size of above 1GB, will be converted to HT encoding, that's n...
pfm_remap_buffer(struct vm_area_struct *vma, unsigned long buf, unsigned long addr, unsigned long size) { DPRINT(("CPU%d buf=0x%lx addr=0x%lx size=%ld\n", smp_processor_id(), buf, addr, size)); while (size > 0) { unsigned long pfn = ia64_tpa(buf) >> PAGE_SHIFT; if (remap_pfn_range(vma, addr, pfn, PAGE_SIZE, PA...
0
[]
linux-2.6
41d5e5d73ecef4ef56b7b4cde962929a712689b4
110,194,382,180,411,330,000,000,000,000,000,000,000
17
[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 void nvme_copy_in_cb(void *opaque, int ret) { NvmeCopyAIOCB *iocb = opaque; NvmeRequest *req = iocb->req; NvmeNamespace *ns = req->ns; NvmeCopySourceRange *range; uint64_t slba; uint32_t nlb; if (ret < 0) { iocb->ret = ret; goto out; } else if (iocb->ret < 0) { ...
0
[]
qemu
736b01642d85be832385063f278fe7cd4ffb5221
266,935,134,296,573,120,000,000,000,000,000,000,000
37
hw/nvme: fix CVE-2021-3929 This fixes CVE-2021-3929 "locally" by denying DMA to the iomem of the device itself. This still allows DMA to MMIO regions of other devices (e.g. doing P2P DMA to the controller memory buffer of another NVMe device). Fixes: CVE-2021-3929 Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com> Review...
static __always_inline unsigned rb_page_commit(struct buffer_page *bpage) { return local_read(&bpage->page->commit); }
0
[ "CWE-362" ]
linux
bbeb97464eefc65f506084fd9f18f21653e01137
327,054,773,340,208,260,000,000,000,000,000,000,000
4
tracing: Fix race in trace_open and buffer resize call Below race can come, if trace_open and resize of cpu buffer is running parallely on different cpus CPUX CPUY ring_buffer_resize atomic_read(&buffer->resize_disabled) tracing_open tracing_reset_online_cpus ring_buffer_...
int unit_name_change_suffix(const char *n, const char *suffix, char **ret) { _cleanup_free_ char *s = NULL; size_t a, b; char *e; assert(n); assert(suffix); assert(ret); if (!unit_name_is_valid(n, UNIT_NAME_ANY)) return -EINVAL; if (!uni...
0
[ "CWE-703" ]
systemd-stable
b00674347337b7531c92fdb65590ab253bb57538
1,154,906,560,106,407,200,000,000,000,000,000,000
33
basic/unit-name: do not use strdupa() on a path The path may have unbounded length, for example through a fuse mount. CVE-2021-33910: attacked controlled alloca() leads to crash in systemd and ultimately a kernel panic. Systemd parses the content of /proc/self/mountinfo and each mountpoint is passed to mount_setup_un...
ex_substitute(exarg_T *eap) { linenr_T lnum; long i = 0; regmmatch_T regmatch; static subflags_T subflags = {FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, 0}; #ifdef FEAT_EVAL subflags_T subflags_save; #endif int save_do_all; // remember user specified 'g' flag int save_do_...
0
[ "CWE-787" ]
vim
e2bd8600b873d2cd1f9d667c28cba8b1dba18839
229,567,557,199,715,700,000,000,000,000,000,000,000
1,153
patch 8.2.4977: memory access error when substitute expression changes window Problem: Memory access error when substitute expression changes window. Solution: Disallow changing window in substitute expression.
int del_def_xattr_acl(const char *fname) { return sys_lremovexattr(fname, XDEF_ACL_ATTR); }
0
[ "CWE-125" ]
rsync
47a63d90e71d3e19e0e96052bb8c6b9cb140ecc1
291,715,616,142,808,400,000,000,000,000,000,000,000
4
Enforce trailing \0 when receiving xattr name values. Fixes bug 13112.
pcstatus_do_reset(pcl_state_t * pcs, pcl_reset_type_t type) { if (type & (pcl_reset_initial | pcl_reset_printer)) { if (type & pcl_reset_initial) { pcs->status.buffer = 0; pcs->status.write_pos = 0; pcs->status.read_pos = 0; } pcs->location_type = 0; ...
0
[ "CWE-787" ]
ghostpdl
e1134d375e2ca176068e19a2aa9b040baffe1c22
122,887,234,213,724,400,000,000,000,000,000,000,000
14
Bug 705156(1): Avoid double free of PCL error buffer
GF_Box *fpar_New() { ISOM_DECL_BOX_ALLOC(FilePartitionBox, GF_ISOM_BOX_TYPE_FPAR); return (GF_Box *)tmp; }
0
[ "CWE-125" ]
gpac
bceb03fd2be95097a7b409ea59914f332fb6bc86
99,214,741,308,038,400,000,000,000,000,000,000,000
5
fixed 2 possible heap overflows (inc. #1088)
_gnutls_server_name_recv_params (gnutls_session_t session, const opaque * data, size_t _data_size) { int i; const unsigned char *p; uint16_t len, type; ssize_t data_size = _data_size; int server_names = 0; if (session->security_parameters.entity == GNUTLS_SERVER) { DECR_LENGTH_RET (data_size...
1
[ "CWE-189" ]
gnutls
bc8102405fda11ea00ca3b42acc4f4bce9d6e97b
168,266,384,151,590,400,000,000,000,000,000,000,000
81
Fix GNUTLS-SA-2008-1 security vulnerabilities. See http://www.gnu.org/software/gnutls/security.html for updates.
static int ZEND_FASTCALL ZEND_FETCH_OBJ_W_SPEC_VAR_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1, free_op2; zval *property = _get_zval_ptr_var(&opline->op2, EX(Ts), &free_op2 TSRMLS_CC); zval **container; if (IS_VAR == IS_VAR && (opline->extended_value & ZEND_FETCH_A...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
1,362,665,915,629,042,600,000,000,000,000,000,000
44
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
notify_ap_prop_changed_cb (NMAccessPoint *ap, GParamSpec *pspec, NMApplet *applet) { const char *prop = g_param_spec_get_name (pspec); if ( !strcmp (prop, NM_ACCESS_POINT_FLAGS) || !strcmp (prop, NM_ACCESS_POINT_WPA_FLAGS) || !strcmp (prop, NM_ACCESS_...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
308,053,883,991,139,500,000,000,000,000,000,000,000
15
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
int compare(const rgw_user& u) const { int r = tenant.compare(u.tenant); if (r != 0) return r; return id.compare(u.id); }
0
[ "CWE-617" ]
ceph
b3118cabb8060a8cc6a01c4e8264cb18e7b1745a
9,670,862,298,320,988,000,000,000,000,000,000,000
7
rgw: Remove assertions in IAM Policy A couple of them could be triggered by user input. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
struct btrfs_trans_handle *btrfs_start_transaction_fallback_global_rsv( struct btrfs_root *root, unsigned int num_items) { return start_transaction(root, num_items, TRANS_START, BTRFS_RESERVE_FLUSH_ALL_STEAL, false); }
0
[ "CWE-703", "CWE-667" ]
linux
1cb3db1cf383a3c7dbda1aa0ce748b0958759947
47,903,848,495,658,210,000,000,000,000,000,000,000
7
btrfs: fix deadlock with concurrent chunk allocations involving system chunks When a task attempting to allocate a new chunk verifies that there is not currently enough free space in the system space_info and there is another task that allocated a new system chunk but it did not finish yet the creation of the respecti...
void reserve(std::size_t capacity) { if (capacity > capacity_) grow(capacity); }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
314,460,249,378,221,530,000,000,000,000,000,000,000
4
Fix segfault on complex pointer formatting (#642)
brcmf_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *ndev, struct cfg80211_ibss_params *params) { struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); struct brcmf_if *ifp = netdev_priv(ndev); struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; struct brcmf_join_params join_params; s...
0
[ "CWE-787" ]
linux
1b5e2423164b3670e8bc9174e4762d297990deff
151,352,325,965,167,800,000,000,000,000,000,000,000
149
brcmfmac: assure SSID length from firmware is limited The SSID length as received from firmware should not exceed IEEE80211_MAX_SSID_LEN as that would result in heap overflow. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> Reviewed-by:...
eval1(char_u **arg, typval_T *rettv, evalarg_T *evalarg) { char_u *p; int getnext; CLEAR_POINTER(rettv); /* * Get the first variable. */ if (eval2(arg, rettv, evalarg) == FAIL) return FAIL; p = eval_next_non_blank(*arg, evalarg, &getnext); if (*p == '?') { int op_fal...
0
[ "CWE-476" ]
vim
79481367a457951aabd9501b510fd7e3eb29c3d8
37,598,622,008,915,917,000,000,000,000,000,000,000
145
patch 8.2.5169: nested :source may use NULL pointer Problem: Nested :source may use NULL pointer. Solution: Do not use the NULL pointer.
nat_conn_keys_remove(struct hmap *nat_conn_keys, const struct conn_key *key, uint32_t basis) { struct nat_conn_key_node *nat_conn_key_node; uint32_t nat_conn_key_hash = conn_key_hash(key, basis); HMAP_FOR_EACH_WITH_HASH (nat_conn_key_node, node, nat_conn_key_hash, ...
0
[ "CWE-400" ]
ovs
35c280072c1c3ed58202745b7d27fbbd0736999b
277,174,595,576,911,300,000,000,000,000,000,000,000
16
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
_copyValuesScan(const ValuesScan *from) { ValuesScan *newnode = makeNode(ValuesScan); /* * copy node superclass fields */ CopyScanFields((const Scan *) from, (Scan *) newnode); /* * copy remainder of node */ COPY_NODE_FIELD(values_lists); return newnode; }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
77,842,840,191,449,140,000,000,000,000,000,000,000
16
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
pa2rgba(UINT8 *out, const UINT8 *in, int xsize, const UINT8 *palette) { int x; for (x = 0; x < xsize; x++, in += 4) { const UINT8 *rgb = &palette[in[0] * 4]; *out++ = rgb[0]; *out++ = rgb[1]; *out++ = rgb[2]; *out++ = in[3]; } }
0
[ "CWE-120" ]
Pillow
518ee3722a99d7f7d890db82a20bd81c1c0327fb
166,683,594,164,931,280,000,000,000,000,000,000,000
10
Use snprintf instead of sprintf
static void kvm_on_user_return(struct user_return_notifier *urn) { unsigned slot; struct kvm_shared_msrs *locals = container_of(urn, struct kvm_shared_msrs, urn); struct kvm_shared_msr_values *values; for (slot = 0; slot < shared_msrs_global.nr; ++slot) { values = &locals->values[slot]; if (values->host != v...
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
24,316,613,391,478,526,000,000,000,000,000,000,000
17
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...
AdjustStringPackage ( IN OUT HII_DATABASE_PACKAGE_LIST_INSTANCE *PackageList ) { LIST_ENTRY *Link; HII_STRING_PACKAGE_INSTANCE *StringPackage; UINT32 Skip2BlockSize; UINT32 OldBlockSize; UINT8 *StringBlock; UINT8 ...
0
[ "CWE-416" ]
edk2
c32be82e99ef272e7fa742c2f06ff9a4c3756613
24,941,988,015,581,595,000,000,000,000,000,000,000
67
MdeModulePkg/HiiDB: Remove configuration table when it's freed (CVE-2019-14586) REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1995 Fix the corner case issue that the original configuration runtime memory is freed, but it is still exposed to the OS runtime. So this patch is to remove the configuration table to a...
**/ CImgDisplay& hide_mouse() { return assign();
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
305,318,971,680,979,940,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
hb_set_symmetric_difference (hb_set_t *set, const hb_set_t *other) { if (unlikely (hb_object_is_immutable (set))) return; set->symmetric_difference (*other); }
1
[ "CWE-787" ]
harfbuzz
d3e09bf4654fe5478b6dbf2b26ebab6271317d81
280,179,524,726,955,700,000,000,000,000,000,000,000
8
[set] Make all operators null-safe again Changed my mind. Also for hb_map_clear(). Part of https://github.com/harfbuzz/harfbuzz/pull/3162
ModuleExport size_t RegisterDIBImage(void) { MagickInfo *entry; entry=AcquireMagickInfo("DIB","DIB", "Microsoft Windows 3.X Packed Device-Independent Bitmap"); entry->decoder=(DecodeImageHandler *) ReadDIBImage; entry->encoder=(EncodeImageHandler *) WriteDIBImage; entry->magick=(IsImageFormatHandler ...
0
[ "CWE-787" ]
ImageMagick
921f208c2ea3cc45847f380257f270ff424adfff
107,247,575,842,216,630,000,000,000,000,000,000,000
22
https://github.com/ImageMagick/ImageMagick/issues/1178
GF_Box *clef_box_new() { ISOM_DECL_BOX_ALLOC(GF_ApertureBox, GF_QT_BOX_TYPE_CLEF); return (GF_Box *)tmp; }
0
[ "CWE-476" ]
gpac
6170024568f4dda310e98ef7508477b425c58d09
230,140,776,669,338,470,000,000,000,000,000,000,000
5
fixed potential crash - cf #1263
int ImagingLibTiffEncode(Imaging im, ImagingCodecState state, UINT8* buffer, int bytes) { /* One shot encoder. Encode everything to the tiff in the clientstate. If we're running off of a FD, then run once, we're good, everything ends up in the file, we close and we're done. If we're going to m...
0
[ "CWE-190", "CWE-787" ]
Pillow
4e2def2539ec13e53a82e06c4b3daf00454100c4
139,497,445,982,016,730,000,000,000,000,000,000,000
86
Overflow checks for realloc for tiff decoding
void TCStopVolumeThread (PDEVICE_OBJECT DeviceObject, PEXTENSION Extension) { NTSTATUS ntStatus; UNREFERENCED_PARAMETER (DeviceObject); /* Remove compiler warning */ Dump ("Signalling thread to quit...\n"); Extension->bThreadShouldQuit = TRUE; KeReleaseSemaphore (&Extension->RequestSemaphore, 0, ...
0
[ "CWE-119", "CWE-787" ]
VeraCrypt
f30f9339c9a0b9bbcc6f5ad38804af39db1f479e
327,256,969,452,566,500,000,000,000,000,000,000,000
28
Windows: fix low severity vulnerability in driver that allowed reading 3 bytes of kernel stack memory (with a rare possibility of 25 additional bytes). Reported by Tim Harrison.
String_Schema_Obj Parser::parse_css_variable_value_token(bool top_level) { String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate); if ( (top_level && lex< css_variable_top_level_value >(false)) || (!top_level && lex< css_variable_value >(false)) ) { Token str(lexed); s...
0
[ "CWE-125" ]
libsass
eb15533b07773c30dc03c9d742865604f47120ef
248,705,691,668,363,260,000,000,000,000,000,000,000
50
Fix memory leak in `parse_ie_keyword_arg` `kwd_arg` would never get freed when there was a parse error in `parse_ie_keyword_arg`. Closes #2656
void sctp_v6_pf_init(void) { /* Register the SCTP specific PF_INET6 functions. */ sctp_register_pf(&sctp_pf_inet6, PF_INET6); /* Register the SCTP specific AF_INET6 functions. */ sctp_register_af(&sctp_af_inet6); }
0
[ "CWE-310" ]
net
95ee62083cb6453e056562d91f597552021e6ae7
51,346,914,170,210,660,000,000,000,000,000,000,000
8
net: sctp: fix ipv6 ipsec encryption bug in sctp_v6_xmit Alan Chester reported an issue with IPv6 on SCTP that IPsec traffic is not being encrypted, whereas on IPv4 it is. Setting up an AH + ESP transport does not seem to have the desired effect: SCTP + IPv4: 22:14:20.809645 IP (tos 0x2,ECT(0), ttl 64, id 0, offse...
GF_Err MergeFragment(GF_MovieFragmentBox *moof, GF_ISOFile *mov) { GF_Err e; u32 i, j; u64 MaxDur; GF_TrackFragmentBox *traf; GF_TrackBox *trak; u64 base_data_offset; MaxDur = 0; //we shall have a MOOV and its MVEX BEFORE any MOOF if (!mov->moov || !mov->moov->mvex) { GF_LOG(GF_LOG_ERROR, GF_LOG_CONTAINER,...
0
[ "CWE-401" ]
gpac
fe5155cf047252d1c4cb91602048bfa682af0ea7
128,994,650,650,265,300,000,000,000,000,000,000,000
93
fixed #1783 (fuzz)
static struct sk_filter *__sk_prepare_filter(struct sk_filter *fp, struct sock *sk) { int err; fp->bpf_func = NULL; fp->jited = 0; err = sk_chk_filter(fp->insns, fp->len); if (err) return ERR_PTR(err); /* Probe if we can JIT compile the filter and if so, do * the compilation of the filter. */ ...
0
[ "CWE-416", "CWE-125", "CWE-189" ]
linux
05ab8f2647e4221cbdb3856dd7d32bd5407316b3
64,643,140,177,311,620,000,000,000,000,000,000,000
25
filter: prevent nla extensions to peek beyond the end of the message The BPF_S_ANC_NLATTR and BPF_S_ANC_NLATTR_NEST extensions fail to check for a minimal message length before testing the supplied offset to be within the bounds of the message. This allows the subtraction of the nla header to underflow and therefore -...
static void gen_rot_rm_im(DisasContext *s, TCGMemOp ot, int op1, int op2, int is_right) { int mask = (ot == MO_64 ? 0x3f : 0x1f); int shift; /* load */ if (op1 == OR_TMP0) { gen_op_ld_v(s, ot, cpu_T0, cpu_A0); } else { gen_op_mov_v_reg(ot, cpu_T0, op1); ...
0
[ "CWE-94" ]
qemu
30663fd26c0307e414622c7a8607fbc04f92ec14
93,139,120,236,512,500,000,000,000,000,000,000,000
76
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....
gerbv_gdk_draw_prim1(GdkPixmap *pixmap, GdkGC *gc, gerbv_simplified_amacro_t *s, double scale, gint x, gint y) { const int exposure_idx = 0; const int diameter_idx = 1; const int x_offset_idx = 2; const int y_offset_idx = 3; const gint full_circle = 23360; GdkGC *local_gc = gdk_gc_new(pi...
0
[ "CWE-703" ]
gerbv
b2c2f8da851f2ac8079a91ce9d498d87ff96abcf
137,486,459,745,609,490,000,000,000,000,000,000,000
41
Avoid direct access on array of unknown size Be requiring a `gerbv_simplified_amacro_t` the `dgk_draw_amacro_funcs` can be sure of the length of the parameter array.
struct zonelist *huge_zonelist(struct vm_area_struct *vma, unsigned long addr, gfp_t gfp_flags, struct mempolicy **mpol, nodemask_t **nodemask) { struct zonelist *zl; *mpol = get_vma_policy(current, vma, addr); *nodemask = NULL; /* assume !MPOL_BIND */ if (unlikely((*mpol)->mode == MPOL_INTERLEAVE)) { z...
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
133,451,541,604,850,910,000,000,000,000,000,000,000
19
mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode In some cases it may happen that pmd_none_or_clear_bad() is called with the mmap_sem hold in read mode. In those cases the huge page faults can allocate hugepmds under pmd_none_or_clear_bad() and that can trigger a false positive from pmd_bad(...
compute_cmdrow(void) { if (exmode_active || msg_scrolled != 0) cmdline_row = Rows - 1; else cmdline_row = W_WINROW(lastwin) + lastwin->w_height + lastwin->w_status_height; }
0
[ "CWE-122", "CWE-787" ]
vim
85b6747abc15a7a81086db31289cf1b8b17e6cb1
293,297,169,848,584,050,000,000,000,000,000,000,000
8
patch 8.2.4214: illegal memory access with large 'tabstop' in Ex mode Problem: Illegal memory access with large 'tabstop' in Ex mode. Solution: Allocate enough memory.
ZrtpPacketHello::ZrtpPacketHello(uint8_t *data) { DEBUGOUT((fprintf(stdout, "Creating Hello packet from data\n"))); zrtpHeader = (zrtpPacketHeader_t *)&((HelloPacket_t *)data)->hdr; // the standard header helloHeader = (Hello_t *)&((HelloPacket_t *)data)->hello; uint32_t t = *((uint32_t*)&helloHeader-...
1
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
316,899,574,271,609,400,000,000,000,000,000,000,000
25
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
void operator()(OpKernelContext* context, const InputReshapedType& input_reshaped, const std::vector<int64_t>& split_start_points, const TensorShape& input_shape, int32_t split_dim, Eigen::DenseIndex prefix_dim_size, Eigen::Dens...
0
[ "CWE-703" ]
tensorflow
25d622ffc432acc736b14ca3904177579e733cc6
257,571,769,201,781,880,000,000,000,000,000,000,000
78
A negative size in one of the split sizes allowed the computed size of another to exceed the total dimension, leading to a segfault and security vulnerability. Adding a check for negative sizes prevents this. PiperOrigin-RevId: 401035665 Change-Id: I79bbe329787dac82aa4bf60397a9129b716aedab
com_use(String *buffer __attribute__((unused)), char *line) { char *tmp, buff[FN_REFLEN + 1]; int select_db; bzero(buff, sizeof(buff)); strmake_buf(buff, line); tmp= get_arg(buff, GET); if (!tmp || !*tmp) { put_info("USE must be followed by a database name", INFO_ERROR); return 0; } /* We...
0
[]
server
383007c75d6ef5043fa5781956a6a02b24e2b79e
61,435,036,781,944,490,000,000,000,000,000,000,000
72
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
static int __gup_device_huge(unsigned long pfn, unsigned long addr, unsigned long end, struct page **pages, int *nr) { int nr_start = *nr; struct dev_pagemap *pgmap = NULL; do { struct page *page = pfn_to_page(pfn); pgmap = get_dev_pagemap(pfn, pgmap); if (unlikely(!pgmap)) { undo_dev_pagemap(nr, nr_sta...
0
[ "CWE-119" ]
linux
7f7ccc2ccc2e70c6054685f5e3522efa81556830
66,223,742,025,737,030,000,000,000,000,000,000,000
25
proc: do not access cmdline nor environ from file-backed areas proc_pid_cmdline_read() and environ_read() directly access the target process' VM to retrieve the command line and environment. If this process remaps these areas onto a file via mmap(), the requesting process may experience various issues such as extra de...
static void cmd_window_stick(const char *data) { MAIN_WINDOW_REC *mainwin; WINDOW_REC *win; mainwin = active_mainwin; win = active_mainwin->active; if (is_numeric(data, ' ')) { /* ref# specified */ win = window_find_refnum(atoi(data)); if (win == NULL) { printformat_window(ac...
0
[ "CWE-476" ]
irssi
5b5bfef03596d95079c728f65f523570dd7b03aa
74,968,113,796,452,180,000,000,000,000,000,000,000
40
check the error condition of mainwindow_create
CImg<floatT> get_object3dtoCImg3d(const bool full_check=true) const { CImgList<T> opacities, colors; CImgList<uintT> primitives(width(),1,1,1,1); cimglist_for(primitives,p) primitives(p,0) = p; return get_object3dtoCImg3d(primitives,colors,opacities,full_check); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
86,132,932,233,213,000,000,000,000,000,000,000,000
6
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
resolve_hash_table_find_equal(void *val1_p, void *val2_p, int mod, void *UNUSED(cb_data)) { struct lyd_node *val2, *elem2; struct parsed_pred pp; const char *str; int i; assert(!mod); (void)mod; pp = *((struct parsed_pred *)val1_p); val2 = *((struct lyd_node **)val2_p); if (val2->...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
137,146,296,687,197,460,000,000,000,000,000,000,000
74
schema tree BUGFIX do not check features while still resolving schema Fixes #723
S_dump_trie(pTHX_ const struct _reg_trie_data *trie, HV *widecharmap, AV *revcharmap, U32 depth) { U32 state; SV *sv=sv_newmortal(); int colwidth= widecharmap ? 6 : 4; U16 word; GET_RE_DEBUG_FLAGS_DECL; PERL_ARGS_ASSERT_DUMP_TRIE; Perl_re_indentf( aTHX_ "Char : %-6s%-6s%-4s ", ...
0
[ "CWE-125" ]
perl5
43b2f4ef399e2fd7240b4eeb0658686ad95f8e62
1,647,842,398,132,804,700,000,000,000,000,000,000
87
regcomp.c: Convert some strchr to memchr This allows things to work properly in the face of embedded NULs. See the branch merge message for more information.
static long calc_load_fold_active(struct rq *this_rq) { long nr_active, delta = 0; nr_active = this_rq->nr_running; nr_active += (long) this_rq->nr_uninterruptible; if (nr_active != this_rq->calc_load_active) { delta = nr_active - this_rq->calc_load_active; this_rq->calc_load_active = nr_active; } return d...
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
238,975,545,312,211,550,000,000,000,000,000,000,000
14
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 int _compare_integrity_devices(struct crypt_device *cd, const struct dm_target *src, const struct dm_target *tgt) { /* * some parameters may be implicit (and set in dm-integrity ctor) * * journal_size * journal_watermark * journal_commit_time * buffer_sectors * interleave_secto...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
318,841,034,199,503,770,000,000,000,000,000,000,000
53
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...
static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) { const char *cipher_name; char ctr_name[CRYPTO_MAX_ALG_NAME]; char mac_name[CRYPTO_MAX_ALG_NAME]; char full_name[CRYPTO_MAX_ALG_NAME]; cipher_name = crypto_attr_alg_name(tb[1]); if (IS_ERR(cipher_name)) return PTR_ERR(cipher_name);...
0
[ "CWE-119", "CWE-787" ]
linux
3b30460c5b0ed762be75a004e924ec3f8711e032
124,529,035,074,566,700,000,000,000,000,000,000,000
26
crypto: ccm - move cbcmac input off the stack Commit f15f05b0a5de ("crypto: ccm - switch to separate cbcmac driver") refactored the CCM driver to allow separate implementations of the underlying MAC to be provided by a platform. However, in doing so, it moved some data from the linear region to the stack, which violat...
tracing_cpumask_read(struct file *filp, char __user *ubuf, size_t count, loff_t *ppos) { struct trace_array *tr = file_inode(filp)->i_private; char *mask_str; int len; len = snprintf(NULL, 0, "%*pb\n", cpumask_pr_args(tr->tracing_cpumask)) + 1; mask_str = kmalloc(len, GFP_KERNEL); if (!mask_str) ...
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
44,246,774,902,655,900,000,000,000,000,000,000,000
26
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
void ZRtp:: computeSharedSecretSet(ZIDRecord *zidRec) { /* * Compute the Initiator's and Reponder's retained shared secret Ids. * Use negotiated HMAC. */ uint8_t randBuf[RS_LENGTH]; uint32_t macLen; detailInfo.secretsCached = 0; if (!zidRec->isRs1Valid()) { randomZRTP(randBu...
0
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
244,883,044,338,591,340,000,000,000,000,000,000,000
55
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
errors_store(struct md_rdev *rdev, const char *buf, size_t len) { unsigned int n; int rv; rv = kstrtouint(buf, 10, &n); if (rv < 0) return rv; atomic_set(&rdev->corrected_errors, n); return len; }
0
[ "CWE-200" ]
linux
b6878d9e03043695dbf3fa1caa6dfc09db225b16
6,150,539,019,492,297,000,000,000,000,000,000,000
11
md: use kzalloc() when bitmap is disabled In drivers/md/md.c get_bitmap_file() uses kmalloc() for creating a mdu_bitmap_file_t called "file". 5769 file = kmalloc(sizeof(*file), GFP_NOIO); 5770 if (!file) 5771 return -ENOMEM; This structure is copied to user space at the end of the fun...
static void mark_port_added(VirtIOSerial *vser, uint32_t port_id) { unsigned int i; i = port_id / 32; vser->ports_map[i] |= 1U << (port_id % 32); }
0
[ "CWE-120", "CWE-787" ]
qemu
7882080388be5088e72c425b02223c02e6cb4295
207,101,576,761,270,000,000,000,000,000,000,000,000
7
virtio-serial: fix ANY_LAYOUT Don't assume a specific layout for control messages. Required by virtio 1. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Reviewed-by: Jason Wang <jasowang@redhat.com>
tor_strisprint(const char *s) { while (*s) { if (!TOR_ISPRINT(*s)) return 0; s++; } return 1; }
0
[]
tor
973c18bf0e84d14d8006a9ae97fde7f7fb97e404
300,038,756,633,961,100,000,000,000,000,000,000,000
9
Fix assertion failure in tor_timegm. Fixes bug 6811.
static enum print_line_t print_raw_fmt(struct trace_iterator *iter) { struct trace_array *tr = iter->tr; struct trace_seq *s = &iter->seq; struct trace_entry *entry; struct trace_event *event; entry = iter->ent; if (tr->trace_flags & TRACE_ITER_CONTEXT_INFO) trace_seq_printf(s, "%d %d %llu ", entry->pid,...
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
319,649,122,290,488,320,000,000,000,000,000,000,000
24
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
static void hardware_disable(void) { vmclear_local_loaded_vmcss(); if (cpu_vmxoff()) kvm_spurious_fault(); intel_pt_handle_vmx(0); }
0
[ "CWE-787" ]
linux
04c4f2ee3f68c9a4bf1653d15f1a9a435ae33f7a
42,812,167,895,661,380,000,000,000,000,000,000,000
9
KVM: VMX: Don't use vcpu->run->internal.ndata as an array index __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for an array access. Since vcpu->run is (can be) mapped to a user address space with a writer permission, the 'ndata' could be updated by the user process at anytime (the user process can set...
bool Http2Session::CanAddStream() { uint32_t maxConcurrentStreams = nghttp2_session_get_local_settings( session_.get(), NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS); size_t maxSize = std::min(streams_.max_size(), static_cast<size_t>(maxConcurrentStreams)); // We can add a new stream so long as w...
0
[ "CWE-416" ]
node
a3c33d4ce78f74d1cf1765704af5b427aa3840a6
127,651,843,410,259,900,000,000,000,000,000,000,000
11
http2: update handling of rst_stream with error code NGHTTP2_CANCEL The PR updates the handling of rst_stream frames and adds all streams to the pending list on receiving rst frames with the error code NGHTTP2_CANCEL. The changes will remove dependency on the stream state that may allow bypassing the checks in certai...
HttpHdrRangeSpec::mergeWith(const HttpHdrRangeSpec * donor) { bool merged (false); #if MERGING_BREAKS_NOTHING /* Note: this code works, but some clients may not like its effects */ int64_t rhs = offset + length; /* no -1 ! */ const int64_t donor_rhs = donor->offset + donor->length; /* no -1 ! */...
0
[ "CWE-116" ]
squid
6bf66733c122804fada7f5839ef5f3b57e57591c
146,051,126,649,108,630,000,000,000,000,000,000,000
37
Handle more Range requests (#790) Also removed some effectively unused code.
PHP_FUNCTION(openssl_csr_get_subject) { zval ** zcsr; zend_bool use_shortnames = 1; long csr_resource; X509_NAME * subject; X509_REQ * csr; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Z|b", &zcsr, &use_shortnames) == FAILURE) { return; } csr = php_openssl_csr_from_zval(zcsr, 0, &csr_resource TSRML...
0
[ "CWE-200" ]
php-src
270a406ac94b5fc5cc9ef59fc61e3b4b95648a3e
163,268,639,782,008,800,000,000,000,000,000,000,000
24
Fix bug #61413 ext\openssl\tests\openssl_encrypt_crash.phpt fails 5.3 only
static void tm_reclaim_thread(struct thread_struct *thr, struct thread_info *ti, uint8_t cause) { unsigned long msr_diff = 0; /* * If FP/VSX registers have been already saved to the * thread_struct, move them to the transact_fp array. * We clear the TIF_RESTORE_TM bit since after the reclaim * the t...
0
[ "CWE-20" ]
linux
621b5060e823301d0cba4cb52a7ee3491922d291
227,936,040,106,555,050,000,000,000,000,000,000,000
33
powerpc/tm: Fix crash when forking inside a transaction When we fork/clone we currently don't copy any of the TM state to the new thread. This results in a TM bad thing (program check) when the new process is switched in as the kernel does a tmrechkpt with TEXASR FS not set. Also, since R1 is from userspace, we trig...
static void remove_temporary_devices(struct btd_adapter *adapter) { GSList *l, *next; for (l = adapter->devices; l; l = next) { struct btd_device *dev = l->data; next = g_slist_next(l); if (device_is_temporary(dev)) btd_adapter_remove_device(adapter, dev); } }
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
81,184,971,227,802,500,000,000,000,000,000,000,000
12
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
notify_send(dns_notify_t *notify) { dns_adbaddrinfo_t *ai; isc_sockaddr_t dst; isc_result_t result; dns_notify_t *newnotify = NULL; unsigned int flags; bool startup; /* * Zone lock held by caller. */ REQUIRE(DNS_NOTIFY_VALID(notify)); REQUIRE(LOCKED_ZONE(notify->zone)); if (DNS_ZONE_FLAG(notify->zone, D...
0
[ "CWE-327" ]
bind9
f09352d20a9d360e50683cd1d2fc52ccedcd77a0
134,624,170,619,016,210,000,000,000,000,000,000,000
45
Update keyfetch_done compute_tag check If in keyfetch_done the compute_tag fails (because for example the algorithm is not supported), don't crash, but instead ignore the key.
S3BootScriptSavePciCfg2Write ( IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT16 Segment, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer ) { UINT8 Length; UINT8 ...
0
[ "CWE-787" ]
edk2
322ac05f8bbc1bce066af1dabd1b70ccdbe28891
173,836,489,559,733,100,000,000,000,000,000,000,000
51
MdeModulePkg/PiDxeS3BootScriptLib: Fix potential numeric truncation (CVE-2019-14563) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2001 For S3BootScriptLib APIs: S3BootScriptSaveIoWrite S3BootScriptSaveMemWrite S3BootScriptSavePciCfgWrite S3BootScriptSavePciCfg2Write S3BootScriptSaveSmbusExecute S3BootScriptSav...
void call(client *c, int flags) { long long dirty; ustime_t start, duration; int client_old_flags = c->flags; struct redisCommand *real_cmd = c->cmd; /* Send the command to clients in MONITOR mode if applicable. * Administrative commands are considered too dangerous to be shown. */ if (lis...
0
[ "CWE-770" ]
redis
5674b0057ff2903d43eaff802017eddf37c360f8
115,038,252,220,600,210,000,000,000,000,000,000,000
176
Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) This change sets a low limit for multibulk and bulk length in the protocol for unauthenticated connections, so that they can't easily cause redis to allocate massive amounts of memory by sending just a few characters on the network. T...
static MagickBooleanType ImportDoublePixel(Image *image, const RectangleInfo *roi,const char *magick_restrict map, const QuantumType *quantum_map,const void *pixels,ExceptionInfo *exception) { register const double *magick_restrict p; register Quantum *magick_restrict q; register ssize_t x; s...
0
[ "CWE-190" ]
ImageMagick
406da3af9e09649cda152663c179902edf5ab3ac
121,524,958,864,193,300,000,000,000,000,000,000,000
240
https://github.com/ImageMagick/ImageMagick/issues/1732
Http::FilterTrailersStatus fromTrailerStatus(test::common::http::TrailerStatus status) { switch (status) { case test::common::http::TrailerStatus::TRAILER_CONTINUE: return Http::FilterTrailersStatus::Continue; case test::common::http::TrailerStatus::TRAILER_STOP_ITERATION: return Http::FilterT...
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
118,458,671,018,827,740,000,000,000,000,000,000,000
10
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>