func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
int snd_sof_ipc_valid(struct snd_sof_dev *sdev) { struct sof_ipc_fw_ready *ready = &sdev->fw_ready; struct sof_ipc_fw_version *v = &ready->version; dev_info(sdev->dev, "Firmware info: version %d:%d:%d-%s\n", v->major, v->minor, v->micro, v->tag); dev_info(sdev->dev, "Firmware: ABI %d:%d:%d Kernel ABI %d:...
0
[ "CWE-400", "CWE-401" ]
linux
45c1380358b12bf2d1db20a5874e9544f56b34ab
296,295,882,252,362,200,000,000,000,000,000,000,000
49
ASoC: SOF: ipc: Fix memory leak in sof_set_get_large_ctrl_data In the implementation of sof_set_get_large_ctrl_data() there is a memory leak in case an error. Release partdata if sof_get_ctrl_copy_params() fails. Fixes: 54d198d5019d ("ASoC: SOF: Propagate sof_get_ctrl_copy_params() error properly") Signed-off-by: Nav...
GF_Err extr_box_read(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_ExtraDataBox *ptr = (GF_ExtraDataBox *)s; e = gf_isom_box_parse((GF_Box**) &ptr->feci, bs); if (e) return e; if (!ptr->feci || ptr->feci->size > ptr->size) return GF_ISOM_INVALID_MEDIA; ptr->data_length = (u32) (ptr->size - ptr->feci->size); ptr-...
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
159,132,581,182,314,860,000,000,000,000,000,000,000
15
fixed #1587
~StreamEncoderImpl() override { // When the stream goes away, undo any read blocks to resume reading. while (read_disable_calls_ != 0) { StreamEncoderImpl::readDisable(false); } }
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
113,147,767,662,427,970,000,000,000,000,000,000,000
6
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
trap_handler(__attribute__((unused)) vector_t *strvec) { global_data->enable_traps = true; }
0
[ "CWE-200" ]
keepalived
c6247a9ef2c7b33244ab1d3aa5d629ec49f0a067
148,362,000,684,003,000,000,000,000,000,000,000,000
4
Add command line and configuration option to set umask Issue #1048 identified that files created by keepalived are created with mode 0666. This commit changes the default to 0644, and also allows the umask to be specified in the configuration or as a command line option. Signed-off-by: Quentin Armitage <quentin@armit...
void qcow2_refcount_close(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; g_free(s->refcount_table); }
0
[ "CWE-190" ]
qemu
b106ad9185f35fc4ad669555ad0e79e276083bd7
251,483,531,198,072,770,000,000,000,000,000,000,000
5
qcow2: Don't rely on free_cluster_index in alloc_refcount_block() (CVE-2014-0147) free_cluster_index is only correct if update_refcount() was called from an allocation function, and even there it's brittle because it's used to protect unfinished allocations which still have a refcount of 0 - if it moves in the wrong p...
static void set_mount_flag(const char *s, int *flags) { int i; for (i = 0; mount_flags[i].opt != NULL; i++) { const char *opt = mount_flags[i].opt; if (strcmp(opt, s) == 0) { if (mount_flags[i].on) *flags |= mount_flags[i].flag; else *flag...
0
[ "CWE-200" ]
ntfs-3g
7f81935f32e58e8fec22bc46683b1b067469405f
19,320,912,997,524,897,000,000,000,000,000,000,000
17
Returned an error code when the --help or --version options are used Accepting --help or --version options may leave the ntfs-3g process in an unclean state, so reject them while processing options. Also reject them in libfuse-lite.
folly::Optional<TLSMessage> EncryptedReadRecordLayer::read( folly::IOBufQueue& buf) { auto decryptedBuf = getDecryptedBuf(buf); if (!decryptedBuf) { return folly::none; } TLSMessage msg{}; // Iterate over the buffers while trying to find // the first non-zero octet. This is much faster than // fi...
0
[ "CWE-400", "CWE-703", "CWE-770" ]
fizz
3eaddb33619eaaf74a760872850c550ad8f5c52f
284,719,465,403,788,650,000,000,000,000,000,000,000
51
Coalesce handshake buffers Summary: It is possible that a peer might send us records in a manner such that there is a 16KB record and only 1 byte of handshake message in each record. Since we normally just trim the IOBuf, we would end up holding 16K of data per actual byte of data. To prevent this we allocate a contig...
static inline int unhex(int a) { if (a >= 'A' && a <= 'F') return a - 'A' + 0xA; if (a >= 'a' && a <= 'f') return a - 'a' + 0xA; if (a >= '0' && a <= '9') return a - '0'; return 0; }
0
[ "CWE-119" ]
mupdf
60dabde18d7fe12b19da8b509bdfee9cc886aafc
308,452,597,774,830,930,000,000,000,000,000,000,000
7
Bug 694957: fix stack buffer overflow in xps_parse_color xps_parse_color happily reads more than FZ_MAX_COLORS values out of a ContextColor array which overflows the passed in samples array. Limiting the number of allowed samples to FZ_MAX_COLORS and make sure to use that constant for all callers fixes the problem. T...
TEST_F(QuicServerTransportTest, InvalidMigrationNoDrain) { StreamId streamId = server->createBidirectionalStream().value(); auto expected = IOBuf::copyBuffer("hello"); auto packet = packetToBuf(createStreamPacket( *clientConnectionId, *server->getConn().serverConnectionId, clientNextAppDataPack...
0
[ "CWE-617", "CWE-703" ]
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
157,382,362,885,571,050,000,000,000,000,000,000,000
24
Close connection if we derive an extra 1-rtt write cipher Summary: Fixes CVE-2021-24029 Reviewed By: mjoras, lnicco Differential Revision: D26613890 fbshipit-source-id: 19bb2be2c731808144e1a074ece313fba11f1945
void sqlite_iterator_rewind(zend_object_iterator *iter TSRMLS_DC) { struct php_sqlite_result *res = ((sqlite_object_iterator*)iter)->res; if (((sqlite_object_iterator*)iter)->value) { zval_ptr_dtor(&((sqlite_object_iterator*)iter)->value); ((sqlite_object_iterator*)iter)->value = NULL; } if (res) { res->curr...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
64,563,520,698,854,200,000,000,000,000,000,000,000
12
- 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
Returns an array with information about sun set/rise and twilight begin/end */ PHP_FUNCTION(date_sun_info) { long time; double latitude, longitude; timelib_time *t, *t2; timelib_tzinfo *tzi; int rs; timelib_sll rise, set, transit; int dummy; double d...
0
[]
php-src
c377f1a715476934133f3254d1e0d4bf3743e2d2
316,174,781,606,929,840,000,000,000,000,000,000,000
101
Fix bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone)
__must_hold(&ctx->uring_lock) { struct io_wq_work_node *node, *prev; struct io_submit_state *state = &ctx->submit_state; if (state->flush_cqes) { spin_lock(&ctx->completion_lock); wq_list_for_each(node, prev, &state->compl_reqs) { struct io_kiocb *req = container_of(node, struct io_kiocb, comp_lis...
0
[ "CWE-416" ]
linux
e677edbcabee849bfdd43f1602bccbecf736a646
177,960,198,114,027,020,000,000,000,000,000,000,000
33
io_uring: fix race between timeout flush and removal io_flush_timeouts() assumes the timeout isn't in progress of triggering or being removed/canceled, so it unconditionally removes it from the timeout list and attempts to cancel it. Leave it on the list and let the normal timeout cancelation take care of it. Cc: st...
static void arcmsr_hbaC_request_device_map(struct AdapterControlBlock *acb) { struct MessageUnit_C __iomem *reg = acb->pmuC; if (unlikely(atomic_read(&acb->rq_map_token) == 0) || ((acb->acb_flags & ACB_F_BUS_RESET) != 0) || ((acb->acb_flags & ACB_F_ABORT) != 0)) { mod_timer(&acb->eternal_timer, jiffies + msecs_to_j...
0
[ "CWE-119", "CWE-787" ]
linux
7bc2b55a5c030685b399bb65b6baa9ccc3d1f167
198,917,229,690,898,830,000,000,000,000,000,000,000
22
scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer() We need to put an upper bound on "user_len" so the memcpy() doesn't overflow. Cc: <stable@vger.kernel.org> Reported-by: Marco Grassi <marco.gra@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Sig...
AppendNumberToRedobuff(long n) { if (!block_redo) add_num_buff(&redobuff, n); }
0
[ "CWE-78" ]
vim
53575521406739cf20bbe4e384d88e7dca11f040
51,855,553,676,375,610,000,000,000,000,000,000,000
5
patch 8.1.1365: source command doesn't check for the sandbox Problem: Source command doesn't check for the sandbox. (Armin Razmjou) Solution: Check for the sandbox when sourcing a file.
static int nested_vmx_check_pml_controls(struct kvm_vcpu *vcpu, struct vmcs12 *vmcs12) { u64 address = vmcs12->pml_address; int maxphyaddr = cpuid_maxphyaddr(vcpu); if (nested_cpu_has2(vmcs12, SECONDARY_EXEC_ENABLE_PML)) { if (!nested_cpu_has_ept(vmcs12) || !IS_ALIGNED(address, 4096) || address...
0
[ "CWE-284" ]
linux
727ba748e110b4de50d142edca9d6a9b7e6111d8
130,638,843,522,307,180,000,000,000,000,000,000,000
15
kvm: nVMX: Enforce cpl=0 for VMX instructions VMX instructions executed inside a L1 VM will always trigger a VM exit even when executed with cpl 3. This means we must perform the privilege check in software. Fixes: 70f3aac964ae("kvm: nVMX: Remove superfluous VMX instruction fault checks") Cc: stable@vger.kernel.org S...
process_colcache(STREAM s) { COLOURENTRY *entry; COLOURMAP map; RD_HCOLOURMAP hmap; uint8 cache_id; int i; in_uint8(s, cache_id); in_uint16_le(s, map.ncolours); map.colours = (COLOURENTRY *) xmalloc(sizeof(COLOURENTRY) * map.ncolours); for (i = 0; i < map.ncolours; i++) { entry = &map.colours[i]; in_ui...
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
284,149,424,701,165,850,000,000,000,000,000,000,000
31
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
ofputil_put_async_config__(const struct ofputil_async_cfg *ac, struct ofpbuf *buf, bool tlv, enum ofp_version version, uint32_t oams) { if (!tlv) { struct nx_async_config *msg = ofpbuf_put_zeros(buf, sizeof *msg); encode_legacy_async_masks(ac, OA...
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
259,046,541,458,636,570,000,000,000,000,000,000,000
30
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 init_post_handshake_auth(SSL *s, unsigned int context) { s->post_handshake_auth = SSL_PHA_NONE; return 1; }
0
[ "CWE-476" ]
openssl
fb9fa6b51defd48157eeb207f52181f735d96148
48,840,439,718,405,660,000,000,000,000,000,000,000
6
ssl sigalg extension: fix NULL pointer dereference As the variable peer_sigalgslen is not cleared on ssl rehandshake, it's possible to crash an openssl tls secured server remotely by sending a manipulated hello message in a rehandshake. On such a manipulated rehandshake, tls1_set_shared_sigalgs() calls tls12_shared_s...
static void set_match(int id, const char *match) { assert((size_t) id < ARRAY_SIZE(infos)); infos[id].match = match; }
0
[ "CWE-552", "CWE-703" ]
util-linux
166e87368ae88bf31112a30e078cceae637f4cdb
326,122,043,416,625,850,000,000,000,000,000,000,000
5
libmount: remove support for deleted mount table entries The "(deleted)" suffix has been originally used by kernel for deleted mountpoints. Since kernel commit 9d4d65748a5ca26ea8650e50ba521295549bf4e3 (Dec 2014) kernel does not use this suffix for mount stuff in /proc at all. Let's remove this support from libmount to...
int usb_reset_device(struct usb_device *udev) { int ret; int i; unsigned int noio_flag; struct usb_port *port_dev; struct usb_host_config *config = udev->actconfig; struct usb_hub *hub = usb_hub_to_struct_hub(udev->parent); if (udev->state == USB_STATE_NOTATTACHED || udev->state == USB_STATE_SUSPENDED) { d...
0
[ "CWE-703" ]
linux
e50293ef9775c5f1cf3fcc093037dd6a8c5684ea
257,307,134,740,045,820,000,000,000,000,000,000,000
85
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. ...
TPMT_HA_Unmarshal(TPMT_HA *target, BYTE **buffer, INT32 *size, BOOL allowNull) { TPM_RC rc = TPM_RC_SUCCESS; if (rc == TPM_RC_SUCCESS) { rc = TPMI_ALG_HASH_Unmarshal(&target->hashAlg, buffer, size, allowNull); } if (rc == TPM_RC_SUCCESS) { rc = TPMU_HA_Unmarshal(&target->digest, buffer, size, target-...
0
[ "CWE-787" ]
libtpms
5cc98a62dc6f204dcf5b87c2ee83ac742a6a319b
226,017,406,286,395,160,000,000,000,000,000,000,000
12
tpm2: Restore original value if unmarshalled value was illegal Restore the original value of the memory location where data from a stream was unmarshalled and the unmarshalled value was found to be illegal. The goal is to not keep illegal values in memory. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
static inline unsigned long long cur_cp_version(struct f2fs_checkpoint *cp) { return le64_to_cpu(cp->checkpoint_ver); }
0
[ "CWE-476" ]
linux
4969c06a0d83c9c3dc50b8efcdc8eeedfce896f6
291,478,985,037,480,270,000,000,000,000,000,000,000
4
f2fs: support swap file w/ DIO Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
DefragDoSturgesNovakTest(int policy, u_char *expected, size_t expected_len) { int i; int ret = 0; DefragInit(); /* * Build the packets. */ int id = 1; Packet *packets[17]; memset(packets, 0x00, sizeof(packets)); /* * Original fragments. */ /* A*24 at 0. */ ...
0
[ "CWE-358" ]
suricata
4a04f814b15762eb446a5ead4d69d021512df6f8
302,112,021,034,101,370,000,000,000,000,000,000,000
133
defrag - take protocol into account during re-assembly The IP protocol was not being used to match fragments with their packets allowing a carefully constructed packet with a different protocol to be matched, allowing re-assembly to complete, creating a packet that would not be re-assembled by the destination host.
GF_Err segr_box_size(GF_Box *s) { u32 i; FDSessionGroupBox *ptr = (FDSessionGroupBox *)s; ptr->size += 2; for (i=0; i<ptr->num_session_groups; i++) { ptr->size += 1 + 4*ptr->session_groups[i].nb_groups; ptr->size += 2 + 4*ptr->session_groups[i].nb_channels; } return GF_OK;
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
305,780,252,009,673,930,000,000,000,000,000,000,000
13
fixed #1587
static int nfs_finish_open(struct nfs_open_context *ctx, struct dentry *dentry, struct file *file, unsigned open_flags) { int err; err = finish_open(file, dentry, do_open); if (err) goto out; if (S_ISREG(file->f_path.dentry->d_inode->i_mode)) nfs_file_set_open_context(file, ctx); else err = -EOP...
0
[ "CWE-909" ]
linux
ac795161c93699d600db16c1a8cc23a65a1eceaf
156,952,537,020,181,630,000,000,000,000,000,000,000
16
NFSv4: Handle case where the lookup of a directory fails If the application sets the O_DIRECTORY flag, and tries to open a regular file, nfs_atomic_open() will punt to doing a regular lookup. If the server then returns a regular file, we will happily return a file descriptor with uninitialised open state. The fix is ...
static int nl80211_get_reg_dump(struct sk_buff *skb, struct netlink_callback *cb) { const struct ieee80211_regdomain *regdom = NULL; struct cfg80211_registered_device *rdev; int err, reg_idx, start = cb->args[2]; rtnl_lock(); if (cfg80211_regdomain && start == 0) { err = nl80211_send_regdom(skb, cb, cb->nl...
0
[ "CWE-120" ]
linux
f88eb7c0d002a67ef31aeb7850b42ff69abc46dc
131,933,094,834,518,000,000,000,000,000,000,000,000
41
nl80211: validate beacon head We currently don't validate the beacon head, i.e. the header, fixed part and elements that are to go in front of the TIM element. This means that the variable elements there can be malformed, e.g. have a length exceeding the buffer size, but most downstream code from this assumes that thi...
gpointer ves_icall_System_Threading_Interlocked_CompareExchange_IntPtr(gpointer *location, gpointer value, gpointer comparand) { return InterlockedCompareExchangePointer(location, value, comparand); }
0
[ "CWE-399", "CWE-264" ]
mono
722f9890f09aadfc37ae479e7d946d5fc5ef7b91
258,211,398,052,426,540,000,000,000,000,000,000,000
4
Fix access to freed members of a dead thread * threads.c: Fix access to freed members of a dead thread. Found and fixed by Rodrigo Kumpera <rkumpera@novell.com> Ref: CVE-2011-0992
nil_signal_handler(int sig) { LOG(1, ("nil_signal_handler: got signal %d", sig)); g_set_wait_obj(g_term_event); }
0
[]
xrdp
d8f9e8310dac362bb9578763d1024178f94f4ecc
212,574,766,164,658,920,000,000,000,000,000,000,000
5
move temp files from /tmp to /tmp/.xrdp
Client::handleMoreAdaptedBodyAvailable() { if (abortOnBadEntry("entry refuses adapted body")) return; assert(entry); size_t contentSize = adaptedBodySource->buf().contentSize(); if (!contentSize) return; // XXX: bytesWanted asserts on zero-size ranges const size_t spaceAvailable ...
0
[ "CWE-20" ]
squid
6c9c44d0e9cf7b72bb233360c5308aa063af3d69
9,825,176,081,284,048,000,000,000,000,000,000,000
44
Handle more partial responses (#791)
ms_escher_read_Spgr (MSEscherState *state, MSEscherHeader *h) { gboolean needs_free; int len = h->len - COMMON_HEADER_LEN; guint8 const *data = ms_escher_get_data (state, h->offset + COMMON_HEADER_LEN, len, &needs_free); /* Stored as absolute pixels in fixed point for pre-grouped position * What we do not know...
0
[ "CWE-119" ]
gnumeric
b5480b69345b3c6d56ee0ed9c9e9880bb2a08cdc
294,774,418,309,896,300,000,000,000,000,000,000,000
18
xls: fuzzed file crash.
evdev_set_device_group(struct evdev_device *device, struct udev_device *udev_device) { struct libinput *libinput = evdev_libinput_context(device); struct libinput_device_group *group = NULL; const char *udev_group; udev_group = udev_device_get_property_value(udev_device, "LIBINPUT_DEVICE_GROUP")...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
268,762,296,352,835,400,000,000,000,000,000,000,000
24
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
bson_iter_overwrite_bool (bson_iter_t *iter, /* IN */ bool value) /* IN */ { BSON_ASSERT (iter); value = !!value; if (ITER_TYPE (iter) == BSON_TYPE_BOOL) { memcpy ((void *) (iter->raw + iter->d1), &value, 1); } }
0
[ "CWE-125" ]
libbson
42900956dc461dfe7fb91d93361d10737c1602b3
172,013,562,790,581,970,000,000,000,000,000,000,000
10
CDRIVER-2269 Check for zero string length in codewscope
if (err == MP_OKAY) { if (mp_cmp(v, r) == MP_EQ) *res = 1; }
0
[ "CWE-326", "CWE-203" ]
wolfssl
1de07da61f0c8e9926dcbd68119f73230dae283f
84,264,430,740,498,150,000,000,000,000,000,000,000
4
Constant time EC map to affine for private operations For fast math, use a constant time modular inverse when mapping to affine when operation involves a private key - key gen, calc shared secret, sign.
bool CUser::SetBufferCount(unsigned int u, bool bForce) { return SetChanBufferSize(u, bForce); }
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
249,925,455,907,959,060,000,000,000,000,000,000,000
3
Don't crash if user specified invalid encoding. This is CVE-2019-9917
mono_loader_set_error_field_load (MonoClass *klass, const char *member_name) { MonoLoaderError *error; /* FIXME: Store the signature as well */ if (mono_loader_get_last_error ()) return; error = g_new0 (MonoLoaderError, 1); error->exception_type = MONO_EXCEPTION_MISSING_FIELD; error->klass = klass; error->me...
0
[]
mono
8e890a3bf80a4620e417814dc14886b1bbd17625
156,326,506,786,290,910,000,000,000,000,000,000,000
15
Search for dllimported shared libs in the base directory, not cwd. * loader.c: we don't search the current directory anymore for shared libraries referenced in DllImport attributes, as it has a slight security risk. We search in the same directory where the referencing image was loaded from, instead. Fixes bug# 641915...
STATIC int S_edit_distance(const UV* src, const UV* tgt, const STRLEN x, /* length of src[] */ const STRLEN y, /* length of tgt[] */ const SSize_t maxDistance ) { item *head = NULL; UV swapCount, swapScore, targetCharCount, ...
0
[ "CWE-190", "CWE-787" ]
perl5
897d1f7fd515b828e4b198d8b8bef76c6faf03ed
168,919,087,609,086,670,000,000,000,000,000,000,000
62
regcomp.c: Prevent integer overflow from nested regex quantifiers. (CVE-2020-10543) On 32bit systems the size calculations for nested regular expression quantifiers could overflow causing heap memory corruption. Fixes: Perl/perl5-security#125 (cherry picked from commit bfd31397db5dc1a5c5d3e0a1f753a4f89a736e71)
static int au1200fb_drv_resume(struct device *dev) { struct au1200fb_platdata *pd = dev_get_drvdata(dev); struct fb_info *fbi; int i; /* Kickstart the panel */ au1200_setpanel(panel, pd); for (i = 0; i < device_count; i++) { fbi = _au1200fb_infos[i]; au1200fb_fb_set_par(fbi); } return 0; }
0
[ "CWE-119", "CWE-189", "CWE-703" ]
linux
7314e613d5ff9f0934f7a0f74ed7973b903315d1
218,693,939,085,445,860,000,000,000,000,000,000,000
16
Fix a few incorrectly checked [io_]remap_pfn_range() calls Nico Golde reports a few straggling uses of [io_]remap_pfn_range() that really should use the vm_iomap_memory() helper. This trivially converts two of them to the helper, and comments about why the third one really needs to continue to use remap_pfn_range(), ...
const ScopeTrackedObject& ConnectionManagerImpl::ActiveStream::scope() { return *this; }
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
238,200,444,748,330,060,000,000,000,000,000,000,000
1
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
static int hci_sock_getname(struct socket *sock, struct sockaddr *addr, int *addr_len, int peer) { struct sockaddr_hci *haddr = (struct sockaddr_hci *) addr; struct sock *sk = sock->sk; struct hci_dev *hdev = hci_pi(sk)->hdev; BT_DBG("sock %p sk %p", sock, sk); if (!hdev) return -EBADFD; lock_sock(sk)...
0
[ "CWE-200" ]
linux
3f68ba07b1da811bf383b4b701b129bfcb2e4988
86,475,888,025,548,080,000,000,000,000,000,000,000
22
Bluetooth: HCI - Fix info leak via getsockname() The HCI code fails to initialize the hci_channel member of struct sockaddr_hci and that for leaks two bytes kernel stack via the getsockname() syscall. Initialize hci_channel with 0 to avoid the info leak. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Marc...
static int rndis_proc_open(struct inode *inode, struct file *file) { return single_open(file, rndis_proc_show, pde_data(inode)); }
0
[ "CWE-200", "CWE-668" ]
linux
38ea1eac7d88072bbffb630e2b3db83ca649b826
304,964,590,672,488,030,000,000,000,000,000,000,000
4
usb: gadget: rndis: check size of RNDIS_MSG_SET command Check the size of the RNDIS_MSG_SET command given to us before attempting to respond to an invalid message size. Reported-by: Szymon Heidrich <szymon.heidrich@gmail.com> Cc: stable@kernel.org Tested-by: Szymon Heidrich <szymon.heidrich@gmail.com> Signed-off-by: ...
static int SFDGetBitmapFont(FILE *sfd,SplineFont *sf,int fromdir,char *dirname) { BDFFont *bdf, *prev; char tok[2000]; int pixelsize, ascent, descent, depth=1; int ch, enccount; if ( getint(sfd,&pixelsize)!=1 || pixelsize<=0 ) return( 0 ); if ( getint(sfd,&enccount)!=1 || enccount<0 ) return( 0...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
147,787,445,983,825,390,000,000,000,000,000,000,000
91
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
MYSQL_RES * STDCALL symver16_mysql_store_result(MYSQL *mysql) { return mysql_store_result(mysql);
0
[ "CWE-319" ]
mysql-server
0002e1380d5f8c113b6bce91f2cf3f75136fd7c7
169,843,713,413,750,870,000,000,000,000,000,000,000
4
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION MYSQL_OPT_SSL_MODE option introduced. It is set in case of --ssl-mode=REQUIRED and permits only SSL connection. (cherry picked from commit f91b941842d240b8a62645e507f5554e8be76aec)
static void sfq_unbind(struct Qdisc *q, unsigned long cl) { }
0
[ "CWE-330" ]
linux
55667441c84fa5e0911a0aac44fb059c15ba6da2
217,633,715,166,190,980,000,000,000,000,000,000,000
3
net/flow_dissector: switch to siphash UDP IPv6 packets auto flowlabels are using a 32bit secret (static u32 hashrnd in net/core/flow_dissector.c) and apply jhash() over fields known by the receivers. Attackers can easily infer the 32bit secret and use this information to identify a device and/or user, since this 32bi...
CModuleJob::~CModuleJob() { m_pModule->UnlinkJob(this); }
0
[ "CWE-20", "CWE-264" ]
znc
8de9e376ce531fe7f3c8b0aa4876d15b479b7311
291,284,060,939,827,900,000,000,000,000,000,000,000
1
Fix remote code execution and privilege escalation vulnerability. To trigger this, need to have a user already. Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this. CVE-2019-12816
Value ExpressionSetIsSubset::evaluate(const Document& root, Variables* variables) const { const Value lhs = _children[0]->evaluate(root, variables); const Value rhs = _children[1]->evaluate(root, variables); uassert(17046, str::stream() << "both operands of $setIsSubset must be arrays. First " ...
0
[]
mongo
1772b9a0393b55e6a280a35e8f0a1f75c014f301
123,452,461,632,950,080,000,000,000,000,000,000,000
16
SERVER-49404 Enforce additional checks in $arrayToObject
static int inotify_fasync(int fd, struct file *file, int on) { struct fsnotify_group *group = file->private_data; return fasync_helper(fd, file, on, &group->inotify_data.fa) >= 0 ? 0 : -EIO; }
0
[ "CWE-399" ]
linux
d0de4dc584ec6aa3b26fffea320a8457827768fc
138,741,970,438,197,180,000,000,000,000,000,000,000
6
inotify: fix double free/corruption of stuct user On an error path in inotify_init1 a normal user can trigger a double free of struct user. This is a regression introduced by a2ae4cc9a16e ("inotify: stop kernel memory leak on file creation failure"). We fix this by making sure that if a group exists the user referen...
njs_vmcode_import(njs_vm_t *vm, njs_mod_t *module, njs_value_t *retval) { njs_int_t ret; njs_arr_t *m; njs_value_t *value; njs_object_t *object; if (vm->modules == NULL) { vm->modules = njs_arr_create(vm->mem_pool, 4, sizeof(njs_value_t)); if (njs_slow_path(vm->modules ==...
0
[ "CWE-703", "CWE-754" ]
njs
222d6fdcf0c6485ec8e175f3a7b70d650c234b4e
112,697,142,844,943,760,000,000,000,000,000,000,000
52
Fixed njs_vmcode_interpreter() when "toString" conversion fails. Previously, while interpreting a user function, njs_vmcode_interpreter() might return prematurely when an error happens. This is not correct because the current frame has to be unwound (or exception caught) first. The fix is exit through only 5 appropr...
static inline int security_quota_on(struct dentry *dentry) { return 0; }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
98,974,885,090,693,330,000,000,000,000,000,000,000
4
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
static char *gen_eth_tnl_hdr(char *buf, struct net_device *dev, struct mlx5e_encap_entry *e, u16 proto) { struct ethhdr *eth = (struct ethhdr *)buf; char *ip; ether_addr_copy(eth->h_dest, e->h_dest); ether_addr_copy(eth->h_source, dev->dev_addr); if (is_vlan_dev(dev)) { struct vlan_hdr *vlan = (...
0
[]
net
6c8991f41546c3c472503dff1ea9daaddf9331c2
157,290,941,104,719,860,000,000,000,000,000,000,000
23
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup ipv6_stub uses the ip6_dst_lookup function to allow other modules to perform IPv6 lookups. However, this function skips the XFRM layer entirely. All users of ipv6_stub->ip6_dst_lookup use ip_route_output_flow (via the ip_route_output_key and ip_route_o...
struct btd_adapter *adapter_find_by_id(int id) { GSList *match; match = g_slist_find_custom(adapters, GINT_TO_POINTER(id), adapter_id_cmp); if (!match) return NULL; return match->data; }
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
265,875,348,829,189,000,000,000,000,000,000,000,000
11
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.
static void blk_aio_attached(AioContext *ctx, void *opaque) { NBDExport *exp = opaque; NBDClient *client; trace_nbd_blk_aio_attached(exp->name, ctx); exp->ctx = ctx; QTAILQ_FOREACH(client, &exp->clients, next) { qio_channel_attach_aio_context(client->ioc, ctx); if (client->recv_co...
0
[]
qemu
f37708f6b8e0bef0dd85c6aad7fc2062071f8227
63,853,551,002,479,010,000,000,000,000,000,000,000
19
nbd: Implement NBD_OPT_GO on server NBD_OPT_EXPORT_NAME is lousy: per the NBD protocol, any failure requires us to close the connection rather than report an error. Therefore, upstream NBD recently added NBD_OPT_GO as the improved version of the option that does what we want [1], along with NBD_OPT_INFO that returns t...
gs_arg_get_codepoint *gs_main_inst_get_arg_decode(gs_main_instance * minst) { return minst->get_codepoint; }
0
[]
ghostpdl
407cc61e87b0fd9d44d72ca740af7d3c85dee78d
206,664,614,427,855,300,000,000,000,000,000,000,000
4
"starting_arg_file" should only apply once. The "starting_arg_file == true" setting should apply to the *first* call to lib_file_open() in the context of a given call to runarg(). Previously, it remained set for the entire duration of the runarg() call, resulting in the current directory being searched for any resourc...
static void bw_calcs_data_update_from_pplib(struct dc *dc) { struct dm_pp_clock_levels_with_latency eng_clks = {0}; struct dm_pp_clock_levels_with_latency mem_clks = {0}; struct dm_pp_wm_sets_with_clock_ranges clk_ranges = {0}; int i; unsigned int clk; unsigned int latency; /*original logic in dal3*/ int memory...
0
[ "CWE-400", "CWE-401" ]
linux
104c307147ad379617472dd91a5bcb368d72bd6d
153,541,527,869,614,750,000,000,000,000,000,000,000
129
drm/amd/display: prevent memory leak In dcn*_create_resource_pool the allocated memory should be released if construct pool fails. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
TEST_P(ProtocolIntegrationTest, TwoRequestsWithForcedBackup) { testTwoRequests(true); }
0
[ "CWE-400", "CWE-703" ]
envoy
afc39bea36fd436e54262f150c009e8d72db5014
303,731,564,077,196,000,000,000,000,000,000,000,000
1
Track byteSize of HeaderMap internally. Introduces a cached byte size updated internally in HeaderMap. The value is stored as an optional, and is cleared whenever a non-const pointer or reference to a HeaderEntry is accessed. The cached value can be set with refreshByteSize() which performs an iteration over the Heade...
GST_START_TEST (test_GstDateTime_get_second) { GstDateTime *dt; dt = gst_date_time_new (0, 2009, 12, 1, 1, 31, 44); assert_equals_int (44, gst_date_time_get_second (dt)); gst_date_time_unref (dt); }
0
[ "CWE-125" ]
gstreamer
9398b7f1a75b38844ae7050b5a7967e4cdebe24f
36,208,435,614,772,027,000,000,000,000,000,000,000
8
datetime: fix potential out-of-bound read on malformed datetime string https://bugzilla.gnome.org/show_bug.cgi?id=777263
void paravirt_start_context_switch(struct task_struct *prev) { BUG_ON(preemptible()); if (this_cpu_read(paravirt_lazy_mode) == PARAVIRT_LAZY_MMU) { arch_leave_lazy_mmu_mode(); set_ti_thread_flag(task_thread_info(prev), TIF_LAZY_MMU_UPDATES); } enter_lazy(PARAVIRT_LAZY_CPU); }
0
[ "CWE-200" ]
linux
5800dc5c19f34e6e03b5adab1282535cb102fafd
309,294,818,743,692,750,000,000,000,000,000,000,000
10
x86/paravirt: Fix spectre-v2 mitigations for paravirt guests Nadav reported that on guests we're failing to rewrite the indirect calls to CALLEE_SAVE paravirt functions. In particular the pv_queued_spin_unlock() call is left unpatched and that is all over the place. This obviously wrecks Spectre-v2 mitigation (for par...
handle_modify_maxdelayratio(CMD_Request *rx_message, CMD_Reply *tx_message) { int status; IPAddr address; UTI_IPNetworkToHost(&rx_message->data.modify_maxdelayratio.address, &address); status = NSR_ModifyMaxdelayratio(&address, UTI_FloatNetworkToHost(rx_message->data.modify_ma...
0
[ "CWE-189" ]
chrony
7712455d9aa33d0db0945effaa07e900b85987b1
10,097,588,352,375,507,000,000,000,000,000,000,000
13
Fix buffer overflow when processing crafted command packets When the length of the REQ_SUBNETS_ACCESSED, REQ_CLIENT_ACCESSES command requests and the RPY_SUBNETS_ACCESSED, RPY_CLIENT_ACCESSES, RPY_CLIENT_ACCESSES_BY_INDEX, RPY_MANUAL_LIST command replies is calculated, the number of items stored in the packet is not v...
static int snd_usb_audio_dev_free(struct snd_device *device) { struct snd_usb_audio *chip = device->device_data; return snd_usb_audio_free(chip); }
0
[ "CWE-284", "CWE-125" ]
linux
bfc81a8bc18e3c4ba0cbaa7666ff76be2f998991
24,680,769,725,633,456,000,000,000,000,000,000,000
5
ALSA: usb-audio: Check out-of-bounds access by corrupted buffer descriptor When a USB-audio device receives a maliciously adjusted or corrupted buffer descriptor, the USB-audio driver may access an out-of-bounce value at its parser. This was detected by syzkaller, something like: BUG: KASAN: slab-out-of-bounds in ...
void fx_DataView_prototype_getInt32(txMachine* the) { fx_DataView_prototype_get(the, 4, fxInt32Getter); }
0
[ "CWE-125" ]
moddable
135aa9a4a6a9b49b60aa730ebc3bcc6247d75c45
62,977,782,764,006,250,000,000,000,000,000,000,000
4
XS: #896
TOwnConsole * __fastcall TOwnConsole::Instance() { return new TOwnConsole(); }
0
[ "CWE-787" ]
winscp
faa96e8144e6925a380f94a97aa382c9427f688d
8,115,743,435,625,001,000,000,000,000,000,000,000
4
Bug 1943: Prevent loading session settings that can lead to remote code execution from handled URLs https://winscp.net/tracker/1943 (cherry picked from commit ec584f5189a856cd79509f754722a6898045c5e0) Source commit: 0f4be408b3f01132b00682da72d925d6c4ee649b
static __always_inline void kfree_hook(void *x) { kmemleak_free(x); kasan_kfree_large(x, _RET_IP_); }
0
[]
linux
fd4d9c7d0c71866ec0c2825189ebd2ce35bd95b8
141,241,320,416,475,440,000,000,000,000,000,000,000
5
mm: slub: add missing TID bump in kmem_cache_alloc_bulk() When kmem_cache_alloc_bulk() attempts to allocate N objects from a percpu freelist of length M, and N > M > 0, it will first remove the M elements from the percpu freelist, then call ___slab_alloc() to allocate the next element and repopulate the percpu freelis...
static MagickBooleanType ReadPSDMergedImage(const ImageInfo *image_info, Image *image,const PSDInfo *psd_info,ExceptionInfo *exception) { MagickOffsetType *sizes; MagickBooleanType status; PSDCompressionType compression; register ssize_t i; if ((image_info->number_scenes != 0) && (image_...
0
[ "CWE-399", "CWE-401" ]
ImageMagick
8a43abefb38c5e29138e1c9c515b313363541c06
105,505,809,923,772,530,000,000,000,000,000,000,000
70
https://github.com/ImageMagick/ImageMagick/issues/1451
PackLinuxElf32::generateElfHdr( OutputFile *fo, void const *proto, unsigned const brka ) { cprElfHdr2 *const h2 = (cprElfHdr2 *)(void *)&elfout; cprElfHdr3 *const h3 = (cprElfHdr3 *)(void *)&elfout; h3->ehdr = ((cprElfHdr3 const *)proto)->ehdr; h3->phdr[C_BASE] = ((cprElfHdr3 const *...
0
[ "CWE-787" ]
upx
73b854874e723f38e84e5ff57a9eeb99653ca74c
304,348,807,404,783,220,000,000,000,000,000,000,000
89
Defend against junk PT_DYNAMIC https://github.com/upx/upx/issues/390 modified: p_lx_elf.cpp
static void new_csrk_callback(uint16_t index, uint16_t length, const void *param, void *user_data) { const struct mgmt_ev_new_csrk *ev = param; const struct mgmt_addr_info *addr = &ev->key.addr; const struct mgmt_csrk_info *key = &ev->key; struct btd_adapter *adapter = user_data; struct btd_device *device; c...
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
218,277,420,715,873,630,000,000,000,000,000,000,000
35
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.
void ieee80211_tdls_chsw_work(struct work_struct *wk) { struct ieee80211_local *local = container_of(wk, struct ieee80211_local, tdls_chsw_work); struct ieee80211_sub_if_data *sdata; struct sk_buff *skb; struct ieee80211_tdls_data *tf; rtnl_lock(); while ((skb = skb_dequeue(&local->skb_queue_tdls_chsw))) { t...
0
[]
linux
79c92ca42b5a3e0ea172ea2ce8df8e125af237da
311,595,633,178,213,840,000,000,000,000,000,000,000
25
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...
unibrow::Mapping<unibrow::CanonicalizationRange>* jsregexp_canonrange() { return &jsregexp_canonrange_; }
0
[ "CWE-20", "CWE-119" ]
node
530af9cb8e700e7596b3ec812bad123c9fa06356
83,922,550,705,071,540,000,000,000,000,000,000,000
3
v8: Interrupts must not mask stack overflow. Backport of https://codereview.chromium.org/339883002
static void init_vdev(struct video_device *vdev, int nr) { MARK(); vidioc_fill_name(vdev->name, sizeof(vdev->name), nr); #ifdef V4L2LOOPBACK_WITH_STD vdev->tvnorms = V4L2_STD_ALL; #endif /* V4L2LOOPBACK_WITH_STD */ vdev->vfl_type = VFL_TYPE_VIDEO; vdev->fops = &v4l2_loopback_fops; vdev->ioctl_o...
0
[ "CWE-787" ]
v4l2loopback
64a216af4c09c9ba9326057d7e78994271827eff
331,955,595,363,513,280,000,000,000,000,000,000,000
38
add explicit format specifier to printf() invocations CWE-134
static void init_keyboard() { tcgetattr(0, &t_orig); t_new = t_orig; t_new.c_lflag &= ~ICANON; t_new.c_lflag &= ~ECHO; t_new.c_lflag &= ~ISIG; t_new.c_cc[VMIN] = 1; t_new.c_cc[VTIME] = 0; tcsetattr(0, TCSANOW, &t_new); }
0
[ "CWE-787" ]
gpac
f3698bb1bce62402805c3fda96551a23101a32f9
245,619,510,130,866,670,000,000,000,000,000,000,000
11
fix buffer overrun in gf_bin128_parse closes #1204 closes #1205
static void SFDPickleMe(FILE *sfd,void *python_data, int python_data_has_lists) { char *string, *pt; #ifdef _NO_PYTHON string = (char *) python_data; #else string = PyFF_PickleMeToString(python_data); #endif if ( string==NULL ) return; if (python_data_has_lists) fprintf( sfd, "PickledDataWithLi...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
79,689,940,898,455,960,000,000,000,000,000,000,000
24
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev, bool enabled, int timeout) { struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); if (sdata->vif.type != NL80211_IFTYPE_STATION) return -EOPNOTSUPP...
0
[ "CWE-287" ]
linux
3e493173b7841259a08c5c8e5cbe90adb349da7e
48,271,513,661,365,600,000,000,000,000,000,000,000
33
mac80211: Do not send Layer 2 Update frame before authorization The Layer 2 Update frame is used to update bridges when a station roams to another AP even if that STA does not transmit any frames after the reassociation. This behavior was described in IEEE Std 802.11F-2003 as something that would happen based on MLME-...
static int write_daemon_state(int fd, int state) { char buffer[1024]; int rv, size; size = sizeof(buffer) - 1; rv = snprintf(buffer, size, "booth_pid=%d " "booth_state=%s " "booth_type=%s " "booth_cfg_name='%s' " "booth_id=%d " "booth_addr_string='%s' " "booth_port=%d\n", getpid(), ( stat...
0
[ "CWE-287", "CWE-284" ]
booth
35bf0b7b048d715f671eb68974fb6b4af6528c67
18,909,238,976,478,517,000,000,000,000,000,000,000
59
Revert "Refactor: main: substitute is_auth_req macro" This reverts commit da79b8ba28ad4837a0fee13e5f8fb6f89fe0e24c. authfile != authkey Signed-off-by: Jan Friesse <jfriesse@redhat.com>
d_lite_step(int argc, VALUE *argv, VALUE self) { VALUE limit, step, date; int c; rb_scan_args(argc, argv, "11", &limit, &step); if (argc < 2) step = INT2FIX(1); #if 0 if (f_zero_p(step)) rb_raise(rb_eArgError, "step can't be 0"); #endif RETURN_ENUMERATOR(self, argc, argv); date = self...
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
158,997,162,487,446,040,000,000,000,000,000,000,000
37
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`...
int manager_set_default_rlimits(Manager *m, struct rlimit **default_rlimit) { int i; assert(m); for (i = 0; i < RLIMIT_NLIMITS; i++) { if (!default_rlimit[i]) continue; m->rlimit[i] = newdup(struct rlimit, default_rlimit[i], 1); ...
0
[]
systemd
5ba6985b6c8ef85a8bcfeb1b65239c863436e75b
81,335,642,431,326,060,000,000,000,000,000,000,000
16
core: allow PIDs to be watched by two units at the same time In some cases it is interesting to map a PID to two units at the same time. For example, when a user logs in via a getty, which is reexeced to /sbin/login that binary will be explicitly referenced as main pid of the getty service, as well as implicitly refer...
static MagickBooleanType GetIPTCProperty(const Image *image,const char *key) { char *attribute, *message; const StringInfo *profile; long count, dataset, record; register ssize_t i; size_t length; profile=GetImageProfile(image,"iptc"); if (profile == (StringInfo *) NUL...
0
[ "CWE-476" ]
ImageMagick6
5bf7ff59c8ada957d6a681a0a2cc29f3813ad4bc
309,712,568,552,294,150,000,000,000,000,000,000,000
64
https://github.com/ImageMagick/ImageMagick/issues/1225
static gboolean encrypt_notify(GIOChannel *io, GIOCondition condition, gpointer data) { struct input_device *idev = data; int err; DBG(""); if (idev->uhid) err = uhid_connadd(idev, idev->req); else err = ioctl_connadd(idev->req); if (err < 0) { error("ioctl_connadd(): %s (%d)", strerror(-err), -e...
0
[]
bluez
3cccdbab2324086588df4ccf5f892fb3ce1f1787
259,478,210,197,621,750,000,000,000,000,000,000,000
37
HID accepts bonded device connections only. This change adds a configuration for platforms to choose a more secure posture for the HID profile. While some older mice are known to not support pairing or encryption, some platform may choose a more secure posture by requiring the device to be bonded and require the con...
rsvg_parse_style (RsvgHandle * ctx, RsvgState * state, const char *str) { gchar **styles; guint i; styles = g_strsplit (str, ";", -1); for (i = 0; i < g_strv_length (styles); i++) { gchar **values; values = g_strsplit (styles[i], ":", 2); if (!values) continue; ...
0
[ "CWE-20" ]
librsvg
d1c9191949747f6dcfd207831d15dd4ba00e31f2
61,511,038,825,529,860,000,000,000,000,000,000,000
42
state: Store mask as reference Instead of immediately looking up the mask, store the reference and look it up on use.
int imap_cache_del(struct ImapData *idata, struct Header *h) { if (!idata || !h) return -1; idata->bcache = msg_cache_open(idata); char id[64]; snprintf(id, sizeof(id), "%u-%u", idata->uid_validity, HEADER_DATA(h)->uid); return mutt_bcache_del(idata->bcache, id); }
0
[ "CWE-119", "CWE-787" ]
neomutt
1b0f0d0988e6df4e32e9f4bf8780846ea95d4485
260,189,798,494,700,220,000,000,000,000,000,000,000
10
Don't overflow stack buffer in msg_parse_fetch
BSONObj operand1() { return BSON("" << 9); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
234,780,670,197,944,700,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
rfbSendNewFBSize(rfbClientPtr cl, int w, int h) { rfbFramebufferUpdateRectHeader rect; if (cl->ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE) { if (!rfbSendUpdateBuf(cl)) return FALSE; } rect.encoding = Swap32IfLE(rfbEncodingNewFBSize); rect.r....
0
[ "CWE-119" ]
vino
dff52694a384fe95195f2211254026b752d63ec4
33,255,019,442,094,340,000,000,000,000,000,000,000
26
Avoid out-of-bounds memory accesses This fixes two critical security vulnerabilities that lead to an out-of-bounds memory access with a crafted client framebuffer update request packet. The dimensions of the update from the packet are checked to ensure that they are within the screen dimensions. Thanks to Kevin Chen ...
int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_alloc_fn_t alloc_fn, pcpu_fc_free_fn_t free_fn) { void *base = (void *)ULONG_MAX; void **areas = NULL; struct pcpu_alloc_info *ai; size_t size_sum, ar...
0
[]
linux
4f996e234dad488e5d9ba0858bc1bae12eff82c3
68,519,463,720,696,480,000,000,000,000,000,000,000
108
percpu: fix synchronization between chunk->map_extend_work and chunk destruction Atomic allocations can trigger async map extensions which is serviced by chunk->map_extend_work. pcpu_balance_work which is responsible for destroying idle chunks wasn't synchronizing properly against chunk->map_extend_work and may end u...
dbd_db_rollback(SV* dbh, imp_dbh_t* imp_dbh) { /* croak, if not in AutoCommit mode */ if (DBIc_has(imp_dbh, DBIcf_AutoCommit)) return FALSE; ASYNC_CHECK_RETURN(dbh, FALSE); if (imp_dbh->has_transactions) { #if MYSQL_VERSION_ID < SERVER_PREPARE_VERSION if (mysql_real_query(imp_dbh->pmysql, "ROLLBACK"...
0
[ "CWE-416" ]
DBD-mysql
a56ae87a4c1c1fead7d09c3653905841ccccf1cc
128,679,185,459,885,980,000,000,000,000,000,000,000
25
fix use-after-free crash in RT #97625
int getHOSTNAMELen(msg_t *pM) { if(pM == NULL) return 0; else if(pM->pszHOSTNAME == NULL) { resolveDNS(pM); if(pM->rcvFrom.pRcvFrom == NULL) return 0; else return prop.GetStringLen(pM->rcvFrom.pRcvFrom); } else return pM->iLenHOSTNAME; }
0
[ "CWE-772" ]
rsyslog
8083bd1433449fd2b1b79bf759f782e0f64c0cd2
30,515,557,649,588,763,000,000,000,000,000,000,000
14
backporting abort condition fix from 5.7.7
clear_opt_map_info(OptMapInfo* map) { static const OptMapInfo clean_info = { {0, 0}, {0, 0}, 0, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
0
[ "CWE-125" ]
php-src
c6e34d91b88638966662caac62c4d0e90538e317
50,125,675,563,870,590,000,000,000,000,000,000,000
26
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
static void SFDGetMinimumDistances(FILE *sfd, SplineChar *sc) { SplineSet *ss; SplinePoint *sp; int pt,i, val, err; int ch; SplinePoint **mapping=NULL; MinimumDistance *last, *md, *mdhead=NULL; for ( i=0; i<2; ++i ) { pt = 0; for ( ss = sc->layers[ly_fore].splines; ss!=NULL; ss=ss->next )...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
318,683,366,051,425,200,000,000,000,000,000,000,000
66
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
int ext4_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, __u64 start, __u64 len) { ext4_lblk_t start_blk; int error = 0; /* fallback to generic here if not in extents fmt */ if (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) return generic_block_fiemap(inode, fieinfo, start, len, ext4_g...
0
[ "CWE-362" ]
linux-2.6
dee1f973ca341c266229faa5a1a5bb268bed3531
229,052,204,911,430,100,000,000,000,000,000,000,000
36
ext4: race-condition protection for ext4_convert_unwritten_extents_endio We assumed that at the time we call ext4_convert_unwritten_extents_endio() extent in question is fully inside [map.m_lblk, map->m_len] because it was already split during submission. But this may not be true due to a race between writeback vs fa...
//! Test if image spectrum is equal to specified value. bool is_sameC(const unsigned int size_c) const { return _spectrum==size_c;
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
189,719,631,024,319,280,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static void read_multiple_complete_cb(struct gatt_db_attribute *attr, int err, const uint8_t *value, size_t len, void *user_data) { struct read_mult_data *data = user_data; struct gatt_db_attribute *next_attr; uint16_t handle = gatt_db_attribute_get_handle(attr); uint8_t ecode; uint16_t length; if (err...
1
[ "CWE-287" ]
bluez
00da0fb4972cf59e1c075f313da81ea549cb8738
260,595,687,345,101,800,000,000,000,000,000,000,000
76
shared/gatt-server: Fix not properly checking for secure flags When passing the mask to check_permissions all valid permissions for the operation must be set including BT_ATT_PERM_SECURE flags.
static struct mnt_namespace *to_mnt_ns(struct ns_common *ns) { return container_of(ns, struct mnt_namespace, ns); }
0
[ "CWE-200" ]
linux
427215d85e8d1476da1a86b8d67aceb485eb3631
117,228,784,681,145,400,000,000,000,000,000,000,000
4
ovl: prevent private clone if bind mount is not allowed Add the following checks from __do_loopback() to clone_private_mount() as well: - verify that the mount is in the current namespace - verify that there are no locked children Reported-by: Alois Wohlschlager <alois1@gmx-topmail.de> Fixes: c771d683a62e ("vfs: ...
NAN_MODULE_INIT(init) { ChaChaPolyCipher::Init(target); AESGCMCipher::Init(target); GenericCipher::Init(target); ChaChaPolyDecipher::Init(target); AESGCMDecipher::Init(target); GenericDecipher::Init(target); }
0
[ "CWE-78" ]
ssh2
f763271f41320e71d5cbee02ea5bc6a2ded3ca21
292,656,264,312,618,370,000,000,000,000,000,000,000
9
examples,lib,test: switch to code rewrite For more information see: https://github.com/mscdex/ssh2/issues/935
void kvm_arch_hardware_disable(void *garbage) { kvm_x86_ops->hardware_disable(garbage); drop_user_return_notifiers(garbage); }
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
219,770,705,650,742,400,000,000,000,000,000,000,000
5
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...
static int check_acl(struct inode *inode, int mask) { #ifdef CONFIG_FS_POSIX_ACL struct posix_acl *acl; if (mask & MAY_NOT_BLOCK) { acl = get_cached_acl_rcu(inode, ACL_TYPE_ACCESS); if (!acl) return -EAGAIN; /* no ->get_acl() calls in RCU mode... */ if (acl == ACL_NOT_CACHED) retur...
0
[ "CWE-416" ]
linux
f15133df088ecadd141ea1907f2c96df67c729f0
220,646,649,961,415,840,000,000,000,000,000,000,000
27
path_openat(): fix double fput() path_openat() jumps to the wrong place after do_tmpfile() - it has already done path_cleanup() (as part of path_lookupat() called by do_tmpfile()), so doing that again can lead to double fput(). Cc: stable@vger.kernel.org # v3.11+ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
static HRESULT STDMETHODCALLTYPE CliprdrEnumFORMATETC_Clone(IEnumFORMATETC* This, IEnumFORMATETC** ppEnum) { CliprdrEnumFORMATETC* instance = (CliprdrEnumFORMATETC*)This; if (!instance || !ppEnum) return E_INVALIDARG; *ppEnum = (IEnumFORMATETC*)Cli...
0
[ "CWE-20" ]
FreeRDP
0d79670a28c0ab049af08613621aa0c267f977e9
37,234,313,956,114,977,000,000,000,000,000,000,000
17
Fixed missing input checks for file contents request reported by Valentino Ricotta (Thalium)
static int authenticate_and_decrypt_nss_2_0 ( struct crypto_instance *instance, unsigned char *buf, int *buf_len) { if (hash_to_nss[instance->crypto_hash_type]) { unsigned char tmp_hash[hash_len[instance->crypto_hash_type]]; unsigned char *hash = buf; unsigned char *data = hash + hash_len[instance->crypto_has...
0
[ "CWE-703" ]
corosync
b3f456a8ceefac6e9f2e9acc2ea0c159d412b595
287,568,290,758,166,970,000,000,000,000,000,000,000
30
totemcrypto: fix hmac key initialization Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Item_string(THD *thd, const char *str, uint length, CHARSET_INFO *cs, Derivation dv, uint repertoire): Item_basic_constant(thd) { str_value.set_or_copy_aligned(str, length, cs); fix_and_set_name_from_value(thd, dv, Metadata(&str_value, repertoire)); }
0
[ "CWE-617" ]
server
2e7891080667c59ac80f788eef4d59d447595772
250,299,246,678,016,900,000,000,000,000,000,000,000
6
MDEV-25635 Assertion failure when pushing from HAVING into WHERE of view This bug could manifest itself after pushing a where condition over a mergeable derived table / view / CTE DT into a grouping view / derived table / CTE V whose item list contained set functions with constant arguments such as MIN(2), SUM(1) etc....
static bool save_binary_file(const char *path, const char* data, unsigned size, uid_t uid, gid_t gid, mode_t mode) { /* the mode is set by the caller, see dd_create() for security analysis */ unlink(path); int fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode); if (fd < 0) { perror_msg("Can...
1
[ "CWE-264" ]
libreport
3bbf961b1884dd32654dd39b360dd78ef294b10a
319,746,554,310,048,530,000,000,000,000,000,000,000
29
never follow symlinks rhbz#887866 - use lchown instead chown and O_NOFOLLOW where we use open
**/ CImgDisplay& toggle_fullscreen(const bool force_redraw=true) { return assign(_width,_height,0,3,force_redraw);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
93,247,403,206,919,860,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
Status BasicCommand::checkAuthForRequest(OperationContext* opCtx, const OpMsgRequest& request) { uassertNoDocumentSequences(request); return checkAuthForOperation(opCtx, request.getDatabase().toString(), request.body); }
0
[ "CWE-20" ]
mongo
5c7c6729c37514760fd34da462b6961a2e385417
326,983,067,562,605,660,000,000,000,000,000,000,000
4
SERVER-38275 ban explain with UUID
static int ssl_resume_server_key_exchange( mbedtls_ssl_context *ssl, size_t *signature_len ) { /* Append the signature to ssl->out_msg, leaving 2 bytes for the * signature length which will be added in ssl_write_server_key_exchange * after the call to ssl_prepare...
0
[ "CWE-787" ]
mbedtls
f333dfab4a6c2d8a604a61558a8f783145161de4
299,403,683,996,928,200,000,000,000,000,000,000,000
21
More SSL debug messages for ClientHello parsing In particular, be verbose when checking the ClientHello cookie in a possible DTLS reconnection. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
exif_mnote_data_olympus_get_id (ExifMnoteData *d, unsigned int n) { ExifMnoteDataOlympus *note = (ExifMnoteDataOlympus *) d; if (!note) return 0; if (note->count <= n) return 0; return note->entries[n].tag; }
0
[ "CWE-125" ]
libexif
435e21f05001fb03f9f186fa7cbc69454afd00d1
306,251,535,507,226,860,000,000,000,000,000,000,000
8
Fix MakerNote tag size overflow issues at read time. Check for a size overflow while reading tags, which ensures that the size is always consistent for the given components and type of the entry, making checking further down superfluous. This provides an alternate fix for https://sourceforge.net/p/libexif/bugs/125/ C...
keyring_search (KEYRING_HANDLE hd, KEYDB_SEARCH_DESC *desc, size_t ndesc, size_t *descindex) { int rc; PACKET pkt; int save_mode; off_t offset, main_offset; size_t n; int need_uid, need_words, need_keyid, need_fpr, any_skip; int pk_no, uid_no; int initial_skip; int use_offtbl; PKT_user_id *uid = N...
0
[ "CWE-416" ]
gnupg
f0f71a721ccd7ab9e40b8b6b028b59632c0cc648
159,904,826,485,276,960,000,000,000,000,000,000,000
267
gpg: Prevent an invalid memory read using a garbled keyring. * g10/keyring.c (keyring_get_keyblock): Whitelist allowed packet types. * g10/keydb.c (parse_keyblock_image): Ditto. -- The keyring DB code did not reject packets which don't belong into a keyring. If for example the keyblock contains a literal data packet...