func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
template<typename t> const CImg<T>& eigen(CImg<t>& val, CImg<t> &vec) const { if (is_empty()) { val.assign(); vec.assign(); } else { if (_width!=_height || _depth>1 || _spectrum>1) throw CImgInstanceException(_cimg_instance "eigen(): Instance i...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
192,875,947,480,266,800,000,000,000,000,000,000,000
41
Fix other issues in 'CImg<T>::load_bmp()'.
xmlXPathNodeSetMergeAndClear(xmlNodeSetPtr set1, xmlNodeSetPtr set2, int hasNullEntries) { if ((set1 == NULL) && (hasNullEntries == 0)) { /* * Note that doing a memcpy of the list, namespace nodes are * just assigned to set1, since set2 is cleared anyway. */ set1 = xmlXPathNodeSetCreateSize(set2->nodeN...
0
[ "CWE-189" ]
libxml2
d7958b21e7f8c447a26bb2436f08402b2c308be4
211,979,901,630,802,800,000,000,000,000,000,000,000
95
Fix some potential problems on reallocation failures The count was incremented before the allocation and not fixed in case of failure * xpath.c: corrects a few instances where the available count of some structure is updated before we know the allocation actually succeeds
void moof_del(GF_Box *s) { GF_MovieFragmentBox *ptr = (GF_MovieFragmentBox *)s; if (ptr == NULL) return; if (ptr->mfhd) gf_isom_box_del((GF_Box *) ptr->mfhd); gf_isom_box_array_del(ptr->TrackList); if (ptr->mdat) gf_free(ptr->mdat); gf_free(ptr); }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
238,500,989,210,943,340,000,000,000,000,000,000,000
10
prevent dref memleak on invalid input (#1183)
void textview_reflect_prefs(TextView *textview) { textview_set_font(textview, NULL); textview_update_message_colors(textview); gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(textview->text), prefs_common.textview_cursor_visible); }
0
[ "CWE-601" ]
claws
ac286a71ed78429e16c612161251b9ea90ccd431
332,803,825,117,026,440,000,000,000,000,000,000,000
7
harden link checker before accepting click
const char *mnt_fs_get_swaptype(struct libmnt_fs *fs) { return fs ? fs->swaptype : NULL; }
0
[ "CWE-552", "CWE-703" ]
util-linux
166e87368ae88bf31112a30e078cceae637f4cdb
151,722,619,850,385,400,000,000,000,000,000,000,000
4
libmount: remove support for deleted mount table entries The "(deleted)" suffix has been originally used by kernel for deleted mountpoints. Since kernel commit 9d4d65748a5ca26ea8650e50ba521295549bf4e3 (Dec 2014) kernel does not use this suffix for mount stuff in /proc at all. Let's remove this support from libmount to...
pixGetOuterBorder(CCBORD *ccb, PIX *pixs, BOX *box) { l_int32 fpx, fpy, spx, spy, qpos; l_int32 px, py, npx, npy; l_int32 w, h, wpl; l_uint32 *data; PTA *pta; PIX *pixb; /* with 1 pixel border */ PROCNAME("pixGetOuterBorder"); if (!ccb) ...
0
[ "CWE-125" ]
leptonica
8d6e1755518cfb98536d6c3daf0601f226d16842
180,458,399,936,719,830,000,000,000,000,000,000,000
66
Issue 23433 in oss-fuzz: Heap-buffer-overflow in findNextBorderPixel() * Check pix boundary when looking for the next pixel.
static Image *XMagickCommand(Display *display,XResourceInfo *resource_info, XWindows *windows,const CommandType command_type,Image **image, MagickStatusType *state) { Image *nexus; MagickBooleanType proceed; MagickStatusType status; XTextProperty window_name; /* Process user comman...
1
[ "CWE-772" ]
ImageMagick6
6ce6d25b47caf9b6b2979a510b6202ce0f3dd2d4
294,920,787,328,954,230,000,000,000,000,000,000,000
313
https://github.com/ImageMagick/ImageMagick/issues/1195
static unsigned long nested_svm_get_tdp_cr3(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); return svm->nested.ctl.nested_cr3; }
0
[ "CWE-862" ]
kvm
0f923e07124df069ba68d8bb12324398f4b6b709
277,016,818,346,445,500,000,000,000,000,000,000,000
6
KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl (CVE-2021-3653) * Invert the mask of bits that we pick from L2 in nested_vmcb02_prepare_control * Invert and explicitly use VIRQ related bits bitmask in svm_clear_vintr This fixes a security issue that allowed a malicious L1 to run L2 with AVIC enable...
_fr_window_archive_extract_from_edata (FrWindow *window, ExtractData *edata) { GList *scan; gsize total_size; total_size = 0; for (scan = edata->file_list; scan; scan = scan->next) { char *filename = scan->data; FileData *file_data; file_data = g_hash_table_lookup (window->archive->files_...
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
92,976,471,564,305,550,000,000,000,000,000,000,000
33
libarchive: sanitize filenames before extracting
idr_resolve(struct idr *idr, void (*fsetnum)(unsigned char *p, int num)) { struct idrent *n; unsigned char *p; for (n = idr->wait_list.first; n != NULL; n = n->wnext) { idr_extend_identifier(n, idr->num_size, idr->null_size); p = (unsigned char *)n->isoent->identifier + n->noff; do { fsetnum(p, n->avail->r...
0
[ "CWE-190" ]
libarchive
3014e19820ea53c15c90f9d447ca3e668a0b76c6
315,731,550,837,256,600,000,000,000,000,000,000,000
14
Issue 711: Be more careful about verifying filename lengths when writing ISO9660 archives * Don't cast size_t to int, since this can lead to overflow on machines where sizeof(int) < sizeof(size_t) * Check a + b > limit by writing it as a > limit || b > limit || a + b > limit to avoid problems when a + b wraps...
static int snd_rawmidi_info_select_user(struct snd_card *card, struct snd_rawmidi_info __user *_info) { int err; struct snd_rawmidi_info info; if (get_user(info.device, &_info->device)) return -EFAULT; if (get_user(info.stream, &_info->stream)) return -EFAULT; if (get_user(info.subdevice, &_info->subdevi...
0
[ "CWE-416" ]
linux
c1f6e3c818dd734c30f6a7eeebf232ba2cf3181d
238,008,668,298,777,280,000,000,000,000,000,000,000
19
ALSA: rawmidi: Fix racy buffer resize under concurrent accesses The rawmidi core allows user to resize the runtime buffer via ioctl, and this may lead to UAF when performed during concurrent reads or writes: the read/write functions unlock the runtime lock temporarily during copying form/to user-space, and that's the ...
TEST(HeaderDataConstructorTest, RangeMatchSpecifier) { const std::string yaml = R"EOF( name: test-header range_match: start: 0 end: -10 )EOF"; HeaderUtility::HeaderData header_data = HeaderUtility::HeaderData(parseHeaderMatcherFromYaml(yaml)); EXPECT_EQ("test-header", header_data.name_.get()); EXP...
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
98,989,327,030,679,600,000,000,000,000,000,000,000
17
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
int vt_get_shift_state(void) { /* Don't lock as this is a transient report */ return shift_state; }
0
[ "CWE-416" ]
linux
6ca03f90527e499dd5e32d6522909e2ad390896b
204,353,148,601,148,200,000,000,000,000,000,000,000
5
vt: keyboard, simplify vt_kdgkbsent Use 'strlen' of the string, add one for NUL terminator and simply do 'copy_to_user' instead of the explicit 'for' loop. This makes the KDGKBSENT case more compact. The only thing we need to take care about is NULL 'func_table[i]'. Use an empty string in that case. The original che...
static int fib6_node_dump(struct fib6_walker *w) { struct fib6_info *rt; for_each_fib6_walker_rt(w) fib6_rt_dump(rt, w->args); w->leaf = NULL; return 0; }
0
[ "CWE-755" ]
linux
7b09c2d052db4b4ad0b27b97918b46a7746966fa
314,833,475,720,919,900,000,000,000,000,000,000,000
9
ipv6: fix a typo in fib6_rule_lookup() Yi Ren reported an issue discovered by syzkaller, and bisected to the cited commit. Many thanks to Yi, this trivial patch does not reflect the patient work that has been done. Fixes: d64a1f574a29 ("ipv6: honor RT6_LOOKUP_F_DST_NOREF in rule lookup logic") Signed-off-by: Eric Du...
private int mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) { uint32_t soffset, offset = ms->offset; uint32_t count = m->st...
1
[]
php-src
89f864c547014646e71862df3664e3ff33d7143d
56,070,100,620,464,640,000,000,000,000,000,000,000
636
Fixed Bug #66731 file: infinite recursion Upstream commit (available in file-5.17) https://github.com/glensc/file/commit/3c081560c23f20b2985c285338b52c7aae9fdb0f https://github.com/glensc/file/commit/cc9e74dfeca5265ad725acc926ef0b8d2a18ee70
MagickExport MagickBooleanType DrawPrimitive(Image *image, const DrawInfo *draw_info,const PrimitiveInfo *primitive_info, ExceptionInfo *exception) { CacheView *image_view; MagickStatusType status; register ssize_t i, x; ssize_t y; if (image->debug != MagickFalse) { (void...
0
[ "CWE-399", "CWE-119" ]
ImageMagick
726812fa2fa7ce16bcf58f6e115f65427a1c0950
130,036,022,444,152,380,000,000,000,000,000,000,000
456
Prevent buffer overflow in magick/draw.c
static void lo_link(fuse_req_t req, fuse_ino_t ino, fuse_ino_t parent, const char *name) { int res; struct lo_data *lo = lo_data(req); struct lo_inode *parent_inode; struct lo_inode *inode; struct fuse_entry_param e; char procname[64]; int saverr; if (!is_safe_path_c...
0
[]
qemu
6084633dff3a05d63176e06d7012c7e15aba15be
242,592,497,296,977,600,000,000,000,000,000,000,000
58
tools/virtiofsd: xattr name mappings: Add option Add an option to define mappings of xattr names so that the client and server filesystems see different views. This can be used to have different SELinux mappings as seen by the guest, to run the virtiofsd with less privileges (e.g. in a case where it can't set trusted/...
R_API int r_str_replace_char(char *s, int a, int b) { return r_str_replace_ch (s, a, b, true); }
0
[ "CWE-78" ]
radare2
04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9
263,632,803,559,149,740,000,000,000,000,000,000,000
3
Fix command injection on PDB download (#16966) * Fix r_sys_mkdirp with absolute path on Windows * Fix build with --with-openssl * Use RBuffer in r_socket_http_answer() * r_socket_http_answer: Fix read for big responses * Implement r_str_escape_sh() * Cleanup r_socket_connect() on Windows * Fix socket being creat...
void nfsd_destroy(struct net *net) { struct nfsd_net *nn = net_generic(net, nfsd_net_id); int destroy = (nn->nfsd_serv->sv_nrthreads == 1); if (destroy) svc_shutdown_net(nn->nfsd_serv, net); svc_destroy(nn->nfsd_serv); if (destroy) nn->nfsd_serv = NULL; }
0
[ "CWE-20" ]
linux
e6838a29ecb484c97e4efef9429643b9851fba6e
14,000,386,724,624,121,000,000,000,000,000,000,000
11
nfsd: check for oversized NFSv2/v3 arguments A client can append random data to the end of an NFSv2 or NFSv3 RPC call without our complaining; we'll just stop parsing at the end of the expected data and ignore the rest. Encoded arguments and replies are stored together in an array of pages, and if a call is too large...
test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit, bool no_changes, const key_map *map) { int ref_key; uint UNINIT_VAR(ref_key_parts); int order_direction= 0; uint used_key_parts= 0; TABLE *table=tab->table; SQL_SELECT *select=tab->select; key_map usable_keys; QUICK_SELECT_I *sa...
0
[ "CWE-89" ]
server
5ba77222e9fe7af8ff403816b5338b18b342053c
146,510,381,081,769,500,000,000,000,000,000,000,000
500
MDEV-21028 Server crashes in Query_arena::set_query_arena upon SELECT from view if the view has algorithm=temptable it is not updatable, so DEFAULT() for its fields is meaningless, and thus it's NULL or 0/'' for NOT NULL columns.
duint32 dwgReader18::checksum(duint32 seed, duint8* data, duint64 sz){ duint64 size = sz; duint32 sum1 = seed & 0xffff; duint32 sum2 = seed >> 0x10; while (size != 0) { // duint32 chunkSize = min(0x15b0, size); duint64 chunkSize = 0x15b0 < size? 0x15b0:size; size -= chunkSize; ...
0
[ "CWE-191" ]
libdxfrw
ba3fa95648bef948e008dfbdd31a4d21badd71f0
287,734,635,166,100,070,000,000,000,000,000,000,000
17
fixed out-of-bounds write vulnerability CVE-2021-21898 as reported in TALOS-2021-1349 / CVE-2021-21898, dwgCompressor::decompress18() could be abused with a malformed DWG file to force out-of-bounds write and possibly lead to malicious code execution.
static void ieee80211_set_mu_mimo_follow(struct ieee80211_sub_if_data *sdata, struct vif_params *params) { bool mu_mimo_groups = false; bool mu_mimo_follow = false; if (params->vht_mumimo_groups) { u64 membership; BUILD_BUG_ON(sizeof(membership) != WLAN_MEMBERSHIP_LEN); memcpy(sdata->vif.bss_conf.mu_g...
0
[ "CWE-287" ]
linux
3e493173b7841259a08c5c8e5cbe90adb349da7e
138,029,601,604,487,770,000,000,000,000,000,000,000
32
mac80211: Do not send Layer 2 Update frame before authorization The Layer 2 Update frame is used to update bridges when a station roams to another AP even if that STA does not transmit any frames after the reassociation. This behavior was described in IEEE Std 802.11F-2003 as something that would happen based on MLME-...
parse_escape(uint8_t *s, uint8_t *q) { uint16_t val; if (strlen((char *)s) > 3 && isdigit((int) s[1]) && isdigit((int) s[2]) && isdigit((int) s[3])) { /* cast this so it fits */ val = (uint16_t) ldns_hexdigit_to_int((char) s[1]) * 100 + ldns_hexdigit_to_int((char) s[2]) * 10 + ...
1
[ "CWE-415" ]
ldns
070b4595981f48a21cc6b4f5047fdc2d09d3da91
13,903,117,006,272,495,000,000,000,000,000,000,000
28
CAA and URI
static ssize_t aac_show_vendor(struct device *device, struct device_attribute *attr, char *buf) { struct aac_dev *dev = (struct aac_dev*)class_to_shost(device)->hostdata; int len; if (dev->supplement_adapter_info.AdapterTypeText[0]) { char * cp = dev->supplement_adapter_info.AdapterTypeText; while (*c...
0
[ "CWE-284", "CWE-264" ]
linux
f856567b930dfcdbc3323261bf77240ccdde01f5
242,035,682,308,423,900,000,000,000,000,000,000,000
18
aacraid: missing capable() check in compat ioctl In commit d496f94d22d1 ('[SCSI] aacraid: fix security weakness') we added a check on CAP_SYS_RAWIO to the ioctl. The compat ioctls need the check as well. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torv...
static void g_stop(struct seq_file *m, void *p) { mutex_unlock(&graph_lock); }
0
[ "CWE-703" ]
linux
6a76f8c0ab19f215af2a3442870eeb5f0e81998d
216,909,944,277,006,130,000,000,000,000,000,000,000
4
tracing: Fix possible NULL pointer dereferences Currently set_ftrace_pid and set_graph_function files use seq_lseek for their fops. However seq_open() is called only for FMODE_READ in the fops->open() so that if an user tries to seek one of those file when she open it for writing, it sees NULL seq_file and then panic...
rsvg_filter_primitive_tile_set_atts (RsvgNode *node, gpointer impl, RsvgHandle *handle, RsvgPropertyBag *atts) { RsvgFilterPrimitiveTile *filter = impl; const char *value; if ((value = rsvg_property_bag_lookup (atts, "in"))) g_string_assign (filter->super.in, value); if ((value = rsvg_property_...
0
[ "CWE-369" ]
librsvg
ecf9267a24b2c3c0cd211dbdfa9ef2232511972a
142,827,872,530,812,700,000,000,000,000,000,000,000
12
bgo#783835 - Don't divide by zero in box_blur_line() for gaussian blurs We were making the decision to use box blurs, instead of a true Gaussian kernel, based on the size of *both* x and y dimensions. Do them individually instead.
static void getRDB(void) { int s = context->fd; int fd; unsigned long long payload = sendSync(s); char buf[4096]; fprintf(stderr,"SYNC sent to master, writing %llu bytes to '%s'\n", payload, config.rdb_filename); /* Write to file. */ if (!strcmp(config.rdb_filename,"-")) { ...
0
[ "CWE-119", "CWE-787" ]
redis
9fdcc15962f9ff4baebe6fdd947816f43f730d50
51,650,429,908,443,480,000,000,000,000,000,000,000
42
Security: fix redis-cli buffer overflow. Thanks to Fakhri Zulkifli for reporting it. The fix switched to dynamic allocation, copying the final prompt in the static buffer only at the end.
typval_compare_list( typval_T *tv1, typval_T *tv2, exprtype_T type, int ic, int *res) { int val = 0; if (type == EXPR_IS || type == EXPR_ISNOT) { val = (tv1->v_type == tv2->v_type && tv1->vval.v_list == tv2->vval.v_list); if (type == EXPR_ISNOT) val = !val; } ...
0
[ "CWE-125", "CWE-122" ]
vim
1e56bda9048a9625bce6e660938c834c5c15b07d
89,021,580,034,391,240,000,000,000,000,000,000,000
35
patch 9.0.0104: going beyond allocated memory when evaluating string constant Problem: Going beyond allocated memory when evaluating string constant. Solution: Properly skip over <Key> form.
methodHandle LinkResolver::linktime_resolve_special_method(const LinkInfo& link_info, TRAPS) { // Invokespecial is called for multiple special reasons: // <init> // local private method invocation, for classes and interfaces // superclass.method, which...
0
[]
jdk11u
132745902a4601dc64b2c8ca112ca30292feccb4
268,562,481,183,406,570,000,000,000,000,000,000,000
76
8281866: Enhance MethodHandle invocations Reviewed-by: mbaesken Backport-of: d974d9da365f787f67971d88c79371c8b0769f75
int usb_disable_ltm(struct usb_device *udev) { struct usb_hcd *hcd = bus_to_hcd(udev->bus); /* Check if the roothub and device supports LTM. */ if (!usb_device_supports_ltm(hcd->self.root_hub) || !usb_device_supports_ltm(udev)) return 0; /* Clear Feature LTM Enable can only be sent if the device is * confi...
0
[ "CWE-703" ]
linux
e50293ef9775c5f1cf3fcc093037dd6a8c5684ea
152,389,290,639,689,000,000,000,000,000,000,000,000
20
USB: fix invalid memory access in hub_activate() Commit 8520f38099cc ("USB: change hub initialization sleeps to delayed_work") changed the hub_activate() routine to make part of it run in a workqueue. However, the commit failed to take a reference to the usb_hub structure or to lock the hub interface while doing so. ...
static inline void sem_putref(struct sem_array *sma) { sem_lock_and_putref(sma); sem_unlock(sma, -1); }
0
[ "CWE-703", "CWE-189" ]
linux
6062a8dc0517bce23e3c2f7d2fea5e22411269a3
220,364,065,297,012,840,000,000,000,000,000,000,000
5
ipc,sem: fine grained locking for semtimedop Introduce finer grained locking for semtimedop, to handle the common case of a program wanting to manipulate one semaphore from an array with multiple semaphores. If the call is a semop manipulating just one semaphore in an array with multiple semaphores, only take the loc...
int main(int argc, char** argv) { /* Kernel starts us with all fd's closed. * But it's dangerous: * fprintf(stderr) can dump messages into random fds, etc. * Ensure that if any of fd 0,1,2 is closed, we open it to /dev/null. */ int fd = xopen("/dev/null", O_RDWR); while (fd < 2) fd = xd...
0
[ "CWE-200" ]
abrt
7269a2cc88735aee0d1fa62491b9efe73ab5c6e8
334,283,502,640,870,600,000,000,000,000,000,000,000
442
ccpp: revert the UID/GID changes if user core fails Thanks Florian Weimer <fweimer@redhat.com> Signed-off-by: Jakub Filak <jfilak@redhat.com>
static int session_call_error_callback(nghttp2_session *session, int lib_error_code, const char *fmt, ...) { size_t bufsize; va_list ap; char *buf; int rv; nghttp2_mem *mem; if (!session->callbacks.error_callback && !sessio...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
138,154,713,685,614,720,000,000,000,000,000,000,000
60
Add nghttp2_option_set_max_outbound_ack
static void initialize_stack (RCore *core, ut64 addr, ut64 size) { const char *mode = r_config_get (core->config, "esil.fillstack"); if (mode && *mode && *mode != '0') { const int bs = 4096 * 32; ut64 i; for (i = 0; i < size; i += bs) { int left = R_MIN (bs, size - i); // r_core_cmdf (core, "wx 10203040 @ ...
0
[ "CWE-416", "CWE-908" ]
radare2
9d348bcc2c4bbd3805e7eec97b594be9febbdf9a
95,600,118,204,810,820,000,000,000,000,000,000,000
28
Fix #9943 - Invalid free on RAnal.avr
static void vbg_pci_remove(struct pci_dev *pci) { struct vbg_dev *gdev = pci_get_drvdata(pci); mutex_lock(&vbg_gdev_mutex); vbg_gdev = NULL; mutex_unlock(&vbg_gdev_mutex); device_remove_file(gdev->dev, &dev_attr_host_features); device_remove_file(gdev->dev, &dev_attr_host_version); misc_deregister(&gdev->misc_...
0
[ "CWE-362" ]
linux
bd23a7269834dc7c1f93e83535d16ebc44b75eba
192,388,627,604,555,300,000,000,000,000,000,000,000
15
virt: vbox: Only copy_from_user the request-header once In vbg_misc_device_ioctl(), the header of the ioctl argument is copied from the userspace pointer 'arg' and saved to the kernel object 'hdr'. Then the 'version', 'size_in', and 'size_out' fields of 'hdr' are verified. Before this commit, after the checks a buffe...
inline U8 readOpaque8() { return readU8(); }
0
[ "CWE-20", "CWE-787" ]
tigervnc
0943c006c7d900dfc0281639e992791d6c567438
160,673,074,814,010,580,000,000,000,000,000,000,000
1
Use size_t for lengths in stream objects Provides safety against them accidentally becoming negative because of bugs in the calculations. Also does the same to CharArray and friends as they were strongly connection to the stream objects.
static int sg_proc_single_open_adio(struct inode *inode, struct file *file) { return single_open(file, sg_proc_seq_show_int, &sg_allow_dio); }
0
[ "CWE-190", "CWE-189" ]
linux
fdc81f45e9f57858da6351836507fbcf1b7583ee
92,215,813,677,249,080,000,000,000,000,000,000,000
4
sg_start_req(): use import_iovec() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
TEST_F(LuaStreamInfoWrapperTest, ReturnCurrentProtocol) { expectToPrintCurrentProtocol(Http::Protocol::Http10); expectToPrintCurrentProtocol(Http::Protocol::Http11); expectToPrintCurrentProtocol(Http::Protocol::Http2); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
171,525,098,476,573,360,000,000,000,000,000,000,000
5
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
static void nntp_parse_xref(struct Context *ctx, struct Header *hdr) { struct NntpData *nntp_data = ctx->data; char *buf = mutt_str_strdup(hdr->env->xref); char *p = buf; while (p) { anum_t anum; /* skip to next word */ p += strspn(p, " \t"); char *grp = p; /* skip to end of word */ ...
0
[ "CWE-20" ]
neomutt
9e927affe3a021175f354af5fa01d22657c20585
25,993,709,876,809,435,000,000,000,000,000,000,000
33
Add alloc fail check in nntp_fetch_headers
void xfrm_garbage_collect_deferred(struct net *net) { flow_cache_flush_deferred(net); }
0
[ "CWE-125" ]
ipsec
7bab09631c2a303f87a7eb7e3d69e888673b9b7e
185,787,728,204,581,250,000,000,000,000,000,000,000
4
xfrm: policy: check policy direction value The 'dir' parameter in xfrm_migrate() is a user-controlled byte which is used as an array index. This can lead to an out-of-bound access, kernel lockup and DoS. Add a check for the 'dir' value. This fixes CVE-2017-11600. References: https://bugzilla.redhat.com/show_bug.cgi?...
static int cirrus_bitblt_solidfill(CirrusVGAState *s, int blt_rop) { cirrus_fill_t rop_func; rop_func = cirrus_fill[rop_to_index[blt_rop]][s->cirrus_blt_pixelwidth - 1]; rop_func(s, s->vram_ptr + s->cirrus_blt_dstaddr, s->cirrus_blt_dstpitch, s->cirrus_blt_width, s->cirrus_blt_hei...
1
[ "CWE-787" ]
qemu
b2eb849d4b1fdb6f35d5c46958c7f703cf64cfef
149,842,811,940,934,740,000,000,000,000,000,000,000
14
CVE-2007-1320 - Cirrus LGD-54XX "bitblt" heap overflow I have just noticed that patch for CVE-2007-1320 has never been applied to the QEMU CVS. Please find it below. | Multiple heap-based buffer overflows in the cirrus_invalidate_region | function in the Cirrus VGA extension in QEMU 0.8.2, as used in Xen and | possib...
CImg<T>& distance_eikonal(const T& value, const CImg<t>& metric) { return get_distance_eikonal(value,metric).move_to(*this); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
280,703,772,454,851,260,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.
static unsigned int ib_uverbs_event_poll(struct file *filp, struct poll_table_struct *wait) { unsigned int pollflags = 0; struct ib_uverbs_event_file *file = filp->private_data; poll_wait(filp, &file->poll_wait, wait); spin_lock_irq(&file->lock); if (!list_empty(&file->event_list)) pollflags = POLLIN | P...
0
[ "CWE-284", "CWE-264" ]
linux
e6bd18f57aad1a2d1ef40e646d03ed0f2515c9e3
265,832,020,425,342,100,000,000,000,000,000,000,000
15
IB/security: Restrict use of the write() interface The drivers/infiniband stack uses write() as a replacement for bi-directional ioctl(). This is not safe. There are ways to trigger write calls that result in the return structure that is normally written to user space being shunted off to user specified kernel memory...
gnutls_x509_crt_check_revocation(gnutls_x509_crt_t cert, const gnutls_x509_crl_t * crl_list, int crl_list_length) { return _gnutls_x509_crt_check_revocation(cert, crl_list, crl_list_length, NULL); }
0
[ "CWE-295" ]
gnutls
6e76e9b9fa845b76b0b9a45f05f4b54a052578ff
207,334,745,376,463,270,000,000,000,000,000,000,000
7
on certificate import check whether the two signature algorithms match
static NAN_METHOD(DecryptBlock) { MarkPopErrorOnReturn mark_pop_error_on_return; GenericDecipher* obj = ObjectWrap::Unwrap<GenericDecipher>(info.Holder()); if (!Buffer::HasInstance(info[0])) return Nan::ThrowTypeError("Missing/Invalid block"); if (!info[1]->IsUint32()) return Nan::Throw...
0
[ "CWE-78" ]
ssh2
f763271f41320e71d5cbee02ea5bc6a2ded3ca21
247,125,559,695,972,350,000,000,000,000,000,000,000
32
examples,lib,test: switch to code rewrite For more information see: https://github.com/mscdex/ssh2/issues/935
static int smsusb_resume(struct usb_interface *intf) { int rc, i; struct smsusb_device_t *dev = usb_get_intfdata(intf); struct usb_device *udev = interface_to_usbdev(intf); printk(KERN_INFO "%s Entering.\n", __func__); usb_clear_halt(udev, usb_rcvbulkpipe(udev, dev->in_ep)); usb_clear_halt(udev, usb_sndbulkpipe...
0
[ "CWE-476" ]
linux
31e0456de5be379b10fea0fa94a681057114a96e
265,383,142,030,172,330,000,000,000,000,000,000,000
30
media: usb: siano: Fix general protection fault in smsusb The syzkaller USB fuzzer found a general-protection-fault bug in the smsusb part of the Siano DVB driver. The fault occurs during probe because the driver assumes without checking that the device has both IN and OUT endpoints and the IN endpoint is ep1. By sl...
bool unit_job_is_applicable(Unit *u, JobType j) { assert(u); assert(j >= 0 && j < _JOB_TYPE_MAX); switch (j) { case JOB_VERIFY_ACTIVE: case JOB_START: case JOB_NOP: /* Note that we don't check unit_can_start() here. That's because .device units and suchl...
0
[ "CWE-269" ]
systemd
bf65b7e0c9fc215897b676ab9a7c9d1c688143ba
206,005,214,939,521,740,000,000,000,000,000,000,000
34
core: imply NNP and SUID/SGID restriction for DynamicUser=yes service Let's be safe, rather than sorry. This way DynamicUser=yes services can neither take benefit of, nor create SUID/SGID binaries. Given that DynamicUser= is a recent addition only we should be able to get away with turning this on, even though this i...
int X509v3_addr_add_range(IPAddrBlocks *addr, const unsigned afi, const unsigned *safi, unsigned char *min, unsigned char *max) { IPAddressOrRanges *aors = make_prefix_or_range(addr, afi, safi); IPAddressOrRange *aor; int length =...
0
[ "CWE-119", "CWE-787" ]
openssl
068b963bb7afc57f5bdd723de0dd15e7795d5822
12,894,762,779,492,082,000,000,000,000,000,000,000
17
Avoid out-of-bounds read Fixes CVE 2017-3735 Reviewed-by: Kurt Roeckx <kurt@roeckx.be> (Merged from https://github.com/openssl/openssl/pull/4276) (cherry picked from commit b23171744b01e473ebbfd6edad70c1c3825ffbcd)
CModule::EModRet CModule::OnUserQuit(CString& sMessage) { return CONTINUE; }
0
[ "CWE-20", "CWE-264" ]
znc
8de9e376ce531fe7f3c8b0aa4876d15b479b7311
20,562,932,201,420,197,000,000,000,000,000,000,000
1
Fix remote code execution and privilege escalation vulnerability. To trigger this, need to have a user already. Thanks for Jeriko One <jeriko.one@gmx.us> for finding and reporting this. CVE-2019-12816
explicit CudnnCtcLossDescriptor(cudnnDataType_t data_type) : handle_(CreateCtcLossDescriptor()) { CHECK_CUDNN_OK(cudnnSetCTCLossDescriptorEx( /*ctcLossDesc=*/handle_.get(), /*compType=*/data_type, /*normMode=*/CUDNN_LOSS_NORMALIZATION_SOFTMAX, /*gradMode=*/CUDNN_NOT_PROPAGATE...
0
[ "CWE-20" ]
tensorflow
14755416e364f17fb1870882fa778c7fec7f16e3
280,480,594,569,345,130,000,000,000,000,000,000,000
8
Prevent CHECK-fail in LSTM/GRU with zero-length input. PiperOrigin-RevId: 346239181 Change-Id: I5f233dbc076aab7bb4e31ba24f5abd4eaf99ea4f
smtp_proceed_help(struct smtp_session *s, const char *args) { const char *code = esc_code(ESC_STATUS_OK, ESC_OTHER_STATUS); smtp_reply(s, "214-%s This is " SMTPD_NAME, code); smtp_reply(s, "214-%s To report bugs in the implementation, " "please contact bugs@openbsd.org", code); smtp_reply(s, "214-%s with full...
0
[ "CWE-78", "CWE-252" ]
src
9dcfda045474d8903224d175907bfc29761dcb45
24,749,059,648,799,807,000,000,000,000,000,000,000
10
Fix a security vulnerability discovered by Qualys which can lead to a privileges escalation on mbox deliveries and unprivileged code execution on lmtp deliveries, due to a logic issue causing a sanity check to be missed. ok eric@, millert@
v8::Local<v8::Value> GetFrameParent(v8::Isolate* isolate) { content::RenderFrame* render_frame; if (!MaybeGetRenderFrame(isolate, "parent", &render_frame)) return v8::Null(isolate); blink::WebFrame* frame = render_frame->GetWebFrame()->Parent(); return CreateWebFrameRenderer(isolate, frame); ...
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
229,816,726,361,374,550,000,000,000,000,000,000,000
8
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33344) * fix: ensure ElectronBrowser mojo service is only bound to authorized render frames Notes: no-notes * refactor: extract electron API IPC to its own mojo interface * fix: just check main frame not primary main frame ...
xmlFreeNotationTable(xmlNotationTablePtr table) { xmlHashFree(table, xmlFreeNotationTableEntry); }
0
[ "CWE-416" ]
libxml2
652dd12a858989b14eed4e84e453059cd3ba340e
170,862,659,414,627,600,000,000,000,000,000,000,000
3
[CVE-2022-23308] Use-after-free of ID and IDREF attributes If a document is parsed with XML_PARSE_DTDVALID and without XML_PARSE_NOENT, the value of ID attributes has to be normalized after potentially expanding entities in xmlRemoveID. Otherwise, later calls to xmlGetID can return a pointer to previously freed memory...
get_packet_mode(struct recvbuf *rbufp) { struct req_pkt *inpkt = (struct req_pkt *)&rbufp->recv_pkt; return (INFO_MODE(inpkt->rm_vn_mode)); }
0
[ "CWE-190" ]
ntp
c04c3d3d940dfe1a53132925c4f51aef017d2e0f
198,452,450,319,233,370,000,000,000,000,000,000,000
5
[TALOS-CAN-0052] crash by loop counter underrun.
msg_fifo_new () { return XCALLOC (MTYPE_OSPF_API_FIFO, sizeof (struct msg_fifo)); }
0
[ "CWE-119" ]
quagga
3f872fe60463a931c5c766dbf8c36870c0023e88
60,011,116,290,023,260,000,000,000,000,000,000,000
4
ospfd: CVE-2013-2236, stack overrun in apiserver the OSPF API-server (exporting the LSDB and allowing announcement of Opaque-LSAs) writes past the end of fixed on-stack buffers. This leads to an exploitable stack overflow. For this condition to occur, the following two conditions must be true: - Quagga is configured...
void Gfx::opMarkPoint(Object args[], int numArgs) { if (printCommands) { printf(" mark point: %s ", args[0].getName()); if (numArgs == 2) args[1].print(stdout); printf("\n"); fflush(stdout); } if(numArgs == 2 && args[1].isDict()) { out->markPoint(args[0].getName(),args[1].getDict()); ...
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
161,301,771,356,845,370,000,000,000,000,000,000,000
16
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
inline void AveragePool(const PoolParams& params, const RuntimeShape& input_shape, const int8_t* input_data, const RuntimeShape& output_shape, int8_t* output_data) { TFLITE_DCHECK_LE(params.quantized_activation_min, params.quan...
1
[ "CWE-703", "CWE-835" ]
tensorflow
dfa22b348b70bb89d6d6ec0ff53973bacb4f4695
68,259,526,114,881,100,000,000,000,000,000,000,000
57
Prevent a division by 0 in average ops. PiperOrigin-RevId: 385184660 Change-Id: I7affd4554f9b336fca29ac68f633232c094d0bd3
bool bt_att_unregister_disconnect(struct bt_att *att, unsigned int id) { struct att_disconn *disconn; if (!att || !id) return false; /* Check if disconnect is running */ if (queue_isempty(att->chans)) { disconn = queue_find(att->disconn_list, match_disconn_id, UINT_TO_PTR(id)); if (!disconn) retur...
0
[ "CWE-415" ]
bluez
1cd644db8c23a2f530ddb93cebed7dacc5f5721a
162,087,106,204,513,230,000,000,000,000,000,000,000
26
shared/att: Fix possible crash on disconnect If there are pending request while disconnecting they would be notified but clients may endup being freed in the proccess which will then be calling bt_att_cancel to cancal its requests causing the following trace: Invalid read of size 4 at 0x1D894C: enable_ccc_callback...
static int rds_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) { struct sock *sk = sock->sk; struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; struct rds_sock *rs = rds_sk_to_rs(sk); int ret = 0; lock_sock(sk); if (addr_len != sizeof(struct sockaddr_in)) { ret = -EI...
0
[ "CWE-787" ]
linux
780e982905bef61d13496d9af5310bf4af3a64d3
322,745,091,457,246,200,000,000,000,000,000,000,000
32
RDS: validate the requested traces user input against max supported Larger than supported value can lead to array read/write overflow. Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
long keyctl_session_to_parent(void) { struct task_struct *me, *parent; const struct cred *mycred, *pcred; struct callback_head *newwork, *oldwork; key_ref_t keyring_r; struct cred *cred; int ret; keyring_r = lookup_user_key(KEY_SPEC_SESSION_KEYRING, 0, KEY_NEED_LINK); if (IS_ERR(keyring_r)) return PTR_ERR(ke...
0
[ "CWE-347" ]
linux
ee8f844e3c5a73b999edf733df1c529d6503ec2f
335,476,641,671,445,860,000,000,000,000,000,000,000
90
KEYS: Disallow keyrings beginning with '.' to be joined as session keyrings This fixes CVE-2016-9604. Keyrings whose name begin with a '.' are special internal keyrings and so userspace isn't allowed to create keyrings by this name to prevent shadowing. However, the patch that added the guard didn't fix KEYCTL_JOIN_...
ascRole2dulRole(const T_ASC_SC_ROLE role) { DUL_SC_ROLE dr = DUL_SC_ROLE_DEFAULT; switch (role) { case ASC_SC_ROLE_SCU: dr = DUL_SC_ROLE_SCU; break; case ASC_SC_ROLE_SCP: dr = DUL_SC_ROLE_SCP; break; case ASC_SC_ROLE_SCUSCP: dr = DUL_SC_ROLE_SCUSCP; break; case ASC_SC_ROLE_NONE: dr = DUL_SC_ROLE...
0
[ "CWE-415", "CWE-703", "CWE-401" ]
dcmtk
a9697dfeb672b0b9412c00c7d36d801e27ec85cb
152,547,480,734,431,480,000,000,000,000,000,000,000
13
Fixed poss. NULL pointer dereference/double free. Thanks to Jinsheng Ba <bajinsheng@u.nus.edu> for the report and some patches.
static void opaque_alloc(cmark_syntax_extension *self, cmark_mem *mem, cmark_node *node) { if (node->type == CMARK_NODE_TABLE) { node->as.opaque = mem->calloc(1, sizeof(node_table)); } else if (node->type == CMARK_NODE_TABLE_ROW) { node->as.opaque = mem->calloc(1, sizeof(node_table_row)); } else if (node-...
0
[ "CWE-190" ]
cmark-gfm
b1687e6af1367c596ab75428b03af55666a66530
210,805,527,639,429,650,000,000,000,000,000,000,000
9
prevent integer overflow in row_from_string * added explicit check for UINT16_MAX boundary on row->n_columns * added additional checks for row_from_string NULL returns to prevent NULL dereferences on error cases * added additional check to ensure n_columns between marker and header rows always match prior to any ali...
static int tcm_loop_driver_probe(struct device *dev) { struct tcm_loop_hba *tl_hba; struct Scsi_Host *sh; int error; tl_hba = to_tcm_loop_hba(dev); sh = scsi_host_alloc(&tcm_loop_driver_template, sizeof(struct tcm_loop_hba)); if (!sh) { printk(KERN_ERR "Unable to allocate struct scsi_host\n"); return -EN...
0
[ "CWE-119", "CWE-787" ]
linux
12f09ccb4612734a53e47ed5302e0479c10a50f8
220,692,444,509,718,000,000,000,000,000,000,000,000
36
loopback: off by one in tcm_loop_make_naa_tpg() This is an off by one 'tgpt' check in tcm_loop_make_naa_tpg() that could result in memory corruption. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Magick::Color Magick::Image::fillColor(void) const { return(constOptions()->fillColor()); }
0
[ "CWE-416" ]
ImageMagick
8c35502217c1879cb8257c617007282eee3fe1cc
266,409,130,859,189,630,000,000,000,000,000,000,000
4
Added missing return to avoid use after free.
static bool vfswrap_getlock(vfs_handle_struct *handle, files_struct *fsp, off_t *poffset, off_t *pcount, int *ptype, pid_t *ppid) { bool result; START_PROFILE(syscall_fcntl_getlock); result = fcntl_getlock(fsp->fh->fd, poffset, pcount, ptype, ppid); END_PROFILE(syscall_fcntl_getlock); return result; }
0
[ "CWE-665" ]
samba
30e724cbff1ecd90e5a676831902d1e41ec1b347
16,613,305,103,225,083,000,000,000,000,000,000,000
9
FSCTL_GET_SHADOW_COPY_DATA: Initialize output array to zero Otherwise num_volumes and the end marker can return uninitialized data to the client. Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
static int cm_migrate(struct ib_cm_id *cm_id) { struct cm_id_private *cm_id_priv; unsigned long flags; int ret = 0; cm_id_priv = container_of(cm_id, struct cm_id_private, id); spin_lock_irqsave(&cm_id_priv->lock, flags); if (cm_id->state == IB_CM_ESTABLISHED && (cm_id->lap_state == IB_CM_LAP_UNINIT || ...
0
[ "CWE-20" ]
linux
b2853fd6c2d0f383dbdf7427e263eb576a633867
150,195,694,125,910,080,000,000,000,000,000,000,000
19
IB/core: Don't resolve passive side RoCE L2 address in CMA REQ handler The code that resolves the passive side source MAC within the rdma_cm connection request handler was both redundant and buggy, so remove it. It was redundant since later, when an RC QP is modified to RTR state, the resolution will take place in th...
xmlCopyElementContent(xmlElementContentPtr cur) { return(xmlCopyDocElementContent(NULL, cur)); }
0
[]
libxml2
932cc9896ab41475d4aa429c27d9afd175959d74
321,099,456,974,026,560,000,000,000,000,000,000,000
3
Fix buffer size checks in xmlSnprintfElementContent xmlSnprintfElementContent failed to correctly check the available buffer space in two locations. Fixes bug 781333 (CVE-2017-9047) and bug 781701 (CVE-2017-9048). Thanks to Marcel Böhme and Thuan Pham for the report.
void CServer::ConLogout(IConsole::IResult *pResult, void *pUser) { CServer *pServer = (CServer *)pUser; if(pServer->m_RconClientID >= 0 && pServer->m_RconClientID < MAX_CLIENTS && pServer->m_aClients[pServer->m_RconClientID].m_State != CServer::CClient::STATE_EMPTY) { CMsgPacker Msg(NETMSG_RCON_AUTH_STATUS); ...
0
[ "CWE-20" ]
teeworlds
a766cb44bcffcdb0b88e776d01c5ee1323d44f85
164,129,789,002,247,660,000,000,000,000,000,000,000
21
fixed a server crash
vte_sequence_handler_le (VteTerminal *terminal, GValueArray *params) { VteScreen *screen; screen = terminal->pvt->screen; if (screen->cursor_current.col > 0) { /* There's room to move left, so do so. */ screen->cursor_current.col--; _vte_terminal_cleanup_tab_fragments_at_cursor (terminal); } else { if (ter...
0
[]
vte
58bc3a942f198a1a8788553ca72c19d7c1702b74
225,440,709,025,896,040,000,000,000,000,000,000,000
25
fix bug #548272 svn path=/trunk/; revision=2365
static OPJ_UINT32 opj_j2k_get_SPCod_SPCoc_size ( opj_j2k_t *p_j2k, OPJ_UINT32 p_tile_no, OPJ_UINT32 p_comp_no ) { opj_cp_t *l_cp = 00; opj...
0
[ "CWE-416" ]
openjpeg
940100c28ae28931722290794889cf84a92c5f6f
325,609,376,392,314,850,000,000,000,000,000,000,000
26
Fix potential use-after-free in opj_j2k_write_mco function Fixes #563
static struct pdf_obj *find_obj(struct pdf_struct *pdf, struct pdf_obj *obj, uint32_t objid) { unsigned j; unsigned i; /* search starting at previous obj (if exists) */ if (obj != pdf->objs) i = obj - pdf->objs; else i = 0; for (j=i;j<pdf->nobjs;j++) { obj = &pdf->objs[j]; if (obj->id =...
0
[]
clamav-devel
f0eb394501ec21b9fe67f36cbf5db788711d4236
33,174,605,252,211,790,000,000,000,000,000,000,000
24
bb #2016.
static int rawv6_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, size_t len, int noblock, int flags, int *addr_len) { struct ipv6_pinfo *np = inet6_sk(sk); struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)msg->msg_name; struct sk_buff *skb; size_t copied; int err; if (flags & MSG_OOB) ...
0
[ "CWE-20" ]
net
85fbaa75037d0b6b786ff18658ddf0b4014ce2a4
257,535,860,905,792,470,000,000,000,000,000,000,000
77
inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu functions Commit bceaa90240b6019ed73b49965eac7d167610be69 ("inet: prevent leakage of uninitialized memory to user in recv syscalls") conditionally updated addr_len if the msg_name is written to. The recv_error and rxpmtu functions relied on the re...
int open3_or_warn(const char *pathname, int flags, int mode) { int ret; ret = open(pathname, flags, mode); if (ret < 0) perror_msg("Can't open '%s'", pathname); return ret; }
0
[ "CWE-20" ]
libreport
1951e7282043dfe1268d492aea056b554baedb75
254,787,630,145,079,400,000,000,000,000,000,000,000
8
lib: fix races in dump directory handling code Florian Weimer <fweimer@redhat.com>: dd_opendir() should keep a file handle (opened with O_DIRECTORY) and use openat() and similar functions to access files in it. ... The file system manipulation functions should guard against hard links (check tha...
Tfloat _linear_atXYZ(const float fx, const float fy=0, const float fz=0, const int c=0) const { const float nfx = cimg::cut(fx,0,width() - 1), nfy = cimg::cut(fy,0,height() - 1), nfz = cimg::cut(fz,0,depth() - 1); const unsigned int x = (unsigned int)nfx, y = (uns...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
286,042,410,184,766,550,000,000,000,000,000,000,000
31
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static inline void sk_wmem_free_skb(struct sock *sk, struct sk_buff *skb) { sock_set_flag(sk, SOCK_QUEUE_SHRUNK); sk->sk_wmem_queued -= skb->truesize; sk_mem_uncharge(sk, skb->truesize); __kfree_skb(skb); }
0
[ "CWE-400" ]
linux-2.6
c377411f2494a931ff7facdbb3a6839b1266bcf6
320,047,446,792,551,900,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...
Http2Session::~Http2Session() { CHECK_EQ(flags_ & SESSION_STATE_HAS_SCOPE, 0); Debug(this, "freeing nghttp2 session"); for (const auto& stream : streams_) stream.second->session_ = nullptr; nghttp2_session_del(session_); CHECK_EQ(current_nghttp2_memory_, 0); free(stream_buf_allocation_.base); }
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
150,884,880,969,809,500,000,000,000,000,000,000,000
9
src: use unique_ptr for WriteWrap This commit attempts to avoid a use-after-free error by using unqiue_ptr and passing a reference to it. CVE-ID: CVE-2020-8265 Fixes: https://github.com/nodejs-private/node-private/issues/227 PR-URL: https://github.com/nodejs-private/node-private/pull/238 Reviewed-By: Michael Dawson <...
SSLNetVConnection::populate_protocol(std::string_view *results, int n) const { int retval = 0; if (n > retval) { results[retval] = map_tls_protocol_to_tag(getSSLProtocol()); if (!results[retval].empty()) { ++retval; } if (n > retval) { retval += super::populate_protocol(results + retval,...
0
[ "CWE-284" ]
trafficserver
d3f36f79820ea10c26573c742b1bbc370c351716
1,417,176,941,147,814,600,000,000,000,000,000,000
14
Bug fix in origin connection handling (#8731) Co-authored-by: Takuya Kitano <tkitano@yahoo-corp.jp>
ofputil_put_ofp10_table_stats(const struct ofputil_table_stats *stats, const struct ofputil_table_features *features, struct ofpbuf *buf) { struct mf_bitmap wc = wild_or_nonmatchable_fields(features); struct ofp10_table_stats *out; out = ofpbuf_pu...
0
[ "CWE-617", "CWE-703" ]
ovs
4af6da3b275b764b1afe194df6499b33d2bf4cde
81,778,560,551,010,840,000,000,000,000,000,000,000
16
ofp-group: Don't assert-fail decoding bad OF1.5 group mod type or command. When decoding a group mod, the current code validates the group type and command after the whole group mod has been decoded. The OF1.5 decoder, however, tries to use the type and command earlier, when it might still be invalid. This caused an...
BSONObj spec() { return BSON("$or" << BSONArray()); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
203,126,579,520,869,240,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
prep_data(struct module_qstate* qstate, struct sldns_buffer* buf) { uint64_t timestamp, expiry; size_t oldlim; struct edns_data edns; memset(&edns, 0, sizeof(edns)); edns.edns_present = 1; edns.bits = EDNS_DO; edns.ext_rcode = 0; edns.edns_version = EDNS_ADVERTISED_VERSION; edns.udp_size = EDNS_ADVERTISED_SIZE...
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
19,268,689,332,058,669,000,000,000,000,000,000,000
48
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
GF_Err gf_av1_parse_obu(GF_BitStream *bs, ObuType *obu_type, u64 *obu_size, u32 *obu_hdr_size, AV1State *state) { GF_Err e = GF_OK; u32 hdr_size; u64 pos = gf_bs_get_position(bs); if (!bs || !obu_type || !state) return GF_BAD_PARAM; state->bs_overread = GF_FALSE; gf_bs_set_eos_callback(bs, on_aom_av1_eos, sta...
0
[ "CWE-190", "CWE-787" ]
gpac
51cdb67ff7c5f1242ac58c5aa603ceaf1793b788
171,513,975,362,835,560,000,000,000,000,000,000,000
128
add safety in avc/hevc/vvc sps/pps/vps ID check - cf #1720 #1721 #1722
AirPDcapRsnaPwd2Psk( const CHAR *passphrase, const CHAR *ssid, const size_t ssidLength, UCHAR *output) { UCHAR m_output[2*SHA1_DIGEST_LEN]; GByteArray *pp_ba = g_byte_array_new(); memset(m_output, 0, 2*SHA1_DIGEST_LEN); if (!uri_str_to_bytes(passphrase, pp_ba)) { g_byte_array_f...
0
[ "CWE-20" ]
wireshark
9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4
243,123,194,655,862,400,000,000,000,000,000,000,000
24
Make sure EAPOL body is big enough for a EAPOL_RSN_KEY. A pointer to a EAPOL_RSN_KEY is set on the packet presuming the whole EAPOL_RSN_KEY is there. That's not always the case for fuzzed/malicious captures. Bug: 11585 Change-Id: Ib94b8aceef444c7820e43b969596efdb8dbecccd Reviewed-on: https://code.wireshark.org/revie...
static void ExportIndexQuantum(const Image *image,QuantumInfo *quantum_info, const MagickSizeType number_pixels,const Quantum *magick_restrict p, unsigned char *magick_restrict q,ExceptionInfo *exception) { ssize_t x; ssize_t bit; if (image->storage_class != PseudoClass) { (void) ThrowMagi...
0
[ "CWE-190" ]
ImageMagick
5af1dffa4b6ab984b5f13d1e91c95760d75f12a6
29,987,944,783,590,185,000,000,000,000,000,000,000
166
outside the range of representable values of type 'unsigned char' (#3083) Co-authored-by: Zhang Xiaohui <ruc_zhangxiaohui@163.com>
AnyP::Uri::Encode(const SBuf &buf, const CharacterSet &ignore) { if (buf.isEmpty()) return buf; Parser::Tokenizer tk(buf); SBuf goodSection; // optimization for the arguably common "no encoding necessary" case if (tk.prefix(goodSection, ignore) && tk.atEnd()) return buf; SBuf o...
0
[ "CWE-20" ]
squid
dfd818595b54942cb1adc45f6aed95c9b706e3a8
160,884,237,638,226,990,000,000,000,000,000,000,000
27
Merge pull request from GHSA-jvf6-h9gj-pmj6 * Add slash prefix to path-rootless or path-noscheme URLs * Update src/anyp/Uri.cc Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com> * restore file trailer GH auto-removes * Remove redundant path-empty check * Removed stale comment left behind by b2ab59a ...
void close_connections() { DBUG_ENTER("close_connections"); for (--next_con; next_con >= connections; --next_con) { #ifdef EMBEDDED_LIBRARY emb_close_connection(next_con); #endif if (next_con->stmt) mysql_stmt_close(next_con->stmt); next_con->stmt= 0; mysql_close(&next_con->mysql); if (n...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
46,686,358,108,031,010,000,000,000,000,000,000,000
19
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 void clone_tables(H264Context *dst, H264Context *src, int i) { dst->intra4x4_pred_mode = src->intra4x4_pred_mode + i * 8 * 2 * src->mb_stride; dst->non_zero_count = src->non_zero_count; dst->slice_table = src->slice_table; dst->cbp_table = src->cbp_table; d...
0
[ "CWE-703" ]
FFmpeg
29ffeef5e73b8f41ff3a3f2242d356759c66f91f
10,852,801,869,221,827,000,000,000,000,000,000,000
22
avcodec/h264: do not trust last_pic_droppable when marking pictures as done This simplifies the code and fixes a deadlock Fixes Ticket2927 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
GF_Box *sbgp_New() { ISOM_DECL_BOX_ALLOC(GF_SampleGroupBox, GF_ISOM_BOX_TYPE_SBGP); return (GF_Box *)tmp;
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
279,124,663,819,280,400,000,000,000,000,000,000,000
5
prevent dref memleak on invalid input (#1183)
int af9005_read_eeprom(struct dvb_usb_device *d, u8 address, u8 * values, int len) { struct af9005_device_state *st = d->priv; u8 seq; int ret, i; mutex_lock(&d->data_mutex); memset(st->data, 0, sizeof(st->data)); st->data[0] = 14; /* length of rest of packet low */ st->data[1] = 0; /* length of re...
0
[ "CWE-400", "CWE-401" ]
linux
2289adbfa559050d2a38bcd9caac1c18b800e928
234,107,806,355,633,000,000,000,000,000,000,000,000
47
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...
direct_io_worker(int rw, struct kiocb *iocb, struct inode *inode, const struct iovec *iov, loff_t offset, unsigned long nr_segs, unsigned blkbits, get_block_t get_block, dio_iodone_t end_io, struct dio *dio) { unsigned long user_addr; unsigned long flags; int seg; ssize_t ret = 0; ssize_t ret2; size_t bytes...
1
[]
linux-2.6
848c4dd5153c7a0de55470ce99a8e13a63b4703f
75,191,065,739,547,030,000,000,000,000,000,000,000
170
dio: zero struct dio with kzalloc instead of manually This patch uses kzalloc to zero all of struct dio rather than manually trying to track which fields we rely on being zero. It passed aio+dio stress testing and some bug regression testing on ext3. This patch was introduced by Linus in the conversation that lead u...
void setReferenceInline(Handle handle, absl::string_view value) override { ASSERT(handle.it_->second < inlineHeadersSize()); HeaderEntry& entry = maybeCreateInline(&inlineHeaders()[handle.it_->second], handle.it_->first); updateSize(entry.value().size(), value.size()); entry.value().setReference(value...
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
162,511,840,159,519,500,000,000,000,000,000,000,000
6
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
folder_info_from_store_summary (CamelEwsStore *store, const gchar *top, guint32 flags, GCancellable *cancellable, GError **error) { CamelEwsStoreSummary *ews_summary; GPtrArray *folder_infos = NULL; CamelFolderInfo *r...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
185,779,094,046,749,000,000,000,000,000,000,000,000
179
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
add_to_tab_list(char **append, const char *value) { char *result = *append; char *copied = trimmed_tab_list(value); if (copied != 0 && *copied != '\0') { const char *comma = ","; size_t need = 1 + strlen(copied); if (*copied == ',') comma = ""; else if (!comma_is_needed(*append)) comma = "";...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
76,182,706,334,902,990,000,000,000,000,000,000,000
35
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...
unsigned short *set_translate(int m, struct vc_data *vc) { inv_translate[vc->vc_num] = m; return translations[m]; }
0
[ "CWE-401" ]
tty
84ecc2f6eb1cb12e6d44818f94fa49b50f06e6ac
227,745,715,457,035,560,000,000,000,000,000,000,000
5
consolemap: Fix a memory leaking bug in drivers/tty/vt/consolemap.c In function con_insert_unipair(), when allocation for p2 and p1[n] fails, ENOMEM is returned, but previously allocated p1 is not freed, remains as leaking memory. Thus we should free p1 as well when this allocation fails. Signed-off-by: Gen Zhang <bl...
MYSQL *mysql_dr_connect( SV* dbh, MYSQL* sock, char* mysql_socket, char* host, char* port, char* user, char* password, char* dbname, ...
0
[ "CWE-416" ]
DBD-mysql
3619c170461a3107a258d1fd2d00ed4832adb1b1
284,807,061,664,165,300,000,000,000,000,000,000,000
485
Fix use-after-free for repeated fetchrow_arrayref calls when mysql_server_prepare=1 Function dbd_st_fetch() via Renew() can reallocate output buffer for mysql_stmt_fetch() call. But it does not update pointer to that buffer in imp_sth->stmt structure initialized by mysql_stmt_bind_result() function. That leads to use-...
template<typename t> CImg<T>& patchmatch(const CImg<T>& patch_image, const unsigned int patch_width, const unsigned int patch_height, const unsigned int patch_depth, const unsigned int nb_iterations, ...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
183,174,062,777,256,800,000,000,000,000,000,000,000
10
Fix other issues in 'CImg<T>::load_bmp()'.
static int pkcs7_encode_rinfo(PKCS7_RECIP_INFO *ri, unsigned char *key, int keylen) { EVP_PKEY_CTX *pctx = NULL; EVP_PKEY *pkey = NULL; unsigned char *ek = NULL; int ret = 0; size_t eklen; pkey = X509_get_pubkey(ri->cert); if (!pkey) return 0; pct...
0
[]
openssl
c0334c2c92dd1bc3ad8138ba6e74006c3631b0f9
108,388,428,479,921,070,000,000,000,000,000,000,000
55
PKCS#7: avoid NULL pointer dereferences with missing content In PKCS#7, the ASN.1 content component is optional. This typically applies to inner content (detached signatures), however we must also handle unexpected missing outer content correctly. This patch only addresses functions reachable from parsing, decryption...
void to_lower(char * str) { for (; *str; str++) *str = asc_tolower(*str); }
0
[ "CWE-125" ]
aspell
80fa26c74279fced8d778351cff19d1d8f44fe4e
158,733,766,196,004,740,000,000,000,000,000,000,000
4
Fix various bugs found by OSS-Fuze.
mlx5_tx_dseg_empw(struct mlx5_txq_data *__rte_restrict txq, struct mlx5_txq_local *__rte_restrict loc __rte_unused, struct mlx5_wqe_dseg *__rte_restrict dseg, uint8_t *buf, unsigned int len, unsigned int olx __rte_unused) { unsigned int part; uint8_t *pdst; if (!MLX5_TXOFF_CONFIG(MPW)) { /* St...
0
[]
dpdk-stable
ef311075d21b4f68c8ccfc46a00cda7c2a0bf4cc
274,770,846,306,366,540,000,000,000,000,000,000,000
39
net/mlx5: fix Rx queue recovery mechanism The local variables are getting inconsistent in data receiving routines after queue error recovery. Receive queue consumer index is getting wrong, need to reset one to the size of the queue (as RQ was fully replenished in recovery procedure). In MPRQ case, also the local cons...
static ssize_t vhost_vdpa_chr_write_iter(struct kiocb *iocb, struct iov_iter *from) { struct file *file = iocb->ki_filp; struct vhost_vdpa *v = file->private_data; struct vhost_dev *dev = &v->vdev; return vhost_chr_write_iter(dev, from); }
0
[ "CWE-416" ]
linux
f6bbf0010ba004f5e90c7aefdebc0ee4bd3283b9
138,772,399,321,772,580,000,000,000,000,000,000,000
9
vhost-vdpa: fix use-after-free of v->config_ctx When the 'v->config_ctx' eventfd_ctx reference is released we didn't set it to NULL. So if the same character device (e.g. /dev/vhost-vdpa-0) is re-opened, the 'v->config_ctx' is invalid and calling again vhost_vdpa_config_put() causes use-after-free issues like the foll...
pam_syslog(pam_handle_t *pamh, int priority, const char *fmt, ...) { va_list ap; va_start(ap, fmt); vsyslog(priority, fmt, ap); va_end(ap); }
0
[]
pam_pkcs11
a0c9b6ffc020944f03f57e7de66ad4363d52125d
213,761,234,166,796,370,000,000,000,000,000,000,000
8
fixed wiping secrets with OpenSSL_cleanse() Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting the problems.