func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void readField( apache::thrift::optional_field_ref<T&> data, FieldType /* fieldType */) { data = readRaw<T>(); }
0
[ "CWE-400", "CWE-522", "CWE-674" ]
mcrouter
97e033b3bb0cb16b61bf49f0dc7f311a3e0edd1b
228,057,210,842,237,580,000,000,000,000,000,000,000
5
Attempt to make CarbonProtocolReader::skip tail recursive Reviewed By: edenzik Differential Revision: D17967570 fbshipit-source-id: fdc32e190a521349c7c8f4d6081902fa18eb0284
GF_Box *strk_box_new() { ISOM_DECL_BOX_ALLOC(GF_SubTrackBox, GF_ISOM_BOX_TYPE_STRK); return (GF_Box *)tmp;
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
3,605,376,862,563,804,000,000,000,000,000,000,000
5
fixed #1587
static void ff_layout_put_mirror(struct nfs4_ff_layout_mirror *mirror) { if (mirror != NULL && refcount_dec_and_test(&mirror->ref)) ff_layout_free_mirror(mirror); }
0
[ "CWE-787" ]
linux
ed34695e15aba74f45247f1ee2cf7e09d449f925
331,231,389,817,443,300,000,000,000,000,000,000,000
5
pNFS/flexfiles: fix incorrect size check in decode_nfs_fh() We (adam zabrocki, alexander matrosov, alexander tereshkin, maksym bazalii) observed the check: if (fh->size > sizeof(struct nfs_fh)) should not use the size of the nfs_fh struct which includes an extra two bytes from the size field. struct nfs_fh { unsi...
struct kvm_memory_slot *id_to_memslot(struct kvm_memslots *slots, int id) { int index = slots->id_to_index[id]; struct kvm_memory_slot *slot; if (index < 0) return NULL; slot = &slots->memslots[index]; WARN_ON(slot->id != id); return slot; }
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
120,203,230,021,077,050,000,000,000,000,000,000,000
13
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...
SdMmcCreateTrb ( IN SD_MMC_HC_PRIVATE_DATA *Private, IN UINT8 Slot, IN EFI_SD_MMC_PASS_THRU_COMMAND_PACKET *Packet, IN EFI_EVENT Event ) { SD_MMC_HC_TRB *Trb; EFI_STATUS Status; EFI_TPL ...
0
[]
edk2
e36d5ac7d10a6ff5becb0f52fdfd69a1752b0d14
239,107,478,179,829,040,000,000,000,000,000,000,000
117
MdeModulePkg/SdMmcPciHcDxe: Fix double PciIo Unmap in TRB creation (CVE-2019-14587) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1989 The commit will avoid unmapping the same resource in error handling logic for function BuildAdmaDescTable() and SdMmcCreateTrb(). For the error handling in BuildAdmaDescTable():...
void bnx2x_write_dmae(struct bnx2x *bp, dma_addr_t dma_addr, u32 dst_addr, u32 len32) { int rc; struct dmae_command dmae; if (!bp->dmae_ready) { u32 *data = bnx2x_sp(bp, wb_data[0]); if (CHIP_IS_E1(bp)) bnx2x_init_ind_wr(bp, dst_addr, data, len32); else bnx2x_init_str_wr(bp, dst_addr, data, len...
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
334,557,935,226,162,120,000,000,000,000,000,000,000
35
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...
START_TEST(human_time) { struct ht_tests { uint64_t interval; unsigned int value; const char *unit; } tests[] = { { 0, 0, "us" }, { 123, 123, "us" }, { ms2us(5), 5, "ms" }, { ms2us(100), 100, "ms" }, { s2us(5), 5, "s" }, { s2us(100), 100, "s" }, { s2us(120), 2, "min" }, { 5 * s2us(60), 5, "min" ...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
129,648,261,029,789,170,000,000,000,000,000,000,000
29
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
parse_config_line_from_str(const char *line, char **key_out, char **value_out) { /* I believe the file format here is supposed to be: FILE = (EMPTYLINE | LINE)* (EMPTYLASTLINE | LASTLINE)? EMPTYLASTLINE = SPACE* | COMMENT EMPTYLINE = EMPTYLASTLINE NL SPACE = ' ' | '\r' | '\t' COMMENT = '#' N...
0
[]
tor
973c18bf0e84d14d8006a9ae97fde7f7fb97e404
152,583,135,453,342,590,000,000,000,000,000,000,000
139
Fix assertion failure in tor_timegm. Fixes bug 6811.
uint8_t* SecureElementGetPin( void ) { return SeContext.Pin; }
0
[ "CWE-120", "CWE-787" ]
LoRaMac-node
e3063a91daa7ad8a687223efa63079f0c24568e4
31,070,997,955,920,870,000,000,000,000,000,000,000
4
Added received buffer size checks.
void build_ehash_secret(void) { u32 rnd; do { get_random_bytes(&rnd, sizeof(rnd)); } while (rnd == 0); cmpxchg(&inet_ehash_secret, 0, rnd); }
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
245,241,045,694,580,250,000,000,000,000,000,000,000
10
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...
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k) { CallInfo *ci; luai_userstateyield(L, nresults); lua_lock(L); ci = L->ci; api_checknelems(L, nresults); if (unlikely(!yieldable(L))) { if (L != G(L)->mainthread) luaG_runerror(L, "attemp...
0
[ "CWE-416", "CWE-125", "CWE-787" ]
lua
eb41999461b6f428186c55abd95f4ce1a76217d5
86,133,467,936,190,230,000,000,000,000,000,000,000
29
Fixed bugs of stack reallocation x GC Macro 'checkstackGC' was doing a GC step after resizing the stack; the GC could shrink the stack and undo the resize. Moreover, macro 'checkstackp' also does a GC step, which could remove the preallocated CallInfo when calling a function. (Its name has been changed to 'checkstackG...
void tftp_input(struct sockaddr_storage *srcsas, struct mbuf *m) { struct tftp_t *tp = mtod_check(m, offsetof(struct tftp_t, x.tp_buf)); if (tp == NULL) { return; } switch (ntohs(tp->tp_op)) { case TFTP_RRQ: tftp_handle_rrq(m->slirp, srcsas, tp, m->m_len); break; case ...
1
[]
libslirp
990163cf3ac86b7875559f49602c4d76f46f6f30
232,407,100,954,617,840,000,000,000,000,000,000,000
22
tftp: introduce a header structure Instead of using a composed structure and potentially reading past the incoming buffer, use a different structure for the header. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
static gboolean dissect_rtps_rtitcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { gint offset = 0; return dissect_rtps(tvb, pinfo, tree, offset); }
0
[ "CWE-401" ]
wireshark
33e63d19e5496c151bad69f65cdbc7cba2b4c211
115,704,368,905,659,700,000,000,000,000,000,000,000
6
RTPS: Fixup our coherent set map. coherent_set_tracking.coherent_set_registry_map uses a struct as a key, but the hash and comparison routines treat keys as a sequence of bytes. Make sure every key byte is initialized. Fixes #16994. Call wmem_strong_hash on our key in coherent_set_key_hash_by_key instead of creating ...
bool operator ()(const std::string& input, const std::string& pattern) const { return match_wildcards(pattern, input, 0); }
0
[ "CWE-617" ]
ceph
b3118cabb8060a8cc6a01c4e8264cb18e7b1745a
279,086,732,845,411,740,000,000,000,000,000,000,000
4
rgw: Remove assertions in IAM Policy A couple of them could be triggered by user input. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
static ut32 mem_barrier (ArmOp *op, ut64 addr, int k) { ut32 data = UT32_MAX; data = k; if (!strncmp (op->mnemonic, "isb", 3)) { if (op->operands[0].mem_option == 15 || op->operands[0].type == ARM_NOTYPE) { return data; } else { return UT32_MAX; } } if (op->operands[0].type == ARM_MEM_OPT) { data |= ...
0
[ "CWE-119", "CWE-787" ]
radare2
df167c7db545953bb7f71c72e98e7a3ca0c793bf
209,559,892,491,811,070,000,000,000,000,000,000,000
17
Fix #12376 - crash in: rasm2 -a arm -b 64 '0 ,0,0,0,0,0,0,'
int wolfSSH_SFTP_RecvRead(WOLFSSH* ssh, int reqId, byte* data, word32 maxSz) #ifndef USE_WINDOWS_API { WFD fd; word32 sz; int ret; word32 idx = 0; word32 ofst[2] = {0, 0}; byte* out; word32 outSz; char* res = NULL; char err[] = "Read File Error"; char eof[] = "Read EOF...
0
[ "CWE-190" ]
wolfssh
edb272e35ee57e7b89f3e127222c6981b6a1e730
312,841,785,511,253,340,000,000,000,000,000,000,000
95
ASAN SFTP Fixes When decoding SFTP messages, fix the size checks so they don't wrap. (ZD12766)
static gboolean avdtp_discover_cmd(struct avdtp *session, uint8_t transaction, void *buf, int size) { unsigned int rsp_size, sep_count; struct seid_info *seps, *p; gboolean ret; sep_count = queue_length(session->lseps); if (sep_count == 0) { uint8_t err = AVDTP_NOT_SUPPORTED_COMMAND; return avdtp_send...
0
[ "CWE-703" ]
bluez
7a80d2096f1b7125085e21448112aa02f49f5e9a
210,348,581,127,545,900,000,000,000,000,000,000,000
28
avdtp: Fix accepting invalid/malformed capabilities Check if capabilities are valid before attempting to copy them.
Proxy::Proxy(): type(QNetworkProxy::NoProxy), port(-1), host(), user(), password() {}
0
[ "CWE-22" ]
wkhtmltopdf
2a5f25077895fb075812c0f599326f079a59d6cf
83,842,950,631,364,330,000,000,000,000,000,000,000
6
BREAKING CHANGE: block local filesystem access by default fixes #4536
nfqnl_recv_verdict_batch(struct sock *ctnl, struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nfqa[]) { struct nfgenmsg *nfmsg = nlmsg_data(nlh); struct nf_queue_entry *entry, *tmp; unsigned int verdict, maxid; struct nfqnl_msg_verdict_hdr *vhdr; struct nfqnl_instance *queue; ...
0
[ "CWE-416" ]
net
36d5fe6a000790f56039afe26834265db0a3ad4c
174,419,350,203,219,700,000,000,000,000,000,000,000
48
core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors skb_zerocopy can copy elements of the frags array between skbs, but it doesn't orphan them. Also, it doesn't handle errors, so this patch takes care of that as well, and modify the callers accordingly. skb_tx_error() is also added to the caller...
fill_partial_and_closure(partial_T *pt, ufunc_T *ufunc, ectx_T *ectx) { pt->pt_func = ufunc; pt->pt_refcount = 1; if (ufunc->uf_flags & FC_CLOSURE) { dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data) + ectx->ec_dfunc_idx; // The closure may need to find arguments and local variables in th...
0
[ "CWE-416" ]
vim
9c23f9bb5fe435b28245ba8ac65aa0ca6b902c04
137,870,824,697,584,470,000,000,000,000,000,000,000
46
patch 8.2.3902: Vim9: double free with nested :def function Problem: Vim9: double free with nested :def function. Solution: Pass "line_to_free" from compile_def_function() and make sure cmdlinep is valid.
nautilus_file_get_directory_item_count (NautilusFile *file, guint *count, gboolean *count_unreadable) { if (count != NULL) { *count = 0; } if (count_unreadable != NULL) { *count_unreadable = FALSE; } g_return_val_if_fail (NAUTILUS_IS_FILE (file), FALSE); if (!nautilus_file_is_directory (file)) {...
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
141,062,047,683,390,470,000,000,000,000,000,000,000
25
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 void nfc_llcp_sdreq_timer(struct timer_list *t) { struct nfc_llcp_local *local = from_timer(local, t, sdreq_timer); schedule_work(&local->sdreq_timeout_work); }
0
[ "CWE-476" ]
linux
58bdd544e2933a21a51eecf17c3f5f94038261b5
154,548,132,531,147,690,000,000,000,000,000,000,000
6
net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails KASAN report this: BUG: KASAN: null-ptr-deref in nfc_llcp_build_gb+0x37f/0x540 [nfc] Read of size 3 at addr 0000000000000000 by task syz-executor.0/5401 CPU: 0 PID: 5401 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX ...
void setupNoTrafficHealthyValidationHC() { const std::string yaml = R"EOF( timeout: 1s interval: 1s no_traffic_interval: 5s no_traffic_healthy_interval: 10s interval_jitter: 1s unhealthy_threshold: 1 healthy_threshold: 1 http_health_check: service_name_matcher: prefix...
0
[ "CWE-476" ]
envoy
9b1c3962172a972bc0359398af6daa3790bb59db
293,321,779,275,908,900,000,000,000,000,000,000,000
18
healthcheck: fix grpc inline removal crashes (#749) Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
int snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len) { int c = -1; if (snd_BUG_ON(!buffer || !buffer->buffer)) return 1; if (len <= 0 || buffer->stop || buffer->error) return 1; while (!buffer->stop) { c = buffer->buffer[buffer->curr++]; if (buffer->curr >= buffer->size) buffer->st...
0
[ "CWE-416" ]
linux
8c2f870890fd28e023b0fcf49dcee333f2c8bad7
187,951,122,141,117,160,000,000,000,000,000,000,000
22
ALSA: info: Fix racy addition/deletion of nodes The ALSA proc helper manages the child nodes in a linked list, but its addition and deletion is done without any lock. This leads to a corruption if they are operated concurrently. Usually this isn't a problem because the proc entries are added sequentially in the driv...
static void intel_iommu_free_atsr(struct dmar_atsr_unit *atsru) { dmar_free_dev_scope(&atsru->devices, &atsru->devices_cnt); kfree(atsru); }
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
11,531,387,915,655,482,000,000,000,000,000,000,000
5
iommu/vt-d: Disable ATS support on untrusted devices Commit fb58fdcd295b9 ("iommu/vt-d: Do not enable ATS for untrusted devices") disables ATS support on the devices which have been marked as untrusted. Unfortunately this is not enough to fix the DMA attack vulnerabiltiies because IOMMU driver allows translated reques...
parseOptions(CotpConnection* self, uint8_t* buffer, int bufLen) { int bufPos = 0; while (bufPos < bufLen) { uint8_t optionType = buffer[bufPos++]; uint8_t optionLen = buffer[bufPos++]; if (optionLen > (bufLen - bufPos)) { if (DEBUG_COTP) printf("COTP: option...
0
[ "CWE-122" ]
libiec61850
033ab5b6488250c8c3b838f25a7cbc3e099230bb
48,747,481,458,973,495,000,000,000,000,000,000,000
79
- COTP: fixed possible heap buffer overflow when handling message with invalid (zero) value in length field (#250)
op_tilde(oparg_T *oap) { pos_T pos; struct block_def bd; int did_change = FALSE; if (u_save((linenr_T)(oap->start.lnum - 1), (linenr_T)(oap->end.lnum + 1)) == FAIL) return; pos = oap->start; if (oap->block_mode) // Visual block mode { for (; pos.lnum <= oap->end.lnum; ...
0
[ "CWE-416", "CWE-787" ]
vim
9f8c304c8a390ade133bac29963dc8e56ab14cbc
87,556,405,887,016,120,000,000,000,000,000,000,000
108
patch 8.2.4120: block insert goes over the end of the line Problem: Block insert goes over the end of the line. Solution: Handle invalid byte better. Fix inserting the wrong text.
xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) { xmlChar *encoding = NULL; SKIP_BLANKS; if (CMP8(CUR_PTR, 'e', 'n', 'c', 'o', 'd', 'i', 'n', 'g')) { SKIP(8); SKIP_BLANKS; if (RAW != '=') { xmlFatalErr(ctxt, XML_ERR_EQUAL_REQUIRED, NULL); return(NULL); } NEXT; SKIP_BLANKS; if (RAW == '"...
1
[ "CWE-119" ]
libxml2
9aa37588ee78a06ca1379a9d9356eab16686099c
21,647,804,065,054,100,000,000,000,000,000,000,000
91
Do not process encoding values if the declaration if broken For https://bugzilla.gnome.org/show_bug.cgi?id=751603 If the string is not properly terminated do not try to convert to the given encoding.
static double mp_add(_cimg_math_parser& mp) { return _mp_arg(2) + _mp_arg(3);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
13,594,791,545,903,283,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static int assess_root_directory( const struct security_assessor *a, const struct security_info *info, const void *data, uint64_t *ret_badness, char **ret_description) { assert(ret_badness); assert(ret_description); ...
0
[ "CWE-269" ]
systemd
9d880b70ba5c6ca83c82952f4c90e86e56c7b70c
90,633,393,301,891,870,000,000,000,000,000,000,000
19
analyze: check for RestrictSUIDSGID= in "systemd-analyze security" And let's give it a heigh weight, since it pretty much can be used for bad things only.
ipcp_value_base () : local_time_benefit (0), local_size_cost (0), prop_time_benefit (0), prop_size_cost (0) {}
0
[ "CWE-20" ]
gcc
a09ccc22459c565814f79f96586fe4ad083fe4eb
260,397,049,379,740,660,000,000,000,000,000,000,000
3
Avoid segfault when doing IPA-VRP but not IPA-CP (PR 93015) 2019-12-21 Martin Jambor <mjambor@suse.cz> PR ipa/93015 * ipa-cp.c (ipcp_store_vr_results): Check that info exists testsuite/ * gcc.dg/lto/pr93015_0.c: New test. From-SVN: r279695
static int af9005_pid_filter_control(struct dvb_usb_adapter *adap, int onoff) { int ret; deb_info("pid filter control onoff %d\n", onoff); if (onoff) { ret = af9005_write_ofdm_register(adap->dev, XD_MP2IF_DMX_CTRL, 1); if (ret) return ret; ret = af9005_write_register_bits(adap->dev, ...
0
[ "CWE-400", "CWE-401" ]
linux
2289adbfa559050d2a38bcd9caac1c18b800e928
77,750,482,555,027,910,000,000,000,000,000,000,000
24
media: usb: fix memory leak in af9005_identify_state In af9005_identify_state when returning -EIO the allocated buffer should be released. Replace the "return -EIO" with assignment into ret and move deb_info() under a check. Fixes: af4e067e1dcf ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech") S...
static inline int16_t blur_func(int16_t p4, int16_t p3, int16_t p2, int16_t p1, int16_t z0, int16_t n1, int16_t n2, int16_t n3, int16_t n4, const int16_t c[]) { p1 -= z0; p2 -= z0; p3 -= z0; p4 -= z0; n1 -= z0; n2 -= z0; n3 -= z0; n4 -= z0; return (((p...
0
[ "CWE-119", "CWE-787" ]
libass
08e754612019ed84d1db0d1fc4f5798248decd75
238,316,783,448,300,250,000,000,000,000,000,000,000
17
Fix blur coefficient calculation buffer overflow Found by fuzzer test case id:000082,sig:11,src:002579,op:havoc,rep:8. Correctness should be checked, but this fixes the overflow for good.
QemuConsole *qemu_console_lookup_by_device_name(const char *device_id, uint32_t head, Error **errp) { DeviceState *dev; QemuConsole *con; dev = qdev_find_recursive(sysbus_get_default(), device_id); if (dev == NULL) { error_set(errp, ERROR_CLASS_DE...
0
[ "CWE-416" ]
qemu
a4afa548fc6dd9842ed86639b4d37d4d1c4ad480
290,805,089,283,046,850,000,000,000,000,000,000,000
22
char: move front end handlers in CharBackend Since the hanlders are associated with a CharBackend, rather than the CharDriverState, it is more appropriate to store in CharBackend. This avoids the handler copy dance in qemu_chr_fe_set_handlers() then mux_chr_update_read_handler(), by storing the CharBackend pointer dir...
static void reload_host_efer(struct vcpu_vmx *vmx) { if (vmx->host_state.guest_efer_loaded) { vmx->host_state.guest_efer_loaded = 0; load_msrs(vmx->host_msrs + vmx->msr_offset_efer, 1); } }
0
[ "CWE-20" ]
linux-2.6
16175a796d061833aacfbd9672235f2d2725df65
98,886,247,269,618,760,000,000,000,000,000,000,000
7
KVM: VMX: Don't allow uninhibited access to EFER on i386 vmx_set_msr() does not allow i386 guests to touch EFER, but they can still do so through the default: label in the switch. If they set EFER_LME, they can oops the host. Fix by having EFER access through the normal channel (which will check for EFER_LME) even o...
static int mtrim (mstate av, size_t pad) { /* Ensure all blocks are consolidated. */ malloc_consolidate (av); const size_t ps = GLRO (dl_pagesize); int psindex = bin_index (ps); const size_t psm1 = ps - 1; int result = 0; for (int i = 1; i < NBINS; ++i) if (i == 1 || i >= psindex) { m...
0
[ "CWE-787" ]
glibc
d6db68e66dff25d12c3bc5641b60cbd7fb6ab44f
65,756,107,970,302,580,000,000,000,000,000,000,000
54
malloc: Mitigate null-byte overflow attacks * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size. (malloc_consolidate): Likewise.
static void shownested() { int i; eprintf ("[[[NESTED %d]]] ", context); for (i = 0; egg->lang.nested[i]; i++) { eprintf ("%s ", egg->lang.nested[i]); } eprintf ("\n"); }
0
[ "CWE-416" ]
radare2
93af319e0af787ede96537d46210369f5c24240c
332,368,532,930,375,950,000,000,000,000,000,000,000
8
Fix #14296 - Segfault in ragg2 (#14308)
static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) { struct sock *sk = sock->sk; struct l2cap_chan *chan = l2cap_pi(sk)->chan; struct sockaddr_l2 la; int len, err = 0; BT_DBG("sk %p", sk); if (!addr || alen < sizeof(addr->sa_family) || addr->sa_family != AF_BLUET...
0
[ "CWE-200" ]
linux
792039c73cf176c8e39a6e8beef2c94ff46522ed
23,511,074,185,961,450,000,000,000,000,000,000,000
34
Bluetooth: L2CAP - Fix info leak via getsockname() The L2CAP code fails to initialize the l2_bdaddr_type member of struct sockaddr_l2 and the padding byte added for alignment. It that for leaks two bytes kernel stack via the getsockname() syscall. Add an explicit memset(0) before filling the structure to avoid the inf...
dns_zone_setdialup(dns_zone_t *zone, dns_dialuptype_t dialup) { REQUIRE(DNS_ZONE_VALID(zone)); LOCK_ZONE(zone); DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_DIALNOTIFY | DNS_ZONEFLG_DIALREFRESH | DNS_ZONEFLG_NOREFRESH); switch (dialup) { case dns_dialuptype_no: break; case dns_dialuptype_yes: DNS_ZONE_SETFLAG(...
0
[ "CWE-327" ]
bind9
f09352d20a9d360e50683cd1d2fc52ccedcd77a0
55,423,272,290,091,410,000,000,000,000,000,000,000
35
Update keyfetch_done compute_tag check If in keyfetch_done the compute_tag fails (because for example the algorithm is not supported), don't crash, but instead ignore the key.
int proc_nr_files(ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { return -ENOSYS; }
0
[ "CWE-17" ]
linux
eee5cc2702929fd41cce28058dc6d6717f723f87
36,098,374,803,840,400,000,000,000,000,000,000,000
5
get rid of s_files and files_lock The only thing we need it for is alt-sysrq-r (emergency remount r/o) and these days we can do just as well without going through the list of files. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mono_image_get_generic_field_token (MonoDynamicImage *assembly, MonoReflectionFieldBuilder *fb) { MonoDynamicTable *table; MonoClass *klass; MonoType *custom = NULL; guint32 *values; guint32 token, pclass, parent, sig; gchar *name; token = GPOINTER_TO_UINT (g_hash_table_lookup (assembly->handleref, fb)); if (t...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
241,790,258,867,517,300,000,000,000,000,000,000,000
48
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
const struct user_regset_view *task_user_regset_view(struct task_struct *task) { return &user_arm_view; }
0
[ "CWE-284", "CWE-264" ]
linux
a4780adeefd042482f624f5e0d577bf9cdcbb760
273,146,103,008,329,970,000,000,000,000,000,000,000
4
ARM: 7735/2: Preserve the user r/w register TPIDRURW on context switch and fork Since commit 6a1c53124aa1 the user writeable TLS register was zeroed to prevent it from being used as a covert channel between two tasks. There are more and more applications coming to Windows RT, Wine could support them, but mostly they ...
njs_value_is_string(const njs_value_t *value) { return njs_is_string(value); }
0
[]
njs
6549d49630ce5f5ac823fd3ae0c6c8558b8716ae
267,300,337,089,230,840,000,000,000,000,000,000,000
4
Fixed redefinition of special props in Object.defineProperty(). Previously, when NJS_PROPERTY_HANDLER property was updated it might be left in inconsistent state. Namely, prop->type was left unchanged, but prop->value did not have an expected property handler. As a result consecutive reference to the property may re...
int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu, struct kvm_guest_debug *dbg) { int rc = 0; vcpu_load(vcpu); vcpu->guest_debug = 0; kvm_s390_clear_bp_data(vcpu); if (dbg->control & ~VALID_GUESTDBG_FLAGS) { rc = -EINVAL; goto out; } if (!sclp.has_gpere) { rc = -EINVAL; goto out; } ...
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
222,586,295,836,565,200,000,000,000,000,000,000,000
41
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 void test_insert_select() { MYSQL_STMT *stmt_insert, *stmt_select; char *query; int rc; uint i; myheader("test_insert_select"); rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1, t2"); myquery(rc); rc= mysql_query(mysql, "create table t1 (a int)"); myquery(rc); rc= mysql_query(mysql, "create...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
22,246,339,084,228,203,000,000,000,000,000,000,000
46
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
_wrap_umac128_set_key(void *ctx, size_t len, const uint8_t * key) { if (unlikely(len != 16)) abort(); umac128_set_key(ctx, key); }
0
[ "CWE-476" ]
gnutls
3db352734472d851318944db13be73da61300568
5,801,477,702,062,253,000,000,000,000,000,000,000
6
wrap_nettle_hash_fast: avoid calling _update with zero-length input As Nettle's hash update functions internally call memcpy, providing zero-length input may cause undefined behavior. Signed-off-by: Daiki Ueno <ueno@gnu.org>
int nft_set_elem_expr_clone(const struct nft_ctx *ctx, struct nft_set *set, struct nft_expr *expr_array[]) { struct nft_expr *expr; int err, i, k; for (i = 0; i < set->num_exprs; i++) { expr = kzalloc(set->exprs[i]->ops->size, GFP_KERNEL_ACCOUNT); if (!expr) goto err_expr; err = nft_expr_clone(expr...
0
[]
net
520778042ccca019f3ffa136dd0ca565c486cedd
329,895,992,640,388,560,000,000,000,000,000,000,000
27
netfilter: nf_tables: disallow non-stateful expression in sets earlier Since 3e135cd499bf ("netfilter: nft_dynset: dynamic stateful expression instantiation"), it is possible to attach stateful expressions to set elements. cd5125d8f518 ("netfilter: nf_tables: split set destruction in deactivate and destroy phase") in...
dnsname_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) { int i; /* DNS name decoding - no decompression */ ND_PRINT((ndo,", \"")); while (cp < ep) { i = *cp++; if (i) { if (i > ep - cp) { ND_PRINT((ndo,"???")); break; } while (i-- && cp < ep) { safeputchar(ndo, *cp); ...
0
[ "CWE-125" ]
tcpdump
d7505276842e85bfd067fa21cdb32b8a2dc3c5e4
220,688,790,573,193,040,000,000,000,000,000,000,000
34
(for 4.9.3) CVE-2018-14882/ICMP6 RPL: Add a missing bounds check Moreover: Add and use *_tstr[] strings. Update four tests outputs accordingly. Fix a space. Wang Junjie of 360 ESG Codesafe Team had independently identified this vulnerability in 2018 by means of fuzzing and provided the packet capture file for the tes...
int git_index_reuc_add(git_index *index, const char *path, int ancestor_mode, const git_oid *ancestor_oid, int our_mode, const git_oid *our_oid, int their_mode, const git_oid *their_oid) { git_index_reuc_entry *reuc = NULL; int error = 0; assert(index && path); if ((error = index_entry_reuc_init(&reuc, path, a...
0
[ "CWE-415", "CWE-190" ]
libgit2
3db1af1f370295ad5355b8f64b865a2a357bcac0
158,588,454,225,419,430,000,000,000,000,000,000,000
17
index: error out on unreasonable prefix-compressed path lengths When computing the complete path length from the encoded prefix-compressed path, we end up just allocating the complete path without ever checking what the encoded path length actually is. This can easily lead to a denial of service by just encoding an un...
static int alloc_path_reqs(struct rtrs_clt_path *clt_path) { struct rtrs_clt_io_req *req; int i, err = -ENOMEM; clt_path->reqs = kcalloc(clt_path->queue_depth, sizeof(*clt_path->reqs), GFP_KERNEL); if (!clt_path->reqs) return -ENOMEM; for (i = 0; i < clt_path->queue_depth; ++i) { req = &clt_path->r...
0
[ "CWE-415" ]
linux
8700af2cc18c919b2a83e74e0479038fd113c15d
326,569,019,532,128,470,000,000,000,000,000,000,000
45
RDMA/rtrs-clt: Fix possible double free in error case Callback function rtrs_clt_dev_release() for put_device() calls kfree(clt) to free memory. We shouldn't call kfree(clt) again, and we can't use the clt after kfree too. Replace device_register() with device_initialize() and device_add() so that dev_set_name can() ...
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, NumInputs(node), 1); TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1); const TfLiteTensor* input; TF_LITE_ENSURE_OK(context, GetInputSafe(context, node, kInputTensor, &input)); TfLiteTensor* output; TF_LITE_ENSURE_OK...
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
162,965,031,960,569,030,000,000,000,000,000,000,000
53
[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...
expand_sfile(char_u *arg) { char *errormsg; int len; char_u *result; char_u *newres; char_u *repl; int srclen; char_u *p; result = vim_strsave(arg); if (result == NULL) return NULL; for (p = result; *p; ) { if (STRNCMP(p, "<sfile>", 7) != 0) ++p; else { /* r...
0
[ "CWE-78" ]
vim
8c62a08faf89663e5633dc5036cd8695c80f1075
115,003,367,375,038,510,000,000,000,000,000,000,000
55
patch 8.1.0881: can execute shell commands in rvim through interfaces Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others.
string_append_listele_n(gstring * list, uschar sep, const uschar * ele, unsigned len) { const uschar * sp; if (list && list->ptr) list = string_catn(list, &sep, 1); while((sp = Ustrnchr(ele, sep, &len))) { list = string_catn(list, ele, sp-ele+1); list = string_catn(list, &sep, 1); ele = sp+1; len--; } ...
0
[]
exim
2600301ba6dbac5c9d640c87007a07ee6dcea1f4
298,243,511,998,237,600,000,000,000,000,000,000,000
19
string.c: do not interpret '\\' before '\0' (CVE-2019-15846) Add documents about CVE-2019-15846 Add testcase for CVE-2019-15846 Update Changelog Add Announcements
ms_escher_read_ClientAnchor (MSEscherState *state, MSEscherHeader *h) { gboolean needs_free; guint8 const *data; g_return_val_if_fail (state != NULL, TRUE); g_return_val_if_fail (state->container != NULL, TRUE); data = ms_escher_get_data (state, h->offset + COMMON_HEADER_LEN, MS_ANCHOR_SIZE, &needs_free); #if ...
0
[ "CWE-119" ]
gnumeric
b5480b69345b3c6d56ee0ed9c9e9880bb2a08cdc
15,176,919,987,484,133,000,000,000,000,000,000,000
26
xls: fuzzed file crash.
static rsRetVal qDelDirect(qqueue_t __attribute__((unused)) *pThis) { return RS_RET_OK; }
0
[ "CWE-772" ]
rsyslog
dfa88369d4ca4290db56b843f9eabdae1bfe0fd5
4,572,666,150,150,072,600,000,000,000,000,000,000
4
bugfix: memory leak when $RepeatedMsgReduction on was used bug tracker: http://bugzilla.adiscon.com/show_bug.cgi?id=225
xmlSchemaParseSimpleType(xmlSchemaParserCtxtPtr ctxt, xmlSchemaPtr schema, xmlNodePtr node, int topLevel) { xmlSchemaTypePtr type, oldCtxtType; xmlNodePtr child = NULL; const xmlChar *attrValue = NULL; xmlAttrPtr attr; int hasRestriction = 0; if ((ctxt == NULL) || (sche...
0
[ "CWE-134" ]
libxml2
4472c3a5a5b516aaf59b89be602fbce52756c3e9
303,251,825,895,855,640,000,000,000,000,000,000,000
201
Fix some format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
R_API void r_bin_java_get_field_json_definition(RBinJavaObj *bin, RBinJavaField *fm_type, PJ *pj) { r_bin_java_get_fm_type_definition_json (bin, fm_type, pj, 0); }
0
[ "CWE-125" ]
radare2
0927ed3ae99444e7b47b84e43118deb10fe37529
190,869,435,494,611,160,000,000,000,000,000,000,000
3
Fix oobread crash in java parser ##crash * Reported by @bet4it via @huntrdev * BountyID: 229a2e0d-9e5c-402f-9a24-57fa2eb1aaa7 * Reproducer: poc4java
remove_events (const char *bus_name, const char *event) { gchar **remove_data; GList *list; remove_data = g_strsplit (event, ":", 3); if (!remove_data) { return; } for (list = spi_global_app_data->events; list;) { event_data *evdata = list->data; if (!g_strcmp0 (evdata->bus_nam...
0
[]
at-spi2-atk
e4f3eee2e137cd34cd427875365f458c65458164
241,998,595,625,847,370,000,000,000,000,000,000,000
32
Use XDG_RUNTIME_DIR to hold sockets, and do not make a world-writable dir If we use XDG_RUNTIME_DIR, then the directory should be owned by the appropriate user, so it should not need to be world-writable. Hopefully this won't break accessibility for administrative apps on some distro. https://bugzilla.gnome.org/show_...
std::string format_message(int id, const char *format, const fmt::ArgList &args) { MemoryWriter w; w.write("[{}] ", id); w.write(format, args); return w.str(); }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
14,882,846,365,150,650,000,000,000,000,000,000,000
7
Fix segfault on complex pointer formatting (#642)
SPL_METHOD(Array, rewind) { zval *object = getThis(); spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(object TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } spl_array_rewind(intern TSRMLS_CC); }
0
[]
php-src
a374dfab567ff7f0ab0dc150f14cc891b0340b47
250,828,040,458,352,700,000,000,000,000,000,000,000
11
Fix bug #67492: unserialize() SPL ArrayObject / SPLObjectStorage Type Confusion
const BlockEntry* Track::GetEOS() const { return &m_eos; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
237,992,496,119,466,480,000,000,000,000,000,000,000
1
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
int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info) { int rc, size = cmap->len * sizeof(u16); struct fb_cmap umap; if (size < 0 || size < cmap->len) return -E2BIG; memset(&umap, 0, sizeof(struct fb_cmap)); rc = fb_alloc_cmap_gfp(&umap, cmap->len, cmap->transp != NULL, GFP_KERNEL); if (rc...
0
[ "CWE-200" ]
linux
2dc705a9930b4806250fbf5a76e55266e59389f2
236,453,609,974,431,000,000,000,000,000,000,000,000
32
fbdev: color map copying bounds checking Copying color maps to userspace doesn't check the value of to->start, which will cause kernel heap buffer OOB read due to signedness wraps. CVE-2016-8405 Link: http://lkml.kernel.org/r/20170105224249.GA50925@beast Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Kees C...
BOOL ValidateIOBufferSize (PIRP irp, size_t requiredBufferSize, ValidateIOBufferSizeType type) { PIO_STACK_LOCATION irpSp = IoGetCurrentIrpStackLocation (irp); BOOL input = (type == ValidateInput || type == ValidateInputOutput); BOOL output = (type == ValidateOutput || type == ValidateInputOutput); if ((input && i...
0
[ "CWE-119", "CWE-787" ]
VeraCrypt
f30f9339c9a0b9bbcc6f5ad38804af39db1f479e
95,131,515,627,723,100,000,000,000,000,000,000,000
21
Windows: fix low severity vulnerability in driver that allowed reading 3 bytes of kernel stack memory (with a rare possibility of 25 additional bytes). Reported by Tim Harrison.
_outNestLoop(StringInfo str, const NestLoop *node) { WRITE_NODE_TYPE("NESTLOOP"); _outJoinPlanInfo(str, (const Join *) node); WRITE_NODE_FIELD(nestParams); }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
140,375,539,029,732,920,000,000,000,000,000,000,000
8
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...
static inline int frstor_user(struct i387_fsave_struct __user *fx) { return user_insn(frstor %[fx], "=m" (*fx), [fx] "m" (*fx)); }
0
[ "CWE-284", "CWE-264" ]
linux
26bef1318adc1b3a530ecc807ef99346db2aa8b0
142,442,232,485,789,900,000,000,000,000,000,000,000
4
x86, fpu, amd: Clear exceptions in AMD FXSAVE workaround Before we do an EMMS in the AMD FXSAVE information leak workaround we need to clear any pending exceptions, otherwise we trap with a floating-point exception inside this code. Reported-by: halfdog <me@halfdog.net> Tested-by: Borislav Petkov <bp@suse.de> Link: h...
static void set_own_dir(const char *argv0) { size_t l = strlen(argv0); while(l && argv0[l - 1] != '/') l--; if(l == 0) #ifdef SUPER_SECURE memcpy(own_dir, "/dev/null/", 2); #else memcpy(own_dir, ".", 2); #endif else { memcpy(own_dir, argv0, l - 1); own_dir[l] = 0; } }
0
[ "CWE-426" ]
proxychains-ng
9ab7dbeb3baff67a51d0c5e71465c453be0890b5
294,225,331,763,851,460,000,000,000,000,000,000,000
15
fix for CVE-2015-3887 closes #60
dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int *flags) { Elf32_Phdr ph32; Elf64_Phdr ph64; size_t offset; unsigned char nbuf[BUFSIZ]; ssize_t bufsize; off_t savedoffset; struct stat st; if (fstat(fd, &st) < 0) { file_badread(ms); return ...
0
[]
file
956a45ab1c54b11304b367056f41905e72a02380
47,695,726,500,981,920,000,000,000,000,000,000,000
73
support ld build id printing.
bool in_task_stack(unsigned long *stack, struct task_struct *task, struct stack_info *info) { unsigned long *begin = task_stack_page(task); unsigned long *end = task_stack_page(task) + THREAD_SIZE; if (stack < begin || stack >= end) return false; info->type = STACK_TYPE_TASK; info->begin = begin; info-...
0
[ "CWE-20" ]
linux
342db04ae71273322f0011384a9ed414df8bdae4
27,808,806,422,445,014,000,000,000,000,000,000,000
16
x86/dumpstack: Don't dump kernel memory based on usermode RIP show_opcodes() is used both for dumping kernel instructions and for dumping user instructions. If userspace causes #PF by jumping to a kernel address, show_opcodes() can be reached with regs->ip controlled by the user, pointing to kernel code. Make sure th...
int spk_ttyio_synth_probe(struct spk_synth *synth) { int rv = spk_ttyio_initialise_ldisc(synth); if (rv) return rv; synth->alive = 1; spk_ttyio_synth = synth; return 0; }
0
[ "CWE-362", "CWE-763" ]
linux
d4122754442799187d5d537a9c039a49a67e57f1
232,478,042,709,484,500,000,000,000,000,000,000,000
12
speakup: Do not let the line discipline be used several times Speakup has only one speakup_tty variable to store the tty it is managing. This makes sense since its codebase currently assumes that there is only one user who controls the screen reading. That however means that we have to forbid using the line disciplin...
static struct rds_connection *__rds_conn_create(struct net *net, __be32 laddr, __be32 faddr, struct rds_transport *trans, gfp_t gfp, int is_outgoing) { struct rds_connection *conn, *parent = NULL; struct hlist_head *head = rds_conn_bucket(laddr, faddr); struct rds_transport *loop_trans; ...
1
[ "CWE-703" ]
linux
74e98eb085889b0d2d4908f59f6e00026063014f
258,362,447,413,145,100,000,000,000,000,000,000,000
144
RDS: verify the underlying transport exists before creating a connection There was no verification that an underlying transport exists when creating a connection, this would cause dereferencing a NULL ptr. It might happen on sockets that weren't properly bound before attempting to send a message, which will cause a N...
dialogResult_t Sys_Dialog( dialogType_t type, const char *message, const char *title ) { UINT uType; switch( type ) { default: case DT_INFO: uType = MB_ICONINFORMATION|MB_OK; break; case DT_WARNING: uType = MB_ICONWARNING|MB_OK; break; case DT_ERROR: uType = MB_ICONERROR|MB_OK; break; case DT_Y...
0
[ "CWE-59" ]
ioq3
b5acc31a4da72cc3a4a6d88facb15b6214d745c6
199,395,396,518,766,440,000,000,000,000,000,000,000
23
CVE-2012-3345
void SpatialMaxPool(OpKernelContext* context, Tensor* output, const Tensor& tensor_in, const PoolParameters& params, const Padding& padding) { // On GPU, use Eigen's Spatial Max Pooling. On CPU, use an // EigenMatrix version that is currently faster than Eigen's ...
1
[ "CWE-354" ]
tensorflow
4dddb2fd0b01cdd196101afbba6518658a2c9e07
14,690,394,232,253,800,000,000,000,000,000,000,000
110
Fix segfault in pools on empty shapes when certain dimension were very large. Pooling ops multiply certain components of the input shape, e.g. by multiplying input.shape[1] * input.shape[2] * input.shape[3]. This multiplication could overflow an int64 value if shape[0] was 0 but shape[1], shape[2], and shape[3] were v...
static void io_rsrc_data_ref_zero(struct percpu_ref *ref) { struct fixed_rsrc_data *data; data = container_of(ref, struct fixed_rsrc_data, refs); complete(&data->done);
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
208,866,767,075,407,460,000,000,000,000,000,000,000
7
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...
void cfg80211_tdls_oper_request(struct net_device *dev, const u8 *peer, enum nl80211_tdls_operation oper, u16 reason_code, gfp_t gfp) { struct wireless_dev *wdev = dev->ieee80211_ptr; struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); struct sk_buff *msg; void *hdr; trace_cfg80211_tdls_...
0
[ "CWE-120" ]
linux
f88eb7c0d002a67ef31aeb7850b42ff69abc46dc
190,306,278,883,592,250,000,000,000,000,000,000,000
39
nl80211: validate beacon head We currently don't validate the beacon head, i.e. the header, fixed part and elements that are to go in front of the TIM element. This means that the variable elements there can be malformed, e.g. have a length exceeding the buffer size, but most downstream code from this assumes that thi...
ews_connection_utils_maybe_prepare_bearer_auth (EEwsConnection *cnc, SoupMessage *message, GCancellable *cancellable) { ESource *source; ESoupAuthBearer *using_bearer_auth; gchar *auth_method = NULL; gboolean success; GError *local_error = NULL; g_return_val_if_fail (E_IS_EWS_CONNECTION (cnc), FALSE)...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
74,707,876,181,099,060,000,000,000,000,000,000,000
91
I#27 - SSL Certificates are not validated This depends on https://gitlab.gnome.org/GNOME/evolution-data-server/commit/6672b8236139bd6ef41ecb915f4c72e2a052dba5 too. Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
long simple_strtol(const char *cp, char **endp, unsigned int base) { if (*cp == '-') return -simple_strtoul(cp + 1, endp, base); return simple_strtoul(cp, endp, base); }
0
[ "CWE-200" ]
linux
ad67b74d2469d9b82aaa572d76474c95bc484d57
159,667,085,077,368,880,000,000,000,000,000,000,000
7
printk: hash addresses printed with %p Currently there exist approximately 14 000 places in the kernel where addresses are being printed using an unadorned %p. This potentially leaks sensitive information regarding the Kernel layout in memory. Many of these calls are stale, instead of fixing every call lets hash the a...
//! Convert pixel values from RGB to sRGB color spaces \newinstance. CImg<Tfloat> get_RGBtosRGB() const { return CImg<Tfloat>(*this,false).RGBtosRGB();
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
24,205,728,481,034,470,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
_nc_set_tputs_trace(const char *s) { if (CURRENT_SCREEN) CURRENT_SCREEN->_tputs_trace = s; else _nc_prescreen._tputs_trace = s; }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
230,789,206,733,723,200,000,000,000,000,000,000,000
7
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 float powf_lim(float a, float b, float limup) { return (b > limup || b < -limup) ? 0.f : powf(a, b); }
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
184,446,905,605,582,300,000,000,000,000,000,000,000
1
Secunia SA75000 advisory: several buffer overruns
dissect_tcpopt_unknown(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void* data _U_) { proto_item *item; proto_tree *exp_tree; int offset = 0, optlen = tvb_reported_length(tvb); item = proto_tree_add_item(tree, proto_tcp_option_unknown, tvb, offset, -1, ENC_NA); exp_tree = proto_item_add...
0
[ "CWE-354" ]
wireshark
7f3fe6164a68b76d9988c4253b24d43f498f1753
59,727,358,969,455,990,000,000,000,000,000,000,000
16
TCP: do not use an unknown status when the checksum is 0xffff Otherwise it triggers an assert when adding the column as the field is defined as BASE_NONE and not BASE_DEC or BASE_HEX. Thus an unknown value (not in proto_checksum_vals[)array) cannot be represented. Mark the checksum as bad even if we process the packet...
TEST_F(RouterTest, UpstreamSSLConnection) { NiceMock<Http::MockRequestEncoder> encoder; Http::ResponseDecoder* response_decoder = nullptr; std::string session_id = "D62A523A65695219D46FE1FFE285A4C371425ACE421B110B5B8D11D3EB4D5F0B"; auto connection_info = std::make_shared<NiceMock<Ssl::MockConnectionInfo>>(); ...
0
[ "CWE-703" ]
envoy
f0bb2219112d8cdb4c4e8b346834f962925362ca
239,994,011,047,307,600,000,000,000,000,000,000,000
35
[1.20] CVE-2022-21655 Crash with direct_response Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
static int read_data(void *opaque, uint8_t *buf, int buf_size) { struct playlist *v = opaque; HLSContext *c = v->parent->priv_data; int ret, i; int just_opened = 0; int reload_count = 0; restart: if (!v->needed) return AVERROR_EOF; if (!v->input) { int64_t reload_interval; ...
0
[ "CWE-416" ]
FFmpeg
6959358683c7533f586c07a766acc5fe9544d8b2
230,988,185,553,634,700,000,000,000,000,000,000,000
116
avformat/hls: check segment duration value of EXTINF fix ticket: 8673 set the default EXTINF duration to 1ms if duration is smaller than 1ms Signed-off-by: Steven Liu <lq@chinaffmpeg.org> (cherry picked from commit 9dfb19baeb86a8bb02c53a441682c6e9a6e104cc)
static int add_push_report_sideband_pkt(git_push *push, git_pkt_data *data_pkt, git_buf *data_pkt_buf) { git_pkt *pkt; const char *line, *line_end = NULL; size_t line_len; int error; int reading_from_buf = data_pkt_buf->size > 0; if (reading_from_buf) { /* We had an existing partial packet, so add the new *...
1
[ "CWE-476", "CWE-119" ]
libgit2
2fdef641fd0dd2828bd948234ae86de75221a11a
264,973,995,053,617,200,000,000,000,000,000,000,000
61
smart_pkt: treat empty packet lines as error The Git protocol does not specify what should happen in the case of an empty packet line (that is a packet line "0004"). We currently indicate success, but do not return a packet in the case where we hit an empty line. The smart protocol was not prepared to handle such pack...
TEST_F(DnsImplConstructor, SupportCustomAddressInstances) { auto test_instance(std::make_shared<CustomInstance>("127.0.0.1", 45)); EXPECT_EQ(test_instance->asString(), "127.0.0.1:borked_port_45"); auto resolver = dispatcher_->createDnsResolver({test_instance}, false); auto peer = std::make_unique<DnsResolverImp...
0
[ "CWE-400" ]
envoy
542f84c66e9f6479bc31c6f53157c60472b25240
291,553,183,159,347,640,000,000,000,000,000,000,000
14
overload: Runtime configurable global connection limits (#147) Signed-off-by: Tony Allen <tony@allen.gg>
Status AutoParallel::Initialize(const GrapplerItem& item) { num_gpus_ = GetNumAvailableGPUs(); LOG(INFO) << "Number of GPUs: " << num_gpus_; item_ = &item; graph_ = item.graph; LOG(INFO) << "Original graph size: " << graph_.node_size(); if (item.fetch.empty()) { return Status(error::INVALID_ARGUMENT, "N...
1
[ "CWE-703", "CWE-908" ]
tensorflow
68867bf01239d9e1048f98cbad185bf4761bedd3
44,781,454,719,041,050,000,000,000,000,000,000,000
125
Prevent unitialized variable use in grappler. PiperOrigin-RevId: 399702928 Change-Id: Id7e75451fbff297692dfb687f60ea04b25c96b24
handle_raw_login(char *packet, int len, struct query *q, int fd, int userid) { char myhash[16]; if (len < 16) return; /* can't use check_user_and_ip() since IP address will be different, so duplicate here except IP address */ if (userid < 0 || userid >= created_users) return; if (!users[userid].active || use...
1
[]
iodine
b715be5cf3978fbe589b03b09c9398d0d791f850
323,230,535,266,098,700,000,000,000,000,000,000,000
36
Fix authentication bypass bug The client could bypass the password check by continuing after getting error from the server and guessing the network parameters. The server would still accept the rest of the setup and also network traffic. Add checks for normal and raw mode that user has authenticated before allowing a...
static void con_unthrottle(struct tty_struct *tty) { struct vc_data *vc = tty->driver_data; wake_up_interruptible(&vc->paste_wait); }
0
[ "CWE-125" ]
linux
3c4e0dff2095c579b142d5a0693257f1c58b4804
9,036,742,077,362,769,000,000,000,000,000,000,000
6
vt: Disable KD_FONT_OP_COPY It's buggy: On Fri, Nov 06, 2020 at 10:30:08PM +0800, Minh Yuan wrote: > We recently discovered a slab-out-of-bounds read in fbcon in the latest > kernel ( v5.10-rc2 for now ). The root cause of this vulnerability is that > "fbcon_do_set_font" did not handle "vc->vc_font.data" and > "vc->...
print_unix_command_map () { Keymap save; save = rl_get_keymap (); rl_set_keymap (cmd_xmap); rl_macro_dumper (1); rl_set_keymap (save); return 0; }
0
[ "CWE-20" ]
bash
4f747edc625815f449048579f6e65869914dd715
42,951,253,857,198,395,000,000,000,000,000,000,000
10
Bash-4.4 patch 7
ArgParser::argOiMinHeight(char* parameter) { o.oi_min_height = QUtil::string_to_uint(parameter); }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
134,736,911,661,014,050,000,000,000,000,000,000,000
4
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
int crypt_activate_by_signed_key(struct crypt_device *cd, const char *name, const char *volume_key, size_t volume_key_size, const char *signature, size_t signature_size, uint32_t flags) { char description[512]; int r; if (!cd || !isVERITY(cd->type)) return -EINVAL; if (!volume_key || !volume_key_size || (...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
122,028,650,666,510,450,000,000,000,000,000,000,000
70
Fix CVE-2021-4122 - LUKS2 reencryption crash recovery attack Fix possible attacks against data confidentiality through LUKS2 online reencryption extension crash recovery. An attacker can modify on-disk metadata to simulate decryption in progress with crashed (unfinished) reencryption step and persistently decrypt par...
g_vfs_daemon_init (GVfsDaemon *daemon) { GError *error; gint max_threads = 1; /* TODO: handle max threads */ daemon->thread_pool = g_thread_pool_new (job_handler_callback, daemon, max_threads, FALSE, NULL); /* TODO: verify thread_pool != NULL in a nicer way */ g_assert (daemon->thread...
0
[ "CWE-276" ]
gvfs
e3808a1b4042761055b1d975333a8243d67b8bfe
240,001,891,680,862,740,000,000,000,000,000,000,000
61
gvfsdaemon: Check that the connecting client is the same user Otherwise, an attacker who learns the abstract socket address from netstat(8) or similar could connect to it and issue D-Bus method calls. Signed-off-by: Simon McVittie <smcv@collabora.com>
struct net_device *rtnl_create_link(struct net *net, const char *ifname, unsigned char name_assign_type, const struct rtnl_link_ops *ops, struct nlattr *tb[]) { struct net_device *dev; unsigned int num_tx_queues = 1; unsigned int num_rx_queues = 1; if (tb[IFLA_NUM_TX_QUEUES]) num_tx_queues = nla_get_u32(tb[IFL...
0
[ "CWE-476" ]
linux
f428fe4a04cc339166c8bbd489789760de3a0cee
157,374,031,465,671,550,000,000,000,000,000,000,000
48
rtnetlink: give a user socket to get_target_net() This function is used from two places: rtnl_dump_ifinfo and rtnl_getlink. In rtnl_getlink(), we give a request skb into get_target_net(), but in rtnl_dump_ifinfo, we give a response skb into get_target_net(). The problem here is that NETLINK_CB() isn't initialized for ...
static int __allocate_data_block(struct dnode_of_data *dn) { struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); struct f2fs_summary sum; struct node_info ni; pgoff_t fofs; blkcnt_t count = 1; if (unlikely(is_inode_flag_set(dn->inode, FI_NO_ALLOC))) return -EPERM; dn->data_blkaddr = datablock_addr(dn->node_page...
0
[ "CWE-190" ]
linux
b86e33075ed1909d8002745b56ecf73b833db143
290,380,219,388,315,950,000,000,000,000,000,000,000
34
f2fs: fix a dead loop in f2fs_fiemap() A dead loop can be triggered in f2fs_fiemap() using the test case as below: ... fd = open(); fallocate(fd, 0, 0, 4294967296); ioctl(fd, FS_IOC_FIEMAP, fiemap_buf); ... It's caused by an overflow in __get_data_block(): ... bh->b_size = map.m_len << inode->i_blkbits; ... ...
X509_STORE *SSL_CTX_get_cert_store(const SSL_CTX *ctx) { return(ctx->cert_store); }
0
[]
openssl
ee2ffc279417f15fef3b1073c7dc81a908991516
36,659,686,843,069,070,000,000,000,000,000,000,000
4
Add Next Protocol Negotiation.
int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud, unsigned long addr) { pud_t orig_pud; spinlock_t *ptl; ptl = __pud_trans_huge_lock(pud, vma); if (!ptl) return 0; /* * For architectures like ppc64 we look at deposited pgtable * when calling pudp_huge_get_and_clear. So do t...
0
[ "CWE-362" ]
linux
a8f97366452ed491d13cf1e44241bc0b5740b1f0
59,533,817,002,645,270,000,000,000,000,000,000,000
27
mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d() Currently, we unconditionally make page table dirty in touch_pmd(). It may result in false-positive can_follow_write_pmd(). We may avoid the situation, if we would only make the page table entry dirty if caller asks for write access -- FOLL_WRITE...
void NumberFormatTest::TestCurrencyFormat() { // This test is here to increase code coverage. UErrorCode status = U_ZERO_ERROR; MeasureFormat *cloneObj; UnicodeString str; Formattable toFormat, result; static const UChar ISO_CODE[4] = {0x0047, 0x0042, 0x0050, 0}; Locale saveDefaultLocale =...
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
199,531,285,243,636,080,000,000,000,000,000,000,000
57
ICU-20246 Fixing another integer overflow in number parsing.
static double mp_rot2d(_cimg_math_parser& mp) { double *ptrd = &_mp_arg(1) + 1; const float theta = (float)_mp_arg(2)*cimg::PI/180, ca = std::cos(theta), sa = std::sin(theta); *(ptrd++) = ca; *(ptrd++) = -sa; *(ptrd++) = sa; *ptrd = ca...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
256,763,188,731,903,600,000,000,000,000,000,000,000
12
Fix other issues in 'CImg<T>::load_bmp()'.
enum_field_types field_type() const { return MYSQL_TYPE_LONGLONG; }
0
[]
mysql-server
f7316aa0c9a3909fc7498e7b95d5d3af044a7e21
297,089,653,296,174,930,000,000,000,000,000,000,000
1
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) Backport of Bug#19143243 fix. NAME_CONST item can return NULL_ITEM type in case of incorrect arguments. NULL_ITEM has special processing in Item_func_in function. In Item_func_in::fix_length_and_dec an a...
static int get_parsed_dns(struct ldb_module *module, TALLOC_CTX *mem_ctx, struct ldb_message_element *el, struct parsed_dn **pdn, const char *ldap_oid, struct ldb_request *parent) { unsigned int i; bool values_are_sorted = true; struct ldb_context *ldb = ldb_module_get_ctx(module); if (el == NULL) { *p...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
116,226,214,363,719,930,000,000,000,000,000,000,000
74
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...
xfs_inode_clear_cowblocks_tag( xfs_inode_t *ip) { trace_xfs_inode_clear_cowblocks_tag(ip); return __xfs_inode_clear_blocks_tag(ip, trace_xfs_perag_clear_cowblocks, XFS_ICI_COWBLOCKS_TAG); }
0
[ "CWE-476" ]
linux
afca6c5b2595fc44383919fba740c194b0b76aff
62,800,550,630,202,325,000,000,000,000,000,000,000
7
xfs: validate cached inodes are free when allocated A recent fuzzed filesystem image cached random dcache corruption when the reproducer was run. This often showed up as panics in lookup_slow() on a null inode->i_ops pointer when doing pathwalks. BUG: unable to handle kernel NULL pointer dereference at 00000000000000...