func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
virtual boost::system::error_condition default_error_condition(int ev) const BOOST_SYSTEM_NOEXCEPT { return boost::system::error_condition(ev, *this); }
0
[ "CWE-20" ]
libtorrent
debf3c6e3688aab8394fe5c47737625faffe6f9e
173,393,629,475,437,600,000,000,000,000,000,000,000
2
update puff.c for gzip inflation (#1022) update puff.c for gzip inflation
static int MP4_ReadBox_ASF( stream_t *p_stream, MP4_Box_t *p_box ) { MP4_READBOX_ENTER( MP4_Box_data_ASF_t ); MP4_Box_data_ASF_t *p_asf = p_box->data.p_asf; if (i_read != 8) MP4_READBOX_EXIT( 0 ); MP4_GET1BYTE( p_asf->i_stream_number ); /* remaining is unknown */ MP4_READBOX_EXIT( 1 ...
0
[ "CWE-120", "CWE-191", "CWE-787" ]
vlc
2e7c7091a61aa5d07e7997b393d821e91f593c39
307,825,267,208,524,500,000,000,000,000,000,000,000
14
demux: mp4: fix buffer overflow in parsing of string boxes. We ensure that pbox->i_size is never smaller than 8 to avoid an integer underflow in the third argument of the subsequent call to memcpy. We also make sure no truncation occurs when passing values derived from the 64 bit integer p_box->i_size to arguments of ...
TEST_F(OwnedImplTest, DrainTrackingOnDestruction) { testing::InSequence s; auto buffer = std::make_unique<Buffer::OwnedImpl>(); buffer->add("a"); testing::MockFunction<void()> tracker; buffer->addDrainTracker(tracker.AsStdFunction()); testing::MockFunction<void()> done; EXPECT_CALL(tracker, Call()); ...
0
[ "CWE-401" ]
envoy
5eba69a1f375413fb93fab4173f9c393ac8c2818
311,870,367,766,921,900,000,000,000,000,000,000,000
15
[buffer] Add on-drain hook to buffer API and use it to avoid fragmentation due to tracking of H2 data and control frames in the output buffer (#144) Signed-off-by: antonio <avd@google.com>
explicit UnravelIndexOp(OpKernelConstruction* ctx) : OpKernel(ctx) {}
0
[ "CWE-369" ]
tensorflow
a776040a5e7ebf76eeb7eb923bf1ae417dd4d233
150,255,347,703,972,380,000,000,000,000,000,000,000
1
Disallow dims input of 0 in tf.raw_ops.UnravelIndex PiperOrigin-RevId: 384284198 Change-Id: Ia1804ef1aec57b4d857ea507e6891bcccde18e9b
pfm_notify_user(pfm_context_t *ctx, pfm_msg_t *msg) { if (ctx->ctx_state == PFM_CTX_ZOMBIE) { DPRINT(("ignoring overflow notification, owner is zombie\n")); return 0; } DPRINT(("waking up somebody\n")); if (msg) wake_up_interruptible(&ctx->ctx_msgq_wait); /* * safe, we are not in intr handler, nor in ctxs...
0
[]
linux-2.6
41d5e5d73ecef4ef56b7b4cde962929a712689b4
114,716,851,493,547,200,000,000,000,000,000,000,000
19
[IA64] permon use-after-free fix Perfmon associates vmalloc()ed memory with a file descriptor, and installs a vma mapping that memory. Unfortunately, the vm_file field is not filled in, so processes with mappings to that memory do not prevent the file from being closed and the memory freed. This results in use-after...
TEST_F(QueryPlannerTest, ShardFilterBasicIndex) { params.options = QueryPlannerParams::INCLUDE_SHARD_FILTER; params.shardKey = BSON("a" << 1); addIndex(BSON("a" << 1)); addIndex(BSON("b" << 1)); runQuery(fromjson("{b: 1}")); assertNumSolutions(1U); assertSolutionExists( "{sharding_...
0
[]
mongo
ee97c0699fd55b498310996ee002328e533681a3
280,036,162,655,895,130,000,000,000,000,000,000,000
14
SERVER-36993 Fix crash due to incorrect $or pushdown for indexed $expr.
static char **new_mysql_completion(const char *text, int start __attribute__((unused)), int end __attribute__((unused))) { if (!status.batch && !quick) #if defined(USE_NEW_READLINE_INTERFACE) return rl_completion_matches(text, new_command_gener...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
304,252,026,415,006,800,000,000,000,000,000,000,000
13
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
tdefl_status tdefl_compress_buffer(tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush) { MZ_ASSERT(d->m_pPut_buf_func); return tdefl_compress(d, pIn_buf, &in_buf_size, NULL, NULL, flush); }
0
[ "CWE-20", "CWE-190" ]
tinyexr
a685e3332f61cd4e59324bf3f669d36973d64270
264,687,384,051,270,070,000,000,000,000,000,000,000
5
Make line_no with too large value(2**20) invalid. Fixes #124
CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash, unsigned char *challenge_client, struct ntlmdata *ntlm, unsigned char **ntresp, unsigned int *ntre...
0
[ "CWE-190" ]
curl
57d299a499155d4b327e341c6024e293b0418243
574,928,477,343,490,950,000,000,000,000,000,000
79
Curl_ntlm_core_mk_nt_hash: return error on too long password ... since it would cause an integer overflow if longer than (max size_t / 2). This is CVE-2018-14618 Bug: https://curl.haxx.se/docs/CVE-2018-14618.html Closes #2756 Reported-by: Zhaoyang Wu
tty_open(struct tty *tty, char **cause) { tty->term = tty_term_find(tty->term_name, tty->fd, cause); if (tty->term == NULL) { tty_close(tty); return (-1); } tty->flags |= TTY_OPENED; tty->flags &= ~(TTY_NOCURSOR|TTY_FREEZE|TTY_BLOCK|TTY_TIMER); event_set(&tty->event_in, tty->fd, EV_PERSIST|EV_READ, tty...
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
89,350,531,255,544,770,000,000,000,000,000,000,000
30
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
void sanity_check(clump_t *cp) { sanity_check_rec(cp); }
0
[ "CWE-190" ]
ghostpdl
cfde94be1d4286bc47633c6e6eaf4e659bd78066
208,111,552,217,206,000,000,000,000,000,000,000,000
4
Bug 697985: bounds check the array allocations methods The clump allocator has four allocation functions that use 'number of elements' and 'size of elements' parameters (rather than a simple 'number of bytes'). Those need specific bounds checking.
pdf14_cmykspot_get_color_comp_index(gx_device * dev, const char * pname, int name_size, int component_type) { return pdf14_spot_get_color_comp_index(dev, pname, name_size, component_type, 4); }
0
[ "CWE-416" ]
ghostpdl
90fd0c7ca3efc1ddff64a86f4104b13b3ac969eb
174,516,514,228,820,380,000,000,000,000,000,000,000
5
Bug 697456. Dont create new ctx when pdf14 device reenabled This bug had yet another weird case where the user created a file that pushed the pdf14 device twice. We were in that case, creating a new ctx and blowing away the original one with out proper clean up. To avoid, only create a new one when we need it.
void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk) { sk_X509_pop_free(ctx->chain, X509_free); ctx->chain = sk; }
0
[ "CWE-295" ]
openssl
2a40b7bc7b94dd7de897a74571e7024f0cf0d63b
95,747,720,792,601,600,000,000,000,000,000,000,000
5
check_chain_extensions: Do not override error return value by check_curve The X509_V_FLAG_X509_STRICT flag enables additional security checks of the certificates present in a certificate chain. It is not set by default. Starting from OpenSSL version 1.1.1h a check to disallow certificates with explicitly encoded elli...
httpAcceptConnection(int fd, /* I - Listen socket file descriptor */ int blocking) /* I - 1 if the connection should be blocking, 0 otherwise */ { http_t *http; /* HTTP connection */ http_addrlist_t addrlist; /* Dummy address list */ socklen_t addrlen; /* Length of addr...
0
[ "CWE-120" ]
cups
f24e6cf6a39300ad0c3726a41a4aab51ad54c109
86,685,463,229,631,980,000,000,000,000,000,000,000
79
Fix multiple security/disclosure issues: - CVE-2019-8696 and CVE-2019-8675: Fixed SNMP buffer overflows (rdar://51685251) - Fixed IPP buffer overflow (rdar://50035411) - Fixed memory disclosure issue in the scheduler (rdar://51373853) - Fixed DoS issues in the scheduler (rdar://51373929)
static inline u64 get_kernel_ns(void) { struct timespec ts; WARN_ON(preemptible()); ktime_get_ts(&ts); monotonic_to_bootbased(&ts); return timespec_to_ns(&ts); }
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
129,140,436,351,697,220,000,000,000,000,000,000,000
9
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...
long long unsigned parse_arg_size(char *str) { long long unsigned result = 0; int len = strlen(str); sscanf(str, "%llu", &result); char suffix = *(str + len - 1); if (!isdigit(suffix) && (suffix == 'k' || suffix == 'm' || suffix == 'g')) { len -= 1; } /* checks for is value valid positive number */ for (int...
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
105,084,579,051,157,720,000,000,000,000,000,000,000
37
fixing CVE-2022-31214
static ssize_t available_instances_show(struct mdev_type *mtype, struct mdev_type_attribute *attr, char *buf) { const struct mbochs_type *type = &mbochs_types[mtype_get_type_group_id(mtype)]; int count = (max_mbytes - mbochs_used_mbytes) / type->mbytes; return sprintf(buf, "%d\n", count); }
1
[ "CWE-200", "CWE-401" ]
linux
de5494af4815a4c9328536c72741229b7de88e7f
274,791,406,489,447,900,000,000,000,000,000,000,000
10
vfio/mbochs: Fix missing error unwind of mbochs_used_mbytes Convert mbochs to use an atomic scheme for this like mtty was changed into. The atomic fixes various race conditions with probing. Add the missing error unwind. Also add the missing kfree of mdev_state->pages. Fixes: 681c1615f891 ("vfio/mbochs: Convert to us...
Mat_VarReadNextInfo4(mat_t *mat) { int M,O,data_type,class_type; mat_int32_t tmp; long nBytes; size_t readresult; matvar_t *matvar = NULL; union { mat_uint32_t u; mat_uint8_t c[4]; } endian; if ( mat == NULL || mat->fp == NULL ) return NULL; el...
1
[ "CWE-703", "CWE-125", "CWE-908" ]
matio
651a8e28099edb5fbb9e4e1d4d3238848f446c9a
92,249,881,960,057,270,000,000,000,000,000,000,000
180
Avoid uninitialized memory As reported by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16856
static inline int should_resched(void) { return need_resched() && !(preempt_count() & PREEMPT_ACTIVE); }
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
1,617,627,363,566,735,000,000,000,000,000,000,000
4
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
void jpc_ns_invlift_col(jpc_fix_t *a, int numrows, int stride, int parity) { jpc_fix_t *lptr; jpc_fix_t *hptr; register jpc_fix_t *lptr2; register jpc_fix_t *hptr2; register int n; int llen; llen = (numrows + 1 - parity) >> 1; if (numrows > 1) { /* Apply the scaling step. */ #if defined(WT_DOSCALE) lp...
0
[ "CWE-119", "CWE-787" ]
jasper
4a59cfaf9ab3d48fca4a15c0d2674bf7138e3d1a
217,276,231,631,921,000,000,000,000,000,000,000,000
177
Fixed a buffer overrun problem in the QMFB code in the JPC codec that was caused by a buffer being allocated with a size that was too small in some cases. Added a new regression test case.
explicit CephXTicketManager(CephContext *cct_) : global_id(0), cct(cct_) {}
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
181,083,173,365,680,800,000,000,000,000,000,000,000
1
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
static void async_cancel(USBPacket *unused, void *opaque) { AsyncURB *aurb = opaque; USBHostDevice *s = aurb->hdev; dprintf("husb: async cancel. aurb %p\n", aurb); /* Mark it as dead (see async_complete above) */ aurb->packet = NULL; int r = ioctl(s->fd, USBDEVFS_DISCARDURB, aurb); if (r ...
0
[ "CWE-119" ]
qemu
babd03fde68093482528010a5435c14ce9128e3f
131,051,315,099,714,900,000,000,000,000,000,000,000
15
usb-linux.c: fix buffer overflow In usb-linux.c:usb_host_handle_control, we pass a 1024-byte buffer and length to the kernel. However, the length was provided by the caller of dev->handle_packet, and is not checked, so the kernel might provide too much data and overflow our buffer. For example, hw/usb-uhci.c could s...
drv_kyExist(TERMINAL_CONTROL_BLOCK * TCB, int key) { bool res = FALSE; AssertTCB(); if (TCB->csp) res = TINFO_HAS_KEY(TCB->csp, key) == 0 ? FALSE : TRUE; return res; }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
176,513,172,891,968,400,000,000,000,000,000,000,000
10
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
void kvm_set_cr4(struct kvm_vcpu *vcpu, unsigned long cr4) { unsigned long old_cr4 = vcpu->arch.cr4; unsigned long pdptr_bits = X86_CR4_PGE | X86_CR4_PSE | X86_CR4_PAE; if (cr4 & CR4_RESERVED_BITS) { printk(KERN_DEBUG "set_cr4: #GP, reserved bits\n"); kvm_inject_gp(vcpu, 0); return; } if (is_long_mode(vcpu...
0
[ "CWE-476" ]
linux-2.6
59839dfff5eabca01cc4e20b45797a60a80af8cb
1,917,495,479,190,984,800,000,000,000,000,000,000
36
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...
static void cbq_rmprio(struct cbq_sched_data *q, struct cbq_class *cl) { q->nclasses[cl->priority]--; q->quanta[cl->priority] -= cl->weight; cbq_normalize_quanta(q, cl->priority); }
0
[ "CWE-200" ]
linux-2.6
8a47077a0b5aa2649751c46e7a27884e6686ccbf
242,097,910,226,146,300,000,000,000,000,000,000,000
6
[NETLINK]: Missing padding fields in dumped structures Plug holes with padding fields and initialized them to zero. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
dissect_kafka_offset_for_leader_epoch_response_topic_partition(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, kafka_api_version_t api_version _U_) { guint32 partition_id; kafka_error_t partition_error_code; proto_item *subti...
0
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
28,618,631,236,426,190,000,000,000,000,000,000,000
37
Kafka: Limit our decompression size. Don't assume that the Internet has our best interests at heart when it gives us the size of our decompression buffer. Assign an arbitrary limit of 50 MB. This fixes #16739 in that it takes care of ** (process:17681): WARNING **: 20:03:07.440: Dissector bug, protocol Kafka, in pac...
SPL_METHOD(FilesystemIterator, current) { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } if (SPL_FILE_DIR_CURRENT(intern, SPL_FILE_DIR_CURRENT_AS_PATHNAME)) { spl_filesystem_object_get_file_na...
1
[ "CWE-190" ]
php-src
7245bff300d3fa8bacbef7897ff080a6f1c23eba
92,061,088,962,648,610,000,000,000,000,000,000,000
19
Fix bug #72262 - do not overflow int
GF_Err trgr_Size(GF_Box *s) { GF_TrackGroupBox *ptr = (GF_TrackGroupBox *)s; return gf_isom_box_array_size(s, ptr->groups);
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
112,273,460,946,771,630,000,000,000,000,000,000,000
5
prevent dref memleak on invalid input (#1183)
static BROTLI_INLINE uint32_t BitMask(uint32_t n) { if (BROTLI_IS_CONSTANT(n) || BROTLI_HAS_UBFX) { /* Masking with this expression turns to a single "Unsigned Bit Field Extract" UBFX instruction on ARM. */ return ~((0xFFFFFFFFu) << n); } else { return kBrotliBitMask[n]; } }
0
[ "CWE-120" ]
brotli
223d80cfbec8fd346e32906c732c8ede21f0cea6
6,135,784,968,033,414,000,000,000,000,000,000,000
9
Update (#826) * IMPORTANT: decoder: fix potential overflow when input chunk is >2GiB * simplify max Huffman table size calculation * eliminate symbol duplicates (static arrays in .h files) * minor combing in research/ code
static bool socks4_negotiate(struct pool *pool, int sockd, bool socks4a) { unsigned short port; in_addr_t inp; char buf[515]; int i, len; int ret; buf[0] = 0x04; buf[1] = 0x01; port = atoi(pool->stratum_port); buf[2] = port >> 8; buf[3] = port & 0xff; sprintf(&buf[8], "SGMINER"); /* See if we've been give...
0
[ "CWE-20", "CWE-703" ]
sgminer
910c36089940e81fb85c65b8e63dcd2fac71470c
302,758,346,312,663,620,000,000,000,000,000,000,000
78
stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime. Might have introduced a memory leak, don't have time to check. :( Should the other hex2bin()'s be checked? Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this.
static int ext4_try_to_expand_extra_isize(struct inode *inode, unsigned int new_extra_isize, struct ext4_iloc iloc, handle_t *handle) { int no_expand; int error; if (ext4_test_inode_state(inode, EXT4_STATE_NO_EXPAND)) return -EOVERFLOW; /* * In nojournal mode, we can immediately attempt t...
0
[]
linux
8e4b5eae5decd9dfe5a4ee369c22028f90ab4c44
269,016,420,433,648,900,000,000,000,000,000,000,000
34
ext4: fail ext4_iget for root directory if unallocated If the root directory has an i_links_count of zero, then when the file system is mounted, then when ext4_fill_super() notices the problem and tries to call iput() the root directory in the error return path, ext4_evict_inode() will try to free the inode on disk, b...
void CBINDInstallDlg::OnUninstall() { UpdateData(); if (MsgBox(IDS_UNINSTALL, MB_YESNO) == IDYES) { if (CheckBINDService()) StopBINDService(); SC_HANDLE hSCManager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); if (!hSCManager) { MsgBox(IDS_ERR_OPEN_SCM, GetErrMessage()); return; } SC_...
0
[ "CWE-284" ]
bind9
967a3b9419a3c12b8c0870c86d1ee3840bcbbad7
183,670,579,500,729,350,000,000,000,000,000,000,000
61
[master] quote service registry paths 4532. [security] The BIND installer on Windows used an unquoted service path, which can enable privilege escalation. (CVE-2017-3141) [RT #45229]
long SSL_CTX_sess_connect_renegotiate(SSL_CTX* ctx) { return ctx->GetStats().connectRenegotiate_; }
0
[ "CWE-254" ]
mysql-server
e7061f7e5a96c66cb2e0bf46bec7f6ff35801a69
5,547,495,954,073,163,000,000,000,000,000,000,000
4
Bug #22738607: YASSL FUNCTION X509_NAME_GET_INDEX_BY_NID IS NOT WORKING AS EXPECTED.
void hns_rcb_common_init_commit_hw(struct rcb_common_cb *rcb_common) { wmb(); /* Sync point before breakpoint */ dsaf_write_dev(rcb_common, RCB_COM_CFG_SYS_FSH_REG, 1); wmb(); /* Sync point after breakpoint */ }
0
[ "CWE-119", "CWE-703" ]
linux
412b65d15a7f8a93794653968308fc100f2aa87c
27,339,862,984,368,510,000,000,000,000,000,000,000
6
net: hns: fix ethtool_get_strings overflow in hns driver hns_get_sset_count() returns HNS_NET_STATS_CNT and the data space allocated is not enough for ethtool_get_strings(), which will cause random memory corruption. When SLAB and DEBUG_SLAB are both enabled, memory corruptions like the the following can be observed ...
void tcp_enter_loss(struct sock *sk) { const struct inet_connection_sock *icsk = inet_csk(sk); struct tcp_sock *tp = tcp_sk(sk); struct net *net = sock_net(sk); bool new_recovery = icsk->icsk_ca_state < TCP_CA_Recovery; tcp_timeout_mark_lost(sk); /* Reduce ssthresh if it has not yet been made inside this window...
0
[ "CWE-190" ]
net
3b4929f65b0d8249f19a50245cd88ed1a2f78cff
250,752,867,527,678,770,000,000,000,000,000,000,000
42
tcp: limit payload size of sacked skbs Jonathan Looney reported that TCP can trigger the following crash in tcp_shifted_skb() : BUG_ON(tcp_skb_pcount(skb) < pcount); This can happen if the remote peer has advertized the smallest MSS that linux TCP accepts : 48 An skb can hold 17 fragments, and each fragment can ho...
nghttp2_stream *nghttp2_session_get_stream(nghttp2_session *session, int32_t stream_id) { nghttp2_stream *stream; stream = (nghttp2_stream *)nghttp2_map_find(&session->streams, stream_id); if (stream == NULL || (stream->flags & NGHTTP2_STREAM_FLAG_CLOSED) || stre...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
158,711,398,510,882,950,000,000,000,000,000,000,000
13
Add nghttp2_option_set_max_outbound_ack
uint64_t alpha_mode() { return alpha_mode_; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
190,720,451,187,345,630,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
bool CModule::HandleCommand(const CString& sLine) { const CString& sCmd = sLine.Token(0); const CModCommand* pCmd = FindCommand(sCmd); if (pCmd) { pCmd->Call(sLine); return true; } OnUnknownModCommand(sLine); return false; }
0
[ "CWE-20", "CWE-264" ]
znc
8de9e376ce531fe7f3c8b0aa4876d15b479b7311
183,802,929,843,935,330,000,000,000,000,000,000,000
13
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
NCURSES_SP_NAME(mvcur) (NCURSES_SP_DCLx int yold, int xold, int ynew, int xnew) { return _nc_real_mvcur(NCURSES_SP_ARGx yold, xold, ynew, xnew, NCURSES_SP_NAME(_nc_putchar), FALSE); }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
61,866,926,417,315,960,000,000,000,000,000,000,000
9
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
has_option (const char *line, const char *name) { const char *s; int n = strlen (name); s = strstr (line, name); return (s && (s == line || spacep (s-1)) && (!s[n] || spacep (s+n))); }
0
[]
gnupg
b0b3803e8c2959dd67ca96debc54b5c6464f0d41
198,740,961,964,208,600,000,000,000,000,000,000,000
8
scd: Avoid double-free on error condition in scd * scd/command.c (cmd_readkey): avoid double-free of cert -- When ksba_cert_new() fails, cert will be double-freed. Debian-Bug-Id: 773471 Original patch changed by wk to do the free only at leave.
static int dskip(DviContext *dvi, long offset) { ASSERT(offset > 0); if(NEEDBYTES(dvi, offset) && get_bytes(dvi, offset) == -1) return -1; dvi->buffer.pos += offset; return 0; }
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
97,553,436,443,429,490,000,000,000,000,000,000,000
9
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
static bool PrintGeneralName(const BIOPointer& out, const GENERAL_NAME* gen) { if (gen->type == GEN_DNS) { ASN1_IA5STRING* name = gen->d.dNSName; BIO_write(out.get(), "DNS:", 4); // Note that the preferred name syntax (see RFCs 5280 and 1034) with // wildcards is a subset of what we consider "safe", s...
0
[ "CWE-295" ]
node
466e5415a2b7b3574ab5403acb87e89a94a980d1
277,800,397,447,966,450,000,000,000,000,000,000,000
120
crypto,tls: implement safe x509 GeneralName format This change introduces JSON-compatible escaping rules for strings that include X.509 GeneralName components (see RFC 5280). This non-standard format avoids ambiguities and prevents injection attacks that could previously lead to X.509 certificates being accepted even ...
static struct stats dx_show_leaf(struct inode *dir, struct dx_hash_info *hinfo, struct ext4_dir_entry_2 *de, int size, int show_names) { unsigned names = 0, space = 0; char *base = (char *) de; struct dx_hash_info h = *hinfo; printk("names: "); while ((char *) de < base + size) { if (de->inode) {...
0
[ "CWE-125" ]
linux
5872331b3d91820e14716632ebb56b1399b34fe1
42,480,389,631,811,460,000,000,000,000,000,000,000
90
ext4: fix potential negative array index in do_split() If for any reason a directory passed to do_split() does not have enough active entries to exceed half the size of the block, we can end up iterating over all "count" entries without finding a split point. In this case, count == move, and split will be zero, and w...
void compute_size_and_depth(const std::vector<RE*> &res, size_t *psize, size_t *pdepth) { std::vector<StackItem> stack; const size_t nre = res.size(); DASSERT(nre > 0); *psize = nre - 1; *pdepth = 0; for (size_t i = 0; i < nre; ++i) { compute_re_size_and_depth(res[i], stack, psize, pde...
0
[ "CWE-787" ]
re2c
a3473fd7be829cb33907cb08612f955133c70a96
112,614,897,371,848,900,000,000,000,000,000,000,000
12
Limit maximum allowed NFA and DFA size. Instead of failing with an out of memory exception or crashing with a stack overflow, emit an error message and exit. This is a partial fix for bug #394 "Stack overflow due to recursion in src/dfa/dead_rules.cc", where re2c hit stack overflow on a counted repetition regexp with ...
const char *gf_filter_get_id(GF_Filter *filter) { if (filter) return filter->id; return NULL; }
0
[ "CWE-787" ]
gpac
da37ec8582266983d0ec4b7550ec907401ec441e
165,233,192,717,939,860,000,000,000,000,000,000,000
5
fixed crashes for very long path - cf #1908
SMB2_sess_auth_rawntlmssp_authenticate(struct SMB2_sess_data *sess_data) { int rc; struct cifs_ses *ses = sess_data->ses; struct smb2_sess_setup_req *req; struct smb2_sess_setup_rsp *rsp = NULL; unsigned char *ntlmssp_blob = NULL; bool use_spnego = false; /* else use raw ntlmssp */ u16 blob_length = 0; rc = SM...
0
[ "CWE-476" ]
linux
cabfb3680f78981d26c078a26e5c748531257ebb
170,208,612,241,642,300,000,000,000,000,000,000,000
53
CIFS: Enable encryption during session setup phase In order to allow encryption on SMB connection we need to exchange a session key and generate encryption and decryption keys. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, size_t cnt, loff_t *ppos) { unsigned long val; int ret; ret = kstrtoul_from_user(ubuf, cnt, 10, &val); if (ret) return ret; *ptr = val * 1000; return cnt; }
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
293,029,222,872,585,570,000,000,000,000,000,000,000
14
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
void LineBitmapRequester::BuildCommon(void) { UBYTE i; BitmapCtrl::BuildCommon(); LineBuffer::BuildCommon(); if (m_ppTempIBM == NULL) { m_ppTempIBM = (struct ImageBitMap **)m_pEnviron->AllocMem(sizeof(struct ImageBitMap **) * m_ucCount); memset(m_ppTempIBM,0,sizeof(struct ImageBitMap *) * m_ucCount); ...
0
[ "CWE-476" ]
libjpeg
51c3241b6da39df30f016b63f43f31c4011222c7
164,880,053,476,532,380,000,000,000,000,000,000,000
29
Fixed a NULL-pointer access in the line-based reconstruction process in case no valid scan was found and no data is present.
AR_1_SendReleaseRQ(PRIVATE_NETWORKKEY ** /* network */, PRIVATE_ASSOCIATIONKEY ** association, int nextState, void * /*params*/) { OFCondition cond = EC_Normal; cond = sendReleaseRQTCP(association); (*association)->protocolState = nextState; return cond; }
0
[ "CWE-415", "CWE-703", "CWE-401" ]
dcmtk
a9697dfeb672b0b9412c00c7d36d801e27ec85cb
155,627,955,024,564,930,000,000,000,000,000,000,000
9
Fixed poss. NULL pointer dereference/double free. Thanks to Jinsheng Ba <bajinsheng@u.nus.edu> for the report and some patches.
/* Change the maximum header size provided at compile time. */ inline void http_parser_set_max_header_size(uint32_t size) {
0
[ "CWE-416" ]
Crow
fba01dc76d6ea940ad7c8392e8f39f9647241d8e
181,713,348,667,798,130,000,000,000,000,000,000,000
3
Prevent HTTP pipelining which Crow doesn't support.
static int __swiotlb_map_sg_attrs(struct device *dev, struct scatterlist *sgl, int nelems, enum dma_data_direction dir, struct dma_attrs *attrs) { struct scatterlist *sg; int i, ret; ret = swiotlb_map_sg_attrs(dev, sgl, nelems, dir, attrs); if (!is_device_dma_coherent(dev)) for_each_sg(sgl, sg, ret, ...
0
[ "CWE-200" ]
linux
6829e274a623187c24f7cfc0e3d35f25d087fcc5
244,518,043,294,060,600,000,000,000,000,000,000,000
15
arm64: dma-mapping: always clear allocated buffers Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha, ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures. It turned out that some drivers rely on this 'feature'. Allocated buffer might be also exposed to userspace with dma_mmap() c...
SrcList *sqlite3SrcListDup(sqlite3 *db, SrcList *p, int flags){ SrcList *pNew; int i; int nByte; assert( db!=0 ); if( p==0 ) return 0; nByte = sizeof(*p) + (p->nSrc>0 ? sizeof(p->a[0]) * (p->nSrc-1) : 0); pNew = sqlite3DbMallocRawNN(db, nByte ); if( pNew==0 ) return 0; pNew->nSrc = pNew->nAlloc = p->n...
0
[ "CWE-476" ]
sqlite
57f7ece78410a8aae86aa4625fb7556897db384c
271,654,681,249,609,270,000,000,000,000,000,000,000
41
Fix a problem that comes up when using generated columns that evaluate to a constant in an index and then making use of that index in a join. FossilOrigin-Name: 8b12e95fec7ce6e0de82a04ca3dfcf1a8e62e233b7382aa28a8a9be6e862b1af
is_partition (guestfs_h *g, const char *partition) { CLEANUP_FREE char *device = NULL; guestfs_push_error_handler (g, NULL, NULL); if ((device = guestfs_part_to_dev (g, partition)) == NULL) { guestfs_pop_error_handler (g); return 0; } if (guestfs_device_index (g, device) == -1) { guestfs_pop_er...
0
[]
libguestfs
ae8bb84ecd46d7b6ef557a87725923ac8d09dce0
223,628,494,191,842,700,000,000,000,000,000,000,000
20
inspection: Don't segfault if /etc/SuSE-release is an empty file. Related to CVE-2013-2124. Thanks: Olaf Hering.
int fuse_fsync_common(struct file *file, loff_t start, loff_t end, int datasync, int opcode) { struct inode *inode = file->f_mapping->host; struct fuse_mount *fm = get_fuse_mount(inode); struct fuse_file *ff = file->private_data; FUSE_ARGS(args); struct fuse_fsync_in inarg; memset(&inarg, 0, sizeof(inarg...
0
[ "CWE-459" ]
linux
5d069dbe8aaf2a197142558b6fb2978189ba3454
289,184,455,093,127,200,000,000,000,000,000,000,000
19
fuse: fix bad inode Jan Kara's analysis of the syzbot report (edited): The reproducer opens a directory on FUSE filesystem, it then attaches dnotify mark to the open directory. After that a fuse_do_getattr() call finds that attributes returned by the server are inconsistent, and calls make_bad_inode() which,...
command_send_text (Fep *fep, FepControlMessage *request) { _fep_output_send_text (fep, request->args[0].str); }
0
[ "CWE-264" ]
libfep
293d9d3f7565f01a9dc40b53259886832eaa2ace
135,616,301,561,638,190,000,000,000,000,000,000,000
5
Don't use abstract Unix domain sockets
TEST_F(LuaHeaderMapWrapperTest, Replace) { const std::string SCRIPT{R"EOF( function callMe(object) object:replace(":path", "/new_path") object:replace("other_header", "other_header_value") object:replace("new_header", "new_header_value") end )EOF"}; InSequence s; setup(SCRIPT); Htt...
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
310,179,603,985,297,900,000,000,000,000,000,000,000
21
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
static inline int pte_dirty(pte_t pte) { return pte_flags(pte) & _PAGE_DIRTY; }
0
[ "CWE-119", "CWE-787" ]
linux
027ef6c87853b0a9df53175063028edb4950d476
21,474,175,531,281,600,000,000,000,000,000,000,000
4
mm: thp: fix pmd_present for split_huge_page and PROT_NONE with THP In many places !pmd_present has been converted to pmd_none. For pmds that's equivalent and pmd_none is quicker so using pmd_none is better. However (unless we delete pmd_present) we should provide an accurate pmd_present too. This will avoid the ri...
WebSession(const QString& id) : id(id) { updateTimestamp(); }
0
[ "CWE-20" ]
qBittorrent
f5ad04766f4abaa78374ff03704316f8ce04627d
302,706,674,125,109,800,000,000,000,000,000,000,000
5
[WebUI] Avoid clickjacking attacks
int imap_cmd_start(struct ImapAccountData *adata, const char *cmdstr) { return cmd_start(adata, cmdstr, IMAP_CMD_NO_FLAGS); }
0
[ "CWE-94", "CWE-74" ]
neomutt
fb013ec666759cb8a9e294347c7b4c1f597639cc
227,432,146,714,885,550,000,000,000,000,000,000,000
4
tls: clear data after a starttls acknowledgement After a starttls acknowledgement message, clear the buffers of any incoming data / commands. This will ensure that all future data is handled securely. Co-authored-by: Pietro Cerutti <gahr@gahr.ch>
static int change_carrier(struct net_device *dev, unsigned long new_carrier) { if (!netif_running(dev)) return -EINVAL; return dev_change_carrier(dev, (bool)new_carrier);
0
[ "CWE-401" ]
linux
895a5e96dbd6386c8e78e5b78e067dcc67b7f0ab
320,415,281,723,918,770,000,000,000,000,000,000,000
6
net-sysfs: Fix mem leak in netdev_register_kobject syzkaller report this: BUG: memory leak unreferenced object 0xffff88837a71a500 (size 256): comm "syz-executor.2", pid 9770, jiffies 4297825125 (age 17.843s) hex dump (first 32 bytes): 00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00 .....N.......... ff ff ...
gx_device_free_local(gx_device *dev) { gx_device_finalize(dev->memory, dev); }
0
[]
ghostpdl
79cccf641486a6595c43f1de1cd7ade696020a31
202,562,288,558,954,400,000,000,000,000,000,000,000
4
Bug 699654(2): preserve LockSafetyParams in the nulldevice The nulldevice does not necessarily use the normal setpagedevice machinery, but can be set using the nulldevice operator. In which case, we don't preserve the settings from the original device (in the way setpagedevice does). Since nulldevice does nothing, th...
TEST_F(HeaderTableTests, add) { HeaderTable table(4096); table.add(HPACKHeader("accept-encoding", "gzip")); table.add(HPACKHeader("accept-encoding", "gzip")); table.add(HPACKHeader("accept-encoding", "gzip")); EXPECT_EQ(table.names().size(), 1); EXPECT_EQ(table.hasName("accept-encoding"), true); auto it =...
0
[ "CWE-416" ]
proxygen
f43b134cc5c19d8532e7fb670a1c02e85f7a8d4f
322,276,938,103,447,940,000,000,000,000,000,000,000
11
Fixing HPACK header table resize issue Summary: On resizing the header table down and then up again, a resize can be called against the underlying vector that actually sizes it down. This causes a lot of things to break as the code that does the resizing assumes the underlying vector is only ever resized up. Reviewe...
TEST(AsyncSSLSocketTest, SSLAcceptRunnerFiber) { EventBase eventBase; auto clientCtx = std::make_shared<SSLContext>(); auto serverCtx = std::make_shared<SSLContext>(); serverCtx->ciphers("ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH"); serverCtx->loadPrivateKey(kTestKey); serverCtx->loadCertificate(kTestCert); clie...
0
[ "CWE-125" ]
folly
c321eb588909646c15aefde035fd3133ba32cdee
77,526,281,716,595,800,000,000,000,000,000,000,000
33
Handle close_notify as standard writeErr in AsyncSSLSocket. Summary: Fixes CVE-2019-11934 Reviewed By: mingtaoy Differential Revision: D18020613 fbshipit-source-id: db82bb250e53f0d225f1280bd67bc74abd417836
parse_show_engine_innodb_status(MYSQL *connection) { MYSQL_RES *mysql_result; MYSQL_ROW row; mysql_result = xb_mysql_query(connection, "SHOW ENGINE INNODB STATUS", true); ut_ad(mysql_num_fields(mysql_result) == 3); if ((row = mysql_fetch_row(mysql_result))) { std::stringstream data(row[2]); std::s...
0
[ "CWE-200" ]
percona-xtrabackup
7742f875bb289a874246fb4653b7cd9f14b588fe
63,127,980,745,147,310,000,000,000,000,000,000,000
25
PXB-2722 password is written into xtrabackup_info https://jira.percona.com/browse/PXB-2722 Analysis: password passed with -p option is written into backup tool_command in xtrabackup_info Fix: mask password before writting into xtrabackup_info
g_tcp_bind(int sck, char* port) { struct sockaddr_in s; memset(&s, 0, sizeof(struct sockaddr_in)); s.sin_family = AF_INET; s.sin_port = htons((tui16)atoi(port)); s.sin_addr.s_addr = INADDR_ANY; return bind(sck, (struct sockaddr*)&s, sizeof(struct sockaddr_in)); }
0
[]
xrdp
d8f9e8310dac362bb9578763d1024178f94f4ecc
310,137,859,352,837,500,000,000,000,000,000,000,000
10
move temp files from /tmp to /tmp/.xrdp
static int __init init_ipv4_mibs(void) { return register_pernet_subsys(&ipv4_mib_ops); }
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
53,760,376,655,435,050,000,000,000,000,000,000,000
4
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
dp_packet_has_flow_mark(const struct dp_packet *p, uint32_t *mark) { if (p->ol_flags & DP_PACKET_OL_FLOW_MARK_MASK) { *mark = p->flow_mark; return true; } return false; }
0
[ "CWE-400" ]
ovs
3512fb512c76a1f08eba4005aa2eb69160d0840e
123,017,140,414,558,380,000,000,000,000,000,000,000
8
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
} struct iscsi_cls_session * iscsi_alloc_session(struct Scsi_Host *shost, struct iscsi_transport *transport, int dd_size) { struct iscsi_cls_session *session; session = kzalloc(sizeof(*session) + dd_size, GFP_KERNEL); if (!session) return NULL; session->transport = transport; session->creator = -1;...
0
[ "CWE-787" ]
linux
ec98ea7070e94cc25a422ec97d1421e28d97b7ee
319,716,366,590,289,740,000,000,000,000,000,000,000
35
scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE As the iSCSI parameters are exported back through sysfs, it should be enforcing that they never are more than PAGE_SIZE (which should be more than enough) before accepting updates through netlink. Change all iSCSI sysfs attributes to use sysfs_emit(). Cc:...
static void __tg3_set_rx_mode(struct net_device *dev) { struct tg3 *tp = netdev_priv(dev); u32 rx_mode; rx_mode = tp->rx_mode & ~(RX_MODE_PROMISC | RX_MODE_KEEP_VLAN_TAG); #if !defined(CONFIG_VLAN_8021Q) && !defined(CONFIG_VLAN_8021Q_MODULE) /* When ASF is in use, we always keep the RX_MODE_KEEP_VLAN_TAG ...
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
230,322,349,014,743,530,000,000,000,000,000,000,000
53
tg3: fix length overflow in VPD firmware parsing Commit 184b89044fb6e2a74611dafa69b1dce0d98612c6 ("tg3: Use VPD fw version when present") introduced VPD parsing that contained a potential length overflow. Limit the hardware's reported firmware string length (max 255 bytes) to stay inside the driver's firmware string ...
input_enter_osc(struct input_ctx *ictx) { log_debug("%s", __func__); input_clear(ictx); }
0
[]
tmux
2ffbd5b5f05dded1564ba32a6a00b0b417439b2f
23,172,981,563,150,430,000,000,000,000,000,000,000
6
When searching for tabs, start from screen width, fixes out-of-bounds read found by Kuang-che Wu.
static void sm501_reset(SM501State *s) { s->system_control = 0x00100000; /* 2D engine FIFO empty */ /* Bits 17 (SH), 7 (CDR), 6:5 (Test), 2:0 (Bus) are all supposed * to be determined at reset by GPIO lines which set config bits. * We hardwire them: * SH = 0 : Hitachi Ready Polarity == Active Lo...
0
[ "CWE-190" ]
qemu
b15a22bbcbe6a78dc3d88fe3134985e4cdd87de4
12,788,632,043,820,447,000,000,000,000,000,000,000
47
sm501: Replace hand written implementation with pixman where possible Besides being faster this should also prevent malicious guests to abuse 2D engine to overwrite data or cause a crash. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-id: 58666389b6cae256e4e972a32c05cf8aa51bffc0.1590089984.git.balaton@eik...
MagickPrivate void XDelay(Display *display,const size_t milliseconds) { assert(display != (Display *) NULL); (void) XFlush(display); MagickDelay(milliseconds); }
0
[]
ImageMagick
f391a5f4554fe47eb56d6277ac32d1f698572f0e
298,481,433,042,727,400,000,000,000,000,000,000,000
6
https://github.com/ImageMagick/ImageMagick/issues/1531
*/ void unregister_netdevice_many(struct list_head *head) { struct net_device *dev; if (!list_empty(head)) { rollback_registered_many(head); list_for_each_entry(dev, head, unreg_list) net_set_todo(dev); list_del(head); }
0
[ "CWE-400", "CWE-703" ]
linux
fac8e0f579695a3ecbc4d3cac369139d7f819971
110,576,044,027,520,940,000,000,000,000,000,000,000
11
tunnels: Don't apply GRO to multiple layers of encapsulation. When drivers express support for TSO of encapsulated packets, they only mean that they can do it for one layer of encapsulation. Supporting additional levels would mean updating, at a minimum, more IP length fields and they are unaware of this. No encapsul...
int __init snd_card_info_init(void) { struct snd_info_entry *entry; entry = snd_info_create_module_entry(THIS_MODULE, "cards", NULL); if (! entry) return -ENOMEM; entry->c.text.read = snd_card_info_read; if (snd_info_register(entry) < 0) return -ENOMEM; /* freed in error path */ #ifdef MODULE entry = snd_in...
0
[ "CWE-416" ]
linux
2a3f7221acddfe1caa9ff09b3a8158c39b2fdeac
166,592,792,119,576,340,000,000,000,000,000,000,000
22
ALSA: core: Fix card races between register and disconnect There is a small race window in the card disconnection code that allows the registration of another card with the very same card id. This leads to a warning in procfs creation as caught by syzkaller. The problem is that we delete snd_cards and snd_cards_lock ...
struct fuse *fuse_new(struct fuse_chan *ch, struct fuse_args *args, const struct fuse_operations *op, size_t op_size, void *user_data) { struct fuse *f; struct node *root; struct fuse_fs *fs; struct fuse_lowlevel_ops llop = fuse_path_ops; if (fuse_create_context_key() == -1) ...
0
[]
ntfs-3g
fb28eef6f1c26170566187c1ab7dc913a13ea43c
234,583,175,815,818,360,000,000,000,000,000,000,000
149
Hardened the checking of directory offset requested by a readdir When asked for the next directory entries, make sure the chunk offset is within valid values, otherwise return no more entries in chunk.
static void *shmem_follow_link(struct dentry *dentry, struct nameidata *nd) { struct page *page = NULL; int error = shmem_getpage(dentry->d_inode, 0, &page, SGP_READ, NULL); nd_set_link(nd, error ? ERR_PTR(error) : kmap(page)); if (page) unlock_page(page); return page; }
0
[ "CWE-399" ]
linux
5f00110f7273f9ff04ac69a5f85bb535a4fd0987
326,614,221,590,194,240,000,000,000,000,000,000,000
9
tmpfs: fix use-after-free of mempolicy object The tmpfs remount logic preserves filesystem mempolicy if the mpol=M option is not specified in the remount request. A new policy can be specified if mpol=M is given. Before this patch remounting an mpol bound tmpfs without specifying mpol= mount option in the remount re...
static void io_dismantle_req(struct io_kiocb *req) { unsigned int flags = req->flags; if (io_req_needs_clean(req)) io_clean_op(req); if (!(flags & REQ_F_FIXED_FILE)) io_put_file(req->file); if (req->fixed_rsrc_refs) percpu_ref_put(req->fixed_rsrc_refs); if (req->async_data) { kfree(req->async_data); req...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
164,760,199,323,921,110,000,000,000,000,000,000,000
15
io_uring: reexpand under-reexpanded iters [ 74.211232] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x809/0x900 [ 74.212778] Read of size 8 at addr ffff888025dc78b8 by task syz-executor.0/828 [ 74.214756] CPU: 0 PID: 828 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730 #1 [ 74.216525] Hardware n...
void STDCALL mysql_get_character_set_info(MYSQL *mysql, MY_CHARSET_INFO *csinfo) { csinfo->number = mysql->charset->number; csinfo->state = mysql->charset->state; csinfo->csname = mysql->charset->csname; csinfo->name = mysql->charset->name; csinfo->comment = mysql->charset->comment; csinfo->mbmi...
0
[]
mysql-server
3d8134d2c9b74bc8883ffe2ef59c168361223837
289,994,741,990,166,000,000,000,000,000,000,000,000
15
Bug#25988681: USE-AFTER-FREE IN MYSQL_STMT_CLOSE() Description: If mysql_stmt_close() encountered error, it recorded error in prepared statement but then frees memory assigned to prepared statement. If mysql_stmt_error() is used to get error information, it will resu...
return dev->release == iscsi_conn_release; } static int iscsi_iter_destroy_conn_fn(struct device *dev, void *data) { if (!iscsi_is_conn_dev(dev))
0
[ "CWE-787" ]
linux
ec98ea7070e94cc25a422ec97d1421e28d97b7ee
246,421,402,826,205,900,000,000,000,000,000,000,000
6
scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE As the iSCSI parameters are exported back through sysfs, it should be enforcing that they never are more than PAGE_SIZE (which should be more than enough) before accepting updates through netlink. Change all iSCSI sysfs attributes to use sysfs_emit(). Cc:...
static int core_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) { ap__logio_add_bytes_out = APR_RETRIEVE_OPTIONAL_FN(ap_logio_add_bytes_out); ident_lookup = APR_RETRIEVE_OPTIONAL_FN(ap_ident_lookup); ap__authz_ap_some_auth_required = APR_RETRIEVE_OPTIONAL_FN(authz_some_aut...
0
[]
httpd
ecebcc035ccd8d0e2984fe41420d9e944f456b3c
83,158,418,896,237,840,000,000,000,000,000,000,000
24
Merged r1734009,r1734231,r1734281,r1838055,r1838079,r1840229,r1876664,r1876674,r1876784,r1879078,r1881620,r1887311,r1888871 from trunk: *) core: Split ap_create_request() from ap_read_request(). [Graham Leggett] *) core, h2: common ap_parse_request_line() and ap_check_request_header() code. [Yann Ylavic] ...
pgp_strip_path(sc_card_t *card, const sc_path_t *path) { unsigned int start_point = 0; /* start_point will move through the path string */ if (path->len == 0) return 0; /* ignore 3F00 (MF) at the beginning */ start_point = (memcmp(path->value, "\x3f\x00", 2) == 0) ? 2 : 0; /* strip path of PKCS15-App DF (5015)...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
75,958,325,678,162,260,000,000,000,000,000,000,000
13
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
GF_Box *subs_New() { ISOM_DECL_BOX_ALLOC(GF_SubSampleInformationBox, GF_ISOM_BOX_TYPE_SUBS); tmp->Samples = gf_list_new(); return (GF_Box *)tmp;
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
82,652,369,893,684,480,000,000,000,000,000,000,000
6
prevent dref memleak on invalid input (#1183)
WandExport void DrawPushClipPath(DrawingWand *wand,const char *clip_mask_id) { assert(wand != (DrawingWand *) NULL); assert(wand->signature == MagickWandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); assert(clip_mask_id != (const char *) NULL)...
0
[ "CWE-476" ]
ImageMagick
6ad5fc3c9b652eec27fc0b1a0817159f8547d5d9
124,794,795,791,601,110,000,000,000,000,000,000,000
10
https://github.com/ImageMagick/ImageMagick/issues/716
static inline void scrub_parity_mark_sectors_data(struct scrub_parity *sparity, u64 start, u64 len) { __scrub_mark_bitmap(sparity, sparity->dbitmap, start, len); }
0
[ "CWE-476", "CWE-284" ]
linux
09ba3bc9dd150457c506e4661380a6183af651c1
90,137,394,760,547,540,000,000,000,000,000,000,000
5
btrfs: merge btrfs_find_device and find_device Both btrfs_find_device() and find_device() does the same thing except that the latter does not take the seed device onto account in the device scanning context. We can merge them. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.c...
static int __devexit ibwdt_remove(struct platform_device *dev) { misc_deregister(&ibwdt_miscdev); release_region(WDT_START, 1); #if WDT_START != WDT_STOP release_region(WDT_STOP, 1); #endif return 0; }
0
[]
linux-2.6
7c2500f17d65092d93345f3996cf82ebca17e9ff
306,139,453,059,682,840,000,000,000,000,000,000,000
9
[WATCHDOG] ib700wdt.c - fix buffer_underflow bug This fixes Bug 11399: if ibwdt_set_heartbeat(int t) is called with value 30 then the check "if ((t < 0) || (t > 30))" in ibwdt_set_heartbeat is not going to fail because t == 30, but in the loop, the check wd_times[i] > t is never going to be true because none of the wd...
static int process_backlog(struct napi_struct *napi, int quota) { int work = 0; struct softnet_data *sd = container_of(napi, struct softnet_data, backlog); #ifdef CONFIG_RPS /* Check if we have pending ipi, its better to send them now, * not waiting net_rx_action() end. */ if (sd->rps_ipi_list) { local_irq_d...
0
[ "CWE-264" ]
linux
8909c9ad8ff03611c9c96c9a92656213e4bb495b
302,525,445,810,937,540,000,000,000,000,000,000,000
56
net: don't allow CAP_NET_ADMIN to load non-netdev kernel modules Since a8f80e8ff94ecba629542d9b4b5f5a8ee3eb565c any process with CAP_NET_ADMIN may load any module from /lib/modules/. This doesn't mean that CAP_NET_ADMIN is a superset of CAP_SYS_MODULE as modules are limited to /lib/modules/**. However, CAP_NET_ADMIN...
int crypto_register_skcipher(struct skcipher_alg *alg) { struct crypto_alg *base = &alg->base; int err; err = skcipher_prepare_alg(alg); if (err) return err; return crypto_register_alg(base); }
0
[ "CWE-476", "CWE-703" ]
linux
9933e113c2e87a9f46a40fde8dafbf801dca1ab9
332,602,063,185,803,200,000,000,000,000,000,000,000
11
crypto: skcipher - Add missing API setkey checks The API setkey checks for key sizes and alignment went AWOL during the skcipher conversion. This patch restores them. Cc: <stable@vger.kernel.org> Fixes: 4e6c3df4d729 ("crypto: skcipher - Add low-level skcipher...") Reported-by: Baozeng <sploving1@gmail.com> Signed-of...
SYSCALL_DEFINE4(vmsplice, int, fd, const struct iovec __user *, uiov, unsigned long, nr_segs, unsigned int, flags) { struct iovec iovstack[UIO_FASTIOV]; struct iovec *iov = iovstack; struct iov_iter iter; long error; struct fd f; int type; f = fdget(fd); error = vmsplice_type(f, &type); if (error) return ...
0
[ "CWE-416" ]
linux
15fab63e1e57be9fdb5eec1bbc5916e9825e9acb
136,749,121,030,094,310,000,000,000,000,000,000,000
24
fs: prevent page refcount overflow in pipe_buf_get Change pipe_buf_get() to return a bool indicating whether it succeeded in raising the refcount of the page (if the thing in the pipe is a page). This removes another mechanism for overflowing the page refcount. All callers converted to handle a failure. Reported-by:...
GF_Err moof_Read(GF_Box *s, GF_BitStream *bs) { return gf_isom_box_array_read(s, bs, moof_AddBox); }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
50,736,060,343,833,500,000,000,000,000,000,000,000
4
prevent dref memleak on invalid input (#1183)
void ReadValue(int64 batch, int64 n, uint64* out) const override { CopyToFingerprint(values_(row_splits_[batch] + n), out); }
0
[ "CWE-125", "CWE-369" ]
tensorflow
44b7f486c0143f68b56c34e2d01e146ee445134a
254,387,731,714,568,400,000,000,000,000,000,000,000
3
Fix out of bounds read in `ragged_cross_op.cc`. PiperOrigin-RevId: 369757702 Change-Id: Ie6e5d2c21513a8d56bf41fcf35960caf76e890f9
static int snd_rawmidi_output_status(struct snd_rawmidi_substream *substream, struct snd_rawmidi_status * status) { struct snd_rawmidi_runtime *runtime = substream->runtime; memset(status, 0, sizeof(*status)); status->stream = SNDRV_RAWMIDI_STREAM_OUTPUT; spin_lock_irq(&runtime->lock); status->avail = ru...
0
[ "CWE-415" ]
linux
39675f7a7c7e7702f7d5341f1e0d01db746543a0
108,430,775,269,150,310,000,000,000,000,000,000,000
12
ALSA: rawmidi: Change resized buffers atomically The SNDRV_RAWMIDI_IOCTL_PARAMS ioctl may resize the buffers and the current code is racy. For example, the sequencer client may write to buffer while it being resized. As a simple workaround, let's switch to the resized buffer inside the stream runtime lock. Reported...
PHP_FUNCTION(iptcembed) { char *iptcdata, *jpeg_file; int iptcdata_len, jpeg_file_len; long spool = 0; FILE *fp; unsigned int marker, done = 0; int inx; unsigned char *spoolbuf = NULL, *poi = NULL; struct stat sb; zend_bool written = 0; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sp|l", &iptcdata, ...
0
[]
php-src
54c210d2ea9b8539edcde1888b1104b96b38e886
278,324,331,176,749,670,000,000,000,000,000,000,000
120
Fix bug #71459 - Integer overflow in iptcembed()
ha_maria::ha_maria(handlerton *hton, TABLE_SHARE *table_arg): handler(hton, table_arg), file(0), int_table_flags(HA_NULL_IN_KEY | HA_CAN_FULLTEXT | HA_CAN_SQL_HANDLER | HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE | HA_DUPLICATE_POS | HA_CAN_INDEX_BLOBS | HA_AUTO_PART_KEY | ...
0
[ "CWE-400" ]
server
9e39d0ae44595dbd1570805d97c9c874778a6be8
269,255,479,651,346,800,000,000,000,000,000,000,000
12
MDEV-25787 Bug report: crash on SELECT DISTINCT thousands_blob_fields fix a debug assert to account for not opened temp tables
static Sdb *__core_cmd_anal_fcn_stats (RCore *core, const char *input) { bool silentMode = false; int statsMode = 0; if (*input == '*') { silentMode = true; input++; } switch (*input) { case '?': eprintf ("Usage: afis[ft]\n"); eprintf (" afis enumerate unique opcodes in function\n"); eprintf (...
0
[ "CWE-703", "CWE-908" ]
radare2
4d3811681a80f92a53e795f6a64c4b0fc2c8dd22
270,634,183,315,975,920,000,000,000,000,000,000,000
79
Fix segfault in adf (#16230)
get_contact_dtor (LDAPOp *op) { LDAPGetContactOp *get_contact_op = (LDAPGetContactOp *) op; g_free (get_contact_op); }
0
[]
evolution-data-server
34bad61738e2127736947ac50e0c7969cc944972
128,110,019,528,386,510,000,000,000,000,000,000,000
6
Bug 796174 - strcat() considered unsafe for buffer overflow
**/ CImg<T>& acos() { if (is_empty()) return *this; cimg_pragma_openmp(parallel for cimg_openmp_if(size()>=8192)) cimg_rof(*this,ptrd,T) *ptrd = (T)std::acos((double)*ptrd); return *this;
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
136,461,795,195,943,900,000,000,000,000,000,000,000
6
Fix other issues in 'CImg<T>::load_bmp()'.
static void nfs4_lock_prepare(struct rpc_task *task, void *calldata) { struct nfs4_lockdata *data = calldata; struct nfs4_state *state = data->lsp->ls_state; dprintk("%s: begin!\n", __func__); if (nfs_wait_on_sequence(data->arg.lock_seqid, task) != 0) return; /* Do we need to do an open_to_lock_owner? */ if (!...
0
[ "CWE-119", "CWE-401" ]
linux
7d3e91a89b7adbc2831334def9e494dd9892f9af
297,586,954,707,167,400,000,000,000,000,000,000,000
30
NFSv4: Check for buffer length in __nfs4_get_acl_uncached Commit 1f1ea6c "NFSv4: Fix buffer overflow checking in __nfs4_get_acl_uncached" accidently dropped the checking for too small result buffer length. If someone uses getxattr on "system.nfs4_acl" on an NFSv4 mount supporting ACLs, the ACL has not been cached and...
xsltParseExtElemPrefixes(xsltCompilerCtxtPtr cctxt, xmlNodePtr node, xsltPointerListPtr def, int instrCategory) { xsltPointerListPtr list = NULL; xmlAttrPtr attr; xmlChar *value; int i; if ((cctxt == NULL) || (node == NULL)) return(NULL); if (instrCategory == XSLT_ELEMENT_CATEGORY...
0
[]
libxslt
7089a62b8f133b42a2981cf1f920a8b3fe9a8caa
254,455,413,738,253,840,000,000,000,000,000,000,000
78
Crash compiling stylesheet with DTD * libxslt/xslt.c: when a stylesheet embbeds a DTD the compilation process could get seriously wrong
template<> struct type<long double> {
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
269,036,388,200,493,400,000,000,000,000,000,000,000
1
Fix other issues in 'CImg<T>::load_bmp()'.
static int file_product(STANZA *s) { BIGNUM *a = NULL, *b = NULL, *product = NULL, *ret = NULL; BIGNUM *remainder = NULL, *zero = NULL; int st = 0; if (!TEST_ptr(a = getBN(s, "A")) || !TEST_ptr(b = getBN(s, "B")) || !TEST_ptr(product = getBN(s, "Product")) || !TEST_p...
0
[]
openssl
336923c0c8d705cb8af5216b29a205662db0d590
225,183,453,553,846,760,000,000,000,000,000,000,000
36
Fix a carry overflow bug in bn_sqr_comba4/8 for mips 32-bit targets bn_sqr_comba8 does for instance compute a wrong result for the value: a=0x4aaac919 62056c84 fba7334e 1a6be678 022181ba fd3aa878 899b2346 ee210f45 The correct result is: r=0x15c72e32 605a3061 d11b1012 3c187483 6df96999 bd0c22ba d3e7d437 4724a82f 9...