func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
char * expand_arith_string (string, quoted) char *string; int quoted; { WORD_DESC td; WORD_LIST *list, *tlist; size_t slen; int i, saw_quote; char *ret; DECLARE_MBSTATE; /* Don't need string length for ADVANCE_CHAR unless multibyte chars possible. */ slen = (MB_CUR_MAX > 1) ? strlen (string) ...
0
[ "CWE-20" ]
bash
4f747edc625815f449048579f6e65869914dd715
271,236,586,592,439,300,000,000,000,000,000,000,000
59
Bash-4.4 patch 7
static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int size, version, layout; int32_t yaw, pitch, roll; uint32_t l = 0, t = 0, r = 0, b = 0; uint32_t tag, padding = 0; enum AVSphericalProjection projection; if (c->fc->nb_streams ...
0
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
90,068,822,187,791,450,000,000,000,000,000,000,000
136
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static void press_key(VncState *vs, int keysym) { int keycode = keysym2scancode(vs->vd->kbd_layout, keysym) & SCANCODE_KEYMASK; qemu_input_event_send_key_number(vs->vd->dcl.con, keycode, true); qemu_input_event_send_key_delay(vs->vd->key_delay_ms); qemu_input_event_send_key_number(vs->vd->dcl.con, keyco...
0
[ "CWE-772" ]
qemu
d3b0db6dfea6b3a9ee0d96aceb796bdcafa84314
241,124,323,917,753,300,000,000,000,000,000,000,000
8
vnc: Set default kbd delay to 10ms The current VNC default keyboard delay is 1ms. With that we're constantly typing faster than the guest receives keyboard events from an XHCI attached USB HID device. The default keyboard delay time in the input layer however is 10ms. I don't know how that number came to be, but empi...
TRIO_PUBLIC int trio_dprintfv TRIO_ARGS3((fd, format, args), int fd, TRIO_CONST char* format, trio_pointer_t* args) { static va_list unused; assert(VALID(format)); return TrioFormat(&fd, 0, TrioOutStreamFileDescriptor, format, unused, TrioArrayGetter, args); }
0
[ "CWE-190", "CWE-125" ]
FreeRDP
05cd9ea2290d23931f615c1b004d4b2e69074e27
93,170,173,453,288,120,000,000,000,000,000,000,000
9
Fixed TrioParse and trio_length limts. CVE-2020-4030 thanks to @antonio-morales for finding this.
int ssl3_get_server_hello(SSL *s) { STACK_OF(SSL_CIPHER) *sk; const SSL_CIPHER *c; CERT *ct = s->cert; unsigned char *p,*d; int i,al=SSL_AD_INTERNAL_ERROR,ok; unsigned int j; long n; #ifndef OPENSSL_NO_COMP SSL_COMP *comp; #endif /* Hello verify request and/or server hello version may not * match so set fir...
0
[]
openssl
17160033765480453be0a41335fa6b833691c049
49,224,389,623,577,020,000,000,000,000,000,000,000
283
Fix DTLS anonymous EC(DH) denial of service CVE-2014-3510 Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
static bool ok_jpg_read_dqt(ok_jpg_decoder *decoder) { // JPEG spec: Table B.4 ok_jpg *jpg = decoder->jpg; uint8_t buffer[2]; if (!ok_read(decoder, buffer, sizeof(buffer))) { return false; } int length = readBE16(buffer) - 2; while (length >= 65) { uint8_t pt = ok_read_uint8(...
0
[ "CWE-787" ]
ok-file-formats
a9cc1711dd4ed6a215038f1c5c03af0ef52c3211
165,984,778,864,168,830,000,000,000,000,000,000,000
33
ok_jpg: Fix invalid DHT (#11)
SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, int index, struct cifs_search_info *srch_inf) { struct smb2_query_directory_req *req; struct smb2_query_directory_rsp *rsp = NULL; struct kvec iov[2]; struct kvec rsp_iov; int rc = 0; int len; ...
0
[ "CWE-476" ]
linux
cabfb3680f78981d26c078a26e5c748531257ebb
163,227,799,096,801,550,000,000,000,000,000,000,000
129
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>
StrUtil_EndsWith(const char *s, // IN const char *suffix) // IN { size_t slen; size_t suffixlen; ASSERT(s); ASSERT(suffix); slen = strlen(s); suffixlen = strlen(suffix); if (suffixlen > slen) { return FALSE; } return strcmp(s + slen - suffixlen, suffix) == 0; }
0
[ "CWE-362" ]
open-vm-tools
c1304ce8bfd9c0c33999e496bf7049d5c3d45821
226,865,896,711,957,570,000,000,000,000,000,000,000
18
randomly generate tmp directory name, and add StrUtil_ReplaceAll() function.
int X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain) { int ret = 1; ctx->ctx = store; ctx->cert = x509; ctx->untrusted = chain; ctx->crls = NULL; ctx->num_untrusted = 0; ctx->other_ctx = NULL; ctx->valid = 0; ctx-...
0
[ "CWE-295" ]
openssl
2a40b7bc7b94dd7de897a74571e7024f0cf0d63b
194,554,009,494,526,240,000,000,000,000,000,000,000
137
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...
T otsu(const unsigned int nb_levels=256) const { T m,M = max_min(m); CImg<ulongT> hist = get_histogram(nb_levels,m,M); ulongT sum = 0, sumB = 0, wB = 0; double best_variance = 0; unsigned int best_t = 0; cimg_forX(hist,t) sum+=t*hist[t]; cimg_forX(hist,t) { wB+=hist...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
122,543,616,146,828,140,000,000,000,000,000,000,000
22
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
int kvm_s390_vcpu_stop(struct kvm_vcpu *vcpu) { int i, online_vcpus, r = 0, started_vcpus = 0; struct kvm_vcpu *started_vcpu = NULL; if (is_vcpu_stopped(vcpu)) return 0; trace_kvm_s390_vcpu_start_stop(vcpu->vcpu_id, 0); /* Only one cpu at a time may enter/leave the STOPPED state. */ spin_lock(&vcpu->kvm->arch...
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
250,567,911,132,339,950,000,000,000,000,000,000,000
46
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
static struct atalk_iface *atalk_find_interface(int net, int node) { struct atalk_iface *iface; read_lock_bh(&atalk_interfaces_lock); for (iface = atalk_interfaces; iface; iface = iface->next) { if ((node == ATADDR_BCAST || node == ATADDR_ANYNODE || iface->address.s_node == node) && iface->add...
0
[]
history
7ab442d7e0a76402c12553ee256f756097cae2d2
164,180,754,250,066,120,000,000,000,000,000,000,000
22
[DDP]: Convert to new protocol interface. Convert ddp to the new protocol interface which means it has to handle fragmented skb's. The only big change is in the checksum routine which has to do more work (like skb_checksum). Minor speedup is folding the carry to avoid a branch. Tested against a 2.4 system and by ru...
Options(const ImportGraphDefOptions& in) // NOLINT(runtime/explicit) : allow_internal_ops(false), expect_device_spec(false), prefix(in.prefix.empty() || str_util::EndsWith(in.prefix, "/") ? in.prefix : in.prefix + "/"), uniquify_names(...
0
[ "CWE-125", "CWE-369", "CWE-908" ]
tensorflow
0cc38aaa4064fd9e79101994ce9872c6d91f816b
135,440,980,141,722,630,000,000,000,000,000,000,000
18
Prevent unitialized memory access in `GraphConstructor::MakeEdge` The `MakeEdge` implementation assumes that there exists an output at `output_index` of `src` node and an input at `input_index` of `dst` node. However, if this is not the case this results in accessing data out of bounds. Because we are accessing an arr...
int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) { if (cr3 == kvm_read_cr3(vcpu) && !pdptrs_changed(vcpu)) { kvm_mmu_sync_roots(vcpu); kvm_mmu_flush_tlb(vcpu); return 0; } if (is_long_mode(vcpu)) { if (cr3 & CR3_L_MODE_RESERVED_BITS) return 1; } else if (is_pae(vcpu) && is_paging(vcpu) && ...
0
[ "CWE-362" ]
linux
a2b9e6c1a35afcc0973acb72e591c714e78885ff
178,525,982,961,526,920,000,000,000,000,000,000,000
20
KVM: x86: Don't report guest userspace emulation error to userspace Commit fc3a9157d314 ("KVM: X86: Don't report L2 emulation failures to user-space") disabled the reporting of L2 (nested guest) emulation failures to userspace due to race-condition between a vmexit and the instruction emulator. The same rational appli...
write_galera_info(MYSQL *connection) { char *state_uuid = NULL, *state_uuid55 = NULL; char *last_committed = NULL, *last_committed55 = NULL; bool result; mysql_variable status[] = { {"Wsrep_local_state_uuid", &state_uuid}, {"wsrep_local_state_uuid", &state_uuid55}, {"Wsrep_last_committed", &last_committed}, ...
0
[ "CWE-200" ]
percona-xtrabackup
7742f875bb289a874246fb4653b7cd9f14b588fe
91,255,308,873,610,370,000,000,000,000,000,000,000
41
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
XkbWriteGeomOverlay(char *wire, XkbOverlayPtr ol, Bool swap) { register int r; XkbOverlayRowPtr row; xkbOverlayWireDesc *olWire; olWire = (xkbOverlayWireDesc *) wire; olWire->name = ol->name; olWire->nRows = ol->num_rows; olWire->pad1 = 0; olWire->pad2 = 0; if (swap) { swapl...
0
[ "CWE-119" ]
xserver
f7cd1276bbd4fe3a9700096dec33b52b8440788d
37,988,543,983,751,934,000,000,000,000,000,000,000
36
Correct bounds checking in XkbSetNames() CVE-2020-14345 / ZDI 11428 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
static int StreamTcpTest10 (void) { Packet *p = SCMalloc(SIZE_OF_PACKET); FAIL_IF(unlikely(p == NULL)); Flow f; ThreadVars tv; StreamTcpThread stt; TCPHdr tcph; uint8_t payload[4]; memset(p, 0, SIZE_OF_PACKET); PacketQueue pq; memset(&pq,0,sizeof(PacketQueue)); memset (&f, 0,...
1
[ "CWE-94" ]
suricata
1c63d3905852f746ccde7e2585600b2199cefb4b
6,039,712,312,386,392,000,000,000,000,000,000,000
73
stream: reject broken ACK packets Fix evasion posibility by rejecting packets with a broken ACK field. These packets have a non-0 ACK field, but do not have a ACK flag set. Bug #3324. Reported-by: Nicolas Adba (cherry picked from commit fa692df37a796c3330c81988d15ef1a219afc006)
static int superblock_has_perm(const struct cred *cred, struct super_block *sb, u32 perms, struct common_audit_data *ad) { struct superblock_security_struct *sbsec; u32 sid = cred_sid(cred); sbsec = sb->s_security; return avc_has_perm(&selinux_state, sid, sbsec->sid, SECCLASS_F...
0
[ "CWE-349" ]
linux
fb73974172ffaaf57a7c42f35424d9aece1a5af6
74,671,239,296,694,890,000,000,000,000,000,000,000
12
selinux: properly handle multiple messages in selinux_netlink_send() Fix the SELinux netlink_send hook to properly handle multiple netlink messages in a single sk_buff; each message is parsed and subject to SELinux access control. Prior to this patch, SELinux only inspected the first message in the sk_buff. Cc: stab...
UTF8ToUTF16LE(unsigned char* outb, int *outlen, const unsigned char* in, int *inlen) { unsigned short* out = (unsigned short*) outb; const unsigned char* processed = in; const unsigned char *const instart = in; unsigned short* outstart= out; unsigned short* outend; const unsigned cha...
0
[ "CWE-189" ]
libxml2
69f04562f75212bfcabecd190ea8b06ace28ece2
209,059,592,613,018,240,000,000,000,000,000,000,000
94
Fix an off by one error in encoding this off by one error doesn't seems to reproduce on linux but the error is real.
int tty_release(struct inode *inode, struct file *filp) { struct tty_struct *tty = file_tty(filp); struct tty_struct *o_tty; int pty_master, tty_closing, o_tty_closing, do_sleep; int devpts; int idx; char buf[64]; if (tty_paranoia_check(tty, inode, "tty_release_dev")) return 0; tty_lock(); check_tty_count(...
0
[ "CWE-703" ]
linux
c290f8358acaeffd8e0c551ddcc24d1206143376
145,314,841,291,240,760,000,000,000,000,000,000,000
220
TTY: drop driver reference in tty_open fail path When tty_driver_lookup_tty fails in tty_open, we forget to drop a reference to the tty driver. This was added by commit 4a2b5fddd5 (Move tty lookup/reopen to caller). Fix that by adding tty_driver_kref_put to the fail path. I will refactor the code later. This is for ...
char * SRP_check_known_gN_param(BIGNUM* g, BIGNUM* N) { size_t i; if ((g == NULL) || (N == NULL)) return 0; srp_bn_print(g); srp_bn_print(N); for(i = 0; i < KNOWN_GN_NUMBER; i++) { if (BN_cmp(knowngN[i].g, g) == 0 && BN_cmp(knowngN[i].N, N) == 0) return knowngN[i].id; } return NULL; }
0
[ "CWE-119" ]
openssl
4a23b12a031860253b58d503f296377ca076427b
120,977,541,550,517,400,000,000,000,000,000,000,000
16
Fix SRP buffer overrun vulnerability. Invalid parameters passed to the SRP code can be overrun an internal buffer. Add sanity check that g, A, B < N to SRP code. Thanks to Sean Devlin and Watson Ladd of Cryptography Services, NCC Group for reporting this issue.
int sock_load_diag_module(int family, int protocol) { if (!protocol) { if (!sock_is_registered(family)) return -ENOENT; return request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK, NETLINK_SOCK_DIAG, family); } #ifdef CONFIG_INET if (family == AF_INET && protocol != IPPROTO_RAW && pro...
0
[]
net
35306eb23814444bd4021f8a1c3047d3cb0c8b2b
58,299,874,222,884,010,000,000,000,000,000,000,000
21
af_unix: fix races in sk_peer_pid and sk_peer_cred accesses Jann Horn reported that SO_PEERCRED and SO_PEERGROUPS implementations are racy, as af_unix can concurrently change sk_peer_pid and sk_peer_cred. In order to fix this issue, this patch adds a new spinlock that needs to be used whenever these fields are read o...
void set_current_blocked(const sigset_t *newset) { struct task_struct *tsk = current; spin_lock_irq(&tsk->sighand->siglock); __set_task_blocked(tsk, newset); spin_unlock_irq(&tsk->sighand->siglock); }
0
[ "CWE-400" ]
linux-stable-rt
bcf6b1d78c0bde228929c388978ed3af9a623463
97,012,742,634,288,610,000,000,000,000,000,000,000
8
signal/x86: Delay calling signals in atomic On x86_64 we must disable preemption before we enable interrupts for stack faults, int3 and debugging, because the current task is using a per CPU debug stack defined by the IST. If we schedule out, another task can come in and use the same stack and cause the stack to be co...
static void set_status_attr(int id) { struct status_attr *status; status = status_attrs + id; if (id == 0) strcpy(status->name, "status"); else snprintf(status->name, MAX_STATUS_NAME+1, "status.%d", id); status->attr.attr.name = status->name; status->attr.attr.mode = S_IRUGO; status->attr.show = status_show...
0
[ "CWE-200" ]
linux
2f2d0088eb93db5c649d2a5e34a3800a8a935fc5
330,431,611,972,412,900,000,000,000,000,000,000,000
14
usbip: prevent vhci_hcd driver from leaking a socket pointer address When a client has a USB device attached over IP, the vhci_hcd driver is locally leaking a socket pointer address via the /sys/devices/platform/vhci_hcd/status file (world-readable) and in debug output when "usbip --debug port" is run. Fix it to not...
static MagickCLEnv RelinquishMagickCLEnv(MagickCLEnv clEnv) { if (clEnv == (MagickCLEnv) NULL) return((MagickCLEnv) NULL); RelinquishSemaphoreInfo(&clEnv->lock); RelinquishMagickCLDevices(clEnv); if (clEnv->contexts != (cl_context *) NULL) { ssize_t i; for (i=0; i < clEnv->number_c...
0
[ "CWE-476" ]
ImageMagick
cca91aa1861818342e3d072bb0fad7dc4ffac24a
213,698,937,733,918,700,000,000,000,000,000,000,000
18
https://github.com/ImageMagick/ImageMagick/issues/790
int get_nohz_timer_target(void) { int cpu = smp_processor_id(); int i; struct sched_domain *sd; for_each_domain(cpu, sd) { for_each_cpu(i, sched_domain_span(sd)) if (!idle_cpu(i)) return i; } return cpu; }
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
249,420,808,453,897,400,000,000,000,000,000,000,000
13
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
static void dct_unquantize_mpeg1_inter_c(MpegEncContext *s, int16_t *block, int n, int qscale) { int i, level, nCoeffs; const uint16_t *quant_matrix; nCoeffs= s->block_last_index[n]; quant_matrix = s->inter_matrix; for(i=0; i<=nCoeffs; i++) { int j= s->in...
0
[ "CWE-476" ]
FFmpeg
b3332a182f8ba33a34542e4a0370f38b914ccf7d
114,126,023,168,091,540,000,000,000,000,000,000,000
28
avcodec/idctdsp: Transmit studio_profile to init instead of using AVCodecContext profile These 2 fields are not always the same, it is simpler to always use the same field for detecting studio profile Fixes: null pointer dereference Fixes: ffmpeg_crash_3.avi Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böh...
static int test_if_order_by_key(JOIN *join, ORDER *order, TABLE *table, uint idx, uint *used_key_parts= NULL) { KEY_PART_INFO *key_part,*key_part_end; key_part=table->key_info[idx].key_part; key_part_end=key_part + table->key_info[idx].ext_key_parts; key_part_map const_key_pa...
0
[ "CWE-89" ]
server
5ba77222e9fe7af8ff403816b5338b18b342053c
102,183,644,723,318,080,000,000,000,000,000,000,000
111
MDEV-21028 Server crashes in Query_arena::set_query_arena upon SELECT from view if the view has algorithm=temptable it is not updatable, so DEFAULT() for its fields is meaningless, and thus it's NULL or 0/'' for NOT NULL columns.
struct dirent *readdir(DIR *d) { struct dirent *result = NULL; if (d != NULL) { memset(&d->result, 0, sizeof(d->result)); if (d->handle != INVALID_HANDLE_VALUE) { result = &d->result; WideCharToMultiByte(CP_UTF8, 0, d->info.cFileName, -1, result->d_name, sizeof(result->...
0
[ "CWE-552" ]
mongoose
c65c8fdaaa257e0487ab0aaae9e8f6b439335945
274,268,618,104,522,470,000,000,000,000,000,000,000
20
Protect against the directory traversal in mg_upload()
bool want_pmd_share(struct vm_area_struct *vma, unsigned long addr) { return false; }
0
[]
linux
a4a118f2eead1d6c49e00765de89878288d4b890
183,255,985,004,871,880,000,000,000,000,000,000,000
4
hugetlbfs: flush TLBs correctly after huge_pmd_unshare When __unmap_hugepage_range() calls to huge_pmd_unshare() succeed, a TLB flush is missing. This TLB flush must be performed before releasing the i_mmap_rwsem, in order to prevent an unshared PMDs page from being released and reused before the TLB flush took place...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, ...
1
[ "CWE-787" ]
openssl
a1f7034bbd8f0730d360211f5ba0feeaef0b7b2c
54,910,092,100,460,220,000,000,000,000,000,000,000
118
rsa: fix bn_reduce_once_in_place call for rsaz_mod_exp_avx512_x2 bn_reduce_once_in_place expects the number of BN_ULONG, but factor_size is moduli bit size. Fixes #18625. Signed-off-by: Xi Ruoyao <xry111@xry111.site> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from...
__fdnlist(int fd, struct nlist *list) { struct nlist *p; Elf_Off symoff = 0, symstroff = 0; Elf_Word symsize = 0, symstrsize = 0; Elf_Sword cc, i; int nent = -1; int errsave; Elf_Sym sbuf[1024]; Elf_Sym *s; Elf_Ehdr ehdr; char *strtab = NULL; Elf_Shdr *shdr = NULL; Elf_Word shdr_size; struct stat st; /* ...
0
[ "CWE-125" ]
libbsd
9d917aad37778a9f4a96ba358415f077f3f36f3b
312,562,679,636,678,650,000,000,000,000,000,000,000
145
nlist: Fix out-of-bounds read on strtab When doing a string comparison for a symbol name from the string table, we should make sure we do a bounded comparison, otherwise a non-NUL terminated string might make the code read out-of-bounds. Warned-by: coverity
bool hasWizeningFinished() { return execution_mode == Mode::PostWizening; }
0
[ "CWE-94" ]
js-compute-runtime
65524ffc962644e9fc39f4b368a326b6253912a9
303,398,129,423,216,550,000,000,000,000,000,000,000
1
use rangom_get instead of arc4random as arc4random does not work correctly with wizer wizer causes the seed in arc4random to be the same between executions which is not random
static NTSTATUS dcesrv_lsa_SetDomainInformationPolicy(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct lsa_SetDomainInformationPolicy *r) { DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR); }
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
28,603,857,573,428,724,000,000,000,000,000,000,000
6
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...
g_tls_connection_base_write (GTlsConnectionBase *tls, const void *buffer, gsize count, gint64 timeout, GCancellable *cancellable, ...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
307,906,725,651,639,140,000,000,000,000,000,000,000
32
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); bool start_timer = QTAILQ_EMPTY(queue); item->type = QEMU_INPUT_QUEUE_DELAY; item->delay_ms = d...
1
[ "CWE-772" ]
qemu
fa18f36a461984eae50ab957e47ec78dae3c14fc
305,904,204,377,853,100,000,000,000,000,000,000,000
16
input: limit kbd queue depth Apply a limit to the number of items we accept into the keyboard queue. Impact: Without this limit vnc clients can exhaust host memory by sending keyboard events faster than qemu feeds them to the guest. Fixes: CVE-2017-8379 Cc: P J P <ppandit@redhat.com> Cc: Huawei PSIRT <PSIRT@huawei.c...
filter_close (struct backend *b, struct connection *conn) { struct backend_filter *f = container_of (b, struct backend_filter, backend); void *handle = connection_get_handle (conn, f->backend.i); debug ("%s: close", f->name); if (handle && f->filter.close) f->filter.close (handle); f->backend.next->clos...
1
[ "CWE-406" ]
nbdkit
bf0d61883a2f02f4388ec10dc92d4c61c093679e
215,131,743,722,932,550,000,000,000,000,000,000,000
11
server: Fix regression for NBD_OPT_INFO before NBD_OPT_GO Most known NBD clients do not bother with NBD_OPT_INFO (except for clients like 'qemu-nbd --list' that don't ever intend to connect), but go straight to NBD_OPT_GO. However, it's not too hard to hack up qemu to add in an extra client step (whether info on the ...
int xen_netbk_rx_ring_full(struct xenvif *vif) { RING_IDX peek = vif->rx_req_cons_peek; RING_IDX needed = max_required_rx_slots(vif); return ((vif->rx.sring->req_prod - peek) < needed) || ((vif->rx.rsp_prod_pvt + XEN_NETIF_RX_RING_SIZE - peek) < needed); }
0
[ "CWE-399" ]
linux
7d5145d8eb2b9791533ffe4dc003b129b9696c48
338,207,434,492,442,870,000,000,000,000,000,000,000
8
xen/netback: don't leak pages on failure in xen_netbk_tx_check_gop. Signed-off-by: Matthew Daley <mattjd@gmail.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Jan Beulich <JBeulich@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
static inline uint32_t address_space_lduw_internal(AddressSpace *as, hwaddr addr, MemTxAttrs attrs, MemTxResult *result, ...
0
[]
qemu
e4a511f8cc6f4a46d409fb5c9f72c38ba45f8d83
340,234,326,992,787,250,000,000,000,000,000,000,000
52
exec: clamp accesses against the MemoryRegionSection Because the clamping was done against the MemoryRegion, address_space_rw was effectively broken if a write spanned multiple sections that are not linear in underlying memory (with the memory not being under an IOMMU). This is visible with the MIPS rc4030 IOMMU, whi...
bool format_go_output(const string& file_path) { const string command = "gofmt -w " + file_path; if (system(command.c_str()) == 0) { return true; } fprintf(stderr, "WARNING - Running '%s' failed.\n", command.c_str()); return false; }
1
[ "CWE-77" ]
thrift
2007783e874d524a46b818598a45078448ecc53e
103,115,327,118,230,830,000,000,000,000,000,000,000
10
THRIFT-3893 Command injection in format_go_output Client: Go Patch: Jens Geyer
const Type_handler *type_handler() const { DBUG_ASSERT(0); return &type_handler_null; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
78,805,285,891,593,830,000,000,000,000,000,000,000
5
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
size_t remove(const LowerCaseString& key) override { return HeaderMapImpl::remove(key); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
36,611,130,298,397,880,000,000,000,000,000,000,000
1
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...
RGWGetACLs() {}
0
[ "CWE-770" ]
ceph
ab29bed2fc9f961fe895de1086a8208e21ddaddc
280,164,356,779,325,900,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 <...
static int mxf_read_header(AVFormatContext *s) { MXFContext *mxf = s->priv_data; KLVPacket klv; int64_t essence_offset = 0; int ret; mxf->last_forward_tell = INT64_MAX; if (!mxf_read_sync(s->pb, mxf_header_partition_pack_key, 14)) { av_log(s, AV_LOG_ERROR, "could not find header partit...
0
[ "CWE-125" ]
FFmpeg
bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75
225,300,177,785,246,930,000,000,000,000,000,000,000
116
avformat/mxfdec: Fix av_log context Fixes: out of array access Fixes: mxf-crash-1c2e59bf07a34675bfb3ada5e1ec22fa9f38f923 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
int ssh_scp_close(ssh_scp scp) { char buffer[128] = {0}; int rc; if (scp == NULL) { return SSH_ERROR; } if (scp->channel != NULL) { if (ssh_channel_send_eof(scp->channel) == SSH_ERROR) { scp->state = SSH_SCP_ERROR; return SSH_ERROR; } /* avoi...
0
[]
libssh
4aea835974996b2deb011024c53f4ff4329a95b5
237,854,195,959,452,930,000,000,000,000,000,000,000
37
CVE-2019-14889: scp: Reformat scp.c Fixes T181 Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 42c727d0c186a1e2fa84a31ab40e16e58b404ab3)
get_op_array(const gs_memory_t *mem, int size) { gs_main_instance *minst = get_minst_from_memory(mem); return op_index_op_array_table(minst->i_ctx_p,size); }
0
[]
ghostpdl
6d444c273da5499a4cd72f21cb6d4c9a5256807d
312,913,241,447,454,030,000,000,000,000,000,000,000
5
Bug 697178: Add a file permissions callback For the rare occasions when the graphics library directly opens a file (currently for reading), this allows us to apply any restrictions on file access normally applied in the interpteter.
int TS_RESP_CTX_set_clock_precision_digits(TS_RESP_CTX *ctx, unsigned precision) { if (precision > TS_MAX_CLOCK_PRECISION_DIGITS) return 0; ctx->clock_precision_digits = precision; return 1; }
0
[]
openssl
c7235be6e36c4bef84594aa3b2f0561db84b63d8
139,512,254,476,342,380,000,000,000,000,000,000,000
7
RFC 3161 compliant time stamp request creation, response generation and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
authScopesList(const Protobuf::RepeatedPtrField<std::string>& auth_scopes_protos) { std::vector<std::string> scopes; // If 'auth_scopes' is empty it must return a list with the default value. if (auth_scopes_protos.empty()) { scopes.emplace_back(DEFAULT_AUTH_SCOPE); } else { scopes.reserve(auth_scopes_...
0
[ "CWE-416" ]
envoy
7ffda4e809dec74449ebc330cebb9d2f4ab61360
271,561,370,686,088,430,000,000,000,000,000,000,000
15
oauth2: do not blindly accept requests with a token in the Authorization headera (781) The logic was broken because it assumed an additional call would be performed to the auth server, which isn't the case. Per the filter documentation, a request is only considered subsequently authenticated if there's valid cookie th...
static void test_format_util_format_is_rgb_nullptr_deref_trigger() { struct virgl_renderer_resource_create_args args; args.handle = 8; args.target = 1; args.format = 109; args.bind = 8; args.width = 2; args.height = 2; args.depth = 0; args.array_size = 0; args.last_level = 0; args.nr_sa...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
172,838,477,164,867,130,000,000,000,000,000,000,000
31
vrend: Add test to resource OOB write and fix it v2: Also check that no depth != 1 has been send when none is due Closes: #250 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
void Greeter::onReadyReadStandardOutput() { if (m_process) { qDebug() << "Greeter output:" << qPrintable(QString::fromLocal8Bit(m_process->readAllStandardOutput())); } }
0
[ "CWE-284", "CWE-264" ]
sddm
4cfed6b0a625593fb43876f04badc4dd99799d86
96,323,687,594,908,750,000,000,000,000,000,000,000
6
Disable greeters from loading KDE's debug hander Some themes may use KDE components which will automatically load KDE's crash handler. If the greeter were to then somehow crash, that would leave a crash handler allowing other actions, albeit as the locked down SDDM user. Only SDDM users using the breeze theme from p...
static HRESULT STDMETHODCALLTYPE CliprdrStream_Write(IStream* This, const void* pv, ULONG cb, ULONG* pcbWritten) { (void)This; (void)pv; (void)cb; (void)pcbWritten; return STG_E_ACCESSDENIED; }
0
[ "CWE-20" ]
FreeRDP
0d79670a28c0ab049af08613621aa0c267f977e9
269,591,267,861,876,620,000,000,000,000,000,000,000
9
Fixed missing input checks for file contents request reported by Valentino Ricotta (Thalium)
ofputil_nx_flow_format_to_protocol(enum nx_flow_format flow_format) { switch (flow_format) { case NXFF_OPENFLOW10: return OFPUTIL_P_OF10_STD; case NXFF_NXM: return OFPUTIL_P_OF10_NXM; default: return 0; } }
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
297,561,388,456,484,560,000,000,000,000,000,000,000
13
ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod(). Found by libFuzzer. Reported-by: Bhargava Shastry <bshastry@sec.t-labs.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
v8::Local<v8::Value> GetWebPreference(v8::Isolate* isolate, std::string pref_name) { content::RenderFrame* render_frame; if (!MaybeGetRenderFrame(isolate, "getWebPreference", &render_frame)) return v8::Undefined(isolate); const auto& prefs = render_frame->Get...
0
[]
electron
6b04cce91ad1563bd9555f2007a2ad5aa5487304
168,020,491,030,469,910,000,000,000,000,000,000,000
53
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33367) * Make ElectronBrowser mojo interface frame associated. (#32815) Co-authored-by: Marek Haranczyk <marek@openfin.co> * fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33323) (#33350) ...
int device_online(struct device *dev) { int ret = 0; device_lock(dev); if (device_supports_offline(dev)) { if (dev->offline) { ret = dev->bus->online(dev); if (!ret) { kobject_uevent(&dev->kobj, KOBJ_ONLINE); dev->offline = false; } } else { ret = 1; } } device_unlock(dev); return ret;...
0
[ "CWE-787" ]
linux
aa838896d87af561a33ecefea1caa4c15a68bc47
249,777,896,622,067,400,000,000,000,000,000,000,000
20
drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions Convert the various sprintf fmaily calls in sysfs device show functions to sysfs_emit and sysfs_emit_at for PAGE_SIZE buffer safety. Done with: $ spatch -sp-file sysfs_emit_dev.cocci --in-place --max-width=80 . And cocci script: $ cat s...
SegmentInfo::~SegmentInfo() { delete[] m_pMuxingAppAsUTF8; m_pMuxingAppAsUTF8 = NULL; delete[] m_pWritingAppAsUTF8; m_pWritingAppAsUTF8 = NULL; delete[] m_pTitleAsUTF8; m_pTitleAsUTF8 = NULL; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
244,494,166,458,880,300,000,000,000,000,000,000,000
10
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
static void fuse_lib_help(void) { fprintf(stderr, " -o hard_remove immediate removal (don't hide files)\n" " -o use_ino let filesystem set inode numbers\n" " -o readdir_ino try to fill in d_ino in readdir\n" " -o direct_io use direct I/O\n" " -o kernel_cache ...
0
[]
ntfs-3g
fb28eef6f1c26170566187c1ab7dc913a13ea43c
103,671,482,197,140,030,000,000,000,000,000,000,000
25
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.
posix_acl_create(struct inode *dir, umode_t *mode, struct posix_acl **default_acl, struct posix_acl **acl) { struct posix_acl *p; struct posix_acl *clone; int ret; *acl = NULL; *default_acl = NULL; if (S_ISLNK(*mode) || !IS_POSIXACL(dir)) return 0; p = get_acl(dir, ACL_TYPE_DEFAULT); if (!p || p == ERR_P...
0
[ "CWE-284", "CWE-285" ]
linux
497de07d89c1410d76a15bec2bb41f24a2a89f31
136,209,062,614,593,220,000,000,000,000,000,000,000
48
tmpfs: clear S_ISGID when setting posix ACLs This change was missed the tmpfs modification in In CVE-2016-7097 commit 073931017b49 ("posix_acl: Clear SGID bit when setting file permissions") It can test by xfstest generic/375, which failed to clear setgid bit in the following test case on tmpfs: touch $testfile c...
void Magick::Image::floodFillTexture(const Magick::Geometry &point_, const Magick::Image &texture_,const bool invert_) { floodFillTexture(point_.xOff(),point_.yOff(),texture_,invert_); }
0
[ "CWE-416" ]
ImageMagick
8c35502217c1879cb8257c617007282eee3fe1cc
195,625,623,623,020,400,000,000,000,000,000,000,000
5
Added missing return to avoid use after free.
file_close(ref * pfile) { stream *s; if (file_is_valid(s, pfile)) { /* closing a closed file is a no-op */ if (sclose(s)) return_error(e_ioerror); } return 0; }
0
[]
ghostpdl
407cc61e87b0fd9d44d72ca740af7d3c85dee78d
243,811,806,593,551,660,000,000,000,000,000,000,000
10
"starting_arg_file" should only apply once. The "starting_arg_file == true" setting should apply to the *first* call to lib_file_open() in the context of a given call to runarg(). Previously, it remained set for the entire duration of the runarg() call, resulting in the current directory being searched for any resourc...
static void mdc2_body(MDC2_CTX *c, const unsigned char *in, size_t len) { register DES_LONG tin0, tin1; register DES_LONG ttin0, ttin1; DES_LONG d[2], dd[2]; DES_key_schedule k; unsigned char *p; size_t i; for (i = 0; i < len; i += 8) { c2l(in, tin0); d[0] = dd[0] = tin0; ...
0
[ "CWE-787" ]
openssl
2b4029e68fd7002d2307e6c3cde0f3784eef9c83
141,379,610,835,743,450,000,000,000,000,000,000,000
38
Avoid overflow in MDC2_Update() Thanks to Shi Lei for reporting this issue. CVE-2016-6303 Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit 55d83bf7c10c7b205fffa23fa7c3977491e56c07)
note_client_request(int purpose, int compressed, size_t bytes) { (void)purpose; (void)compressed; (void)bytes; }
0
[]
tor
973c18bf0e84d14d8006a9ae97fde7f7fb97e404
135,207,785,491,253,250,000,000,000,000,000,000,000
6
Fix assertion failure in tor_timegm. Fixes bug 6811.
new_files_state_unref (NewFilesState *state) { state->count--; if (state->count == 0) { if (state->directory) { state->directory->details->new_files_in_progress = g_list_remove (state->directory->details->new_files_in_progress, stat...
0
[ "CWE-20" ]
nautilus
1630f53481f445ada0a455e9979236d31a8d3bb0
48,932,704,527,215,030,000,000,000,000,000,000,000
17
mime-actions: use file metadata for trusting desktop files Currently we only trust desktop files that have the executable bit set, and don't replace the displayed icon or the displayed name until it's trusted, which prevents for running random programs by a malicious desktop file. However, the executable permission i...
sf_writef_double (SNDFILE *sndfile, const double *ptr, sf_count_t frames) { SF_PRIVATE *psf ; sf_count_t count ; VALIDATE_SNDFILE_AND_ASSIGN_PSF (sndfile, psf, 1) ; if (psf->file.mode == SFM_READ) { psf->error = SFE_NOT_WRITEMODE ; return 0 ; } ; if (psf->write_double == NULL || psf->seek == NULL) { psf->...
0
[ "CWE-119", "CWE-787" ]
libsndfile
708e996c87c5fae77b104ccfeb8f6db784c32074
46,053,132,181,227,990,000,000,000,000,000,000,000
40
src/ : Move to a variable length header buffer Previously, the `psf->header` buffer was a fixed length specified by `SF_HEADER_LEN` which was set to `12292`. This was problematic for two reasons; this value was un-necessarily large for the majority of files and too small for some others. Now the size of the header bu...
Field_blob::Field_blob(uchar *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg, enum utype unireg_check_arg, const LEX_CSTRING *field_name_arg, TABLE_SHARE *share, uint blob_pack_length, const DTCollation &collation) :Field_longstr(ptr_arg, BLOB_PACK_LEN...
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
311,909,697,277,124,400,000,000,000,000,000,000,000
15
MDEV-24176 Server crashes after insert in the table with virtual column generated using date_format() and if() vcol_info->expr is allocated on expr_arena at parsing stage. Since expr item is allocated on expr_arena all its containee items must be allocated on expr_arena too. Otherwise fix_session_expr() will encounter...
void combine_list(String & res, const StringList & in) { res.clear(); StringListEnumeration els = in.elements_obj(); const char * s = 0; while ( (s = els.next()) != 0) { for (; *s; ++s) { if (*s == ':') res.append('\\'); res.append(*s); } res.append('...
1
[ "CWE-125" ]
aspell
80fa26c74279fced8d778351cff19d1d8f44fe4e
193,504,039,874,410,300,000,000,000,000,000,000,000
16
Fix various bugs found by OSS-Fuze.
XML_ResumeParser(XML_Parser parser) { enum XML_Status result = XML_STATUS_OK; if (ps_parsing != XML_SUSPENDED) { errorCode = XML_ERROR_NOT_SUSPENDED; return XML_STATUS_ERROR; } ps_parsing = XML_PARSING; errorCode = processor(parser, bufferPtr, parseEndPtr, &bufferPtr); if (errorCode != XML_ERROR_...
0
[ "CWE-119" ]
libexpat
ba0f9c3b40c264b8dd392e02a7a060a8fa54f032
271,157,408,286,371,900,000,000,000,000,000,000,000
36
CVE-2015-1283 Sanity check size calculations. r=peterv, a=abillings https://sourceforge.net/p/expat/bugs/528/
static void nonpaging_init_context(struct kvm_mmu *context) { context->page_fault = nonpaging_page_fault; context->gva_to_gpa = nonpaging_gva_to_gpa; context->sync_page = nonpaging_sync_page; context->invlpg = NULL; context->direct_map = true; }
0
[ "CWE-476" ]
linux
9f46c187e2e680ecd9de7983e4d081c3391acc76
206,429,772,320,993,100,000,000,000,000,000,000,000
8
KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID With shadow paging enabled, the INVPCID instruction results in a call to kvm_mmu_invpcid_gva. If INVPCID is executed with CR0.PG=0, the invlpg callback is not set and the result is a NULL pointer dereference. Fix it trivially by checking for mmu->invlpg befo...
static AffineMatrix InverseAffineMatrix(const AffineMatrix *affine) { AffineMatrix inverse_affine; double determinant; determinant=PerceptibleReciprocal(affine->sx*affine->sy-affine->rx* affine->ry); inverse_affine.sx=determinant*affine->sy; inverse_affine.rx=determinant*(-affine->rx); inverse...
0
[ "CWE-399", "CWE-119" ]
ImageMagick
726812fa2fa7ce16bcf58f6e115f65427a1c0950
188,788,689,331,406,380,000,000,000,000,000,000,000
20
Prevent buffer overflow in magick/draw.c
get_target_base(struct timer_base *base, unsigned tflags) { return get_timer_this_cpu_base(tflags); }
0
[ "CWE-200" ]
tip
dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
115,105,583,912,273,410,000,000,000,000,000,000,000
4
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...
NO_INLINE JsVar *jspeStatementVar() { JsVar *lastDefined = 0; /* variable creation. TODO - we need a better way of parsing the left * hand side. Maybe just have a flag called can_create_var that we * set and then we parse as if we're doing a normal equals.*/ assert(lex->tk==LEX_R_VAR || lex->tk==LEX_R_LET |...
0
[ "CWE-125", "CWE-674" ]
Espruino
51380baf17241728b6d48cdb84140b931e3e3cc5
114,761,557,182,895,140,000,000,000,000,000,000,000
35
Fix stack overflow if interpreting a file full of '{' (fix #1448)
if (SFTP_AddHandleNode(ssh, (byte*)&fileHandle, sizeof(HANDLE), dir) != WS_SUCCESS) { WLOG(WS_LOG_SFTP, "Unable to store handle"); res = ier; if (wolfSSH_SFTP_CreateStatus(ssh, WOLFSSH_FTP_FAILURE, reqId, res, "English", NULL, &outSz) != WS_SIZE_ON...
0
[ "CWE-190" ]
wolfssh
edb272e35ee57e7b89f3e127222c6981b6a1e730
88,039,479,144,209,200,000,000,000,000,000,000,000
10
ASAN SFTP Fixes When decoding SFTP messages, fix the size checks so they don't wrap. (ZD12766)
static void * doExport(const struct indexEntry_s *hindex, int indexUsed, headerFlags flags, unsigned int *bsize) { int32_t * ei = NULL; entryInfo pe; char * dataStart; char * te; unsigned len, diff; int32_t il = 0; int32_t dl = 0; indexEntry entry; int i; int drlen, ndribbles...
0
[ "CWE-125" ]
rpm
8f4b3c3cab8922a2022b9e47c71f1ecf906077ef
318,122,539,908,248,930,000,000,000,000,000,000,000
222
hdrblobInit() needs bounds checks too Users can pass untrusted data to hdrblobInit() and it must be robust against this.
bool OpenConnectionTask::checkCapabilitiesResult(const Responses::State *const resp) { if (resp->tag.isEmpty()) return false; if (resp->tag == capabilityCmd) { if (!model->accessParser(parser).capabilitiesFresh) { logout(tr("Server did not provide useful capabilities")); ...
0
[ "CWE-200" ]
trojita
25fffa3e25cbad85bbca804193ad336b090a9ce1
49,330,073,114,030,520,000,000,000,000,000,000,000
18
IMAP: refuse to work when STARTTLS is required but server sends PREAUTH Oops, we cannot send STARTTLS when the connection is already authenticated. This is serious enough to warrant an error; an attacker might be going after a plaintext of a message we're going to APPEND, etc. Thanks to Arnt Gulbrandsen on the imap-p...
CloudInitSetup(const char *tmpDirPath) { int deployStatus = DEPLOY_ERROR; static const char *cloudInitTmpDirPath = "/var/run/vmware-imc"; int forkExecResult; char command[1024]; Bool cloudInitTmpDirCreated = FALSE; sLog(log_info, "Creating temp directory %s to copy customization files", cloud...
0
[ "CWE-362" ]
open-vm-tools
22e58289f71232310d30cf162b83b5151a937bac
272,299,103,129,615,880,000,000,000,000,000,000,000
75
randomly generate tmp directory name
ctl_putpeer( int id, struct peer *p ) { char buf[CTL_MAX_DATA_LEN]; char *s; char *t; char *be; int i; const struct ctl_var *k; #ifdef AUTOKEY struct autokey *ap; const EVP_MD *dp; const char *str; #endif /* AUTOKEY */ switch (id) { case CP_CONFIG: ctl_putuint(peer_var[id].text, !(FLAG_PREEMPT ...
0
[ "CWE-22" ]
ntp
184516e143ce4448ddb5b9876dd372008cc779f6
142,184,547,576,627,620,000,000,000,000,000,000,000
325
[TALOS-CAN-0062] prevent directory traversal for VMS, too, when using 'saveconfig' command.
TEST_P(HeaderIntegrationTest, PathWithEscapedSlashesDefaultOverriden) { // Override the default action to REJECT config_helper_.addRuntimeOverride("http_connection_manager.path_with_escaped_slashes_action", "2"); path_with_escaped_slashes_action_ = envoy::extensions::filters::n...
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
3,815,193,871,937,276,000,000,000,000,000,000,000
24
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
bool ipv6_opt_accepted(const struct sock *sk, const struct sk_buff *skb) { const struct ipv6_pinfo *np = inet6_sk(sk); const struct inet6_skb_parm *opt = IP6CB(skb); if (np->rxopt.all) { if ((opt->hop && (np->rxopt.bits.hopopts || np->rxopt.bits.ohopopts)) || ((IPV6_FLOWINFO_MASK & *(__be32 *)...
0
[]
net
5f81bd2e5d804ca93f3ec8873451b22d2f454721
134,449,633,251,136,830,000,000,000,000,000,000,000
19
ipv6: export a stub for IPv6 symbols used by vxlan In case IPv6 is compiled as a module, introduce a stub for ipv6_sock_mc_join and ipv6_sock_mc_drop etc.. It will be used by vxlan module. Suggested by Ben. This is an ugly but easy solution for now. Cc: Ben Hutchings <bhutchings@solarflare.com> Cc: Stephen Hemminger...
xsltFreeTemplateHashes(xsltStylesheetPtr style) { if (style->templatesHash != NULL) xmlHashFree((xmlHashTablePtr) style->templatesHash, (xmlHashDeallocator) xsltFreeCompMatchList); if (style->rootMatch != NULL) xsltFreeCompMatchList(style->rootMatch); if (style->keyMatch != NULL) xslt...
0
[ "CWE-125" ]
libxslt
fe5a4fa33eb85bce3253ed3742b1ea6c4b59b41b
293,091,707,432,693,900,000,000,000,000,000,000,000
21
Fix some case of pattern parsing errors We could accidentally hit an off by one string array access due to improper loop exit when parsing patterns
_outWindowDef(StringInfo str, const WindowDef *node) { WRITE_NODE_TYPE("WINDOWDEF"); WRITE_STRING_FIELD(name); WRITE_STRING_FIELD(refname); WRITE_NODE_FIELD(partitionClause); WRITE_NODE_FIELD(orderClause); WRITE_INT_FIELD(frameOptions); WRITE_NODE_FIELD(startOffset); WRITE_NODE_FIELD(endOffset); WRITE_LOCATIO...
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
36,147,184,097,770,000,000,000,000,000,000,000,000
13
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
T& _atX(const int x, const int y=0, const int z=0, const int c=0) { return (*this)(x<0?0:(x>=width()?width() - 1:x),y,z,c);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
203,531,359,265,836,980,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
lr_yum_check_checksum_of_md_record(LrYumRepoMdRecord *rec, const char *path, GError **err) { int fd; char *expected_checksum; LrChecksumType checksum_type; gboolean ret, matches; gboolean is_zchunk = FALSE; GError *tmp_err = N...
0
[ "CWE-22" ]
librepo
7daea2a2429a54dad68b1de9b37a5f65c5cf2600
338,329,515,534,550,980,000,000,000,000,000,000,000
102
Validate path read from repomd.xml (RhBug:1868639) = changelog = msg: Validate path read from repomd.xml type: security resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1868639
xdr_sstring_arg(XDR *xdrs, sstring_arg *objp) { if (!xdr_ui_4(xdrs, &objp->api_version)) { return (FALSE); } if (!xdr_krb5_principal(xdrs, &objp->princ)) { return (FALSE); } if (!xdr_nullstring(xdrs, &objp->key)) { return (FALSE); } if (!xdr_nullstring(xdrs, &objp->value)) { return (FALSE); } return (...
0
[ "CWE-703" ]
krb5
a197e92349a4aa2141b5dff12e9dd44c2a2166e3
144,998,987,043,396,380,000,000,000,000,000,000,000
17
Fix kadm5/gssrpc XDR double free [CVE-2014-9421] [MITKRB5-SA-2015-001] In auth_gssapi_unwrap_data(), do not free partial deserialization results upon failure to deserialize. This responsibility belongs to the callers, svctcp_getargs() and svcudp_getargs(); doing it in the unwrap function results in freeing the result...
bgp_vty_init (void) { /* Install bgp top node. */ install_node (&bgp_node, bgp_config_write); install_node (&bgp_ipv4_unicast_node, NULL); install_node (&bgp_ipv4_multicast_node, NULL); install_node (&bgp_ipv6_unicast_node, NULL); install_node (&bgp_ipv6_multicast_node, NULL); install_node (&bgp_vpnv4_nod...
0
[ "CWE-125" ]
frr
6d58272b4cf96f0daa846210dd2104877900f921
92,757,215,921,528,250,000,000,000,000,000,000,000
1,050
[bgpd] cleanup, compact and consolidate capability parsing code 2007-07-26 Paul Jakma <paul.jakma@sun.com> * (general) Clean up and compact capability parsing slightly. Consolidate validation of length and logging of generic TLV, and memcpy of capability data, thus removing such from cap specifc code (not a...
int SSL_set_ex_data(SSL *s,int idx,void *arg) { return(CRYPTO_set_ex_data(&s->ex_data,idx,arg)); }
0
[]
openssl
ee2ffc279417f15fef3b1073c7dc81a908991516
232,780,292,683,432,900,000,000,000,000,000,000,000
4
Add Next Protocol Negotiation.
dirserv_should_launch_reachability_test(const routerinfo_t *ri, const routerinfo_t *ri_old) { if (!authdir_mode_handles_descs(get_options(), ri->purpose)) return 0; if (!ri_old) { /* New router: Launch an immediate reachability test, so we will have an * opinion ...
0
[]
tor
02e05bd74dbec614397b696cfcda6525562a4675
333,122,317,120,943,370,000,000,000,000,000,000,000
20
When examining descriptors as a dirserver, reject ones with bad versions This is an extra fix for bug 21278: it ensures that these descriptors and platforms will never be listed in a legit consensus.
struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags) { int error; struct file *file; struct inode *inode; struct path path; struct dentry *root; struct qstr this; if (IS_ERR(shm_mnt)) return (void *)shm_mnt; if (size < 0 || size > MAX_LFS_FILESIZE) return ERR_PTR(-EINVAL); i...
0
[ "CWE-399" ]
linux
5f00110f7273f9ff04ac69a5f85bb535a4fd0987
317,299,921,550,175,030,000,000,000,000,000,000,000
56
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...
libssh2_session_get_timeout(LIBSSH2_SESSION * session) { return session->api_timeout; }
0
[ "CWE-787" ]
libssh2
dc109a7f518757741590bb993c0c8412928ccec2
106,323,811,070,281,870,000,000,000,000,000,000,000
4
Security fixes (#315) * Bounds checks Fixes for CVEs https://www.libssh2.org/CVE-2019-3863.html https://www.libssh2.org/CVE-2019-3856.html * Packet length bounds check CVE https://www.libssh2.org/CVE-2019-3855.html * Response length check CVE https://www.libssh2.org/CVE-2019-3859.html * Bounds ch...
rl_sigaction (sig, nh, oh) int sig; sighandler_cxt *nh, *oh; { oh->sa_handler = signal (sig, nh->sa_handler); return 0; }
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
305,730,906,311,732,900,000,000,000,000,000,000,000
7
bash-4.4-rc2 release
static int iccompareproc(i_ctx_t *i_ctx_p, ref *space, ref *testspace) { int code1, code2; ref ICCdict1, ICCdict2, *tempref1, *tempref2; int buff_size; code1 = array_get(imemory, space, 1, &ICCdict1); if (code1 < 0) return 0; code2 = array_get(imemory, testspace, 1, &ICCdict2); if (...
1
[ "CWE-704" ]
ghostpdl
693baf02152119af6e6afd30bb8ec76d14f84bbf
116,000,032,593,580,270,000,000,000,000,000,000,000
43
PS interpreter - check the Implementation of a Pattern before use Bug #700141 "Type confusion in setpattern" As the bug thread says, we were not checking that the Implementation of a pattern dictionary was a structure type, leading to a crash when we tried to treat it as one. Here we make the st_pattern1_instance an...
const HuffmanDecoder& Inflator::GetDistanceDecoder() const { return m_blockType == 1 ? Singleton<HuffmanDecoder, NewFixedDistanceDecoder>().Ref() : m_dynamicDistanceDecoder; }
0
[ "CWE-190", "CWE-125" ]
cryptopp
07dbcc3d9644b18e05c1776db2a57fe04d780965
298,595,567,708,285,730,000,000,000,000,000,000,000
4
Add Inflator::BadDistanceErr exception (Issue 414) The improved validation and excpetion clears the Address Sanitizer and Undefined Behavior Sanitizer findings
d_lite_mjd(VALUE self) { get_d1(self); return f_sub(m_real_local_jd(dat), INT2FIX(2400001)); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
182,100,760,777,270,160,000,000,000,000,000,000,000
5
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
static SplineChar *FVFindACharInDisplay(FontView *fv) { int start, end, enc, gid; EncMap *map = fv->b.map; SplineFont *sf = fv->b.sf; SplineChar *sc; start = fv->rowoff*fv->colcnt; end = start + fv->rowcnt*fv->colcnt; for ( enc = start; enc<end && enc<map->enccount; ++enc ) { if ( (gid=map...
0
[ "CWE-119", "CWE-787" ]
fontforge
626f751752875a0ddd74b9e217b6f4828713573c
110,705,723,777,232,680,000,000,000,000,000,000,000
14
Warn users before discarding their unsaved scripts (#3852) * Warn users before discarding their unsaved scripts This closes #3846.
static void release_pebs_buffer(int cpu) { struct cpu_hw_events *hwev = per_cpu_ptr(&cpu_hw_events, cpu); void *cea; if (!x86_pmu.pebs) return; kfree(per_cpu(insn_buffer, cpu)); per_cpu(insn_buffer, cpu) = NULL; /* Clear the fixmap */ cea = &get_cpu_entry_area(cpu)->cpu_debug_buffers.pebs_buffer; ds_clear_...
0
[ "CWE-755" ]
linux
d88d05a9e0b6d9356e97129d4ff9942d765f46ea
186,142,661,760,210,130,000,000,000,000,000,000,000
17
perf/x86/intel: Fix a crash caused by zero PEBS status A repeatable crash can be triggered by the perf_fuzzer on some Haswell system. https://lore.kernel.org/lkml/7170d3b-c17f-1ded-52aa-cc6d9ae999f4@maine.edu/ For some old CPUs (HSW and earlier), the PEBS status in a PEBS record may be mistakenly set to 0. To minimiz...
Http::FilterHeadersStatus Context::decodeHeaders(Http::HeaderMap& headers, bool end_stream) { request_headers_ = &headers; request_end_of_stream_ = end_stream; auto result = onRequestHeaders(); request_headers_ = nullptr; return result; }
0
[ "CWE-476" ]
envoy
8788a3cf255b647fd14e6b5e2585abaaedb28153
104,133,504,551,415,700,000,000,000,000,000,000,000
7
1.4 - Do not call into the VM unless the VM Context has been created. (#24) * Ensure that the in VM Context is created before onDone is called. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Update as per offline discussion. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Set in_vm_context_created_ in onNet...
eigrp_print(netdissect_options *ndo, register const u_char *pptr, register u_int len) { const struct eigrp_common_header *eigrp_com_header; const struct eigrp_tlv_header *eigrp_tlv_header; const u_char *tptr,*tlv_tptr; u_int tlen,eigrp_tlv_len,eigrp_tlv_type,tlv_tlen, byte_length, bit_length; uint8_...
0
[ "CWE-125", "CWE-787" ]
tcpdump
de981e6070d168b58ec1bb0713ded77ed4ad87f4
334,198,436,726,924,560,000,000,000,000,000,000,000
313
CVE-2017-12901/EIGRP: Do more length checks. This fixes a buffer over-read discovered by Forcepoint's security researchers Otto Airamo & Antti Levomäki. Add a test using the capture file supplied by the reporter(s).
static struct property *dlpar_parse_cc_property(struct cc_workarea *ccwa) { struct property *prop; char *name; char *value; prop = kzalloc(sizeof(*prop), GFP_KERNEL); if (!prop) return NULL; name = (char *)ccwa + be32_to_cpu(ccwa->name_offset); prop->name = kstrdup(name, GFP_KERNEL); prop->length = be32_to...
1
[ "CWE-476" ]
linux
efa9ace68e487ddd29c2b4d6dd23242158f1f607
112,920,879,356,861,500,000,000,000,000,000,000,000
23
powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property() In dlpar_parse_cc_property(), 'prop->name' is allocated by kstrdup(). kstrdup() may return NULL, so it should be checked and handle error. And prop should be freed if 'prop->name' is NULL. Signed-off-by: Gen Zhang <blackgod016574@gmail.com> Signe...
TfLiteRegistration* Register_EMBEDDING_LOOKUP() { static TfLiteRegistration r = {nullptr, nullptr, embedding_lookup::Prepare, embedding_lookup::Eval}; return &r; }
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
175,116,531,707,550,650,000,000,000,000,000,000,000
5
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
run_return_trap () { int old_exit_value; #if 0 if ((sigmodes[DEBUG_TRAP] & SIG_TRAPPED) && (sigmodes[DEBUG_TRAP] & SIG_INPROGRESS)) return; #endif if ((sigmodes[RETURN_TRAP] & SIG_TRAPPED) && ((sigmodes[RETURN_TRAP] & SIG_IGNORED) == 0) && (sigmodes[RETURN_TRAP] & SIG_INPROGRESS) == 0) { old_exit_...
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
9,951,512,835,663,809,000,000,000,000,000,000,000
16
bash-4.4-rc2 release
void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int num_chans, size_t *pLen_out) { // Level 6 corresponds to TDEFL_DEFAULT_MAX_PROBES or MZ_DEFAULT_LEVEL (but we // can't depend on MZ_DEFAULT_LEVEL being available in case the zlib API's ...
0
[ "CWE-20", "CWE-190" ]
tinyexr
a685e3332f61cd4e59324bf3f669d36973d64270
51,306,131,172,142,190,000,000,000,000,000,000,000
8
Make line_no with too large value(2**20) invalid. Fixes #124
static int tree_error(const char *str, const char *path) { if (path) giterr_set(GITERR_TREE, "%s - %s", str, path); else giterr_set(GITERR_TREE, "%s", str); return -1; }
0
[ "CWE-20" ]
libgit2
928429c5c96a701bcbcafacb2421a82602b36915
33,531,697,873,721,140,000,000,000,000,000,000,000
8
tree: Check for `.git` with case insensitivy