func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
int ip_options_get(struct net *net, struct ip_options **optp, unsigned char *data, int optlen) { struct ip_options *opt = ip_options_get_alloc(optlen); if (!opt) return -ENOMEM; if (optlen) memcpy(opt->__data, data, optlen); return ip_options_get_finish(net, optp, opt, optlen); }
1
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
256,844,828,391,747,600,000,000,000,000,000,000,000
11
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...
static int cipso_v4_gentag_loc(const struct cipso_v4_doi *doi_def, const struct netlbl_lsm_secattr *secattr, unsigned char *buffer, u32 buffer_len) { if (!(secattr->flags & NETLBL_SECATTR_SECID)) return -EPERM; buffer[0] = CIPSO_V4_TAG_LOCAL; buffer[1] = CIPSO_V4_TAG_LOC_BLEN; *(u32...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
111,921,104,827,126,030,000,000,000,000,000,000,000
14
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...
ccbaGenerateStepChains(CCBORDA *ccba) { l_int32 ncc, nb, n, i, j, k; l_int32 px, py, cx, cy, stepdir; l_int32 dirtab[][3] = {{1, 2, 3}, {0, -1, 4}, {7, 6, 5}}; CCBORD *ccb; NUMA *na; NUMAA *naa; /* step chain code; to be made */ PTA *ptal; PTAA *ptaal; /* local chain code */ PROCNAME("ccbaGener...
0
[ "CWE-125" ]
leptonica
8d6e1755518cfb98536d6c3daf0601f226d16842
290,778,299,453,125,270,000,000,000,000,000,000,000
56
Issue 23433 in oss-fuzz: Heap-buffer-overflow in findNextBorderPixel() * Check pix boundary when looking for the next pixel.
static int em_jcxz(struct x86_emulate_ctxt *ctxt) { if (address_mask(ctxt, ctxt->regs[VCPU_REGS_RCX]) == 0) jmp_rel(ctxt, ctxt->src.val); return X86EMUL_CONTINUE; }
0
[]
kvm
e28ba7bb020f07193bc000453c8775e9d2c0dda7
324,981,284,323,416,500,000,000,000,000,000,000,000
7
KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests will crash (and 64bit guests may behave in a wrong way) for example by simply executing following nasm-demo-application: [bits 32] global _start SECTION .text _start: syscall (I tested it with winxp and linux ...
static void nvme_zone_reset_epilogue_cb(void *opaque, int ret) { NvmeZoneResetAIOCB *iocb = opaque; NvmeRequest *req = iocb->req; NvmeNamespace *ns = req->ns; int64_t moff; int count; if (ret < 0) { nvme_zone_reset_cb(iocb, ret); return; } if (!ns->lbaf.ms) { nv...
0
[]
qemu
736b01642d85be832385063f278fe7cd4ffb5221
65,557,345,931,591,880,000,000,000,000,000,000,000
26
hw/nvme: fix CVE-2021-3929 This fixes CVE-2021-3929 "locally" by denying DMA to the iomem of the device itself. This still allows DMA to MMIO regions of other devices (e.g. doing P2P DMA to the controller memory buffer of another NVMe device). Fixes: CVE-2021-3929 Reported-by: Qiuhao Li <Qiuhao.Li@outlook.com> Review...
static void file_change_m(const char *p, struct branch *b) { static struct strbuf uq = STRBUF_INIT; const char *endp; struct object_entry *oe; unsigned char sha1[20]; uint16_t mode, inline_data = 0; p = get_mode(p, &mode); if (!p) die("Corrupt mode: %s", command_buf.buf); switch (mode) { case 0644: case 07...
0
[ "CWE-119", "CWE-787" ]
git
34fa79a6cde56d6d428ab0d3160cb094ebad3305
39,962,473,054,601,090,000,000,000,000,000,000,000
98
prefer memcpy to strcpy When we already know the length of a string (e.g., because we just malloc'd to fit it), it's nicer to use memcpy than strcpy, as it makes it more obvious that we are not going to overflow the buffer (because the size we pass matches the size in the allocation). This also eliminates calls to st...
Status AuthorizationManager::getBSONForRole(RoleGraph* graph, const RoleName& roleName, mutablebson::Element result) { if (!graph->roleExists(roleName)) { return Status(ErrorCodes::RoleNotFound, mon...
1
[ "CWE-863" ]
mongo
a93cfd354467981c9cf944a4ada748d0226fdfb0
64,918,907,379,324,810,000,000,000,000,000,000,000
37
SERVER-45472 Ensure RoleGraph can serialize authentication restrictions to BSON (cherry picked from commit 521e56b407ac72bc69a97a24d1253f51a5b6e81b) (cherry picked from commit a10d0a22d5d009d27664967181042933ec1bef36) (cherry picked from commit fb87cc88ecb5d300f14cda7bc238d7d5132118f5)
connection_half_edge_is_valid_connected(const smartlist_t *half_conns, streamid_t stream_id) { half_edge_t *half = connection_half_edge_find_stream_id(half_conns, stream_id); if (!half) return 0; if (half->conn...
0
[ "CWE-532" ]
tor
80c404c4b79f3bcba3fc4585d4c62a62a04f3ed9
135,369,017,129,093,820,000,000,000,000,000,000,000
16
Log warning when connecting to soon-to-be-deprecated v2 onions.
void Commissioner::HandleMgmtCommissionerGetResponse(Coap::Message * aMessage, const Ip6::MessageInfo *aMessageInfo, otError aResult) { OT_UNUSED_VARIABLE(aMessageInfo); VerifyOrExi...
0
[ "CWE-787" ]
openthread
c3a3a0c424322009fec3ab735fb20ce8f6e19e70
335,580,725,615,203,570,000,000,000,000,000,000,000
12
[commissioner] use strnlen instead of strlen (#4404)
static int empty_dir(struct inode *inode) { unsigned int offset; struct buffer_head *bh; struct ext4_dir_entry_2 *de, *de1; struct super_block *sb; int err = 0; sb = inode->i_sb; if (inode->i_size < EXT4_DIR_REC_LEN(1) + EXT4_DIR_REC_LEN(2) || !(bh = ext4_bread(NULL, inode, 0, 0, &err))) { if (err) ex...
0
[ "CWE-20" ]
linux-2.6
e6b8bc09ba2075cd91fbffefcd2778b1a00bd76f
130,774,432,597,541,960,000,000,000,000,000,000,000
70
ext4: Add sanity check to make_indexed_dir Make sure the rec_len field in the '..' entry is sane, lest we overrun the directory block and cause a kernel oops on a purposefully corrupted filesystem. Thanks to Sami Liedes for reporting this bug. http://bugzilla.kernel.org/show_bug.cgi?id=12430 Signed-off-by: "Theodor...
fq_find(struct net *net, __be32 id, const struct in6_addr *src, const struct in6_addr *dst) { struct inet_frag_queue *q; struct ip6_create_arg arg; unsigned int hash; arg.id = id; arg.user = IP6_DEFRAG_LOCAL_DELIVER; arg.src = src; arg.dst = dst; read_lock(&ip6_frags.lock); hash = inet6_hash_frag(id, src, ds...
0
[]
linux
3ef0eb0db4bf92c6d2510fe5c4dc51852746f206
213,468,361,705,477,900,000,000,000,000,000,000,000
20
net: frag, move LRU list maintenance outside of rwlock Updating the fragmentation queues LRU (Least-Recently-Used) list, required taking the hash writer lock. However, the LRU list isn't tied to the hash at all, so we can use a separate lock for it. Original-idea-by: Florian Westphal <fw@strlen.de> Signed-off-by: Je...
static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define ThrowDCMException(exception,message) \ { \ if (info.scale != (Quantum *) NULL) \ info.scale=(Quantum *) RelinquishMagickMemory(info.scale); \ if (data != (unsigned char *) NULL) \ data=(unsigned char *) RelinquishMagi...
0
[ "CWE-401" ]
ImageMagick6
210474b2fac6a661bfa7ed563213920e93e76395
288,390,306,388,340,940,000,000,000,000,000,000,000
1,303
Fix ultra rare but potential memory-leak
const_reverse_iterator rbegin() const { return ordered_.rbegin(); }
0
[ "CWE-476", "CWE-908" ]
tensorflow
237822b59fc504dda2c564787f5d3ad9c4aa62d9
121,205,585,315,335,870,000,000,000,000,000,000,000
1
Fix tf.compat.v1.placeholder_with_default vulnerability with quantized types. When iterating through the tensor to extract shape values, an underlying missing kernel (`StridedSlice` for quantized types) causes an error, which then results in a `nullptr` being passed to `ParseDimensionValue()`, causing a segfault. The...
void ConnectionManagerImpl::ActiveStream::encodeMetadata(MetadataMapVector& metadata) { ENVOY_STREAM_LOG(debug, "encoding metadata via codec:\n{}", *this, metadata); response_encoder_->encodeMetadata(metadata); }
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
184,581,306,501,738,500,000,000,000,000,000,000,000
4
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
TEST(HttpStatusChecker, InvalidExpectedRange) { const std::string yaml = R"EOF( timeout: 1s interval: 1s unhealthy_threshold: 2 healthy_threshold: 2 http_health_check: service_name_matcher: prefix: locations path: /healthchecka expected_statuses: - start: 200 end: 200 )EO...
0
[ "CWE-476" ]
envoy
9b1c3962172a972bc0359398af6daa3790bb59db
152,674,538,436,289,400,000,000,000,000,000,000,000
23
healthcheck: fix grpc inline removal crashes (#749) Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
static int io_madvise_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { #if defined(CONFIG_ADVISE_SYSCALLS) && defined(CONFIG_MMU) if (sqe->ioprio || sqe->buf_index || sqe->off) return -EINVAL; req->madvise.addr = READ_ONCE(sqe->addr); req->madvise.len = READ_ONCE(sqe->len); req->madvise.advice = READ...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
78,472,975,982,708,450,000,000,000,000,000,000,000
14
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
void *av_realloc_array(void *ptr, size_t nmemb, size_t size) { if (size <= 0 || nmemb >= INT_MAX / size) return NULL; return av_realloc(ptr, nmemb * size); }
0
[ "CWE-476" ]
FFmpeg
c94f9e854228e0ea00e1de8769d8d3f7cab84a55
313,939,914,412,360,270,000,000,000,000,000,000,000
6
avutil/mem: Fix flipped condition Fixes return code and later null pointer dereference Found-by: Laurent Butti <laurentb@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static void vmx_cpuid_update(struct kvm_vcpu *vcpu) { struct kvm_cpuid_entry2 *best; struct vcpu_vmx *vmx = to_vmx(vcpu); u32 secondary_exec_ctl = vmx_secondary_exec_control(vmx); if (vmx_rdtscp_supported()) { bool rdtscp_enabled = guest_cpuid_has_rdtscp(vcpu); if (!rdtscp_enabled) secondary_exec_ctl &= ~SE...
0
[ "CWE-399" ]
linux
54a20552e1eae07aa240fa370a0293e006b5faed
50,567,241,802,652,160,000,000,000,000,000,000,000
43
KVM: x86: work around infinite loop in microcode when #AC is delivered It was found that a guest can DoS a host by triggering an infinite stream of "alignment check" (#AC) exceptions. This causes the microcode to enter an infinite loop where the core never receives another interrupt. The host kernel panics pretty qu...
static int rtw_wx_set_enc_ext(struct net_device *dev, struct iw_request_info *info, union iwreq_data *wrqu, char *extra) { char *alg_name; u32 param_len; struct ieee_param *param = NULL; struct iw_point *pencoding = &wrqu->encoding; struct iw_encode_ext *pext = (struct iw_encode_ext *)extra; int...
0
[ "CWE-787" ]
linux
74b6b20df8cfe90ada777d621b54c32e69e27cd7
99,866,313,314,807,740,000,000,000,000,000,000,000
69
staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan() This code has a check to prevent read overflow but it needs another check to prevent writing beyond the end of the ->ssid[] array. Fixes: a2c60d42d97c ("staging: r8188eu: Add files for new driver - part 16") Signed-off-by: Dan Carpenter <dan.carpenter@o...
void uwbd_start(struct uwb_rc *rc) { struct task_struct *task = kthread_run(uwbd, rc, "uwbd"); if (IS_ERR(task)) { rc->uwbd.task = NULL; printk(KERN_ERR "UWB: Cannot start management daemon; " "UWB won't work\n"); } else { rc->uwbd.task = task; rc->uwbd.pid = rc->uwbd.task->pid; } }
0
[ "CWE-119", "CWE-787" ]
linux
bbf26183b7a6236ba602f4d6a2f7cade35bba043
209,499,419,420,737,800,000,000,000,000,000,000,000
12
uwb: properly check kthread_run return value uwbd_start() calls kthread_run() and checks that the return value is not NULL. But the return value is not NULL in case kthread_run() fails, it takes the form of ERR_PTR(-EINTR). Use IS_ERR() instead. Also add a check to uwbd_stop(). Signed-off-by: Andrey Konovalov <andr...
static void sctp_unhash(struct sock *sk) { /* STUB */ }
0
[]
linux-2.6
5e739d1752aca4e8f3e794d431503bfca3162df4
48,842,436,698,641,440,000,000,000,000,000,000,000
4
sctp: fix potential panics in the SCTP-AUTH API. All of the SCTP-AUTH socket options could cause a panic if the extension is disabled and the API is envoked. Additionally, there were some additional assumptions that certain pointers would always be valid which may not always be the case. This patch hardens the API a...
R_API void r_bin_java_print_interfacemethodref_cp_summary(RBinJavaCPTypeObj *obj) { if (obj == NULL) { eprintf ("Attempting to print an invalid RBinJavaCPTypeObj* InterfaceMethodRef.\n"); return; } eprintf ("InterfaceMethodRef ConstantPool Type (%d) ", obj->metas->ord); eprintf (" Offset: 0x%08"PFMT64x"", obj-...
0
[ "CWE-787" ]
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
243,226,510,011,520,480,000,000,000,000,000,000,000
10
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
find_NS(struct reply_info* rep, size_t from, size_t to) { size_t i; for(i=from; i<to; i++) { if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) return rep->rrsets[i]; } return NULL; }
0
[ "CWE-400" ]
unbound
ba0f382eee814e56900a535778d13206b86b6d49
252,070,772,095,495,220,000,000,000,000,000,000,000
9
- CVE-2020-12662 Unbound can be tricked into amplifying an incoming query into a large number of queries directed to a target. - CVE-2020-12663 Malformed answers from upstream name servers can be used to make Unbound unresponsive.
k5_asn1_decode_bool(const uint8_t *asn1, size_t len, intmax_t *val) { if (len != 1) return ASN1_BAD_LENGTH; *val = (*asn1 != 0); return 0; }
0
[ "CWE-674", "CWE-787" ]
krb5
57415dda6cf04e73ffc3723be518eddfae599bfd
206,495,691,790,481,760,000,000,000,000,000,000,000
7
Add recursion limit for ASN.1 indefinite lengths The libkrb5 ASN.1 decoder supports BER indefinite lengths. It computes the tag length using recursion; the lack of a recursion limit allows an attacker to overrun the stack and cause the process to crash. Reported by Demi Obenour. CVE-2020-28196: In MIT krb5 release...
int rta_addattr16(struct rtattr *rta, int maxlen, int type, __u16 data) { return rta_addattr_l(rta, maxlen, type, &data, sizeof(__u16)); }
0
[]
iproute2
8c50b728b226f6254251282697ce38a72639a6fc
82,021,477,786,329,050,000,000,000,000,000,000,000
4
libnetlink: fix use-after-free of message buf In __rtnl_talk_iov() main loop, err is a pointer to memory in dynamically allocated 'buf' that is used to store netlink messages. If netlink message is an error message, buf is deallocated before returning with error code. However, on return err->error code is checked one ...
cifs_wake_up_task(struct mid_q_entry *mid) { wake_up_process(mid->callback_data); }
0
[ "CWE-362" ]
linux
ea702b80e0bbb2448e201472127288beb82ca2fe
196,407,626,765,636,830,000,000,000,000,000,000,000
4
cifs: move check for NULL socket into smb_send_rqst Cai reported this oops: [90701.616664] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028 [90701.625438] IP: [<ffffffff814a343e>] kernel_setsockopt+0x2e/0x60 [90701.632167] PGD fea319067 PUD 103fda4067 PMD 0 [90701.637255] Oops: 0000 [#1] SMP ...
int main(void) { int fd; unsigned int i; unsigned int start = 0; unsigned int _gap = ~0; unsigned int gap = _gap / 8; struct qcedev_cipher_op_req req = { 0 }; //char data[32] = { A }; char *data; fd = open(dev, O_RDWR); if (fd < 0) { printf("Failed to open %s with errno %s\n", dev, strerror(errno))...
0
[ "CWE-190", "CWE-284" ]
android_security
0dd1a733e60cf5239c0a185d4219ba2ef1118a8b
289,384,200,183,128,960,000,000,000,000,000,000,000
22
CVE-2017-0576 Android Security Bulletin—April 2017
} static inline zend_object_value date_object_new_date_ex(zend_class_entry *class_type, php_date_obj **ptr TSRMLS_DC) { php_date_obj *intern; zend_object_value retval; intern = emalloc(sizeof(php_date_obj)); memset(intern, 0, sizeof(php_date_obj)); if (ptr) { *ptr = intern; } zend_object_std_init(&intern->s...
0
[]
php-src
bb057498f7457e8b2eba98332a3bad434de4cf12
310,383,382,627,030,520,000,000,000,000,000,000,000
19
Fix #70277: new DateTimeZone($foo) is ignoring text after null byte The DateTimeZone constructors are not binary safe. They're parsing the timezone as string, but discard the length when calling timezone_initialize(). This patch adds a tz_len parameter and a respective check to timezone_initialize().
static int packet_rcv_spkt(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt, struct net_device *orig_dev) { struct sock *sk; struct sockaddr_pkt *spkt; /* * When we registered the protocol we saved the socket in the data * field for just this event. */ sk = pt->af_packet_priv; /* ...
0
[ "CWE-909" ]
linux-2.6
67286640f638f5ad41a946b9a3dc75327950248f
46,101,392,885,854,845,000,000,000,000,000,000,000
65
net: packet: fix information leak to userland packet_getname_spkt() doesn't initialize all members of sa_data field of sockaddr struct if strlen(dev->name) < 13. This structure is then copied to userland. It leads to leaking of contents of kernel stack memory. We have to fully fill sa_data with strncpy() instead of ...
f_term_gettty(typval_T *argvars, typval_T *rettv) { buf_T *buf = term_get_buf(argvars, "term_gettty()"); char_u *p = NULL; int num = 0; rettv->v_type = VAR_STRING; if (buf == NULL) return; if (argvars[1].v_type != VAR_UNKNOWN) num = tv_get_number(&argvars[1]); switch (num) { case 0...
0
[ "CWE-476" ]
vim
cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8
330,560,647,954,607,300,000,000,000,000,000,000,000
29
patch 8.1.0633: crash when out of memory while opening a terminal window Problem: Crash when out of memory while opening a terminal window. Solution: Handle out-of-memory more gracefully.
static void pvclock_gtod_update_fn(struct work_struct *work) { struct kvm *kvm; struct kvm_vcpu *vcpu; int i; spin_lock(&kvm_lock); list_for_each_entry(kvm, &vm_list, vm_list) kvm_for_each_vcpu(i, vcpu, kvm) set_bit(KVM_REQ_MASTERCLOCK_UPDATE, &vcpu->requests); atomic_set(&kvm_guest_has_master_clock, 0); ...
0
[ "CWE-119", "CWE-703", "CWE-120" ]
linux
a08d3b3b99efd509133946056531cdf8f3a0c09b
175,465,150,632,146,100,000,000,000,000,000,000,000
14
kvm: x86: fix emulator buffer overflow (CVE-2014-0049) The problem occurs when the guest performs a pusha with the stack address pointing to an mmio address (or an invalid guest physical address) to start with, but then extending into an ordinary guest physical address. When doing repeated emulated pushes emulator_re...
lka_report_smtp_tx_rollback(const char *direction, struct timeval *tv, uint64_t reqid, uint32_t msgid) { report_smtp_broadcast(reqid, direction, tv, "tx-rollback", "%08x\n", msgid); }
0
[ "CWE-476" ]
src
6c3220444ed06b5796dedfd53a0f4becd903c0d1
232,444,684,711,450,670,000,000,000,000,000,000,000
5
smtpd's filter state machine can prematurely release resources leading to a crash. From gilles@
static void gen_exts(TCGMemOp ot, TCGv reg) { gen_ext_tl(reg, reg, ot, true); }
0
[ "CWE-94" ]
qemu
30663fd26c0307e414622c7a8607fbc04f92ec14
213,663,756,267,097,970,000,000,000,000,000,000,000
4
tcg/i386: Check the size of instruction being translated This fixes the bug: 'user-to-root privesc inside VM via bad translation caching' reported by Jann Horn here: https://bugs.chromium.org/p/project-zero/issues/detail?id=1122 Reviewed-by: Richard Henderson <rth@twiddle.net> CC: Peter Maydell <peter.maydell@linaro....
inline int GetMaxDistance() { return FLAGS_max_distance; }
0
[ "CWE-120" ]
brotli
223d80cfbec8fd346e32906c732c8ede21f0cea6
331,228,974,589,464,260,000,000,000,000,000,000,000
3
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
R_API RBinJavaAttrInfo *r_bin_java_synthetic_attr_new(RBinJavaObj *bin, ut8 *buffer, ut64 sz, ut64 buf_offset) { ut64 offset = 0; RBinJavaAttrInfo *attr = r_bin_java_default_attr_new (bin, buffer, sz, buf_offset); if (!attr) { return NULL; } offset += 6; attr->type = R_BIN_JAVA_ATTR_TYPE_SYNTHETIC_ATTR; attr->...
1
[ "CWE-119", "CWE-788" ]
radare2
6c4428f018d385fc80a33ecddcb37becea685dd5
150,624,547,213,956,340,000,000,000,000,000,000,000
11
Improve boundary checks to fix oobread segfaults ##crash * Reported by Cen Zhang via huntr.dev * Reproducer: bins/fuzzed/javaoob-havoc.class
static inline pmd_t pte_pmd(pte_t pte) { return __pmd(pte_val(pte)); }
0
[ "CWE-241", "CWE-19" ]
linux
5a0fdfada3a2aa50d7b947a2e958bf00cbe0d830
300,515,205,555,744,260,000,000,000,000,000,000,000
4
Revert "arm64: Introduce execute-only page access permissions" This reverts commit bc07c2c6e9ed125d362af0214b6313dca180cb08. While the aim is increased security for --x memory maps, it does not protect against kernel level reads. Until SECCOMP is implemented for arm64, revert this patch to avoid giving a false idea o...
const string name() override { return "delete_bucket"; }
0
[ "CWE-770" ]
ceph
ab29bed2fc9f961fe895de1086a8208e21ddaddc
167,501,348,834,395,730,000,000,000,000,000,000,000
1
rgw: fix issues with 'enforce bounds' patch The patch to enforce bounds on max-keys/max-uploads/max-parts had a few issues that would prevent us from compiling it. Instead of changing the code provided by the submitter, we're addressing them in a separate commit to maintain the DCO. Signed-off-by: Joao Eduardo Luis <...
void sk_destruct(struct sock *sk) { if (sock_flag(sk, SOCK_RCU_FREE)) call_rcu(&sk->sk_rcu, __sk_destruct); else __sk_destruct(&sk->sk_rcu); }
0
[ "CWE-119", "CWE-787" ]
linux
b98b0bc8c431e3ceb4b26b0dfc8db509518fb290
271,574,333,259,240,750,000,000,000,000,000,000,000
7
net: avoid signed overflows for SO_{SND|RCV}BUFFORCE CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various memory corruptions, crashes, OOM... Note that before commit 82981930125a ("net: cleanups in sock_setsockopt()"), the bug was even more serious, since ...
event_slant_change( double delta ) { status.slant += delta; if ( status.slant > 1.0 ) status.slant = 1.0; else if ( status.slant < -1.0 ) status.slant = -1.0; sprintf( status.header_buffer, "slanting changed to %.3f", status.slant ); status.header = status.header_buf...
0
[ "CWE-120" ]
freetype2-demos
b995299b73ba4cd259f221f500d4e63095508bec
117,069,881,190,687,400,000,000,000,000,000,000,000
14
Fix Savannah bug #30054. * src/ftdiff.c, src/ftgrid.c, src/ftmulti.c, src/ftstring.c, src/ftview.c: Use precision for `%s' where appropriate to avoid buffer overflows.
static int io_close(struct io_kiocb *req, unsigned int issue_flags) { struct files_struct *files = current->files; struct io_close *close = &req->close; struct fdtable *fdt; struct file *file; int ret; file = NULL; ret = -EBADF; spin_lock(&files->file_lock); fdt = files_fdtable(files); if (close->fd >= fdt->...
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
64,902,806,324,273,390,000,000,000,000,000,000,000
52
io_uring: ensure that SQPOLL thread is started for exit If we create it in a disabled state because IORING_SETUP_R_DISABLED is set on ring creation, we need to ensure that we've kicked the thread if we're exiting before it's been explicitly disabled. Otherwise we can run into a deadlock where exit is waiting go park t...
static CServer *CreateServer() { return new CServer(); }
0
[ "CWE-20" ]
teeworlds
a766cb44bcffcdb0b88e776d01c5ee1323d44f85
273,705,966,599,876,270,000,000,000,000,000,000,000
1
fixed a server crash
create_worker_threads(uint n) { comp_thread_ctxt_t *threads; uint i; threads = (comp_thread_ctxt_t *) my_malloc(sizeof(comp_thread_ctxt_t) * n, MYF(MY_FAE)); for (i = 0; i < n; i++) { comp_thread_ctxt_t *thd = threads + i; thd->num = i + 1; thd->cancelled = FALSE; thd->data_avail = FALSE; thd->to...
0
[ "CWE-703" ]
edgeless-mariadb
91d5fffa0796b8208c3d6633c8f296da8914af4d
232,589,376,364,524,100,000,000,000,000,000,000,000
43
MDEV-28719: compress_write() leaks data_mutex on error
intro_point_should_expire_now(rend_intro_point_t *intro, time_t now) { tor_assert(intro != NULL); if (intro->time_published == -1) { /* Don't expire an intro point if we haven't even published it yet. */ return 0; } if (intro_point_accepted_intro_count(intro) >= int...
0
[ "CWE-532" ]
tor
09ea89764a4d3a907808ed7d4fe42abfe64bd486
290,928,483,820,091,820,000,000,000,000,000,000,000
34
Fix log-uninitialized-stack bug in rend_service_intro_established. Fixes bug 23490; bugfix on 0.2.7.2-alpha. TROVE-2017-008 CVE-2017-0380
static inline bool page_poisoning_enabled(void) { return false; }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
5,455,809,452,413,328,000,000,000,000,000,000,000
1
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
static inline void hrtimer_init_hres(struct hrtimer_cpu_base *base) { base->expires_next = KTIME_MAX; base->hres_active = 0; }
0
[ "CWE-200" ]
tip
dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
138,721,249,143,005,140,000,000,000,000,000,000,000
5
time: Remove CONFIG_TIMER_STATS Currently CONFIG_TIMER_STATS exposes process information across namespaces: kernel/time/timer_list.c print_timer(): SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); /proc/timer_list: #11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570 Given that the trac...
void hostap_dump_rx_header(const char *name, const struct hfa384x_rx_frame *rx) { u16 status, fc; status = __le16_to_cpu(rx->status); printk(KERN_DEBUG "%s: RX status=0x%04x (port=%d, type=%d, " "fcserr=%d) silence=%d signal=%d rate=%d rxflow=%d; " "jiffies=%ld\n", name, status, (status >> ...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
69,806,713,734,578,470,000,000,000,000,000,000,000
29
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
static int get_client_finished(SSL *s) { unsigned char *p; int i, n; unsigned long len; p = (unsigned char *)s->init_buf->data; if (s->state == SSL2_ST_GET_CLIENT_FINISHED_A) { i = ssl2_read(s, (char *)&(p[s->init_num]), 1 - s->init_num); if (i < 1 - s->init_num) return ...
0
[ "CWE-20" ]
openssl
86f8fb0e344d62454f8daf3e15236b2b59210756
321,263,815,606,903,730,000,000,000,000,000,000,000
53
Fix reachable assert in SSLv2 servers. This assert is reachable for servers that support SSLv2 and export ciphers. Therefore, such servers can be DoSed by sending a specially crafted SSLv2 CLIENT-MASTER-KEY. Also fix s2_srvr.c to error out early if the key lengths are malformed. These lengths are sent unencrypted, so...
may_adjust_incsearch_highlighting( int firstc, long count, incsearch_state_T *is_state, int c) { int skiplen, patlen; pos_T t; char_u *pat; int search_flags = SEARCH_NOOF; int i; int save; int search_delim; // Parsing range may already set the last searc...
0
[ "CWE-416" ]
vim
1c3dd8ddcba63c1af5112e567215b3cec2de11d0
280,253,986,723,447,330,000,000,000,000,000,000,000
113
patch 9.0.0490: using freed memory with cmdwin and BufEnter autocmd Problem: Using freed memory with cmdwin and BufEnter autocmd. Solution: Make sure pointer to b_p_iminsert is still valid.
routerset_add_country(const char *c) { char country[3]; country_t cc; /* XXXX: Country codes must be of the form \{[a-z\?]{2}\} but this accepts \{[.]{2}\}. Do we need to be strict? -RH */ /* Nope; if the country code is bad, we'll get 0 when we look it up. */ if (!geoip_is_loaded()) { log(LOG_WARN...
0
[ "CWE-399" ]
tor
308f6dad20675c42b29862f4269ad1fbfb00dc9a
232,255,711,022,216,300,000,000,000,000,000,000,000
25
Mitigate a side-channel leak of which relays Tor chooses for a circuit Tor's and OpenSSL's current design guarantee that there are other leaks, but this one is likely to be more easily exploitable, and is easy to fix.
GF_Err abst_box_read(GF_Box *s, GF_BitStream *bs) { GF_AdobeBootstrapInfoBox *ptr = (GF_AdobeBootstrapInfoBox *)s; int i; u32 tmp_strsize; char *tmp_str; GF_Err e; ISOM_DECREASE_SIZE(ptr, 25) ptr->bootstrapinfo_version = gf_bs_read_u32(bs); ptr->profile = gf_bs_read_int(bs, 2); ptr->live = gf_bs_read_int(bs, ...
1
[ "CWE-125" ]
gpac
093283e727f396130651280609e687cd4778e0d1
121,272,689,350,944,960,000,000,000,000,000,000,000
123
fixed #1564
static inline int process_nested_data(UNSERIALIZE_PARAMETER, HashTable *ht, long elements, int objprops) { while (elements-- > 0) { zval *key, *data, **old_data; ALLOC_INIT_ZVAL(key); if (!php_var_unserialize(&key, p, max, NULL TSRMLS_CC)) { zval_dtor(key); FREE_ZVAL(key); return 0; } if (Z_TYPE_...
1
[ "CWE-94" ]
php-src
b585a3aed7880a5fa5c18e2b838fc96f40e075bd
55,884,705,804,334,810,000,000,000,000,000,000,000
65
Fix for bug #68710 (Use After Free Vulnerability in PHP's unserialize())
static void zap_handler (void *handler) { // Process ZAP requests forever while (true) { char *version = s_recv (handler); if (!version) break; // Terminating char *sequence = s_recv (handler); char *domain = s_recv (handler); char *address = s_rec...
0
[]
libzmq
77f14aad95cdf0d2a244ae9b4a025e5ba0adf01a
325,174,842,056,765,650,000,000,000,000,000,000,000
48
Problem: stream_engine.cpp security can be downgraded Solution: accept only the mechanism defined by the socket options. I've not tested this yet, so it's a speculative fix.
int PDFDoc::getNumPages() { if (isLinearized()) { int n; if ((n = getLinearization()->getNumPages())) { return n; } } return catalog->getNumPages(); }
0
[ "CWE-20" ]
poppler
9fd5ec0e6e5f763b190f2a55ceb5427cfe851d5f
33,847,384,562,536,060,000,000,000,000,000,000,000
11
PDFDoc::setup: Fix return value At that point xref can have gone wrong since extractPDFSubtype() can have caused a reconstruct that broke stuff so instead of unconditionally returning true, return xref->isOk() Fixes #706
nfsd4_security_inode_setsecctx(struct svc_fh *resfh, struct xdr_netobj *label, u32 *bmval) { }
0
[ "CWE-20", "CWE-129" ]
linux
b550a32e60a4941994b437a8d662432a486235a5
165,265,382,902,842,910,000,000,000,000,000,000,000
2
nfsd: fix undefined behavior in nfsd4_layout_verify UBSAN: Undefined behaviour in fs/nfsd/nfs4proc.c:1262:34 shift exponent 128 is too large for 32-bit type 'int' Depending on compiler+architecture, this may cause the check for layout_type to succeed for overly large values (which seems to be the case with amd64)...
static int submodule_needs_pushing(const char *path, struct oid_array *commits) { if (!submodule_has_commits(path, commits)) /* * NOTE: We do consider it safe to return "no" here. The * correct answer would be "We do not know" instead of * "No push needed", but it is quite hard to change * the submodule ...
0
[]
git
a8dee3ca610f5a1d403634492136c887f83b59d2
327,559,181,641,947,540,000,000,000,000,000,000,000
43
Disallow dubiously-nested submodule git directories Currently it is technically possible to let a submodule's git directory point right into the git dir of a sibling submodule. Example: the git directories of two submodules with the names `hippo` and `hippo/hooks` would be `.git/modules/hippo/` and `.git/modules/hipp...
is_vlan_txd(uint32_t txd_lower) { return ((txd_lower & E1000_TXD_CMD_VLE) != 0); }
0
[ "CWE-120" ]
qemu
b0d9ffcd0251161c7c92f94804dcf599dfa3edeb
73,432,294,354,520,660,000,000,000,000,000,000,000
4
e1000: Discard packets that are too long if !SBP and !LPE The e1000_receive function for the e1000 needs to discard packets longer than 1522 bytes if the SBP and LPE flags are disabled. The linux driver assumes this behavior and allocates memory based on this assumption. Signed-off-by: Michael Contreras <michael@inet...
static inline int alloc_consistency_checks(struct kmem_cache *s, struct page *page, void *object) { if (!check_slab(s, page)) return 0; if (!check_valid_pointer(s, page, object)) { object_err(s, page, object, "Freelist Pointer check fails"); return 0; } if (!check_object(s, page, object, SLUB_RED_INACT...
0
[]
linux
fd4d9c7d0c71866ec0c2825189ebd2ce35bd95b8
291,314,068,003,866,730,000,000,000,000,000,000,000
16
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...
OFBool DcmSCP::checkCalledAETitleAccepted(const OFString& calledAETitle) { return OFTrue; }
0
[ "CWE-264" ]
dcmtk
beaf5a5c24101daeeafa48c375120b16197c9e95
324,372,105,547,231,480,000,000,000,000,000,000,000
4
Make sure to handle setuid() return code properly. In some tools the return value of setuid() is not checked. In the worst case this could lead to privilege escalation since the process does not give up its root privileges and continue as root.
static NTSTATUS dcesrv_lsa_CreateAccount(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct lsa_CreateAccount *r) { struct lsa_account_state *astate; struct lsa_policy_state *state; struct dcesrv_handle *h, *ah; ZERO_STRUCTP(r->out.acct_handle); DCESRV_PULL_HANDLE(h, r->in.handle, LSA_HANDLE_...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
144,682,794,778,299,800,000,000,000,000,000,000,000
56
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
stf_status ikev2parent_inR1outI2(struct msg_digest *md) { struct state *st = md->st; /* struct connection *c = st->st_connection; */ pb_stream *keyex_pbs; /* check if the responder replied with v2N with DOS COOKIE */ if ( md->chain[ISAKMP_NEXT_v2N] && md->chain[ISAKMP_NEXT_v2N]->payload.v2n.isan_type == ...
0
[ "CWE-20" ]
libreswan
2899351224fe2940aec37d7656e1e392c0fe07f0
119,222,383,637,413,480,000,000,000,000,000,000,000
121
SECURITY: Properly handle IKEv2 I1 notification packet without KE payload
GF_Err rely_Read(GF_Box *s, GF_BitStream *bs) { GF_RelyHintBox *ptr = (GF_RelyHintBox *)s; ptr->reserved = gf_bs_read_int(bs, 6); ptr->prefered = gf_bs_read_int(bs, 1); ptr->required = gf_bs_read_int(bs, 1); return GF_OK; }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
237,752,322,913,140,200,000,000,000,000,000,000,000
8
prevent dref memleak on invalid input (#1183)
static void fib6_rt_dump(struct fib6_info *rt, struct fib6_dump_arg *arg) { if (rt == arg->net->ipv6.fib6_null_entry) return; call_fib6_entry_notifier(arg->nb, arg->net, FIB_EVENT_ENTRY_ADD, rt); }
0
[ "CWE-755" ]
linux
7b09c2d052db4b4ad0b27b97918b46a7746966fa
114,256,089,562,015,530,000,000,000,000,000,000,000
6
ipv6: fix a typo in fib6_rule_lookup() Yi Ren reported an issue discovered by syzkaller, and bisected to the cited commit. Many thanks to Yi, this trivial patch does not reflect the patient work that has been done. Fixes: d64a1f574a29 ("ipv6: honor RT6_LOOKUP_F_DST_NOREF in rule lookup logic") Signed-off-by: Eric Du...
int idle_cpu(int cpu) { struct rq *rq = cpu_rq(cpu); if (rq->curr != rq->idle) return 0; if (rq->nr_running) return 0; #ifdef CONFIG_SMP if (!llist_empty(&rq->wake_list)) return 0; #endif return 1; }
0
[ "CWE-119" ]
linux
29d6455178a09e1dc340380c582b13356227e8df
88,241,098,151,100,410,000,000,000,000,000,000,000
17
sched: panic on corrupted stack end Until now, hitting this BUG_ON caused a recursive oops (because oops handling involves do_exit(), which calls into the scheduler, which in turn raises an oops), which caused stuff below the stack to be overwritten until a panic happened (e.g. via an oops in interrupt context, cause...
void Scan::WriteFrameType(class ByteStream *io) { assert(m_pParser); // // Do not write the frame type of hidden scans. if (m_bHidden) { assert(m_pNext); m_pNext->WriteFrameType(io); } else { m_pParser->WriteFrameType(io); } }
0
[ "CWE-476" ]
libjpeg
ea6315164b1649ff932a396b7600eac4bffcfaba
70,861,979,203,470,920,000,000,000,000,000,000,000
13
Added a check whether all components in a scan are actually present.
gx_device_copy_params(gx_device *dev, const gx_device *target) { #define COPY_ARRAY_PARAM(p) memcpy(dev->p, target->p, sizeof(dev->p)) COPY_PARAM(width); COPY_PARAM(height); COPY_ARRAY_PARAM(MediaSize); COPY_ARRAY_PARAM(ImagingBBox); COPY_PARAM(ImagingBBox_set); COPY_ARRA...
0
[]
ghostpdl
79cccf641486a6595c43f1de1cd7ade696020a31
168,200,360,949,100,280,000,000,000,000,000,000,000
16
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...
static bool bnx2x_check_blocks_with_parity2(struct bnx2x *bp, u32 sig, int *par_num, bool print) { u32 cur_bit; bool res; int i; res = false; for (i = 0; sig; i++) { cur_bit = (0x1UL << i); if (sig & cur_bit) { res = true; /* Each bit is real error! */ if (print) { switch (cur_bit) { c...
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
37,965,176,034,371,616,000,000,000,000,000,000,000
73
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
void cgit_log_link(const char *name, const char *title, const char *class, const char *head, const char *rev, const char *path, int ofs, const char *grep, const char *pattern, int showmsg, int follow) { char *delim; delim = repolink(title, class, "log", head, path); if (rev && ctx.qry.head && strcmp(...
0
[]
cgit
513b3863d999f91b47d7e9f26710390db55f9463
124,710,011,074,526,410,000,000,000,000,000,000,000
42
ui-shared: prevent malicious filename from injecting headers
static enum_func_status mysqlnd_read_header(MYSQLND_PFC * pfc, MYSQLND_VIO * vio, MYSQLND_PACKET_HEADER * header, MYSQLND_STATS * conn_stats, MYSQLND_ERROR_INFO * error_info) { zend_uchar buffer[MYSQLND_HEADER_SIZE]; DBG_ENTER(mysqlnd_read_header_name); DBG_INF_FMT("compressed=%u", pfc->data->compressed); if ...
0
[ "CWE-120" ]
php-src
58006537fc5f133ae8549efe5118cde418b3ace9
70,709,863,088,839,590,000,000,000,000,000,000,000
36
Fix bug #81719: mysqlnd/pdo password buffer overflow
static int sctp_copy_laddrs(struct sock *sk, __u16 port, void *to, size_t space_left, int *bytes_copied) { struct sctp_sockaddr_entry *addr; union sctp_addr temp; int cnt = 0; int addrlen; struct net *net = sock_net(sk); rcu_read_lock(); list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { ...
0
[ "CWE-617", "CWE-362" ]
linux
2dcab598484185dea7ec22219c76dcdd59e3cb90
312,315,000,186,063,170,000,000,000,000,000,000,000
43
sctp: avoid BUG_ON on sctp_wait_for_sndbuf Alexander Popov reported that an application may trigger a BUG_ON in sctp_wait_for_sndbuf if the socket tx buffer is full, a thread is waiting on it to queue more data and meanwhile another thread peels off the association being used by the first thread. This patch replaces ...
uint64 KaxInternalBlock::ClusterPosition() const { assert(ParentCluster != NULL); // impossible otherwise return ParentCluster->GetPosition(); }
0
[ "CWE-200", "CWE-399", "CWE-119" ]
libmatroska
0a2d3e3644a7453b6513db2f9bc270f77943573f
33,919,006,996,456,313,000,000,000,000,000,000,000
5
KaxBlockInternal: check EBML lace sizes against available buffer space
DeepScanLineInputFile::Data::getLineBuffer (int lineBufferNumber) { return lineBuffers[lineBufferNumber % lineBuffers.size()]; }
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
83,871,411,066,830,440,000,000,000,000,000,000,000
4
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
inline void SegmentBuilder::reset() { word* start = getPtrUnchecked(0 * WORDS); memset(start, 0, (pos - start) * sizeof(word)); pos = start; }
0
[ "CWE-400", "CWE-703" ]
capnproto
104870608fde3c698483fdef6b97f093fc15685d
115,008,908,950,054,300,000,000,000,000,000,000,000
5
SECURITY: CPU usage amplification attack. Details: https://github.com/sandstorm-io/capnproto/tree/master/security-advisories/2014-03-02-0-all-cpu-amplification.md
php_apache_sapi_register_variables(zval *track_vars_array TSRMLS_DC) { php_struct *ctx = SG(server_context); const apr_array_header_t *arr = apr_table_elts(ctx->r->subprocess_env); char *key, *val; int new_val_len; APR_ARRAY_FOREACH_OPEN(arr, key, val) if (!val) { val = ""; } if (sapi_module.input_filter...
0
[ "CWE-190", "CWE-79" ]
php-src
23b057742e3cf199612fa8050ae86cae675e214e
291,218,752,911,332,600,000,000,000,000,000,000,000
20
Fix for bug #76582 The brigade seems to end up in a messed up state if something fails in shutdown, so we clean it up.
static const char* get_compile_time(Sdb *binFileSdb) { Sdb *info_ns = sdb_ns (binFileSdb, "info", false); const char *timeDateStamp_string = sdb_const_get (info_ns, "image_file_header.TimeDateStamp_string", 0); return timeDateStamp_string; }
0
[ "CWE-78" ]
radare2
5411543a310a470b1257fb93273cdd6e8dfcb3af
172,226,513,070,547,230,000,000,000,000,000,000,000
6
More fixes for the CVE-2019-14745
GF_Err afra_box_dump(GF_Box *a, FILE * trace) { u32 i; GF_AdobeFragRandomAccessBox *p = (GF_AdobeFragRandomAccessBox*)a; gf_isom_box_dump_start(a, "AdobeFragmentRandomAccessBox", trace); gf_fprintf(trace, "LongIDs=\"%u\" LongOffsets=\"%u\" TimeScale=\"%u\">\n", p->long_ids, p->long_offsets, p->time_scale); for (...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
73,450,763,766,406,800,000,000,000,000,000,000,000
22
fixed #2138
int FLTCheckInvalidProperty(FilterEncodingNode *psFilterNode, mapObj *map, int i) { int status = MS_SUCCESS; if (psFilterNode->eType == FILTER_NODE_TYPE_COMPARISON && psFilterNode->psLeftNode != NULL && psFilterNode->psLeftNode->eType == FILTER_NODE_TYPE_PROPERTYNAM...
0
[ "CWE-200", "CWE-119" ]
mapserver
e52a436c0e1c5e9f7ef13428dba83194a800f4df
114,800,389,477,870,790,000,000,000,000,000,000,000
60
security fix (patch by EvenR)
Item *Item_cache_temporal::clone_item(THD *thd) { Item_cache *tmp= type_handler()->Item_get_cache(thd, this); Item_cache_temporal *item= static_cast<Item_cache_temporal*>(tmp); item->store_packed(value, example); return item; }
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
41,349,146,053,985,990,000,000,000,000,000,000,000
7
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
static inline Quantum ClampPixel(const MagickRealType pixel) { if (pixel < 0.0f) return((Quantum) 0); if (pixel >= (MagickRealType) QuantumRange) return((Quantum) QuantumRange); #if !defined(MAGICKCORE_HDRI_SUPPORT) return((Quantum) (pixel+0.5f)); #else return((Quantum) pixel); #endif }
0
[ "CWE-20", "CWE-125" ]
ImageMagick
8187d2d8fd010d2d6b1a3a8edd935beec404dddc
300,387,881,650,446,600,000,000,000,000,000,000,000
12
https://github.com/ImageMagick/ImageMagick/issues/1610
static bool svm_has_emulated_msr(struct kvm *kvm, u32 index) { switch (index) { case MSR_IA32_MCG_EXT_CTL: case MSR_IA32_VMX_BASIC ... MSR_IA32_VMX_VMFUNC: return false; case MSR_IA32_SMBASE: /* SEV-ES guests do not support SMM, so report false */ if (kvm && sev_es_guest(kvm)) return false; break; defau...
0
[ "CWE-862" ]
kvm
0f923e07124df069ba68d8bb12324398f4b6b709
147,299,848,338,564,240,000,000,000,000,000,000,000
17
KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl (CVE-2021-3653) * Invert the mask of bits that we pick from L2 in nested_vmcb02_prepare_control * Invert and explicitly use VIRQ related bits bitmask in svm_clear_vintr This fixes a security issue that allowed a malicious L1 to run L2 with AVIC enable...
reset_color_pairs(void) { NCURSES_SP_NAME(reset_color_pairs) (CURRENT_SCREEN); }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
241,354,566,766,244,660,000,000,000,000,000,000,000
4
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...
static int proxy_hash_cb(UNUSED void *ctx, void *data) { REQUEST *request = fr_packet2myptr(REQUEST, proxy, data); ev_request_free(&request); return 0; }
0
[ "CWE-399" ]
freeradius-server
ff94dd35673bba1476594299d31ce8293b8bd223
78,190,309,834,233,460,000,000,000,000,000,000,000
8
Do not delete "old" requests until they are free. If the request is in the queue for 30+ seconds, do NOT delete it. Instead, mark it as "STOP PROCESSING", and do "wait_for_child_to_die", which waits for a child thread to pick it up, and acknowledge that it's done. Once it's marked done, we can finally clean it up. T...
int parse_arguments(int *argc_p, const char ***argv_p) { static poptContext pc; char *ref = lp_refuse_options(module_id); const char *arg, **argv = *argv_p; int argc = *argc_p; int opt; int orig_protect_args = protect_args; if (ref && *ref) set_refuse_options(ref); if (am_daemon) { set_refuse_options("log-...
0
[]
rsync
7706303828fcde524222babb2833864a4bd09e07
212,765,220,547,978,150,000,000,000,000,000,000,000
1,067
Ignore --protect-args when already sent by client In parse_arguments when --protect-args is encountered the function exits early. The caller is expected to check protect_args, and recall parse_arguments setting protect_args to 2. This patch prevents the client from resetting protect_args during the second pass of pars...
static void mce_reset(void) { cpu_missing = 0; atomic_set(&mce_fake_panicked, 0); atomic_set(&mce_executing, 0); atomic_set(&mce_callin, 0); atomic_set(&global_nwo, 0); }
0
[ "CWE-362" ]
linux
b3b7c4795ccab5be71f080774c45bbbcc75c2aaf
42,119,423,109,307,233,000,000,000,000,000,000,000
8
x86/MCE: Serialize sysfs changes The check_interval file in /sys/devices/system/machinecheck/machinecheck<cpu number> directory is a global timer value for MCE polling. If it is changed by one CPU, mce_restart() broadcasts the event to other CPUs to delete and restart the MCE polling timer and __mcheck_cpu_init_ti...
check_is_valid_type_for_field_ops (VerifyContext *ctx, int token, ILStackDesc *obj, MonoClassField **ret_field, const char *opcode) { MonoClassField *field; MonoClass *klass; gboolean is_pointer; /*must be a reference type, a managed pointer, an unamanaged pointer, or a valuetype*/ if (!(field = verifier_load_fie...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
23,986,859,413,713,693,000,000,000,000,000,000,000
51
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
String_Schema_Obj Parser::parse_css_variable_value_token(bool top_level) { String_Schema_Obj schema = SASS_MEMORY_NEW(String_Schema, pstate); if ( (top_level && lex< css_variable_top_level_value >(false)) || (!top_level && lex< css_variable_value >(false)) ) { Token str(lexed); s...
1
[ "CWE-674" ]
libsass
f2db04883e5fff4e03777dcc1eb60d4373c45be1
78,268,609,877,097,930,000,000,000,000,000,000,000
50
Make `parse_css_variable_value` non-recursive Fixes #2658 stack overflow
int pmixp_coll_tree_child(pmixp_coll_t *coll, uint32_t peerid, uint32_t seq, Buf buf) { char *data_src = NULL, *data_dst = NULL; uint32_t size; int chld_id; pmixp_coll_tree_t *tree = NULL; /* lock the structure */ slurm_mutex_lock(&coll->lock); pmixp_coll_sanity_check(coll); tree = &coll->state.tree; if...
0
[ "CWE-120" ]
slurm
c3142dd87e06621ff148791c3d2f298b5c0b3a81
180,608,407,559,291,320,000,000,000,000,000,000,000
139
PMIx - fix potential buffer overflows from use of unpackmem(). CVE-2020-27745.
static int parse_username(char *rawuser, struct parsed_mount_info *parsed_info) { char *user, *password, slash; int rc = 0; /* everything after first % sign is a password */ password = strchr(rawuser, '%'); if (password) { rc = set_password(parsed_info, password); if (rc) return rc; } /* everything afte...
0
[ "CWE-362" ]
cifs-utils
810f7e4e0f2dbcbee0294d9b371071cb08268200
201,795,843,044,986,760,000,000,000,000,000,000,000
36
mount.cifs: guard against signals by unprivileged users If mount.cifs is setuid root, then the unprivileged user who runs the program can send the mount.cifs process a signal and kill it. This is not a huge problem unless we happen to be updating the mtab at the time, in which case the mtab lockfiles might not get cle...
_check_job_credential(launch_tasks_request_msg_t *req, uid_t uid, int node_id, hostset_t *step_hset, uint16_t protocol_version) { slurm_cred_arg_t arg; hostset_t s_hset = NULL; bool user_ok = _slurm_authorized_user(uid); bool verified = true; int host_index = -1; int rc; slurm_cred_t *cred...
0
[ "CWE-284" ]
slurm
92362a92fffe60187df61f99ab11c249d44120ee
174,471,676,501,908,750,000,000,000,000,000,000,000
225
Fix security issue in _prolog_error(). Fix security issue caused by insecure file path handling triggered by the failure of a Prolog script. To exploit this a user needs to anticipate or cause the Prolog to fail for their job. (This commit is slightly different from the fix to the 15.08 branch.) CVE-2016-10030.
static int skcipher_setkey(void *private, const u8 *key, unsigned int keylen) { struct skcipher_tfm *tfm = private; int err; err = crypto_skcipher_setkey(tfm->skcipher, key, keylen); tfm->has_key = !err; return err; }
0
[]
linux
4f0414e54e4d1893c6f08260693f8ef84c929293
34,165,051,410,942,030,000,000,000,000,000,000,000
10
crypto: algif_skcipher - Load TX SG list after waiting We need to load the TX SG list in sendmsg(2) after waiting for incoming data, not before. Cc: stable@vger.kernel.org Reported-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Dmitry Vyukov <dvyukov@google.c...
CJSON_PUBLIC(void) cJSON_free(void *object) { global_hooks.deallocate(object); }
0
[ "CWE-754", "CWE-787" ]
cJSON
be749d7efa7c9021da746e685bd6dec79f9dd99b
39,736,284,489,581,454,000,000,000,000,000,000,000
4
Fix crash of cJSON_GetObjectItemCaseSensitive when calling it on arrays
int sys_pclose(int fd) { int wstatus; popen_list **ptr = &popen_chain; popen_list *entry = NULL; pid_t wait_pid; int status = -1; /* Unlink from popen_chain. */ for ( ; *ptr != NULL; ptr = &(*ptr)->next) { if ((*ptr)->fd == fd) { entry = *ptr; *ptr = (*ptr)->next; status = 0; break; } } if (s...
0
[ "CWE-20" ]
samba
d77a74237e660dd2ce9f1e14b02635f8a2569653
248,965,098,386,012,700,000,000,000,000,000,000,000
37
s3: nmbd: Fix bug 10633 - nmbd denial of service The Linux kernel has a bug in that it can give spurious wakeups on a non-blocking UDP socket for a non-deliverable packet. When nmbd was changed to use non-blocking sockets it became vulnerable to a spurious wakeup from poll/epoll. Fix sys_recvfile() to return on EWOU...
const char* DocumentSourceMatch::getSourceName() const { return kStageName.rawData(); }
0
[]
mongo
b3107d73a2c58d7e016b834dae0acfd01c0db8d7
53,204,041,922,456,420,000,000,000,000,000,000,000
3
SERVER-59299: Flatten top-level nested $match stages in doOptimizeAt (cherry picked from commit 4db5eceda2cff697f35c84cd08232bac8c33beec)
virNodeDeviceGetSCSITargetCaps(const char *sysfsPath, virNodeDevCapSCSITargetPtr scsi_target) { int ret = -1; char *dir = NULL, *rport = NULL; VIR_DEBUG("Checking if '%s' is an FC remote port", scsi_target->name); /* /sys/devices/[...]/host0/rport-0:0-0/target0:0:0 -> rp...
0
[ "CWE-119" ]
libvirt
4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
112,821,879,301,295,640,000,000,000,000,000,000,000
39
conf: Fix segfault when parsing mdev types Commit f1b0890 introduced a potential crash due to incorrect operator precedence when accessing an element from a pointer to an array. Backtrace below: #0 virNodeDeviceGetMdevTypesCaps (sysfspath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", mdev_types=0x7fff801...
static int inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh) { struct net *net = sock_net(in_skb->sk); struct nlattr *tb[RTA_MAX+1]; struct rt6_info *rt; struct sk_buff *skb; struct rtmsg *rtm; struct flowi6 fl6; int err, iif = 0, oif = 0; err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ip...
0
[ "CWE-119" ]
net
c88507fbad8055297c1d1e21e599f46960cbee39
99,197,747,346,344,650,000,000,000,000,000,000,000
87
ipv6: don't set DST_NOCOUNT for remotely added routes DST_NOCOUNT should only be used if an authorized user adds routes locally. In case of routes which are added on behalf of router advertisments this flag must not get used as it allows an unlimited number of routes getting added remotely. Signed-off-by: Sabrina Dub...
GetDataBlock_(gdIOCtx *fd, unsigned char *buf, int *ZeroDataBlockP) { unsigned char count; if (! ReadOK(fd,&count,1)) { return -1; } *ZeroDataBlockP = count == 0; if ((count != 0) && (! ReadOK(fd, buf, count))) { return -1; } return count; }
0
[ "CWE-119" ]
php-src
07b5896a1389c3e865cbd2fb353806b2cefe4f5c
281,268,658,273,073,470,000,000,000,000,000,000,000
16
Fix bug #68601 buffer read overflow in gd_gif_in.c
nautilus_file_eject (NautilusFile *file) { if (file->details->can_eject) { if (NAUTILUS_FILE_GET_CLASS (file)->eject != NULL) { NAUTILUS_FILE_GET_CLASS (file)->eject (file); } } else if (file->details->mount != NULL && g_mount_can_eject (file->details->mount)) { nautilus_file_operations_unmount_mount (N...
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
38,574,113,404,733,426,000,000,000,000,000,000,000
11
Check for trusted desktop file launchers. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-...
static int ext4_ext_convert_to_initialized(handle_t *handle, struct inode *inode, struct ext4_map_blocks *map, struct ext4_ext_path *path) { struct ext4_sb_info *sbi; struct ext4_extent_header *eh; struct ext4_map_blocks split_map; struct ext4_extent zero_ex; struct ext4_extent *ex; ext4_l...
0
[ "CWE-362" ]
linux-2.6
dee1f973ca341c266229faa5a1a5bb268bed3531
239,097,309,398,844,950,000,000,000,000,000,000,000
189
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...
SpillSTLComparator(ValueComparator valueComparator) : _valueComparator(valueComparator) {}
0
[]
mongo
14784757ff5e983ea40b21c14e661aba81dfc083
326,564,461,215,255,500,000,000,000,000,000,000,000
1
SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
bool flush_tables(THD *thd, flush_tables_type flag) { bool result= TRUE; tc_collect_arg collect_arg; TABLE *tmp_table; flush_tables_error_handler error_handler; DBUG_ENTER("flush_tables"); purge_tables(false); /* Flush unused tables and shares */ /* Loop over all shares and collect shares that have...
0
[ "CWE-416" ]
server
0beed9b5e933f0ff79b3bb346524f7a451d14e38
37,203,738,904,063,807,000,000,000,000,000,000,000
82
MDEV-28097 use-after-free when WHERE has subquery with an outer reference in HAVING when resolving WHERE and ON clauses, do not look in SELECT list/aliases.
uint64_t HELPER(pacda)(CPUARMState *env, uint64_t x, uint64_t y) { int el = arm_current_el(env); if (!pauth_key_enabled(env, el, SCTLR_EnDA)) { return x; } pauth_check_trap(env, el, GETPC()); return pauth_addpac(env, x, y, &env->keys.apda, true); }
0
[]
qemu
de0b1bae6461f67243282555475f88b2384a1eb9
285,880,997,968,400,030,000,000,000,000,000,000,000
9
target/arm: Fix PAuth sbox functions In the PAC computation, sbox was applied over wrong bits. As this is a 4-bit sbox, bit index should be incremented by 4 instead of 16. Test vector from QARMA paper (https://eprint.iacr.org/2016/444.pdf) was used to verify one computation of the pauth_computepac() function which us...