func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static int __init ib_uverbs_init(void) { int ret; ret = register_chrdev_region(IB_UVERBS_BASE_DEV, IB_UVERBS_NUM_FIXED_MINOR, "infiniband_verbs"); if (ret) { pr_err("user_verbs: couldn't register device number\n"); goto out; } ret = alloc_chrdev_region(&dynamic_uverbs_dev, 0, IB_UVERB...
0
[ "CWE-362", "CWE-703", "CWE-667" ]
linux
04f5866e41fb70690e28397487d8bd8eea7d712a
228,217,671,681,130,500,000,000,000,000,000,000,000
57
coredump: fix race condition between mmget_not_zero()/get_task_mm() and core dumping The core dumping code has always run without holding the mmap_sem for writing, despite that is the only way to ensure that the entire vma layout will not change from under it. Only using some signal serialization on the processes bel...
static int match(Reinst *pc, const char *sp, const char *bol, int flags, Resub *out, int depth) { Resub scratch; int result; int i; Rune c; /* stack overflow */ if (depth > REG_MAXREC) return -1; for (;;) { switch (pc->opcode) { case I_END: return 0; case I_JUMP: pc = pc->x; break; case I_SP...
0
[ "CWE-703", "CWE-674" ]
mujs
160ae29578054dc09fd91e5401ef040d52797e61
177,819,395,252,714,340,000,000,000,000,000,000,000
159
Issue #162: Check stack overflow during regexp compilation. Only bother checking during the first compilation pass that counts the size of the program.
static void __ieee80211_stop_poll(struct ieee80211_sub_if_data *sdata) { lockdep_assert_held(&sdata->local->mtx); sdata->u.mgd.flags &= ~IEEE80211_STA_CONNECTION_POLL; ieee80211_run_deferred_scan(sdata->local); }
0
[]
linux
79c92ca42b5a3e0ea172ea2ce8df8e125af237da
124,674,663,014,830,080,000,000,000,000,000,000,000
7
mac80211: handle deauthentication/disassociation from TDLS peer When receiving a deauthentication/disassociation frame from a TDLS peer, a station should not disconnect the current AP, but only disable the current TDLS link if it's enabled. Without this change, a TDLS issue can be reproduced by following the steps as...
static int rbd_post_acquire_action(struct rbd_device *rbd_dev) { int ret; if (rbd_dev->header.features & RBD_FEATURE_OBJECT_MAP) { ret = rbd_object_map_open(rbd_dev); if (ret) return ret; } return 0; }
0
[ "CWE-863" ]
linux
f44d04e696feaf13d192d942c4f14ad2e117065a
146,518,264,223,171,000,000,000,000,000,000,000,000
12
rbd: require global CAP_SYS_ADMIN for mapping and unmapping It turns out that currently we rely only on sysfs attribute permissions: $ ll /sys/bus/rbd/{add*,remove*} --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add_single_major --w------- 1 ro...
CNF_GetLeapSecTimezone(void) { return leapsec_tz; }
0
[ "CWE-59" ]
chrony
e18903a6b56341481a2e08469c0602010bf7bfe3
124,346,987,506,270,090,000,000,000,000,000,000,000
4
switch to new util file functions Replace all fopen(), rename(), and unlink() calls with the new util functions.
char *rfbProcessFileTransferReadBuffer(rfbClientPtr cl, uint32_t length) { char *buffer=NULL; int n=0; FILEXFER_ALLOWED_OR_CLOSE_AND_RETURN("", cl, NULL); /* We later alloc length+1, which might wrap around on 32-bit systems if length equals 0XFFFFFFFF, i.e. SIZE_MAX for 32-bit systems...
0
[ "CWE-200", "CWE-787" ]
libvncserver
09e8fc02f59f16e2583b34fe1a270c238bd9ffec
81,186,075,495,085,680,000,000,000,000,000,000,000
39
Limit lenght to INT_MAX bytes in rfbProcessFileTransferReadBuffer() This ammends 15bb719c03cc70f14c36a843dcb16ed69b405707 fix for a heap out-of-bound write access in rfbProcessFileTransferReadBuffer() when reading a transfered file content in a server. The former fix did not work on platforms with a 32-bit int type (e...
static Image *ReadPWPImage(const ImageInfo *image_info,ExceptionInfo *exception) { char filename[MagickPathExtent]; FILE *file; Image *image, *next_image, *pwp_image; ImageInfo *read_info; int c, unique_file; MagickBooleanType status; register Image *p; reg...
1
[ "CWE-20", "CWE-252" ]
ImageMagick
6b6bff054d569a77973f2140c0e86366e6168a6c
232,698,958,039,377,300,000,000,000,000,000,000,000
169
https://github.com/ImageMagick/ImageMagick/issues/1199
xmlSchemaParseAttributeGroupDefinition(xmlSchemaParserCtxtPtr pctxt, xmlSchemaPtr schema, xmlNodePtr node) { const xmlChar *name; xmlSchemaAttributeGroupPtr ret; xmlNodePtr child = NULL; xmlAttrPtr attr; int hasRefs = 0; if ((pctxt == NULL) || (schema == NULL) || (node == ...
0
[ "CWE-134" ]
libxml2
4472c3a5a5b516aaf59b89be602fbce52756c3e9
224,071,099,907,637,500,000,000,000,000,000,000,000
85
Fix some format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
gdm_session_worker_pam_new_messages_handler (int number_of_messages, const struct pam_message **messages, struct pam_response **responses, GdmSessionWorker ...
0
[ "CWE-362" ]
gdm
dcdbaaa04012541ad2813cf83559d91d52f208b9
211,487,511,117,051,800,000,000,000,000,000,000,000
70
session-worker: Don't switch back VTs until session is fully exited There's a race condition on shutdown where the session worker is switching VTs back to the initial VT at the same time as the session exit is being processed. This means that manager may try to start a login screen (because of the VT switch) when aut...
static void qxl_destroy_primary(PCIQXLDevice *d) { if (d->mode == QXL_MODE_UNDEFINED) { return; } dprint(d, 1, "%s\n", __FUNCTION__); d->mode = QXL_MODE_UNDEFINED; qemu_spice_destroy_primary_surface(&d->ssd, 0); }
1
[]
qemu-kvm
5ff4e36c804157bd84af43c139f8cd3a59722db9
240,814,720,059,440,600,000,000,000,000,000,000,000
11
qxl: async io support using new spice api Some of the QXL port i/o commands are waiting for the spice server to complete certain actions. Add async versions for these commands, so we don't block the vcpu while the spice server processses the command. Instead the qxl device will raise an IRQ when done. The async comm...
void kvm_arch_destroy_vm(struct kvm *kvm) { kvm_iommu_unmap_guest(kvm); kfree(kvm->arch.vpic); kfree(kvm->arch.vioapic); kvm_free_vcpus(kvm); kvm_free_physmem(kvm); if (kvm->arch.apic_access_page) put_page(kvm->arch.apic_access_page); if (kvm->arch.ept_identity_pagetable) put_page(kvm->arch.ept_identity_page...
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
109,732,184,698,309,100,000,000,000,000,000,000,000
14
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...
dwg_read_file (const char *restrict filename, Dwg_Data *restrict dwg) { FILE *fp; struct stat attrib; size_t size; Bit_Chain bit_chain = { 0 }; int error; loglevel = dwg->opts & DWG_OPTS_LOGLEVEL; memset (dwg, 0, sizeof (Dwg_Data)); dwg->opts = loglevel; if (strEQc (filename, "-")) { fp = ...
0
[ "CWE-787" ]
libredwg
ecf5183d8b3b286afe2a30021353b7116e0208dd
289,343,836,971,125,770,000,000,000,000,000,000,000
77
dwg_section_wtype: fix fuzzing overflow with illegal and overlong section names. Fixes GH #349, #352 section names cannot be longer than 24
int sys_vm86old(struct vm86_struct __user *v86, struct pt_regs *regs) { struct kernel_vm86_struct info; /* declare this _on top_, * this avoids wasting of stack space. * This remains on the stack until we * return to 32 bit user space. */ struct task_struct *tsk; int tmp, ret = -EPERM; tsk ...
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
340,059,643,644,534,980,000,000,000,000,000,000,000
27
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(...
static void send_implied_dirs(int f, struct file_list *flist, char *fname, char *start, char *limit, int flags, char name_type) { static char lastpath[MAXPATHLEN] = ""; static int lastpath_len = 0; static struct file_struct *lastpath_struct = NULL; struct file_struct *file; item_list *relname_list; relna...
0
[]
rsync
b7231c7d02cfb65d291af74ff66e7d8c507ee871
307,351,563,921,490,440,000,000,000,000,000,000,000
98
Some extra file-list safety checks.
int sc_asn1_decode_choice(sc_context_t *ctx, struct sc_asn1_entry *asn1, const u8 *in, size_t len, const u8 **newp, size_t *len_left) { return asn1_decode(ctx, asn1, in, len, newp, len_left, 1, 0); }
0
[ "CWE-119", "CWE-787" ]
OpenSC
412a6142c27a5973c61ba540e33cdc22d5608e68
8,176,269,405,185,448,000,000,000,000,000,000,000
5
fixed out of bounds access of ASN.1 Bitstring Credit to OSS-Fuzz
ngx_gmtime(time_t t, ngx_tm_t *tp) { ngx_int_t yday; ngx_uint_t sec, min, hour, mday, mon, year, wday, days, leap; /* the calculation is valid for positive time_t only */ if (t < 0) { t = 0; } days = t / 86400; sec = t % 86400; /* January 1, 1970 was Thursday */ wday ...
1
[ "CWE-190" ]
nginx
b900cc28fcbb4cf5a32ab62f80b59292e1c85b4b
232,685,823,985,060,030,000,000,000,000,000,000,000
92
Introduced time truncation to December 31, 9999 (ticket #1368). Various buffers are allocated in an assumption that there would be no more than 4 year digits. This might not be true on platforms with 64-bit time_t, as 64-bit time_t is able to represent more than that. Such dates with more than 4 year digits hardly ma...
void rpc_execute(struct rpc_task *task) { rpc_set_active(task); rpc_make_runnable(task); if (!RPC_IS_ASYNC(task)) __rpc_execute(task); }
0
[ "CWE-400", "CWE-399", "CWE-703" ]
linux
0b760113a3a155269a3fba93a409c640031dd68f
135,458,102,846,615,920,000,000,000,000,000,000,000
7
NLM: Don't hang forever on NLM unlock requests If the NLM daemon is killed on the NFS server, we can currently end up hanging forever on an 'unlock' request, instead of aborting. Basically, if the rpcbind request fails, or the server keeps returning garbage, we really want to quit instead of retrying. Tested-by: Vasi...
static double mp_logical_and(_cimg_math_parser& mp) { const bool val_left = (bool)_mp_arg(2); const CImg<ulongT> *const p_end = ++mp.p_code + mp.opcode[4]; if (!val_left) { mp.p_code = p_end - 1; return 0; } const ulongT mem_right = mp.opcode[3]; for ( ; mp.p_code<p_end; +...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
153,399,599,865,199,720,000,000,000,000,000,000,000
13
Fix other issues in 'CImg<T>::load_bmp()'.
static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string) { const UTF8 *source = (UTF8 *) RSTRING_PTR(string); const UTF8 *sourceEnd = source + RSTRING_LEN(string); char buf[6] = { '\\', 'u' }; while (source < sourceEnd) { UTF32 ch = 0; unsigned short extraBytesToRead = trai...
0
[ "CWE-119", "CWE-787" ]
json
8f782fd8e181d9cfe9387ded43a5ca9692266b85
206,401,890,138,354,300,000,000,000,000,000,000,000
94
Fix arbitrary heap exposure problem
word_skip_macro_extnames(int fd) { int is_unicode, nbytes; int16_t size; if(!read_uint16(fd, (uint16_t *)&size, FALSE)) { cli_dbgmsg("read macro_extnames failed\n"); return FALSE; } if (size == -1) { /* Unicode flag */ if(!read_uint16(fd, (uint16_t *)&size, FALSE)) { cli_dbgmsg("read macro_extnames faile...
0
[ "CWE-399" ]
clamav-devel
d21fb8d975f8c9688894a8cef4d50d977022e09f
239,014,003,826,624,250,000,000,000,000,000,000,000
44
libclamav/vba_extract.c: fix error path double free (bb#2486)
Status AuthorizationManager::buildPrivilegeSet(const std::string& dbname, const PrincipalName& principal, const BSONObj& privilegeDocument, PrivilegeSet* result) {...
0
[ "CWE-264" ]
mongo
23344f8b7506df694f66999693ee3c00dfd6afae
273,068,120,163,876,950,000,000,000,000,000,000,000
21
SERVER-9983 Do not needlessly lock when looking up privileges for the __system@local user. Uncorrected, this can cause replica set heartbeats to stall behind operations that hold the read lock for a long time.
bool Colour::SetMasteringMetadata(const MasteringMetadata& mastering_metadata) { std::unique_ptr<MasteringMetadata> mm_ptr(new MasteringMetadata()); if (!mm_ptr.get()) return false; mm_ptr->set_luminance_max(mastering_metadata.luminance_max()); mm_ptr->set_luminance_min(mastering_metadata.luminance_min());...
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
283,369,266,981,567,040,000,000,000,000,000,000,000
18
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
void ZrtpQueue::synchEnter() { synchLock.enter(); }
0
[ "CWE-119" ]
ZRTPCPP
c8617100f359b217a974938c5539a1dd8a120b0e
272,519,918,549,429,500,000,000,000,000,000,000,000
3
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
gst_asf_demux_init (GstASFDemux * demux) { demux->sinkpad = gst_pad_new_from_static_template (&gst_asf_demux_sink_template, "sink"); gst_pad_set_chain_function (demux->sinkpad, GST_DEBUG_FUNCPTR (gst_asf_demux_chain)); gst_pad_set_event_function (demux->sinkpad, GST_DEBUG_FUNCPTR (gst_asf_demux_...
0
[ "CWE-125", "CWE-787" ]
gst-plugins-ugly
d21017b52a585f145e8d62781bcc1c5fefc7ee37
35,484,692,165,780,535,000,000,000,000,000,000,000
17
asfdemux: Check that we have enough data available before parsing bool/uint extended content descriptors https://bugzilla.gnome.org/show_bug.cgi?id=777955
static int vcpu_ioctl_tpr_access_reporting(struct kvm_vcpu *vcpu, struct kvm_tpr_access_ctl *tac) { if (tac->flags) return -EINVAL; vcpu->arch.tpr_access_reporting = !!tac->enabled; return 0; }
0
[ "CWE-476" ]
linux-2.6
59839dfff5eabca01cc4e20b45797a60a80af8cb
53,123,590,118,908,950,000,000,000,000,000,000,000
8
KVM: x86: check for cr3 validity in ioctl_set_sregs Matt T. Yourst notes that kvm_arch_vcpu_ioctl_set_sregs lacks validity checking for the new cr3 value: "Userspace callers of KVM_SET_SREGS can pass a bogus value of cr3 to the kernel. This will trigger a NULL pointer access in gfn_to_rmap() when userspace next tries...
directory_count_cancel (NautilusDirectory *directory) { if (directory->details->count_in_progress != NULL) { g_cancellable_cancel (directory->details->count_in_progress->cancellable); } }
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
307,846,674,619,226,800,000,000,000,000,000,000,000
6
Check for trusted desktop file launchers. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-...
int mbedtls_asn1_write_algorithm_identifier( unsigned char **p, unsigned char *start, const char *oid, size_t oid_len, size_t par_len ) { int ret; size_t len = 0; if( par_len == 0 ) MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_wri...
0
[]
mbedtls
97b5209bc01ab8b3b519fdb46cefc04739433124
121,192,953,856,136,600,000,000,000,000,000,000,000
20
Fix potential double free in cert writing code In case an entry with the given OID already exists in the list passed to mbedtls_asn1_store_named_data() and there is not enough memory to allocate room for the new value, the existing entry will be freed but the preceding entry in the list will sill hold a pointer to it....
HttpHeaderEntry::getInt() const { int val = -1; int ok = httpHeaderParseInt(value.termedBuf(), &val); httpHeaderNoteParsedEntry(id, value, ok == 0); /* XXX: Should we check ok - ie * return ok ? -1 : value; */ return val; }
0
[ "CWE-444" ]
squid
9c8e2a71aa1d3c159a319d9365c346c48dc783a5
92,153,757,080,830,910,000,000,000,000,000,000,000
10
Enforce token characters for field-name (#700) RFC 7230 defines field-name as a token. Request splitting and cache poisoning attacks have used non-token characters to fool broken HTTP agents behind or in front of Squid for years. This change should significantly reduce that abuse. If we discover exceptional situatio...
void CSoundFile::InvertLoop(ModChannel *pChn) { // EFx implementation for MOD files (PT 1.1A and up: Invert Loop) // This effect trashes samples. Thanks to 8bitbubsy for making this work. :) if(GetType() != MOD_TYPE_MOD || pChn->nEFxSpeed == 0) return; // we obviously also need a sample for this ModSample *pModSa...
0
[ "CWE-125" ]
openmpt
7ebf02af2e90f03e0dbd0e18b8b3164f372fb97c
79,519,396,803,105,060,000,000,000,000,000,000,000
22
[Fix] Possible out-of-bounds read when computing length of some IT files with pattern loops (OpenMPT: formats that are converted to IT, libopenmpt: IT/ITP/MO3), caught with afl-fuzz. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@10027 56274372-70c3-4bfc-bfc3-4c3a0b034d27
static inline int ip6_frags_ns_sysctl_register(struct net *net) { return 0; }
0
[]
linux-2.6
70789d7052239992824628db8133de08dc78e593
39,545,158,615,993,855,000,000,000,000,000,000,000
4
ipv6: discard overlapping fragment RFC5722 prohibits reassembling fragments when some data overlaps. Bug spotted by Zhang Zuotao <zuotao.zhang@6wind.com>. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
static void report_progress( checkout_data *data, const char *path) { if (data->opts.progress_cb) data->opts.progress_cb( path, data->completed_steps, data->total_steps, data->opts.progress_payload); }
0
[ "CWE-20", "CWE-706" ]
libgit2
64c612cc3e25eff5fb02c59ef5a66ba7a14751e4
516,304,087,529,387,600,000,000,000,000,000,000
9
Protect against 8.3 "short name" attacks also on Linux/macOS The Windows Subsystem for Linux (WSL) is getting increasingly popular, in particular because it makes it _so_ easy to run Linux software on Windows' files, via the auto-mounted Windows drives (`C:\` is mapped to `/mnt/c/`, no need to set that up manually). ...
static int get_part_id_charset_func_subpart(partition_info *part_info, uint32 *part_id) { int res; DBUG_ENTER("get_part_id_charset_func_subpart"); copy_to_part_field_buffers(part_info->subpart_charset_field_array, part_info->subpart_field_b...
0
[]
mysql-server
be901b60ae59c93848c829d1b0b2cb523ab8692e
314,478,542,141,982,360,000,000,000,000,000,000,000
14
Bug#26390632: CREATE TABLE CAN CAUSE MYSQL TO EXIT. Analysis ======== CREATE TABLE of InnoDB table with a partition name which exceeds the path limit can cause the server to exit. During the preparation of the partition name, there was no check to identify whether the complete path name for partition exceeds the max ...
xattr_free(struct xattr *xattr) { archive_string_free(&(xattr->name)); free(xattr); }
0
[ "CWE-125" ]
libarchive
fa7438a0ff4033e4741c807394a9af6207940d71
115,830,742,255,101,780,000,000,000,000,000,000,000
5
Do something sensible for empty strings to make fuzzers happy.
_PyBuiltin_Init(void) { PyObject *mod, *dict, *debug; const _PyCoreConfig *config = &_PyInterpreterState_GET_UNSAFE()->core_config; if (PyType_Ready(&PyFilter_Type) < 0 || PyType_Ready(&PyMap_Type) < 0 || PyType_Ready(&PyZip_Type) < 0) return NULL; mod = _PyModule_CreateInitia...
0
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
155,560,061,360,527,380,000,000,000,000,000,000,000
75
bpo-35766: Merge typed_ast back into CPython (GH-11645)
static void btrfs_read_locked_inode(struct inode *inode) { struct btrfs_path *path; struct extent_buffer *leaf; struct btrfs_inode_item *inode_item; struct btrfs_timespec *tspec; struct btrfs_root *root = BTRFS_I(inode)->root; struct btrfs_key location; int maybe_acls; u32 rdev; int ret; bool filled = false; ...
0
[ "CWE-310" ]
linux-2.6
9c52057c698fb96f8f07e7a4bcf4801a092bda89
130,919,788,267,422,830,000,000,000,000,000,000,000
119
Btrfs: fix hash overflow handling The handling for directory crc hash overflows was fairly obscure, split_leaf returns EOVERFLOW when we try to extend the item and that is supposed to bubble up to userland. For a while it did so, but along the way we added better handling of errors and forced the FS readonly if we hi...
static void selinux_sb_clone_mnt_opts(const struct super_block *oldsb, struct super_block *newsb) { const struct superblock_security_struct *oldsbsec = oldsb->s_security; struct superblock_security_struct *newsbsec = newsb->s_security; int set_fscontext = (oldsbsec->flags & FSCONTEXT_MNT); int set_context = (...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
149,005,239,474,480,000,000,000,000,000,000,000,000
62
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...
http_findhdr(const struct http *hp, unsigned l, const char *hdr) { unsigned u; for (u = HTTP_HDR_FIRST; u < hp->nhd; u++) { Tcheck(hp->hd[u]); if (hp->hd[u].e < hp->hd[u].b + l + 1) continue; if (hp->hd[u].b[l] != ':') continue; if (strncasecmp(hdr, hp->hd[u].b, l)) continue; return (u); } retur...
0
[]
Varnish-Cache
29870c8fe95e4e8a672f6f28c5fbe692bea09e9c
240,077,248,308,054,080,000,000,000,000,000,000,000
16
Check for duplicate Content-Length headers in requests If a duplicate CL header is in the request, we fail the request with a 400 (Bad Request) Fix a test case that was sending duplicate CL by misstake and would not fail because of that.
uint32_t __div64_32(uint64_t *n, uint32_t base) { uint64_t rem = *n; uint64_t b = base; uint64_t res, d = 1; uint32_t high = rem >> 32; /* Reduce the thing a bit first */ res = 0; if (high >= base) { high /= base; res = (uint64_t) high << 32; rem -= (uint64_t) (high*...
0
[ "CWE-399", "CWE-125" ]
tcpreplay
6b830a1640ca20528032c89a4fdd8291a4d2d8b2
335,103,667,779,378,200,000,000,000,000,000,000,000
32
Bug #520 Fix heap overflow on zero or 0xFFFF packet length Add check for packets that report zero packet length. Example of fix: src/tcpprep --auto=bridge --pcap=poc16-get_l2len-heapoverflow --cachefile=/dev/null Warning: poc16-get_l2len-heapoverflow was captured using a snaplen of 17 bytes. This may mean yo...
JVM_GetClassSignature(JNIEnv *env, jclass target) { Trc_SC_GetClassSignature(env); exit(220); }
0
[ "CWE-119" ]
openj9
0971f22d88f42cf7332364ad7430e9bd8681c970
156,269,016,459,888,120,000,000,000,000,000,000,000
5
Clean up jio_snprintf and jio_vfprintf Fixes https://bugs.eclipse.org/bugs/show_bug.cgi?id=543659 Signed-off-by: Peter Bain <peter_bain@ca.ibm.com>
std::shared_ptr<SerializedScope> ESTreeIRGen::resolveScopeIdentifiers( const ScopeChain &chain) { std::shared_ptr<SerializedScope> current{}; for (auto it = chain.functions.rbegin(), end = chain.functions.rend(); it < end; it++) { auto next = std::make_shared<SerializedScope>(); next->vari...
0
[ "CWE-125", "CWE-787" ]
hermes
091835377369c8fd5917d9b87acffa721ad2a168
40,707,520,976,533,850,000,000,000,000,000,000,000
16
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...
mwifiex_pcie_send_data(struct mwifiex_adapter *adapter, struct sk_buff *skb, struct mwifiex_tx_param *tx_param) { struct pcie_service_card *card = adapter->card; const struct mwifiex_pcie_card_reg *reg = card->pcie.reg; u32 wrindx, num_tx_buffs, rx_val; int ret; dma_addr_t buf_pa; struct mwifiex_pcie_buf...
0
[ "CWE-400", "CWE-200", "CWE-401" ]
linux
d10dcb615c8e29d403a24d35f8310a7a53e3050c
148,400,344,145,650,710,000,000,000,000,000,000,000
126
mwifiex: pcie: Fix memory leak in mwifiex_pcie_init_evt_ring In mwifiex_pcie_init_evt_ring, a new skb is allocated which should be released if mwifiex_map_pci_memory() fails. The release for skb and card->evtbd_ring_vbase is added. Fixes: 0732484b47b5 ("mwifiex: separate ring initialization and ring creation routines...
int r_jwe_set_aad(jwe_t * jwe, const unsigned char * aad, size_t aad_len) { int ret; unsigned char * aad_b64 = NULL; size_t aad_b64_len = 0; if (jwe != NULL) { o_free(jwe->aad_b64url); jwe->aad_b64url = NULL; o_free(jwe->aad); if (aad != NULL && aad_len) { if ((jwe->aad = o_malloc(aad_len...
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
226,068,047,634,878,360,000,000,000,000,000,000,000
42
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
static int lbs_process_bss(struct bss_descriptor *bss, uint8_t **pbeaconinfo, int *bytesleft) { struct ieeetypes_fhparamset *pFH; struct ieeetypes_dsparamset *pDS; struct ieeetypes_cfparamset *pCF; struct ieeetypes_ibssparamset *pibss; DECLARE_MAC_BUF(mac); struct ieeetypes_countryinfoset *pcountryinfo; ui...
0
[ "CWE-119" ]
linux-2.6
48735d8d8bd701b1e0cd3d49c21e5e385ddcb077
31,320,712,445,550,225,000,000,000,000,000,000,000
221
libertas: fix buffer overrun If somebody sends an invalid beacon/probe response, that can trash the whole BSS descriptor. The descriptor is, luckily, large enough so that it cannot scribble past the end of it; it's well above 400 bytes long. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Cc: stable@kernel.o...
netdev_port_features_from_ofp11(ovs_be32 ofp11) { return ntohl(ofp11) & 0xffff; }
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
300,332,987,492,644,750,000,000,000,000,000,000,000
4
ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod(). Found by libFuzzer. Reported-by: Bhargava Shastry <bshastry@sec.t-labs.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
static int vpc_probe(const uint8_t *buf, int buf_size, const char *filename) { if (buf_size >= 8 && !strncmp((char *)buf, "conectix", 8)) return 100; return 0; }
0
[ "CWE-20" ]
qemu
97f1c45c6f456572e5b504b8614e4a69e23b8e3a
29,034,563,342,316,587,000,000,000,000,000,000,000
6
vpc/vhd: add bounds check for max_table_entries and block_size (CVE-2014-0144) This adds checks to make sure that max_table_entries and block_size are in sane ranges. Memory is allocated based on max_table_entries, and block_size is used to calculate indices into that allocated memory, so if these values are incorrec...
int ecall_transfer_secure_snapshot_key(const char *input, uint64_t input_len, char **output, uint64_t *output_len) { int result = 0; uint64_t bridge_output_len; try { result = asylo::TransferSecureSnapshotKey( input, static_cast<size_t>(input_len), output, &bridg...
0
[ "CWE-119", "CWE-787" ]
asylo
e582f36ac49ee11a21d23ad6a30c333092e0a94e
114,332,002,267,633,470,000,000,000,000,000,000,000
15
Check for output_len range in ecall_restore This may cause vulnerablity if pointing to trusted memory. This issue was reported by Qinkun Bao, Zhaofeng Chen, Mingshen Sun, and Kang Li from Baidu Security. PiperOrigin-RevId: 322476223 Change-Id: I8a6406e9f07a20582d4387bd9a3469dfa9cbcb12
int ZEXPORT deflateCopy (dest, source) z_streamp dest; z_streamp source; { #ifdef MAXSEG_64K return Z_STREAM_ERROR; #else deflate_state *ds; deflate_state *ss; if (deflateStateCheck(source) || dest == Z_NULL) { return Z_STREAM_ERROR; } ss = source->state; zmemcpy((voidpf)...
0
[ "CWE-284", "CWE-787" ]
zlib
5c44459c3b28a9bd3283aaceab7c615f8020c531
23,661,274,161,118,994,000,000,000,000,000,000,000
51
Fix a bug that can crash deflate on some input when using Z_FIXED. This bug was reported by Danilo Ramos of Eideticom, Inc. It has lain in wait 13 years before being found! The bug was introduced in zlib 1.2.2.2, with the addition of the Z_FIXED option. That option forces the use of fixed Huffman codes. For rare input...
gsd_xrandr_manager_stop (GsdXrandrManager *manager) { g_debug ("Stopping xrandr manager"); manager->priv->running = FALSE; gdk_error_trap_push (); XUngrabKey (gdk_x11_get_default_xdisplay(), manager->priv->keycode, AnyModifier, gdk_x11_get_defau...
0
[]
gnome-settings-daemon
be513b3c7d80d0b7013d79ce46d7eeca929705cc
309,783,260,082,290,230,000,000,000,000,000,000,000
43
Implement autoconfiguration of the outputs This is similar in spirit to 'xrandr --auto', but we disfavor selecting clone modes. Instead, we lay out the outputs left-to-right. Signed-off-by: Federico Mena Quintero <federico@novell.com>
int tsk_fork_get_node(struct task_struct *tsk) { #ifdef CONFIG_NUMA if (tsk == kthreadd_task) return tsk->pref_node_fork; #endif return NUMA_NO_NODE; }
0
[ "CWE-200" ]
tip
dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
49,917,910,253,236,320,000,000,000,000,000,000,000
8
time: Remove CONFIG_TIMER_STATS Currently CONFIG_TIMER_STATS exposes process information across namespaces: kernel/time/timer_list.c print_timer(): SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); /proc/timer_list: #11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570 Given that the trac...
xmlParserEntityCheck(xmlParserCtxtPtr ctxt, size_t size, xmlEntityPtr ent, size_t replacement) { size_t consumed = 0; if ((ctxt == NULL) || (ctxt->options & XML_PARSE_HUGE)) return (0); if (ctxt->lastError.code == XML_ERR_ENTITY_LOOP) return (1); /* * This may...
1
[ "CWE-20" ]
libxml2
bdd66182ef53fe1f7209ab6535fda56366bd7ac9
237,295,843,121,029,730,000,000,000,000,000,000,000
103
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...
TPMU_SYM_MODE_Marshal(TPMU_SYM_MODE *source, BYTE **buffer, INT32 *size, UINT32 selector) { UINT16 written = 0; switch (selector) { #if ALG_AES case TPM_ALG_AES: written += TPMI_ALG_SYM_MODE_Marshal(&source->aes, buffer, size); break; #endif #if ALG_SM4 case TPM_ALG_SM4: written += TPMI_ALG_SYM_...
0
[ "CWE-787" ]
libtpms
3ef9b26cb9f28bd64d738bff9505a20d4eb56acd
291,661,593,654,921,730,000,000,000,000,000,000,000
35
tpm2: Add maxSize parameter to TPM2B_Marshal for sanity checks Add maxSize parameter to TPM2B_Marshal and assert on it checking the size of the data intended to be marshaled versus the maximum buffer size. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
rsvg_filter_primitive_colour_matrix_render (RsvgFilterPrimitive * self, RsvgFilterContext * ctx) { guchar ch; gint x, y; gint i; gint rowstride, height, width; RsvgIRect boundarys; guchar *in_pixels; guchar *output_pixels; RsvgFilterPrimitiveColourMatrix *upself; GdkPixbuf *output...
0
[]
librsvg
34c95743ca692ea0e44778e41a7c0a129363de84
16,945,046,755,882,114,000,000,000,000,000,000,000
82
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...
isAffixInUse(IspellDict *Conf, char flag) { int i; for (i = 0; i < Conf->nAffixData; i++) if (strchr(Conf->AffixData[i], flag) != NULL) return true; return false; }
0
[ "CWE-119" ]
postgres
01824385aead50e557ca1af28640460fa9877d51
180,447,238,099,677,360,000,000,000,000,000,000,000
10
Prevent potential overruns of fixed-size buffers. Coverity identified a number of places in which it couldn't prove that a string being copied into a fixed-size buffer would fit. We believe that most, perhaps all of these are in fact safe, or are copying data that is coming from a trusted source so that any overrun i...
int tty_prepare_flip_string(struct tty_struct *tty, unsigned char **chars, size_t size) { int space = tty_buffer_request_room(tty, size); if (likely(space)) { struct tty_buffer *tb = tty->buf.tail; *chars = tb->char_buf_ptr + tb->used; memset(tb->flag_buf_ptr + tb->used, TTY_NORMAL, space); tb->used +...
1
[]
linux
c56a00a165712fd73081f40044b1e64407bb1875
165,667,202,217,282,710,000,000,000,000,000,000,000
12
tty: hold lock across tty buffer finding and buffer filling tty_buffer_request_room is well protected, but while after it returns, it releases the port->lock. tty->buf.tail might be modified by either irq handler or other threads. The patch adds more protection by holding the lock across tty buffer finding and buffer...
static void print_tm_bits(unsigned long val) { /* * This only prints something if at least one of the TM bit is set. * Inside the TM[], the output means: * E: Enabled (bit 32) * S: Suspended (bit 33) * T: Transactional (bit 34) */ if (val & (MSR_TM | MSR_TS_S | MSR_TS_T)) { printk(",TM["); print_bits(...
0
[]
linux
5d176f751ee3c6eededd984ad409bff201f436a7
161,729,636,153,403,900,000,000,000,000,000,000,000
15
powerpc: tm: Enable transactional memory (TM) lazily for userspace Currently the MSR TM bit is always set if the hardware is TM capable. This adds extra overhead as it means the TM SPRS (TFHAR, TEXASR and TFAIR) must be swapped for each process regardless of if they use TM. For processes that don't use TM the TM MSR ...
static int kvmgt_get_vfio_device(void *p_vgpu) { struct intel_vgpu *vgpu = (struct intel_vgpu *)p_vgpu; vgpu->vdev.vfio_device = vfio_device_get_from_dev( mdev_dev(vgpu->vdev.mdev)); if (!vgpu->vdev.vfio_device) { gvt_vgpu_err("failed to get vfio device\n"); return -ENODEV; } return 0; }
0
[ "CWE-20" ]
linux
51b00d8509dc69c98740da2ad07308b630d3eb7d
156,179,898,744,611,650,000,000,000,000,000,000,000
12
drm/i915/gvt: Fix mmap range check This is to fix missed mmap range check on vGPU bar2 region and only allow to map vGPU allocated GMADDR range, which means user space should support sparse mmap to get proper offset for mmap vGPU aperture. And this takes care of actual pgoff in mmap request as original code always doe...
evdev_sendevents_get_mode(struct libinput_device *device) { struct evdev_device *evdev = evdev_device(device); struct evdev_dispatch *dispatch = evdev->dispatch; return dispatch->sendevents.current_mode; }
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
248,755,011,479,827,300,000,000,000,000,000,000,000
7
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...
add_selected_from_tree_view (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { GList **list = data; char *dir_path; gtk_tree_model_get (model, iter, TREE_COLUMN_PATH, &dir_path, -1); *list = g_list_prepend (*list, dir_path); }
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
64,721,930,846,988,090,000,000,000,000,000,000,000
13
libarchive: sanitize filenames before extracting
TfLiteStatus CalculateShapeForBroadcast(TfLiteContext* context, const TfLiteTensor* input1, const TfLiteTensor* input2, TfLiteIntArray** output_shape) { int dims1 = NumDimensions(input1); int dims...
0
[ "CWE-125", "CWE-787" ]
tensorflow
00302787b788c5ff04cb6f62aed5a74d936e86c0
67,481,970,097,722,435,000,000,000,000,000,000,000
22
[tflite] Make `GetOptionalInputTensor` the same as `GetInput`. With the previous change, there is no more need for two separate APIs. We would deprecate `GetOptionalInputTensor` in the future. PiperOrigin-RevId: 332513386 Change-Id: Id7110271c25ebd6126ad8c82a493e37e0e0756b3
gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const guchar *buf, gsize count, GError **error) { gint n_bytes; GdkPixbufLoaderPrivate *priv = loader->priv; n_bytes = MIN(LOADER_HEADER_SIZE - priv->header_buf_offset, count);...
0
[ "CWE-20" ]
gdk-pixbuf
3bac204e0d0241a0d68586ece7099e6acf0e9bea
242,156,370,110,566,500,000,000,000,000,000,000,000
21
Initial stab at getting the focus code to work. Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at getting the focus code to work. (gtk_tree_view_class_init): Add a bunch of keybindings. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_c...
void TLSWrap::EnableKeylogCallback( const FunctionCallbackInfo<Value>& args) { TLSWrap* wrap; ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); CHECK_NOT_NULL(wrap->sc_); #if OPENSSL_VERSION_NUMBER >= 0x1010100fL SSL_CTX_set_keylog_callback(wrap->sc_->ctx_.get(), SSLWrap<TLSWrap>::KeylogCallback); #endif...
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
272,176,325,593,265,800,000,000,000,000,000,000,000
10
src: use unique_ptr for WriteWrap This commit attempts to avoid a use-after-free error by using unqiue_ptr and passing a reference to it. CVE-ID: CVE-2020-8265 Fixes: https://github.com/nodejs-private/node-private/issues/227 PR-URL: https://github.com/nodejs-private/node-private/pull/238 Reviewed-By: Michael Dawson <...
lys_switch_deviation(struct lys_deviation *dev, const struct lys_module *module, struct unres_schema *unres) { int ret, reapply = 0; char *parent_path; struct lys_node *target = NULL, *parent; struct lys_node_inout *inout; struct ly_set *set; if (!dev->deviate) { return; } if (...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
123,693,651,386,335,550,000,000,000,000,000,000,000
120
schema tree BUGFIX do not check features while still resolving schema Fixes #723
GBool GfxResources::lookupMarkedContentNF(char *name, Object *obj) { GfxResources *resPtr; for (resPtr = this; resPtr; resPtr = resPtr->next) { if (resPtr->propertiesDict.isDict()) { if (!resPtr->propertiesDict.dictLookupNF(name, obj)->isNull()) return gTrue; obj->free(); } } error(-1, "Ma...
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
323,843,233,201,479,700,000,000,000,000,000,000,000
13
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
static int mov_add_tfra_entries(AVIOContext *pb, MOVMuxContext *mov, int tracks, int size) { int i; for (i = 0; i < mov->nb_streams; i++) { MOVTrack *track = &mov->tracks[i]; MOVFragmentInfo *info; if ((tracks >= 0 && i != tracks) || !track->entry) ...
0
[ "CWE-369" ]
FFmpeg
2c0e98a0b478284bdff6d7a4062522605a8beae5
325,312,711,662,110,400,000,000,000,000,000,000,000
39
avformat/movenc: Write version 2 of audio atom if channels is not known The version 1 needs the channel count and would divide by 0 Fixes: division by 0 Fixes: fpe_movenc.c_1108_1.ogg Fixes: fpe_movenc.c_1108_2.ogg Fixes: fpe_movenc.c_1108_3.wav Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.sg> Signed-off-by: Michael N...
static void _pam_setup_krb5_env(struct pwb_context *ctx, struct wbcLogonUserInfo *info) { char *var = NULL; int ret; uint32_t i; const char *krb5ccname = NULL; if (off(ctx->ctrl, WINBIND_KRB5_AUTH)) { return; } if (!info) { return; } for (i=0; i < info->num_blobs; i++) { if (strcasecmp(info->blobs...
0
[ "CWE-20" ]
samba
f62683956a3b182f6a61cc7a2b4ada2e74cde243
330,532,964,811,955,270,000,000,000,000,000,000,000
42
fail authentication for single group name which cannot be converted to sid furthermore if more than one name is supplied and no sid is converted then also fail. Bug: https://bugzilla.samba.org/show_bug.cgi?id=8598 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed...
TEST(ArrayOpsTest, StridedSliceGrad_ShapeFn) { ShapeInferenceTestOp op("StridedSliceGrad"); op.input_tensors.resize(5); INFER_OK(op, "?;?;?;?;?", "?"); INFER_OK(op, "[?];?;?;?;?", "?"); INFER_OK(op, "[4];?;?;?;?", "[?,?,?,?]"); Tensor in_t = test::AsTensor<int32>({1, 2, 3, 4}); op.input_tensors[0] = &in_...
0
[ "CWE-125" ]
tensorflow
7cf73a2274732c9d82af51c2bc2cf90d13cd7e6d
72,666,394,452,517,090,000,000,000,000,000,000,000
11
Address QuantizeAndDequantizeV* heap oob. Added additional checks for the 'axis' attribute. PiperOrigin-RevId: 402446942 Change-Id: Id2f6b82e4e740d0550329be02621c46466b5a5b9
pdf14_ok_to_optimize(gx_device *dev) { bool using_blend_cs; pdf14_default_colorspace_t pdf14_cs = pdf14_determine_default_blend_cs(dev, false, &using_blend_cs); gsicc_colorbuffer_t dev_icc_cs; bool ok = false; int tag_depth = device_encodes_tags(dev) ? 8 : 0; cmm_dev_profile_t *dev_profi...
0
[]
ghostpdl
c432131c3fdb2143e148e8ba88555f7f7a63b25e
113,245,022,346,198,460,000,000,000,000,000,000,000
51
Bug 699661: Avoid sharing pointers between pdf14 compositors If a copdevice is triggered when the pdf14 compositor is the device, we make a copy of the device, then throw an error because, by default we're only allowed to copy the device prototype - then freeing it calls the finalize, which frees several pointers shar...
GResInfo *_GTextFieldRIHead(void) { if ( !gtextfield_inited ) GTextFieldInit(); return( &gtextfield_ri ); }
0
[ "CWE-119", "CWE-787" ]
fontforge
626f751752875a0ddd74b9e217b6f4828713573c
171,132,035,902,960,280,000,000,000,000,000,000,000
6
Warn users before discarding their unsaved scripts (#3852) * Warn users before discarding their unsaved scripts This closes #3846.
static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception) { char colorspace[MagickPathExtent], text[MagickPathExtent]; Image *image; long x_offset, y_offset; PixelInfo pixel; MagickBooleanType status; QuantumAny range; register ssize_t i, ...
0
[ "CWE-190", "CWE-835" ]
ImageMagick
50f54462076648ac2e36c3f58f4dadd4babbf1c9
325,988,446,843,115,040,000,000,000,000,000,000,000
220
https://github.com/ImageMagick/ImageMagick/issues/713
utf16le_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end, UChar* fold) { const UChar* p = *pp; if (ONIGENC_IS_ASCII_CODE(*p) && *(p+1) == 0) { #ifdef USE_UNICODE_CASE_FOLD_TURKISH_AZERI if ((flag & ONIGENC_CASE_FOLD_TURKISH_AZERI) != 0) { if (*p == 0x49) { *fold++ =...
0
[ "CWE-125" ]
php-src
b6fe458ef9ac1372b60c3d3810b0358e2e20840d
246,722,953,748,375,840,000,000,000,000,000,000,000
26
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code (cherry picked from commit aeec40cb50eca6a97975765e2bacc28a5950cfa9)
static int nfs4_set_client(struct nfs_server *server, const char *hostname, const struct sockaddr *addr, const size_t addrlen, const char *ip_addr, int proto, const struct rpc_timeout *timeparms, u32 minorversion, unsigned int nconnect, struct net *net) { struct nfs_client_initdata cl_init = { .hostnam...
0
[ "CWE-703" ]
linux
dd99e9f98fbf423ff6d365b37a98e8879170f17c
290,151,932,691,333,100,000,000,000,000,000,000,000
58
NFSv4: Initialise connection to the server in nfs4_alloc_client() Set up the connection to the NFSv4 server in nfs4_alloc_client(), before we've added the struct nfs_client to the net-namespace's nfs_client_list so that a downed server won't cause other mounts to hang in the trunking detection code. Reported-by: Mich...
static enum hrtimer_restart sched_cfs_slack_timer(struct hrtimer *timer) { struct cfs_bandwidth *cfs_b = container_of(timer, struct cfs_bandwidth, slack_timer); do_sched_cfs_slack_timer(cfs_b); return HRTIMER_NORESTART; }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
linux
c40f7d74c741a907cfaeb73a7697081881c497d0
166,149,388,365,548,390,000,000,000,000,000,000,000
9
sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c Zhipeng Xie, Xie XiuQi and Sargun Dhillon reported lockups in the scheduler under high loads, starting at around the v4.18 time frame, and Zhipeng Xie tracked it down to bugs in the rq->leaf_cfs_rq_list manipulation. Do a (manual) re...
inet_sockaddrport(struct sockaddr_storage *addr) { uint16_t port; if (addr->ss_family == AF_INET6) { struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *) addr; port = addr6->sin6_port; } else { /* Note: this might be AF_UNSPEC if it is the sequence number of * a virtual server in a virtual server group */ ...
0
[ "CWE-59", "CWE-61" ]
keepalived
04f2d32871bb3b11d7dc024039952f2fe2750306
249,878,183,122,890,880,000,000,000,000,000,000,000
16
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 void LogPixelChannels(const Image *image) { register ssize_t i; (void) LogMagickEvent(PixelEvent,GetMagickModule(),"%s[%08x]", image->filename,image->channel_mask); for (i=0; i < (ssize_t) image->number_channels; i++) { char channel_name[MagickPathExtent], traits[MagickPathExtent...
0
[ "CWE-190" ]
ImageMagick
406da3af9e09649cda152663c179902edf5ab3ac
316,371,556,588,257,640,000,000,000,000,000,000,000
106
https://github.com/ImageMagick/ImageMagick/issues/1732
uint64 CSteamNetworkListenSocketDirectUDP::GenerateChallenge( uint16 nTime, const netadr_t &adr ) const { #pragma pack(push,1) struct { uint16 nTime; uint16 nPort; uint8 ipv6[16]; } data; #pragma pack(pop) data.nTime = nTime; data.nPort = adr.GetPort(); adr.GetIPV6( data.ipv6 ); uint64 nChallenge = sipha...
0
[ "CWE-703" ]
GameNetworkingSockets
d944a10808891d202bb1d5e1998de6e0423af678
108,592,483,624,151,030,000,000,000,000,000,000,000
16
Tweak pointer math to avoid possible integer overflow
static inline int udp_v4_get_port(struct sock *sk, unsigned short snum) { return udp_get_port(sk, snum, ipv4_rcv_saddr_equal); }
0
[]
linux-2.6
32c1da70810017a98aa6c431a5494a302b6b9a30
249,576,302,620,110,100,000,000,000,000,000,000,000
4
[UDP]: Randomize port selection. This patch causes UDP port allocation to be randomized like TCP. The earlier code would always choose same port (ie first empty list). Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
static int dns_transaction_make_packet(DnsTransaction *t) { _cleanup_(dns_packet_unrefp) DnsPacket *p = NULL; int r; assert(t); if (t->scope->protocol == DNS_PROTOCOL_MDNS) return dns_transaction_make_packet_mdns(t); if (t->sent) return 0; ...
0
[ "CWE-416" ]
systemd
904dcaf9d4933499f8334859f52ea8497f2d24ff
273,706,691,322,721,500,000,000,000,000,000,000,000
27
resolved: take particular care when detaching DnsServer from its default stream DnsStream and DnsServer have a symbiotic relationship: one DnsStream is the current "default" stream of the server (and thus reffed by it), but each stream also refs the server it is connected to. This cyclic dependency can result in weird...
static WORD_DESC * parameter_brace_expand_word (name, var_is_special, quoted, pflags, indp) char *name; int var_is_special, quoted, pflags; arrayind_t *indp; { WORD_DESC *ret; char *temp, *tt; intmax_t arg_index; SHELL_VAR *var; int atype, rflags; arrayind_t ind; ret = 0; temp = 0; rfl...
0
[ "CWE-20" ]
bash
4f747edc625815f449048579f6e65869914dd715
23,659,139,242,663,050,000,000,000,000,000,000,000
132
Bash-4.4 patch 7
BOOL update_recv(rdpUpdate* update, wStream* s) { BOOL rc = FALSE; UINT16 updateType; rdpContext* context = update->context; if (Stream_GetRemainingLength(s) < 2) { WLog_ERR(TAG, "Stream_GetRemainingLength(s) < 2"); return FALSE; } Stream_Read_UINT16(s, updateType); /* updateType (2 bytes) */ WLog_Print(u...
0
[ "CWE-125" ]
FreeRDP
0332cad015fdf7fac7e5c6863484f18a554e0fcf
210,712,111,577,567,150,000,000,000,000,000,000,000
78
Fixed oob read in update_recv properly use update_type_to_string to print update type. Thanks to hac425 CVE-2020-11019
submit_cl(struct drm_device *dev, uint32_t thread, uint32_t start, uint32_t end) { struct vc4_dev *vc4 = to_vc4_dev(dev); /* Set the current and end address of the control list. * Writing the end register is what starts the job. */ V3D_WRITE(V3D_CTNCA(thread), start); V3D_WRITE(V3D_CTNEA(thread), end); }
0
[ "CWE-190", "CWE-703" ]
linux
0f2ff82e11c86c05d051cae32b58226392d33bbf
61,714,977,965,613,490,000,000,000,000,000,000,000
10
drm/vc4: Fix an integer overflow in temporary allocation layout. We copy the unvalidated ioctl arguments from the user into kernel temporary memory to run the validation from, to avoid a race where the user updates the unvalidate contents in between validating them and copying them into the validated BO. However, in ...
static int security_sid_to_context_core(u32 sid, char **scontext, u32 *scontext_len, int force) { struct context *context; int rc = 0; if (scontext) *scontext = NULL; *scontext_len = 0; if (!ss_initialized) { if (sid <= SECINITSID_NUM) { char *scontextp; *scontext_len = strlen(initial_sid_to_str...
0
[ "CWE-20" ]
linux
2172fa709ab32ca60e86179dc67d0857be8e2c98
143,898,879,030,659,250,000,000,000,000,000,000,000
49
SELinux: Fix kernel BUG on empty security contexts. Setting an empty security context (length=0) on a file will lead to incorrectly dereferencing the type and other fields of the security context structure, yielding a kernel BUG. As a zero-length security context is never valid, just reject all such security contexts...
void udp_set_csum(bool nocheck, struct sk_buff *skb, __be32 saddr, __be32 daddr, int len) { struct udphdr *uh = udp_hdr(skb); if (nocheck) uh->check = 0; else if (skb_is_gso(skb)) uh->check = ~udp_v4_check(len, saddr, daddr, 0); else if (skb_dst(skb) && skb_dst(skb)->dev && (skb_dst(skb)->dev->features ...
0
[ "CWE-358" ]
linux
197c949e7798fbf28cfadc69d9ca0c2abbf93191
298,816,266,293,949,700,000,000,000,000,000,000,000
33
udp: properly support MSG_PEEK with truncated buffers Backport of this upstream commit into stable kernels : 89c22d8c3b27 ("net: Fix skb csum races when peeking") exposed a bug in udp stack vs MSG_PEEK support, when user provides a buffer smaller than skb payload. In this case, skb_copy_and_csum_datagram_iovec(skb, s...
static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, sector_t *span) { struct inode *inode = file_inode(file); int ret; if (!S_ISREG(inode->i_mode)) return -EINVAL; if (f2fs_readonly(F2FS_I_SB(inode)->sb)) return -EROFS; ret = f2fs_convert_inline_inode(inode); if (ret) retur...
0
[ "CWE-476" ]
linux
4969c06a0d83c9c3dc50b8efcdc8eeedfce896f6
273,113,455,252,373,500,000,000,000,000,000,000,000
25
f2fs: support swap file w/ DIO Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
g_file_get_child_for_display_name (GFile *file, const char *display_name, GError **error) { GFileIface *iface; g_return_val_if_fail (G_IS_FILE (file), NULL); g_return_val_if_fail (display_name != NULL, NULL); iface = G_FILE_GET_IFACE (...
0
[ "CWE-362" ]
glib
d8f8f4d637ce43f8699ba94c9b7648beda0ca174
64,889,774,451,830,100,000,000,000,000,000,000,000
13
gfile: Limit access to files when copying file_copy_fallback creates new files with default permissions and set the correct permissions after the operation is finished. This might cause that the files can be accessible by more users during the operation than expected. Use G_FILE_CREATE_PRIVATE for the new files to lim...
TEST_P(DownstreamProtocolIntegrationTest, DisableStripTrailingHostDot) { config_helper_.addConfigModifier( [&](envoy::extensions::filters::network::http_connection_manager::v3::HttpConnectionManager& hcm) -> void { hcm.set_strip_trailing_host_dot(false); // clear existing domains a...
0
[ "CWE-416" ]
envoy
148de954ed3585d8b4298b424aa24916d0de6136
314,848,412,363,442,730,000,000,000,000,000,000,000
24
CVE-2021-43825 Response filter manager crash Signed-off-by: Yan Avlasov <yavlasov@google.com>
alloc_and_load_x509_certs (gnutls_x509_crt_t * certs, unsigned ncerts) { gnutls_pcert_st *local_certs; int ret = 0; unsigned i, j; if (certs == NULL) return NULL; local_certs = gnutls_malloc (sizeof (gnutls_pcert_st) * ncerts); if (local_certs == NULL) { gnutls_assert (); return NULL; ...
0
[ "CWE-399" ]
gnutls
9c62f4feb2bdd6fbbb06eb0c60bfdea80d21bbb8
248,343,659,148,966,860,000,000,000,000,000,000,000
36
Deinitialize the correct number of certificates. Reported by Remi Gacogne.
sph_enc32be_aligned(void *dst, sph_u32 val) { #if SPH_LITTLE_ENDIAN *(sph_u32 *)dst = sph_bswap32(val); #elif SPH_BIG_ENDIAN *(sph_u32 *)dst = val; #else ((unsigned char *)dst)[0] = (val >> 24); ((unsigned char *)dst)[1] = (val >> 16); ((unsigned char *)dst)[2] = (val >> 8); ((unsigned char *)dst)[3] = val; #endi...
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
45,059,223,890,250,860,000,000,000,000,000,000,000
13
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 ...
FILE *Sys_Mkfifo( const char *ospath ) { return NULL; }
0
[ "CWE-59" ]
ioq3
b5acc31a4da72cc3a4a6d88facb15b6214d745c6
33,580,703,006,993,663,000,000,000,000,000,000,000
4
CVE-2012-3345
static int avi_add_std_index(avi_t *AVI, unsigned char *idxtag, unsigned char *strtag, avistdindex_chunk *stdil) { memcpy (stdil->fcc, idxtag, 4); stdil->dwSize = 4096; stdil->wLongsPerEntry = 2; //sizeof(avistdindex_entry)/sizeof(u32); stdil->bIndexSubType = 0; stdil->bIndexType = AV...
0
[ "CWE-835" ]
gpac
7f060bbb72966cae80d6fee338d0b07fa3fc06e1
28,487,932,334,668,584,000,000,000,000,000,000,000
26
fixed #2159
mrb_proc_cfunc_env_get(mrb_state *mrb, mrb_int idx) { const struct RProc *p = mrb->c->ci->proc; struct REnv *e; if (!p || !MRB_PROC_CFUNC_P(p)) { mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc env from non-cfunc proc"); } e = MRB_PROC_ENV(p); if (!e) { mrb_raise(mrb, E_TYPE_ERROR, "Can't get cfunc e...
0
[ "CWE-476", "CWE-190" ]
mruby
f5e10c5a79a17939af763b1dcf5232ce47e24a34
43,737,470,085,575,550,000,000,000,000,000,000,000
19
proc.c: add `mrb_state` argument to `mrb_proc_copy()`. The function may invoke the garbage collection and it requires `mrb_state` to run.
static int llc_conn_rcv(struct sock *sk, struct sk_buff *skb) { struct llc_conn_state_ev *ev = llc_conn_ev(skb); ev->type = LLC_CONN_EV_TYPE_PDU; ev->reason = 0; return llc_conn_state_process(sk, skb); }
0
[ "CWE-20", "CWE-401" ]
linux
8b74d439e1697110c5e5c600643e823eb1dd0762
23,396,803,041,974,620,000,000,000,000,000,000,000
8
net/llc: avoid BUG_ON() in skb_orphan() It seems nobody used LLC since linux-3.12. Fortunately fuzzers like syzkaller still know how to run this code, otherwise it would be no fun. Setting skb->sk without skb->destructor leads to all kinds of bugs, we now prefer to be very strict about it. Ideally here we would use...
INLINE BOOL gdi_SetRgn(HGDI_RGN hRgn, INT32 nXLeft, INT32 nYLeft, INT32 nWidth, INT32 nHeight) { hRgn->x = nXLeft; hRgn->y = nYLeft; hRgn->w = nWidth; hRgn->h = nHeight; hRgn->null = FALSE; return TRUE; }
0
[ "CWE-190" ]
FreeRDP
ce21b9d7ecd967e0bc98ed31a6b3757848aa6c9e
168,615,724,484,910,880,000,000,000,000,000,000,000
9
Fix CVE-2020-11523: clamp invalid rectangles to size 0 Thanks to Sunglin and HuanGMz from Knownsec 404
Tuple(asdl_seq * elts, expr_context_ty ctx, int lineno, int col_offset, int end_lineno, int end_col_offset, PyArena *arena) { expr_ty p; if (!ctx) { PyErr_SetString(PyExc_ValueError, "field ctx is required for Tuple"); return NULL; } p = (expr_ty)PyArena_Mal...
0
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
66,529,627,113,506,680,000,000,000,000,000,000,000
21
bpo-35766: Merge typed_ast back into CPython (GH-11645)
date_s_zone_to_diff(VALUE klass, VALUE str) { return date_zone_to_diff(str); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
124,952,907,304,553,730,000,000,000,000,000,000,000
4
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`...
static bool __io_kill_linked_timeout(struct io_kiocb *req) { struct io_kiocb *link; bool wake_ev; if (list_empty(&req->link_list)) return false; link = list_first_entry(&req->link_list, struct io_kiocb, link_list); if (link->opcode != IORING_OP_LINK_TIMEOUT) return false; list_del_init(&link->link_list); l...
0
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
100,460,660,540,584,530,000,000,000,000,000,000,000
17
io_uring: don't rely on weak ->files references Grab actual references to the files_struct. To avoid circular references issues due to this, we add a per-task note that keeps track of what io_uring contexts a task has used. When the tasks execs or exits its assigned files, we cancel requests based on this tracking. W...
void Gfx::opSetHorizScaling(Object args[], int numArgs) { state->setHorizScaling(args[0].getNum()); out->updateHorizScaling(state); fontChanged = gTrue; }
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
183,598,520,016,854,360,000,000,000,000,000,000,000
5
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
static inline bool nvme_addr_is_dma(NvmeCtrl *n, hwaddr addr) { return !(nvme_addr_is_cmb(n, addr) || nvme_addr_is_pmr(n, addr)); }
0
[]
qemu
736b01642d85be832385063f278fe7cd4ffb5221
144,238,373,447,685,280,000,000,000,000,000,000,000
4
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 int __init init_dns_resolver(void) { struct cred *cred; struct key *keyring; int ret; /* create an override credential set with a special thread keyring in * which DNS requests are cached * * this is used to prevent malicious redirections from being installed * with add_key(). */ cred = prepare_k...
0
[ "CWE-20" ]
linux
363b02dab09b3226f3bd1420dad9c72b79a42a76
85,433,035,491,007,520,000,000,000,000,000,000,000
46
KEYS: Fix race between updating and finding a negative key Consolidate KEY_FLAG_INSTANTIATED, KEY_FLAG_NEGATIVE and the rejection error into one field such that: (1) The instantiation state can be modified/read atomically. (2) The error can be accessed atomically with the state. (3) The error isn't stored unione...
static void memory_map_init(struct uc_struct *uc) { uc->system_memory = g_malloc(sizeof(*(uc->system_memory))); memory_region_init(uc, uc->system_memory, UINT64_MAX); address_space_init(uc, &uc->address_space_memory, uc->system_memory); uc->system_io = g_malloc(sizeof(*(uc->system_io))); memory_reg...
0
[ "CWE-476" ]
unicorn
3d3deac5e6d38602b689c4fef5dac004f07a2e63
314,039,054,050,102,840,000,000,000,000,000,000,000
10
Fix crash when mapping a big memory and calling uc_close
static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, gpa_t addr, int len, int is_write) { struct kvm_io_device *dev; dev = vcpu_find_pervcpu_dev(vcpu, addr, len, is_write); if (dev == NULL) dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr, len, is_write); return dev; }
0
[ "CWE-476" ]
linux-2.6
59839dfff5eabca01cc4e20b45797a60a80af8cb
47,538,337,440,148,540,000,000,000,000,000,000,000
12
KVM: x86: check for cr3 validity in ioctl_set_sregs Matt T. Yourst notes that kvm_arch_vcpu_ioctl_set_sregs lacks validity checking for the new cr3 value: "Userspace callers of KVM_SET_SREGS can pass a bogus value of cr3 to the kernel. This will trigger a NULL pointer access in gfn_to_rmap() when userspace next tries...