func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
TEST_F(ConnectionManagerUtilityTest, AlwaysMutateResponseHeadersReturnXRequestId) { TestResponseHeaderMapImpl response_headers; TestRequestHeaderMapImpl request_headers{{"x-request-id", "request-id"}}; EXPECT_CALL(*request_id_extension_, setInResponse(testing::Ref(response_headers), testing::Ref(re...
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
56,759,873,252,686,920,000,000,000,000,000,000,000
10
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
static void zend_always_inline zend_hash_check_init(HashTable *ht, int packed) { HT_ASSERT(GC_REFCOUNT(ht) == 1); if (UNEXPECTED(!((ht)->u.flags & HASH_FLAG_INITIALIZED))) { zend_hash_real_init_ex(ht, packed); } }
0
[ "CWE-190" ]
php-src
4cc0286f2f3780abc6084bcdae5dce595daa3c12
335,034,763,325,016,780,000,000,000,000,000,000,000
7
Fix #73832 - leave the table in a safe state if the size is too big.
mesh_state_compare(const void* ap, const void* bp) { struct mesh_state* a = (struct mesh_state*)ap; struct mesh_state* b = (struct mesh_state*)bp; int cmp; if(a->unique < b->unique) return -1; if(a->unique > b->unique) return 1; if(a->s.is_priming && !b->s.is_priming) return -1; if(!a->s.is_priming && b-...
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
203,130,233,047,160,140,000,000,000,000,000,000,000
36
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
void StreamTcpSetOSPolicy(TcpStream *stream, Packet *p) { int ret = 0; if (PKT_IS_IPV4(p)) { /* Get the OS policy based on destination IP address, as destination OS will decide how to react on the anomalies of newly received packets */ ret = SCHInfoGetIPv4HostOSFlavour((ui...
0
[]
suricata
50e2b973eeec7172991bf8f544ab06fb782b97df
160,580,671,118,188,640,000,000,000,000,000,000,000
33
stream/tcp: handle RST with MD5 or AO header Special handling for RST packets if they have an TCP MD5 or AO header option. The options hash can't be validated. The end host might be able to validate it, as it can have a key/password that was communicated out of band. The sender could use this to move the TCP state to...
get_server_iovec(struct TCP_Server_Info *server, unsigned int nr_segs) { struct kvec *new_iov; if (server->iov && nr_segs <= server->nr_iov) return server->iov; /* not big enough -- allocate a new one and release the old */ new_iov = kmalloc(sizeof(*new_iov) * nr_segs, GFP_NOFS); if (new_iov) { kfree(server-...
0
[ "CWE-703", "CWE-189" ]
linux
1fc29bacedeabb278080e31bb9c1ecb49f143c3b
218,207,052,946,441,630,000,000,000,000,000,000,000
16
cifs: fix off-by-one bug in build_unc_path_to_root commit 839db3d10a (cifs: fix up handling of prefixpath= option) changed the code such that the vol->prepath no longer contained a leading delimiter and then fixed up the places that accessed that field to account for that change. One spot in build_unc_path_to_root wa...
TEST(OverflowArithmetic, SafeModTests) { // Mod -1 should not overflow for LLONG_MIN or INT_MIN. auto minLong = std::numeric_limits<long long>::min(); auto minInt = std::numeric_limits<int>::min(); ASSERT_EQ(overflow::safeMod(minLong, -1LL), 0); ASSERT_EQ(overflow::safeMod(minInt, -1), 0); // A...
0
[ "CWE-190" ]
mongo
21d8699ed6c517b45e1613e20231cd8eba894985
127,801,953,715,659,800,000,000,000,000,000,000,000
11
SERVER-43699 $mod should not overflow for large negative values
GF_Err AVC_HEVC_UpdateESD(GF_MPEGVisualSampleEntryBox *avc, GF_ESD *esd) { GF_BitRateBox *btrt = gf_isom_sample_entry_get_bitrate((GF_SampleEntryBox *)avc, GF_TRUE); GF_MPEG4ExtensionDescriptorsBox *mdesc = (GF_MPEG4ExtensionDescriptorsBox *) gf_isom_box_find_child(avc->child_boxes, GF_ISOM_BOX_TYPE_M4DS); if (mdes...
0
[ "CWE-401" ]
gpac
0a85029d694f992f3631e2f249e4999daee15cbf
142,339,315,386,620,780,000,000,000,000,000,000,000
85
fixed #1785 (fuzz)
static int ctnetlink_done(struct netlink_callback *cb) { if (cb->args[1]) nf_ct_put((struct nf_conn *)cb->args[1]); kfree(cb->data); return 0; }
0
[ "CWE-120" ]
linux
1cc5ef91d2ff94d2bf2de3b3585423e8a1051cb6
140,907,602,332,214,200,000,000,000,000,000,000,000
7
netfilter: ctnetlink: add a range check for l3/l4 protonum The indexes to the nf_nat_l[34]protos arrays come from userspace. So check the tuple's family, e.g. l3num, when creating the conntrack in order to prevent an OOB memory access during setup. Here is an example kernel panic on 4.14.180 when userspace passes in ...
static NTSTATUS smb_set_file_unix_info2(connection_struct *conn, struct smb_request *req, const char *pdata, int total_data, files_struct *fsp, const struct smb_filename *smb_fname) { NTSTATUS status; uint32 smb_fflags; uint32 smb_fmask; if (total_data < 116) { return NT_STATUS_INVALID_P...
0
[ "CWE-22" ]
samba
bd269443e311d96ef495a9db47d1b95eb83bb8f4
324,256,625,569,888,150,000,000,000,000,000,000,000
57
Fix bug 7104 - "wide links" and "unix extensions" are incompatible. Change parameter "wide links" to default to "no". Ensure "wide links = no" if "unix extensions = yes" on a share. Fix man pages to refect this. Remove "within share" checks for a UNIX symlink set - even if widelinks = no. The server will not follow t...
static int originates_from_local_legacy_unicast_socket(AvahiServer *s, const AvahiAddress *address, uint16_t port) { assert(s); assert(address); assert(port > 0); if (!s->config.enable_reflector) return 0; if (!avahi_address_is_local(s->monitor, address)) return 0; if (address...
1
[ "CWE-399" ]
avahi
6fabf9d5189cf0efb86af1cd57e5399f8e31112a
294,721,004,099,060,500,000,000,000,000,000,000,000
34
CVE-2009-0758: Reflector creates packet storm on legacy unicast traffic Fixes rhbz #488314.
void add_tree_ipv4(const unsigned long ip, const u_char *data, const int len, const int datalink) { tcpr_tree_t *newnode; assert(data); newnode = packet2tree(data, len, datalink); if (newnode) { assert(ip == newnode->u.ip); if (n...
0
[ "CWE-476" ]
tcpreplay
46cf964a7db636da76abeebf10482acf6f682a87
308,929,200,304,396,100,000,000,000,000,000,000,000
24
Bug #677 - fixes for tcpprep tree
static void child_close_pair(int fd[2]) { child_close(fd[0]); child_close(fd[1]); }
0
[]
git
321fd82389742398d2924640ce3a61791fd27d60
79,017,225,850,534,610,000,000,000,000,000,000,000
5
run-command: mark path lookup errors with ENOENT Since commit e3a434468f (run-command: use the async-signal-safe execv instead of execvp, 2017-04-19), prepare_cmd() does its own PATH lookup for any commands we run (on non-Windows platforms). However, its logic does not match the old execvp call when we fail to find a...
Object_handle ray_shoot_to_boundary(const Point& p, const Direction& d, Location_mode m = DEFAULT) const /*{\Mop returns a handle |h| that can be converted to a |Vertex_/Halfedge_const_handle| as described above. The object returned is part of the $1$-skeleton of |\Mvar|, intersected by the ra...
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
106,811,341,343,251,150,000,000,000,000,000,000,000
33
Fix Nef_2 and Nef_S2 IO
long pipe_fcntl(struct file *file, unsigned int cmd, unsigned long arg) { struct pipe_inode_info *pipe; long ret; pipe = get_pipe_info(file, false); if (!pipe) return -EBADF; __pipe_lock(pipe); switch (cmd) { case F_SETPIPE_SZ: ret = pipe_set_size(pipe, arg); break; case F_GETPIPE_SZ: ret = pipe->max...
0
[ "CWE-362" ]
linux
189b0ddc245139af81198d1a3637cac74f96e13a
202,549,648,549,785,260,000,000,000,000,000,000,000
26
pipe: Fix missing lock in pipe_resize_ring() pipe_resize_ring() needs to take the pipe->rd_wait.lock spinlock to prevent post_one_notification() from trying to insert into the ring whilst the ring is being replaced. The occupancy check must be done after the lock is taken, and the lock must be taken after the new rin...
static void vmx_flush_tlb_current(struct kvm_vcpu *vcpu) { struct kvm_mmu *mmu = vcpu->arch.mmu; u64 root_hpa = mmu->root.hpa; /* No flush required if the current context is invalid. */ if (!VALID_PAGE(root_hpa)) return; if (enable_ept) ept_sync_context(construct_eptp(vcpu, root_hpa, mmu->root_role.lev...
0
[ "CWE-703" ]
linux
6cd88243c7e03845a450795e134b488fc2afb736
276,873,961,194,340,530,000,000,000,000,000,000,000
15
KVM: x86: do not report a vCPU as preempted outside instruction boundaries If a vCPU is outside guest mode and is scheduled out, it might be in the process of making a memory access. A problem occurs if another vCPU uses the PV TLB flush feature during the period when the vCPU is scheduled out, and a virtual address ...
void helperTestQueryString(char const * uriString, int pairsExpected) { UriParserStateA state; UriUriA uri; state.uri = &uri; int res = uriParseUriA(&state, uriString); ASSERT_TRUE(res == URI_SUCCESS); UriQueryListA * queryList = NULL; int itemCount = 0; res = uriDissectQueryMallocA(&queryList, &item...
0
[ "CWE-125" ]
uriparser
cef25028de5ff872c2e1f0a6c562eb3ea9ecbce4
225,989,128,230,195,020,000,000,000,000,000,000,000
18
Fix uriParse*Ex* out-of-bounds read
CAMLexport int caml_deserialize_uint_1(void) { return read8u(); }
0
[ "CWE-200" ]
ocaml
659615c7b100a89eafe6253e7a5b9d84d0e8df74
241,688,102,854,466,400,000,000,000,000,000,000,000
4
fix PR#7003 and a few other bugs caused by misuse of Int_val git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16525 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
bool check_add_key(DDL_options_st ddl) { if (ddl.if_not_exists() && sql_command != SQLCOM_ALTER_TABLE) { parse_error(); return true; } return false; }
0
[ "CWE-703" ]
server
39feab3cd31b5414aa9b428eaba915c251ac34a2
212,770,456,543,727,960,000,000,000,000,000,000,000
9
MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECT IF an INSERT/REPLACE SELECT statement contained an ON expression in the top level select and this expression used a subquery with a column reference that could not be resolved then an attempt to resolve this reference as an outer reference caused...
static __init int add_default_hugepagesz(void) { if (!saw_hugepagesz) { BUILD_BUG_ON(ADDITIONAL_HUGE_SIZE >= PMD_SIZE || ADDITIONAL_HUGE_SIZE <= PAGE_SIZE); BUILD_BUG_ON((PAGE_SIZE << ADDITIONAL_HUGE_SHIFT) != ADDITIONAL_HUGE_SIZE); BUILD_BUG_ON(ADDITIONAL_HUGE_SHIFT & 1); hugetlb_add_hstate(AD...
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
69,684,756,336,973,780,000,000,000,000,000,000,000
12
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
ExprCreateFloat(void) { EXPR_CREATE(ExprFloat, expr, EXPR_VALUE, EXPR_TYPE_FLOAT); return expr; }
0
[ "CWE-476" ]
libxkbcommon
e3cacae7b1bfda0d839c280494f23284a1187adf
150,597,839,598,594,470,000,000,000,000,000,000,000
5
xkbcomp: fix crashes in the parser when geometry tokens appear In the XKB format, floats and various keywords can only be used in the xkb_geometry section. xkbcommon removed support xkb_geometry, but still parses it for backward compatibility. As part of ignoring it, the float AST node and various keywords were remove...
int global_init_info(Master_info* mi, bool ignore_if_no_info, int thread_mask) { DBUG_ENTER("init_info"); DBUG_ASSERT(mi != NULL && mi->rli != NULL); int init_error= 0; enum_return_check check_return= ERROR_CHECKING_REPOSITORY; THD *thd= current_thd; /* We need a mutex while we are changing master info...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
67,841,793,691,483,820,000,000,000,000,000,000,000
72
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...
static int __must_check ax25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; ax25_cb *ax25 = sk_to_ax25(sk), *ax25t; struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; ax25_digi *digi = NULL; int ct = 0, err = 0; /* * some sanity ch...
0
[ "CWE-476" ]
linux
4e0f718daf97d47cf7dec122da1be970f145c809
169,306,823,993,288,320,000,000,000,000,000,000,000
209
ax25: improve the incomplete fix to avoid UAF and NPD bugs The previous commit 1ade48d0c27d ("ax25: NPD bug when detaching AX25 device") introduce lock_sock() into ax25_kill_by_device to prevent NPD bug. But the concurrency NPD or UAF bug will occur, when lock_sock() or release_sock() dereferences the ax25_cb->sock. ...
static void string_addr_inc(struct x86_emulate_ctxt *ctxt, int reg, struct operand *op) { int df = (ctxt->eflags & EFLG_DF) ? -op->count : op->count; register_address_increment(ctxt, reg, df * op->bytes); op->addr.mem.ea = register_address(ctxt, reg); }
0
[ "CWE-362", "CWE-269" ]
linux
f3747379accba8e95d70cec0eae0582c8c182050
275,532,740,056,872,600,000,000,000,000,000,000,000
8
KVM: x86: SYSENTER emulation is broken SYSENTER emulation is broken in several ways: 1. It misses the case of 16-bit code segments completely (CVE-2015-0239). 2. MSR_IA32_SYSENTER_CS is checked in 64-bit mode incorrectly (bits 0 and 1 can still be set without causing #GP). 3. MSR_IA32_SYSENTER_EIP and MSR_IA32_SYSE...
g_file_real_append_to_finish (GFile *file, GAsyncResult *res, GError **error) { g_return_val_if_fail (g_task_is_valid (res, file), NULL); return g_task_propagate_pointer (G_TASK (res), error); }
0
[ "CWE-362" ]
glib
d8f8f4d637ce43f8699ba94c9b7648beda0ca174
81,379,685,465,459,630,000,000,000,000,000,000,000
8
gfile: Limit access to files when copying file_copy_fallback creates new files with default permissions and set the correct permissions after the operation is finished. This might cause that the files can be accessible by more users during the operation than expected. Use G_FILE_CREATE_PRIVATE for the new files to lim...
size_t mobi_get_record_mb_extrasize(const MOBIPdbRecord *record, const uint16_t flags) { size_t extra_size = 0; if (flags & 1) { MOBIBuffer *buf = mobi_buffer_init_null(record->data, record->size); if (buf == NULL) { debug_print("%s", "Buffer init in extrasize failed\n"); ...
0
[ "CWE-119", "CWE-125" ]
libmobi
bec783e6212439a335ba6e8df7ab8ed610ca9a21
141,972,872,891,787,730,000,000,000,000,000,000,000
29
Fix potential out-of-buffer read while parsing corrupt file, closes #35, #36
static inline void trace_access_lock_init(void) { }
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
198,097,281,318,354,000,000,000,000,000,000,000,000
3
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
ast_for_with_stmt(struct compiling *c, const node *n0, bool is_async) { const node * const n = is_async ? CHILD(n0, 1) : n0; int i, n_items, end_lineno, end_col_offset; asdl_seq *items, *body; REQ(n, with_stmt); n_items = (NCH(n) - 2) / 2; items = _Py_asdl_seq_new(n_items, c->c_arena); if ...
1
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
334,009,720,408,998,940,000,000,000,000,000,000,000
31
bpo-35766: Merge typed_ast back into CPython (GH-11645)
PJ_DEF(pj_status_t) pjsip_target_assign_status( pjsip_target *target, pj_pool_t *pool, int status_code, const pj_str_t *reason) { PJ_ASSERT_RETURN(target && pool && status_code && reason, PJ_EINVAL); target->code = (pjsip_status_code)status_code; pj_strdup(pool, &targ...
0
[ "CWE-297", "CWE-295" ]
pjproject
67e46c1ac45ad784db5b9080f5ed8b133c122872
327,931,086,284,301,870,000,000,000,000,000,000,000
12
Merge pull request from GHSA-8hcp-hm38-mfph * Check hostname during TLS transport selection * revision based on feedback * remove the code in create_request that has been moved
int addReplyCommandFlag(client *c, struct redisCommand *cmd, int f, char *reply) { if (cmd->flags & f) { addReplyStatus(c, reply); return 1; } return 0; }
0
[ "CWE-770" ]
redis
5674b0057ff2903d43eaff802017eddf37c360f8
160,522,140,014,653,380,000,000,000,000,000,000,000
7
Prevent unauthenticated client from easily consuming lots of memory (CVE-2021-32675) This change sets a low limit for multibulk and bulk length in the protocol for unauthenticated connections, so that they can't easily cause redis to allocate massive amounts of memory by sending just a few characters on the network. T...
ram_addr_t qemu_ram_alloc_internal(ram_addr_t size, ram_addr_t max_size, void (*resized)(const char*, uint64_t length, void *host), void *host, bool...
0
[]
qemu
c3c1bb99d1c11978d9ce94d1bdcf0705378c1459
28,969,831,719,266,757,000,000,000,000,000,000,000
35
exec: Respect as_tranlsate_internal length clamp address_space_translate_internal will clamp the *plen length argument based on the size of the memory region being queried. The iommu walker logic in addresss_space_translate was ignoring this by discarding the post fn call value of *plen. Fix by just always using *plen...
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); const TensorShape& input_shape = input.shape(); const Tensor& out_backprop = context->input(2); const TensorShape& out_backprop_shape = out_backprop.shape(); TensorShape filter_shape; if (takes_shape_)...
1
[ "CWE-703", "CWE-787" ]
tensorflow
8f37b52e1320d8d72a9529b2468277791a261197
162,948,770,513,543,420,000,000,000,000,000,000,000
41
Validate some shape requirements for `Conv3DBackpropFilter*` and `Conv3DBackpropInput*` ops. Older versions of Eigen might otherwise crash / produce OOB read on specially crafted inputs. PiperOrigin-RevId: 369293977 Change-Id: I58f51445a93936d7cf8e616f75de17677df36718
static void xilinx_ethlite_register_types(void) { type_register_static(&xilinx_ethlite_info); }
0
[ "CWE-119", "CWE-787" ]
qemu
a0d1cbdacff5df4ded16b753b38fdd9da6092968
92,178,099,424,627,800,000,000,000,000,000,000,000
4
hw/net: Fix a heap overflow in xlnx.xps-ethernetlite The .receive callback of xlnx.xps-ethernetlite doesn't check the length of data before calling memcpy. As a result, the NetClientState object in heap will be overflowed. All versions of qemu with xlnx.xps-ethernetlite will be affected. Reported-by: chaojianhu <chao...
LuacBinInfo *luac_build_info(LuaProto *proto) { if (!proto) { RZ_LOG_ERROR("Invalid luac file\n"); return NULL; } LuacBinInfo *ret = RZ_NEW0(LuacBinInfo); if (!ret) { return NULL; } ret->entry_list = rz_list_newf((RzListFree)free_rz_addr); ret->symbol_list = rz_list_newf((RzListFree)rz_bin_symbol_free); ...
0
[ "CWE-200", "CWE-787" ]
rizin
07b43bc8aa1ffebd9b68d60624c9610cf7e460c7
42,666,814,363,623,150,000,000,000,000,000,000,000
32
fix oob read on luac
static void map_objectclass_generate_remote(struct ldb_module *module, const char *local_attr, const struct ldb_message *old, struct ldb_message *remote, struct ldb_message *local) { const struct ldb_map_context *data = map_get_context(module); struct ldb_context *ldb; struct ldb_message_element *el, *oc; struct ld...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
71,631,469,040,536,000,000,000,000,000,000,000,000
62
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...
static int sev_guest_status(struct kvm *kvm, struct kvm_sev_cmd *argp) { struct kvm_sev_info *sev = &to_kvm_svm(kvm)->sev_info; struct kvm_sev_guest_status params; struct sev_data_guest_status data; int ret; if (!sev_guest(kvm)) return -ENOTTY; memset(&data, 0, sizeof(data)); data.handle = sev->handle; ret...
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
211,228,493,046,902,600,000,000,000,000,000,000,000
26
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
process_cmd_deny(CMD_Request *msg, char *line) { int status; msg->command = htons(REQ_DENY); status = parse_allow_deny(msg, line); return status; }
0
[ "CWE-189" ]
chrony
7712455d9aa33d0db0945effaa07e900b85987b1
58,753,284,537,384,225,000,000,000,000,000,000,000
7
Fix buffer overflow when processing crafted command packets When the length of the REQ_SUBNETS_ACCESSED, REQ_CLIENT_ACCESSES command requests and the RPY_SUBNETS_ACCESSED, RPY_CLIENT_ACCESSES, RPY_CLIENT_ACCESSES_BY_INDEX, RPY_MANUAL_LIST command replies is calculated, the number of items stored in the packet is not v...
evdev_left_handed_get_default(struct libinput_device *device) { return 0; }
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
157,214,729,684,222,180,000,000,000,000,000,000,000
4
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...
static int packet_do_bind(struct sock *sk, const char *name, int ifindex, __be16 proto) { struct packet_sock *po = pkt_sk(sk); struct net_device *dev_curr; __be16 proto_curr; bool need_rehook; struct net_device *dev = NULL; int ret = 0; bool unlisted = false; if (po->fanout) return -EINVAL; lock_sock(...
1
[ "CWE-362", "CWE-241" ]
linux
4971613c1639d8e5f102c4e797c3bf8f83a5a69e
191,731,626,339,012,860,000,000,000,000,000,000,000
85
packet: in packet_do_bind, test fanout with bind_lock held Once a socket has po->fanout set, it remains a member of the group until it is destroyed. The prot_hook must be constant and identical across sockets in the group. If fanout_add races with packet_do_bind between the test of po->fanout and taking the lock, the...
void Gfx::pushResources(Dict *resDict) { res = new GfxResources(xref, resDict, res); }
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
145,035,081,493,061,530,000,000,000,000,000,000,000
3
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
del_aubio_filterbank (aubio_filterbank_t * fb) { del_fmat (fb->filters); AUBIO_FREE (fb); }
0
[]
aubio
eda95c9c22b4f0b466ae94c4708765eaae6e709e
173,829,061,344,982,100,000,000,000,000,000,000,000
5
[filterbank] validate input parameters
static int ParseCRL_CertList(DecodedCRL* dcrl, const byte* buf, word32* inOutIdx, int sz) { word32 oid, dateIdx, idx, checkIdx; int version; #ifdef WOLFSSL_NO_CRL_NEXT_DATE int doNextDate = 1; #endif byte tag; if (dcrl == NULL || inOutIdx == NULL || buf == NULL) { return BAD_FUNC_AR...
0
[ "CWE-125", "CWE-345" ]
wolfssl
f93083be72a3b3d956b52a7ec13f307a27b6e093
234,881,071,249,513,640,000,000,000,000,000,000,000
78
OCSP: improve handling of OCSP no check extension
static int com_source(String *buffer MY_ATTRIBUTE((unused)), char *line) { char source_name[FN_REFLEN], *end, *param; LINE_BUFFER *line_buff; int error; STATUS old_status; FILE *sql_file; /* Skip space from file name */ while (my_isspace(charset_info,*line)) line++; if (!(para...
0
[ "CWE-319" ]
mysql-server
0002e1380d5f8c113b6bce91f2cf3f75136fd7c7
288,002,308,329,048,230,000,000,000,000,000,000,000
51
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION MYSQL_OPT_SSL_MODE option introduced. It is set in case of --ssl-mode=REQUIRED and permits only SSL connection. (cherry picked from commit f91b941842d240b8a62645e507f5554e8be76aec)
static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport, struct udp_table *udptable) { struct sock *sk; const struct ipv6hdr *iph = ipv6_hdr(skb); sk = skb_steal_sock(skb); if (unlikely(sk)) return sk; return __udp6_lib_lookup(dev_net(skb_dst(skb)->dev), &iph->sad...
0
[ "CWE-416", "CWE-284", "CWE-264" ]
linux
45f6fad84cc305103b28d73482b344d7f5b76f39
273,711,199,816,444,580,000,000,000,000,000,000,000
14
ipv6: add complete rcu protection around np->opt This patch addresses multiple problems : UDP/RAW sendmsg() need to get a stable struct ipv6_txoptions while socket is not locked : Other threads can change np->opt concurrently. Dmitry posted a syzkaller (http://github.com/google/syzkaller) program desmonstrating use-a...
static void udp_seq_stop(struct seq_file *seq, void *v) { struct udp_iter_state *state = seq->private; if (state->bucket <= state->udp_table->mask) spin_unlock_bh(&state->udp_table->hash[state->bucket].lock); }
0
[ "CWE-400" ]
linux-2.6
c377411f2494a931ff7facdbb3a6839b1266bcf6
135,497,661,366,319,250,000,000,000,000,000,000,000
7
net: sk_add_backlog() take rmem_alloc into account Current socket backlog limit is not enough to really stop DDOS attacks, because user thread spend many time to process a full backlog each round, and user might crazy spin on socket lock. We should add backlog size and receive_queue size (aka rmem_alloc) to pace writ...
static void line6_async_request_sent(struct urb *urb) { struct message *msg = (struct message *)urb->context; if (msg->done >= msg->size) { usb_free_urb(urb); kfree(msg); } else line6_send_raw_message_async_part(msg, urb); }
0
[ "CWE-476" ]
linux
0b074ab7fc0d575247b9cc9f93bb7e007ca38840
11,054,668,293,135,049,000,000,000,000,000,000,000
10
ALSA: line6: Assure canceling delayed work at disconnection The current code performs the cancel of a delayed work at the late stage of disconnection procedure, which may lead to the access to the already cleared state. This patch assures to call cancel_delayed_work_sync() at the beginning of the disconnection proced...
_dbus_poll (DBusPollFD *fds, int n_fds, int timeout_milliseconds) { #if defined(HAVE_POLL) && !defined(BROKEN_POLL) /* DBusPollFD is a struct pollfd in this code path, so we can just poll() */ if (timeout_milliseconds < -1) { timeout_milliseconds = -1; } retu...
0
[ "CWE-404" ]
dbus
872b085f12f56da25a2dbd9bd0b2dff31d5aea63
224,034,785,994,688,700,000,000,000,000,000,000,000
69
sysdeps-unix: On MSG_CTRUNC, close the fds we did receive MSG_CTRUNC indicates that we have received fewer fds that we should have done because the buffer was too small, but we were treating it as though it indicated that we received *no* fds. If we received any, we still have to make sure we close them, otherwise the...
static CImg<T> get_load_rgb(std::FILE *const file, const unsigned int dimw, const unsigned int dimh=1) { return CImg<T>().load_rgb(file,dimw,dimh); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
311,653,276,654,783,560,000,000,000,000,000,000,000
3
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
iommu_support_dev_iotlb (struct dmar_domain *domain, struct intel_iommu *iommu, u8 bus, u8 devfn) { struct device_domain_info *info; assert_spin_locked(&device_domain_lock); if (!iommu->qi) return NULL; list_for_each_entry(info, &domain->devices, link) if (info->iommu == iommu && info->bus == bus && ...
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
67,983,608,549,699,380,000,000,000,000,000,000,000
20
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...
void PSOutputDev::setupEmbeddedCIDType0Font(GfxFont *font, Ref *id, GooString *psName) { char *fontBuf; int fontLen; FoFiType1C *ffT1C; int i; // check if font is already embedded for (i = 0; i < fontFileIDLen; ++i) { if (fontFileIDs[i].num == id->num && fontFileIDs[i].gen == id->gen) r...
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
296,105,344,537,567,670,000,000,000,000,000,000,000
44
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
process_cmd_sourcestats(char *line) { CMD_Request request; CMD_Reply reply; int n_sources, i; int verbose = 0; char hostname_buf[50]; unsigned long n_samples, n_runs, span_seconds; double resid_freq_ppm, skew_ppm, sd, est_offset; uint32_t ref_id; IPAddr ip_addr; verbose = check_for_verbose_flag(li...
0
[ "CWE-189" ]
chrony
7712455d9aa33d0db0945effaa07e900b85987b1
282,627,339,058,488,600,000,000,000,000,000,000,000
80
Fix buffer overflow when processing crafted command packets When the length of the REQ_SUBNETS_ACCESSED, REQ_CLIENT_ACCESSES command requests and the RPY_SUBNETS_ACCESSED, RPY_CLIENT_ACCESSES, RPY_CLIENT_ACCESSES_BY_INDEX, RPY_MANUAL_LIST command replies is calculated, the number of items stored in the packet is not v...
static int urlMemcmp(const char *buf, int len, const char *s) { int sLen = strlen(s); if (len < sLen) { return s[len]; } else { return memcmp(buf, s, sLen); } }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
shellinabox
4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361
325,877,494,221,489,520,000,000,000,000,000,000,000
8
Rolling code for version 2.21
static void DeleteSession( SESSION *session ) { SESSION_LIST_ENTRY *predSession; void *newNextEntry; if( session == &local_sessions_list->session ) local_sessions_list = 0; else { // Find predecessor. for( predSession = local_sessions_list; predSession != 0 &...
0
[ "CWE-522", "CWE-200" ]
tpm2.0-tools
c5d72beaab1cbbbe68271f4bc4b6670d69985157
12,931,290,474,423,258,000,000,000,000,000,000,000
27
kdfa: use openssl for hmac not tpm While not reachable in the current code base tools, a potential security bug lurked in tpm_kdfa(). If using that routine for an hmac authorization, the hmac was calculated using the tpm. A user of an object wishing to authenticate via hmac, would expect that the password is never se...
X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) { return ctx->current_cert; }
0
[]
openssl
d65b8b2162f33ac0d53dace588a0847ed827626c
203,092,798,795,394,950,000,000,000,000,000,000,000
4
Backport OCSP fixes.
GF_Err totl_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_TOTLBox *ptr = (GF_TOTLBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; gf_bs_write_u32(bs, ptr->nbBytes); return GF_OK; }
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
235,078,830,348,362,670,000,000,000,000,000,000,000
10
fixed #1587
static int adapter_cmp(gconstpointer a, gconstpointer b) { struct btd_adapter *adapter = (struct btd_adapter *) a; const bdaddr_t *bdaddr = b; return bacmp(&adapter->bdaddr, bdaddr); }
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
61,183,185,988,584,170,000,000,000,000,000,000,000
7
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
static NAN_MODULE_INIT(Init) { Local<FunctionTemplate> tpl = Nan::New<FunctionTemplate>(New); tpl->SetClassName(Nan::New("GenericCipher").ToLocalChecked()); tpl->InstanceTemplate()->SetInternalFieldCount(1); SetPrototypeMethod(tpl, "encrypt", Encrypt); SetPrototypeMethod(tpl, "free", Free); ...
0
[ "CWE-78" ]
ssh2
f763271f41320e71d5cbee02ea5bc6a2ded3ca21
8,995,308,538,299,061,000,000,000,000,000,000,000
14
examples,lib,test: switch to code rewrite For more information see: https://github.com/mscdex/ssh2/issues/935
static ut64 estimate_slide(RBinFile *bf, RDyldCache *cache, ut64 value_mask, ut64 value_add) { ut64 slide = 0; if (cache->n_hdr > 1) { return slide; } ut64 *classlist = malloc (64); if (!classlist) { goto beach; } RListIter *iter; RDyldBinImage *bin; r_list_foreach (cache->bins, iter, bin) { bool found_...
1
[ "CWE-400", "CWE-703" ]
radare2
634b886e84a5c568d243e744becc6b3223e089cf
113,251,513,005,824,370,000,000,000,000,000,000,000
89
Fix DoS in PE/QNX/DYLDCACHE/PSX parsers ##crash * Reported by lazymio * Reproducer: AAA4AAAAAB4=
static int property_get_selinux_context( sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error) { ExecContext *c = use...
0
[ "CWE-269" ]
systemd
f69567cbe26d09eac9d387c0be0fc32c65a83ada
232,119,219,566,677,660,000,000,000,000,000,000,000
17
core: expose SUID/SGID restriction as new unit setting RestrictSUIDSGID=
search_base_identity(struct lys_ident *der, struct lys_ident *base) { int i; if (der == base) { return 1; } else { for(i = 0; i < der->base_size; i++) { if (search_base_identity(der->base[i], base) == 1) { return 1; } } } return 0; }
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
266,498,937,107,864,400,000,000,000,000,000,000,000
16
schema tree BUGFIX do not check features while still resolving schema Fixes #723
hb_map_is_empty (const hb_map_t *map) { return map->is_empty (); }
0
[ "CWE-787" ]
harfbuzz
d3e09bf4654fe5478b6dbf2b26ebab6271317d81
500,071,957,230,813,000,000,000,000,000,000,000
4
[set] Make all operators null-safe again Changed my mind. Also for hb_map_clear(). Part of https://github.com/harfbuzz/harfbuzz/pull/3162
xsltElement(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst, xsltElemPreCompPtr castedComp) { #ifdef XSLT_REFACTORED xsltStyleItemElementPtr comp = (xsltStyleItemElementPtr) castedComp; #else xsltStylePreCompPtr comp = (xsltStylePreCompPtr) castedComp; #endif xmlChar *prop = NULL; co...
0
[]
libxslt
e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
7,467,845,934,851,008,000,000,000,000,000,000,000
196
Fix security framework bypass xsltCheckRead and xsltCheckWrite return -1 in case of error but callers don't check for this condition and allow access. With a specially crafted URL, xsltCheckRead could be tricked into returning an error because of a supposedly invalid URL that would still be loaded succesfully later on...
static int audio_get_buffer(AVCodecContext *avctx, AVFrame *frame) { FramePool *pool = avctx->internal->pool; int planes = pool->planes; int i; frame->linesize[0] = pool->linesize[0]; if (planes > AV_NUM_DATA_POINTERS) { frame->extended_data = av_mallocz_array(planes, sizeof(*frame->extend...
0
[ "CWE-787" ]
FFmpeg
2080bc33717955a0e4268e738acf8c1eeddbf8cb
286,890,080,965,943,380,000,000,000,000,000,000,000
44
avcodec/utils: correct align value for interplay Fixes out of array access Fixes: 452/fuzz-1-ffmpeg_VIDEO_AV_CODEC_ID_INTERPLAY_VIDEO_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
int jas_stream_printf(jas_stream_t *stream, const char *fmt, ...) { va_list ap; char buf[4096]; int ret; va_start(ap, fmt); ret = vsprintf(buf, fmt, ap); jas_stream_puts(stream, buf); va_end(ap); return ret; }
1
[ "CWE-119" ]
jasper
d678ccd27b8a062e3bfd4c80d8ce2676a8166a27
194,542,991,776,402,800,000,000,000,000,000,000,000
12
CVE-2008-3522
static void slab_fix(struct kmem_cache *s, char *fmt, ...) { va_list args; char buf[100]; va_start(args, fmt); vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); printk(KERN_ERR "FIX %s: %s\n", s->name, buf); }
0
[ "CWE-189" ]
linux
f8bd2258e2d520dff28c855658bd24bdafb5102d
232,461,048,507,183,460,000,000,000,000,000,000,000
10
remove div_long_long_rem x86 is the only arch right now, which provides an optimized for div_long_long_rem and it has the downside that one has to be very careful that the divide doesn't overflow. The API is a little akward, as the arguments for the unsigned divide are signed. The signed version also doesn't handle ...
static int decode_op_hdr(struct xdr_stream *xdr, enum nfs_opnum4 expected) { int retval; __decode_op_hdr(xdr, expected, &retval); return retval; }
0
[ "CWE-787" ]
linux
b4487b93545214a9db8cbf32e86411677b0cca21
180,498,927,243,595,700,000,000,000,000,000,000,000
7
nfs: Fix getxattr kernel panic and memory overflow Move the buffer size check to decode_attr_security_label() before memcpy() Only call memcpy() if the buffer is large enough Fixes: aa9c2669626c ("NFS: Client implementation of Labeled-NFS") Signed-off-by: Jeffrey Mitchell <jeffrey.mitchell@starlab.io> [Trond: clean u...
TEST_P(DnsImplTest, DnsIpAddressVersion) { server_->addHosts("some.good.domain", {"1.2.3.4"}, RecordType::A); EXPECT_NE(nullptr, resolveWithExpectations("some.good.domain", DnsLookupFamily::Auto, DnsResolver::ResolutionStatus::Success, {"1.2.3.4"}, ...
0
[ "CWE-400" ]
envoy
542f84c66e9f6479bc31c6f53157c60472b25240
41,549,641,039,844,515,000,000,000,000,000,000,000
17
overload: Runtime configurable global connection limits (#147) Signed-off-by: Tony Allen <tony@allen.gg>
static void copy_vmcs12_to_shadow(struct vcpu_vmx *vmx) { const u16 *fields[] = { shadow_read_write_fields, shadow_read_only_fields }; const int max_fields[] = { max_shadow_read_write_fields, max_shadow_read_only_fields }; int i, q; unsigned long field; u64 field_value = 0; struct vmcs *shadow_vmcs = vm...
0
[ "CWE-284" ]
linux
727ba748e110b4de50d142edca9d6a9b7e6111d8
120,479,344,164,423,150,000,000,000,000,000,000,000
28
kvm: nVMX: Enforce cpl=0 for VMX instructions VMX instructions executed inside a L1 VM will always trigger a VM exit even when executed with cpl 3. This means we must perform the privilege check in software. Fixes: 70f3aac964ae("kvm: nVMX: Remove superfluous VMX instruction fault checks") Cc: stable@vger.kernel.org S...
sctp_disposition_t sctp_sf_do_prm_asconf(struct net *net, const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *chunk = arg; sctp_add_cmd_sf(commands, SCTP_CMD_SETUP_T4, SCTP_CHUNK(chunk)); s...
0
[]
linux
196d67593439b03088913227093e374235596e33
102,896,290,729,634,290,000,000,000,000,000,000,000
15
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
bool Item_func_case_simple::aggregate_switch_and_when_arguments(THD *thd, bool nulls_eq) { uint ncases= when_count(); m_found_types= 0; if (prepare_predicant_and_values(thd, &m_found_types, nulls_eq)) { /* If Predicant_to_list_comparator(...
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
281,115,833,363,023,300,000,000,000,000,000,000,000
54
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 ...
void Compute(OpKernelContext* c) override { const TensorShape& tl_a_shape = c->input(0).shape(); const TensorShape& tl_b_shape = c->input(1).shape(); OP_REQUIRES( c, tl_a_shape == tl_b_shape, errors::InvalidArgument("Incompatible input TensorList tensor shapes: ", ...
0
[ "CWE-617", "CWE-369" ]
tensorflow
8a6e874437670045e6c7dc6154c7412b4a2135e2
212,578,029,225,239,000,000,000,000,000,000,000,000
84
Validate num_elements input in tf.raw_ops.TensorListReserve PiperOrigin-RevId: 383954564 Change-Id: I454bd78eff85bc4f16ddb7e608596971cca47f8f
void fx_TypedArray_prototype_set(txMachine* the) { mxMutableTypedArrayDeclarations; txSlot* data = buffer->value.reference->next; txInteger delta = dispatch->value.typedArray.dispatch->size; txSlot* source = fxArgToInstance(the, 0); txInteger target = fxArgToByteLength(the, 1, 0); txInteger offset = view->value.d...
0
[ "CWE-125" ]
moddable
135aa9a4a6a9b49b60aa730ebc3bcc6247d75c45
321,646,552,079,401,470,000,000,000,000,000,000,000
74
XS: #896
gplotCreate(const char *rootname, l_int32 outformat, const char *title, const char *xlabel, const char *ylabel) { char *newroot; char buf[L_BUFSIZE]; l_int32 badchar; GPLOT *gplot; PROCNAME("gplotCreate"); if (!rootname) return (GPLOT ...
0
[ "CWE-119", "CWE-787" ]
leptonica
ee301cb2029db8a6289c5295daa42bba7715e99a
131,089,537,957,474,400,000,000,000,000,000,000,000
51
Security fixes: expect final changes for release 1.75.3. * Fixed a debian security issue with fscanf() reading a string with possible buffer overflow. * There were also a few similar situations with sscanf().
void do_exec(struct st_command *command) { int error; char buf[512]; FILE *res_file; char *cmd= command->first_argument; DYNAMIC_STRING ds_cmd; DYNAMIC_STRING ds_sorted, *ds_result; DBUG_ENTER("do_exec"); DBUG_PRINT("enter", ("cmd: '%s'", cmd)); /* Skip leading space */ while (*cmd && my_isspace(ch...
1
[]
server
01b39b7b0730102b88d8ea43ec719a75e9316a1e
11,927,562,458,318,936,000,000,000,000,000,000,000
132
mysqltest: don't eat new lines in --exec pass them through as is
static unsigned long get_vma_private_data(struct vm_area_struct *vma) { return (unsigned long)vma->vm_private_data; }
0
[ "CWE-703" ]
linux
5af10dfd0afc559bb4b0f7e3e8227a1578333995
222,068,056,241,959,870,000,000,000,000,000,000,000
4
userfaultfd: hugetlbfs: remove superfluous page unlock in VM_SHARED case huge_add_to_page_cache->add_to_page_cache implicitly unlocks the page before returning in case of errors. The error returned was -EEXIST by running UFFDIO_COPY on a non-hole offset of a VM_SHARED hugetlbfs mapping. It was an userland bug that t...
static void io_wq_flush_func(struct io_wq_work **workptr) { struct io_wq_work *work = *workptr; struct io_wq_flush_data *data; data = container_of(work, struct io_wq_flush_data, work); complete(&data->done); }
0
[]
linux
181e448d8709e517c9c7b523fcd209f24eb38ca7
264,612,234,621,939,300,000,000,000,000,000,000,000
8
io_uring: async workers should inherit the user creds If we don't inherit the original task creds, then we can confuse users like fuse that pass creds in the request header. See link below on identical aio issue. Link: https://lore.kernel.org/linux-fsdevel/26f0d78e-99ca-2f1b-78b9-433088053a61@scylladb.com/T/#u Signed...
bool ndp_msg_opt_prefix_flag_auto_addr_conf(struct ndp_msg *msg, int offset) { struct nd_opt_prefix_info *pi = ndp_msg_payload_opts_offset(msg, offset); return pi->nd_opt_pi_flags_reserved & ND_OPT_PI_FLAG_AUTO; }
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
109,235,829,152,383,580,000,000,000,000,000,000,000
7
libndp: validate the IPv6 hop limit None of the NDP messages should ever come from a non-local network; as stated in RFC4861's 6.1.1 (RS), 6.1.2 (RA), 7.1.1 (NS), 7.1.2 (NA), and 8.1. (redirect): - The IP Hop Limit field has a value of 255, i.e., the packet could not possibly have been forwarded by a router. T...
static void rbd_spec_put(struct rbd_spec *spec) { if (spec) kref_put(&spec->kref, rbd_spec_free); }
0
[ "CWE-863" ]
linux
f44d04e696feaf13d192d942c4f14ad2e117065a
5,813,201,512,126,080,000,000,000,000,000,000,000
5
rbd: require global CAP_SYS_ADMIN for mapping and unmapping It turns out that currently we rely only on sysfs attribute permissions: $ ll /sys/bus/rbd/{add*,remove*} --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add_single_major --w------- 1 ro...
zzip_mem_disk_new(void) { return calloc(1, sizeof(ZZIP_MEM_DISK)); }
0
[ "CWE-119" ]
zziplib
596d9dfce2624e849417d4301e8d67935608aa5e
116,181,232,650,447,520,000,000,000,000,000,000,000
4
memdisk (.)
static inline int track_pfn_vma_new(struct vm_area_struct *vma, pgprot_t *prot, unsigned long pfn, unsigned long size) { return 0; }
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
100,762,016,373,842,320,000,000,000,000,000,000,000
5
mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode In some cases it may happen that pmd_none_or_clear_bad() is called with the mmap_sem hold in read mode. In those cases the huge page faults can allocate hugepmds under pmd_none_or_clear_bad() and that can trigger a false positive from pmd_bad(...
i915_gem_execbuffer(struct drm_device *dev, void *data, struct drm_file *file) { struct drm_i915_gem_execbuffer *args = data; struct drm_i915_gem_execbuffer2 exec2; struct drm_i915_gem_exec_object *exec_list = NULL; struct drm_i915_gem_exec_object2 *exec2_list = NULL; int ret, i; if (args->buffer_count < 1...
0
[]
linux
3118a4f652c7b12c752f3222af0447008f9b2368
178,768,821,940,061,900,000,000,000,000,000,000,000
79
drm/i915: bounds check execbuffer relocation count It is possible to wrap the counter used to allocate the buffer for relocation copies. This could lead to heap writing overflows. CVE-2013-0913 v3: collapse test, improve comment v2: move check into validate_exec_list Signed-off-by: Kees Cook <keescook@chromium.org>...
TEST(QueryProjectionTest, InvalidElemMatchTextProjection) { assertInvalidProjection("{}", "{a: {$elemMatch: {$text: {$search: 'str'}}}}"); }
1
[ "CWE-732" ]
mongo
cd583b6c4d8aa2364f255992708b9bb54e110cf4
127,905,571,639,330,680,000,000,000,000,000,000,000
3
SERVER-53929 Add stricter parser checks around positional projection
void __fastcall TSCPFileSystem::DoStartup() { // Capabilities of SCP protocol are fixed FTerminal->SaveCapabilities(FFileSystemInfo); // SkipStartupMessage and DetectReturnVar must succeed, // otherwise session is to be closed. try { FTerminal->ExceptionOnFail = true; SkipStartupMessage()...
0
[ "CWE-20" ]
winscp
49d876f2c5fc00bcedaa986a7cf6dedd6bf16f54
212,476,645,181,681,050,000,000,000,000,000,000,000
27
Bug 1675: Prevent SCP server sending files that were not requested https://winscp.net/tracker/1675 Source commit: 4aa587620973bf793fb6e783052277c0f7be4b55
static int io_recvmsg(struct io_kiocb *req, unsigned int issue_flags) { struct io_async_msghdr iomsg, *kmsg; struct socket *sock; struct io_buffer *kbuf; unsigned flags; int min_ret = 0; int ret, cflags = 0; bool force_nonblock = issue_flags & IO_URING_F_NONBLOCK; sock = sock_from_file(req->file); if (unlikel...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
297,406,505,025,596,860,000,000,000,000,000,000,000
56
io_uring: reexpand under-reexpanded iters [ 74.211232] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x809/0x900 [ 74.212778] Read of size 8 at addr ffff888025dc78b8 by task syz-executor.0/828 [ 74.214756] CPU: 0 PID: 828 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730 #1 [ 74.216525] Hardware n...
void ProtocolV2::fault() { _fault(); }
0
[ "CWE-323" ]
ceph
20b7bb685c5ea74c651ca1ea547ac66b0fee7035
30,731,920,615,214,527,000,000,000,000,000,000,000
1
msg/async/ProtocolV2: avoid AES-GCM nonce reuse vulnerabilities The secure mode uses AES-128-GCM with 96-bit nonces consisting of a 32-bit counter followed by a 64-bit salt. The counter is incremented after processing each frame, the salt is fixed for the duration of the session. Both are initialized from the sessio...
static inline void ModulateHSL(const double percent_hue, const double percent_saturation,const double percent_lightness,double *red, double *green,double *blue) { double hue, lightness, saturation; /* Increase or decrease color lightness, saturation, or hue. */ ConvertRGBToHSL(*red,*green,*...
0
[ "CWE-401", "CWE-119", "CWE-787" ]
ImageMagick
1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e
5,719,340,898,490,714,000,000,000,000,000,000,000
18
https://github.com/ImageMagick/ImageMagick/issues/663 https://github.com/ImageMagick/ImageMagick/issues/655
gnome_desktop_thumbnail_factory_lookup (GnomeDesktopThumbnailFactory *factory, const char *uri, time_t mtime) { GnomeDesktopThumbnailFactoryPrivate *priv = factory->priv; g_return_val_if_fail (uri != NULL, NULL); return lookup_thumbnail_path (uri, mtime, priv->size); }
0
[]
nautilus
2ddba428ef2b13d0620bd599c3635b9c11044659
243,886,211,400,526,700,000,000,000,000,000,000,000
10
Update gnome-desktop code Closes https://gitlab.gnome.org/GNOME/nautilus/issues/987
static_codebook *vorbis_staticbook_unpack(oggpack_buffer *opb){ long i,j; static_codebook *s=_ogg_calloc(1,sizeof(*s)); s->allocedp=1; /* make sure alignment is correct */ if(oggpack_read(opb,24)!=0x564342)goto _eofout; /* first the basic parameters */ s->dim=oggpack_read(opb,16); s->entries=oggpack_r...
0
[ "CWE-787" ]
vorbis
667ceb4aab60c1f74060143bb24e5f427b3cce5f
258,430,342,491,063,180,000,000,000,000,000,000,000
123
CVE-2018-5146: Prevent out-of-bounds write in codebook decoding. Codebooks that are not an exact divisor of the partition size are now truncated to fit within the partition.
static struct dentry *proc_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *data) { int err; struct super_block *sb; struct pid_namespace *ns; struct proc_inode *ei; char *options; if (flags & MS_KERNMOUNT) { ns = (struct pid_namespace *)data; options = NULL; } else { ns = c...
0
[]
linux-2.6
99663be772c827b8f5f594fe87eb4807be1994e5
51,447,798,756,271,340,000,000,000,000,000,000,000
46
proc: fix mount -t proc -o AAA The proc_parse_options() call from proc_mount() runs only once at boot time. So on any later mount attempt, any mount options are ignored because ->s_root is already initialized. As a consequence, "mount -o <options>" will ignore the options. The only way to change mount options is "m...
static av_cold int decode_end(AVCodecContext *avctx) { EXRContext *s = avctx->priv_data; int i; for (i = 0; i < avctx->thread_count; i++) { EXRThreadData *td = &s->thread_data[i]; av_freep(&td->uncompressed_data); av_freep(&td->tmp); av_freep(&td->bitmap); av_freep(&t...
0
[ "CWE-20", "CWE-129" ]
FFmpeg
26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777
42,879,849,731,917,030,000,000,000,000,000,000,000
24
avcodec/exr: More strictly check dc_count Fixes: out of array access Fixes: exr/deneme Found-by: Burak Çarıkçı <burakcarikci@crypttech.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static void event_end_of_motd(IRC_SERVER_REC *server, const char *data) { server->motd_got = TRUE; }
0
[ "CWE-416" ]
irssi
43e44d553d44e313003cee87e6ea5e24d68b84a1
22,216,591,637,816,280,000,000,000,000,000,000,000
4
Merge branch 'security' into 'master' Security Closes GL#12, GL#13, GL#14, GL#15, GL#16 See merge request irssi/irssi!23
cmd_number_inf (const char *com, const char *val, void *place) { if (!c_strcasecmp (val, "inf")) { *(int *) place = 0; return true; } return cmd_number (com, val, place); }
0
[ "CWE-200" ]
wget
c125d24762962d91050d925fbbd9e6f30b2302f8
111,980,063,450,539,750,000,000,000,000,000,000,000
9
Don't use extended attributes (--xattr) by default * src/init.c (defaults): Set enable_xattr to false by default * src/main.c (print_help): Reverse option logic of --xattr * doc/wget.texi: Add description for --xattr Users may not be aware that the origin URL and Referer are saved including credentials, and possibly ...
string_regcomp (void *preg, const char *regex, int default_flags) { const char *ptr_regex; int flags; ptr_regex = string_regex_flags (regex, default_flags, &flags); return regcomp ((regex_t *)preg, ptr_regex, flags); }
0
[ "CWE-20" ]
weechat
efb795c74fe954b9544074aafcebb1be4452b03a
222,840,553,819,952,100,000,000,000,000,000,000,000
8
core: do not call shell to execute command in hook_process (fix security problem when a plugin/script gives untrusted command) (bug #37764)
void updateWritableByteLimitOnRecvPacket(QuicServerConnectionState& conn) { // When we receive a packet we increase the limit again. The reasoning this is // that a peer can do the same by opening a new connection. if (conn.writableBytesLimit) { conn.writableBytesLimit = *conn.writableBytesLimit + con...
0
[ "CWE-617", "CWE-703" ]
mvfst
a67083ff4b8dcbb7ee2839da6338032030d712b0
305,182,310,817,452,100,000,000,000,000,000,000,000
8
Close connection if we derive an extra 1-rtt write cipher Summary: Fixes CVE-2021-24029 Reviewed By: mjoras, lnicco Differential Revision: D26613890 fbshipit-source-id: 19bb2be2c731808144e1a074ece313fba11f1945
static void vgacon_invert_region(struct vc_data *c, u16 * p, int count) { const bool col = vga_can_do_color; while (count--) { u16 a = scr_readw(p); if (col) a = ((a) & 0x88ff) | (((a) & 0x7000) >> 4) | (((a) & 0x0700) << 4); else a ^= ((a & 0x0700) == 0x0100) ? 0x7000 : 0x7700; scr_writew(a, p+...
0
[ "CWE-125" ]
linux
973c096f6a85e5b5f2a295126ba6928d9a6afd45
206,220,749,856,007,500,000,000,000,000,000,000,000
14
vgacon: remove software scrollback support Yunhai Zhang recently fixed a VGA software scrollback bug in commit ebfdfeeae8c0 ("vgacon: Fix for missing check in scrollback handling"), but that then made people look more closely at some of this code, and there were more problems on the vgacon side, but also the fbcon sof...
uint32_t readI16(int16_t& i16) { T_VIRTUAL_CALL(); return readI16_virt(i16); }
0
[ "CWE-20" ]
thrift
cfaadcc4adcfde2a8232c62ec89870b73ef40df1
257,953,583,647,628,380,000,000,000,000,000,000,000
4
THRIFT-3231 CPP: Limit recursion depth to 64 Client: cpp Patch: Ben Craig <bencraig@apache.org>
void kvm_vcpu_kick(struct kvm_vcpu *vcpu) { int me; int cpu = vcpu->cpu; wait_queue_head_t *wqp; wqp = kvm_arch_vcpu_wq(vcpu); if (waitqueue_active(wqp)) { wake_up_interruptible(wqp); ++vcpu->stat.halt_wakeup; } me = get_cpu(); if (cpu != me && (unsigned)cpu < nr_cpu_ids && cpu_online(cpu)) if (kvm_arch...
0
[ "CWE-399" ]
linux
12d6e7538e2d418c08f082b1b44ffa5fb7270ed8
169,752,962,540,986,780,000,000,000,000,000,000,000
18
KVM: perform an invalid memslot step for gpa base change PPC must flush all translations before the new memory slot is visible. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
session_on_connection_window_update_received(nghttp2_session *session, nghttp2_frame *frame) { /* Handle connection-level flow control */ if (frame->window_update.window_size_increment == 0) { return session_handle_invalid_connection( session, frame, NGHTTP2_...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
200,521,089,291,189,550,000,000,000,000,000,000,000
18
Add nghttp2_option_set_max_outbound_ack
mcs_recv_connect_response(STREAM mcs_data) { uint8 result; int length; STREAM s; s = iso_recv(NULL); if (s == NULL) return False; ber_parse_header(s, MCS_CONNECT_RESPONSE, &length); ber_parse_header(s, BER_TAG_RESULT, &length); in_uint8(s, result); if (result != 0) { error("MCS connect: %d\n", result);...
1
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
212,436,539,839,987,200,000,000,000,000,000,000,000
41
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
*/ static bool netdev_has_any_upper_dev(struct net_device *dev) { ASSERT_RTNL(); return !list_empty(&dev->all_adj_list.upper);
0
[ "CWE-400", "CWE-703" ]
linux
fac8e0f579695a3ecbc4d3cac369139d7f819971
158,703,103,869,122,430,000,000,000,000,000,000,000
6
tunnels: Don't apply GRO to multiple layers of encapsulation. When drivers express support for TSO of encapsulated packets, they only mean that they can do it for one layer of encapsulation. Supporting additional levels would mean updating, at a minimum, more IP length fields and they are unaware of this. No encapsul...
TEST_F(HttpConnectionManagerImplTest, MaxStreamDurationDisabledIfSetToZero) { max_stream_duration_ = std::chrono::milliseconds(0); setup(false, ""); EXPECT_CALL(*codec_, dispatch(_)).WillOnce(Invoke([&](Buffer::Instance&) -> Http::Status { EXPECT_CALL(filter_callbacks_.connection_.dispatcher_, createTimer_)....
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
102,741,857,688,846,980,000,000,000,000,000,000,000
13
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...