func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
int imap_delete_mailbox(struct Context *ctx, struct ImapMbox *mx) { char buf[PATH_MAX], mbox[PATH_MAX]; struct ImapData *idata = NULL; if (!ctx || !ctx->data) { idata = imap_conn_find(&mx->account, ImapPassive ? MUTT_IMAP_CONN_NONEW : 0); if (!idata) { FREE(&mx->mbox); return -1; } ...
0
[ "CWE-78", "CWE-77" ]
neomutt
95e80bf9ff10f68cb6443f760b85df4117cb15eb
322,005,530,164,095,640,000,000,000,000,000,000,000
27
Quote path in imap_subscribe
int page_mkclean(struct page *page) { int cleaned = 0; struct address_space *mapping; struct rmap_walk_control rwc = { .arg = (void *)&cleaned, .rmap_one = page_mkclean_one, .invalid_vma = invalid_mkclean_vma, }; BUG_ON(!PageLocked(page)); if (!page_mapped(page)) return 0; mapping = page_mapping(page)...
0
[ "CWE-400", "CWE-703", "CWE-264" ]
linux
57e68e9cd65b4b8eb4045a1e0d0746458502554c
302,893,190,360,374,000,000,000,000,000,000,000,000
23
mm: try_to_unmap_cluster() should lock_page() before mlocking A BUG_ON(!PageLocked) was triggered in mlock_vma_page() by Sasha Levin fuzzing with trinity. The call site try_to_unmap_cluster() does not lock the pages other than its check_page parameter (which is already locked). The BUG_ON in mlock_vma_page() is not ...
static void sig_server_setup_fill_connect(IRC_SERVER_CONNECT_REC *conn) { if (!IS_IRC_SERVER_CONNECT(conn)) return; conn->alternate_nick = *settings_get_str("alternate_nick") != '\0' ? g_strdup(settings_get_str("alternate_nick")) : NULL; conn->usermode = g_strdup(settings_get_str("usermode")); }
0
[ "CWE-416" ]
irssi
b8d3301d34f383f039071214872570385de1bb59
143,586,658,048,525,250,000,000,000,000,000,000,000
9
SASL support The only supported methods are PLAIN and EXTERNAL, the latter is untested as of now. The code gets the values from the keys named sasl_{mechanism,username,password} specified for each chatnet.
ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpointer user_data) { GError *error; AutodiscoverData *data = user_data; gboolean op_res; guint status; gint idx; gsize size; xmlDoc *doc; xmlNode *node; status = msg->status_code; if (status == SOUP_STATUS_CANCELLED) ...
1
[ "CWE-310" ]
gnome-online-accounts
ecad8142e9ac519b9fc74b96dcb5531052bbffe1
201,709,221,533,030,650,000,000,000,000,000,000,000
144
Guard against invalid SSL certificates None of the branded providers (eg., Google, Facebook and Windows Live) should ever have an invalid certificate. So set "ssl-strict" on the SoupSession object being used by GoaWebView. Providers like ownCloud and Exchange might have to deal with certificates that are not up to th...
void gf_media_get_reduced_frame_rate(u32 *timescale, u32 *sample_dur) { u32 res; if (! *sample_dur) return; res = *timescale / *sample_dur; if (res **sample_dur == *timescale) { *timescale = res; *sample_dur = 1; } else if ((double)(*timescale * 1001 - (res+1) * *sample_dur * 1000) / ((res+1) * *sample_dur * 1...
0
[ "CWE-119", "CWE-787" ]
gpac
90dc7f853d31b0a4e9441cba97feccf36d8b69a4
84,266,402,019,744,880,000,000,000,000,000,000,000
13
fix some exploitable overflows (#994, #997)
static bool ndp_msg_check_opts(struct ndp_msg *msg) { unsigned char *ptr = ndp_msg_payload_opts(msg); size_t len = ndp_msg_payload_opts_len(msg); struct ndp_msg_opt_type_info *info; while (len > 0) { uint8_t cur_opt_raw_type = ptr[0]; unsigned int cur_opt_len = ptr[1] << 3; /* convert to bytes */ if (!cur_o...
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
309,527,362,289,507,800,000,000,000,000,000,000,000
26
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 ktime_t alarm_timer_remaining(struct k_itimer *timr, ktime_t now) { struct alarm *alarm = &timr->it.alarm.alarmtimer; return ktime_sub(now, alarm->node.expires); }
0
[ "CWE-190" ]
linux
5f936e19cc0ef97dbe3a56e9498922ad5ba1edef
57,316,906,005,752,510,000,000,000,000,000,000,000
6
alarmtimer: Prevent overflow for relative nanosleep Air Icy reported: UBSAN: Undefined behaviour in kernel/time/alarmtimer.c:811:7 signed integer overflow: 1529859276030040771 + 9223372036854775807 cannot be represented in type 'long long int' Call Trace: alarm_timer_nsleep+0x44c/0x510 kernel/time/alarmtim...
_nc_find_user_entry(const char *string) { const HashData *data = _nc_get_hash_user(); int hashvalue; struct user_table_entry const *ptr = 0; struct user_table_entry const *real_table; hashvalue = data->hash_of(string); if (hashvalue >= 0 && (unsigned) hashvalue < data->table_size && data->ta...
0
[ "CWE-125" ]
ncurses
b025434573f466efe27862656a6a9d41dd2bd609
114,303,798,540,262,080,000,000,000,000,000,000,000
27
ncurses 6.1 - patch 20191012 + amend recent changes to ncurses*-config and pc-files to filter out Debian linker-flags (report by Sven Joachim, cf: 20150516). + clarify relationship between tic, infocmp and captoinfo in manpage. + check for invalid hashcode in _nc_find_type_entry and _nc_find_name_entry. > fix seve...
void b43_dma_free(struct b43_wldev *dev) { struct b43_dma *dma; if (b43_using_pio_transfers(dev)) return; dma = &dev->dma; destroy_ring(dma, rx_ring); destroy_ring(dma, tx_ring_AC_BK); destroy_ring(dma, tx_ring_AC_BE); destroy_ring(dma, tx_ring_AC_VI); destroy_ring(dma, tx_ring_AC_VO); destroy_ring(dma, tx...
0
[ "CWE-119", "CWE-787" ]
linux
c85ce65ecac078ab1a1835c87c4a6319cf74660a
290,050,272,726,792,170,000,000,000,000,000,000,000
15
b43: allocate receive buffers big enough for max frame len + offset Otherwise, skb_put inside of dma_rx can fail... https://bugzilla.kernel.org/show_bug.cgi?id=32042 Signed-off-by: John W. Linville <linville@tuxdriver.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: stable@kernel.org
static int __dev_open(struct net_device *dev) { const struct net_device_ops *ops = dev->netdev_ops; int ret; ASSERT_RTNL(); /* * Is it even present? */ if (!netif_device_present(dev)) return -ENODEV; ret = call_netdevice_notifiers(NETDEV_PRE_UP, dev); ret = notifier_to_errno(ret); if (ret) return ret...
0
[ "CWE-399" ]
linux
6ec82562ffc6f297d0de36d65776cff8e5704867
248,307,850,442,127,630,000,000,000,000,000,000,000
59
veth: Dont kfree_skb() after dev_forward_skb() In case of congestion, netif_rx() frees the skb, so we must assume dev_forward_skb() also consume skb. Bug introduced by commit 445409602c092 (veth: move loopback logic to common location) We must change dev_forward_skb() to always consume skb, and veth to not double fr...
void visit(Character & /*ope*/) override { done_ = true; }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
305,798,724,912,896,600,000,000,000,000,000,000,000
1
Fix #122
int dd_delete_item(struct dump_dir *dd, const char *name) { if (!dd->locked) error_msg_and_die("dump_dir is not opened"); /* bug */ if (!str_is_correct_filename(name)) error_msg_and_die("Cannot delete item. '%s' is not a valid file name", name); char *path = concat_path_file(dd->dd_dirname...
1
[ "CWE-20" ]
libreport
1951e7282043dfe1268d492aea056b554baedb75
1,648,917,477,602,039,200,000,000,000,000,000,000
22
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...
psf_open_handle (PSF_FILE * pfile) { DWORD dwDesiredAccess ; DWORD dwShareMode ; DWORD dwCreationDistribution ; HANDLE handle ; switch (pfile->mode) { case SFM_READ : dwDesiredAccess = GENERIC_READ ; dwShareMode = FILE_SHARE_READ | FILE_SHARE_WRITE ; dwCreationDistribution = OPEN_EXISTING ; break ...
0
[ "CWE-369", "CWE-189" ]
libsndfile
725c7dbb95bfaf8b4bb7b04820e3a00cceea9ce6
248,090,037,826,761,830,000,000,000,000,000,000,000
55
src/file_io.c : Prevent potential divide-by-zero. Closes: https://github.com/erikd/libsndfile/issues/92
void vmhd_del(GF_Box *s) { GF_VideoMediaHeaderBox *ptr = (GF_VideoMediaHeaderBox *)s; if (ptr == NULL) return; gf_free(ptr);
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
119,759,867,262,853,890,000,000,000,000,000,000,000
6
prevent dref memleak on invalid input (#1183)
gimp_assert_vectors (GimpImage *image, const gchar *name, GimpCoords coords[], gsize coords_size, gboolean visible) { GimpVectors *vectors = NULL; GimpStroke *stroke = NULL; GArray *control_poin...
0
[ "CWE-20", "CWE-476" ]
gimp
c21eff4b031acb04fb4dfce8bd5fdfecc2b6524f
301,797,150,511,417,900,000,000,000,000,000,000,000
38
Issue #1689: create unique temporary file with g_file_open_tmp(). Not sure this is really solving the issue reported, which is that `g_get_tmp_dir()` uses environment variables (yet as g_file_open_tmp() uses g_get_tmp_dir()…). But at least g_file_open_tmp() should create unique temporary files, which prevents overridi...
static void voice_init(void) { struct VOICE_S *p_voice; int i; for (i = 0, p_voice = voice_tb; i < MAXVOICE; i++, p_voice++) { p_voice->sym = p_voice->last_sym = NULL; p_voice->lyric_start = NULL; p_voice->bar_start = 0; p_voice->time = 0; p_voice->slur_st = 0; p_voice->hy_st = 0; p_voice-...
0
[ "CWE-787" ]
abcm2ps
dc0372993674d0b50fedfbf7b9fad1239b8efc5f
141,213,971,082,632,870,000,000,000,000,000,000,000
18
fix: crash when too many accidentals in K: (signature + explicit) Issue #17.
_XkbSetCompatMap(ClientPtr client, DeviceIntPtr dev, xkbSetCompatMapReq * req, char *data, BOOL dryRun) { XkbSrvInfoPtr xkbi; XkbDescPtr xkb; XkbCompatMapPtr compat; int nGroups; unsigned i, bit; xkbi = dev->key->xkbInfo; xkb = xkbi->desc; compat = xkb->compat; if ...
0
[ "CWE-119" ]
xserver
f7cd1276bbd4fe3a9700096dec33b52b8440788d
166,539,940,732,462,150,000,000,000,000,000,000,000
149
Correct bounds checking in XkbSetNames() CVE-2020-14345 / ZDI 11428 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
void libxsmm_sparse_csc_reader( libxsmm_generated_code* io_generated_code, const char* i_csc_file_in, unsigned int** o_row_idx, unsigned int** o_column_idx, doubl...
1
[ "CWE-295" ]
libxsmm
3f417e5e0670b066d558052fd32fc8093c81ee94
308,550,102,690,952,200,000,000,000,000,000,000,000
134
Issue 513: merge fixes from master/main.
static void tsc210x_write(TSC210xState *s, uint16_t value) { /* * This is a two-state state machine for reading * command and data every second time. */ if (!s->state) { s->command = value >> 15; s->page = (value >> 11) & 0x0f; s->offset = (value >> 5) & 0x3f; s->s...
0
[ "CWE-119" ]
qemu
5193be3be35f29a35bc465036cd64ad60d43385f
324,736,169,957,501,870,000,000,000,000,000,000,000
33
tsc210x: fix buffer overrun on invalid state load CVE-2013-4539 s->precision, nextprecision, function and nextfunction come from wire and are used as idx into resolution[] in TSC_CUT_RESOLUTION. Validate after load to avoid buffer overrun. Cc: Andreas Färber <afaerber@suse.de> Signed-off-by: Michael S. Tsirkin <mst...
xsltFreeNamespaceMap(xsltNsMapPtr item) { xsltNsMapPtr tmp; while (item) { tmp = item; item = item->next; xmlFree(tmp); } return; }
0
[]
libxslt
e03553605b45c88f0b4b2980adfbbb8f6fca2fd6
11,429,912,592,722,476,000,000,000,000,000,000,000
11
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 void clef_def(struct SYMBOL *s) { char *p; int clef, clef_line; char str[80]; clef = -1; clef_line = 2; p = &s->text[2 + 5]; /* skip %%clef */ while (isspace((unsigned char) *p)) p++; /* clef name */ switch (*p) { case '\"': /* user clef name */ p = get_str(str, p, sizeof str); s->u.clef.nam...
0
[ "CWE-787" ]
abcm2ps
dc0372993674d0b50fedfbf7b9fad1239b8efc5f
109,789,228,110,737,740,000,000,000,000,000,000,000
120
fix: crash when too many accidentals in K: (signature + explicit) Issue #17.
void readYAMLConf(YAML::Node &node) { YAML::Node section = node["common"]; std::string strLine; string_array tempArray; section["api_mode"] >> global.APIMode; section["api_access_token"] >> global.accessToken; if(section["default_url"].IsSequence()) { section["default_url"] >> tempA...
0
[ "CWE-434", "CWE-94" ]
subconverter
ce8d2bd0f13f05fcbd2ed90755d097f402393dd3
54,063,651,136,789,010,000,000,000,000,000,000,000
280
Enhancements Add authorization check before loading scripts. Add detailed logs when loading preference settings.
gdk_pixbuf__tiff_image_begin_load (ModulePreparedNotifyFunc prepare_func, ModuleUpdatedNotifyFunc update_func, gpointer user_data, GError **error) { TiffContext *context; context = g_new0 (TiffContext, 1); context->prepare_func = prepare_func; context->updat...
0
[ "CWE-20" ]
gdk-pixbuf
3bac204e0d0241a0d68586ece7099e6acf0e9bea
331,789,566,340,828,300,000,000,000,000,000,000,000
18
Initial stab at getting the focus code to work. Fri Jun 1 18:54:47 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreeview.c: (gtk_tree_view_focus): Initial stab at getting the focus code to work. (gtk_tree_view_class_init): Add a bunch of keybindings. * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_c...
nfsd4_proc_compound(struct svc_rqst *rqstp, struct nfsd4_compoundargs *args, struct nfsd4_compoundres *resp) { struct nfsd4_op *op; struct nfsd4_operation *opdesc; struct nfsd4_compound_state *cstate = &resp->cstate; struct svc_fh *current_fh = &cstate->current_fh; struct svc_fh *save_fh = &cstate->sav...
0
[ "CWE-20", "CWE-129" ]
linux
b550a32e60a4941994b437a8d662432a486235a5
9,089,772,431,029,854,000,000,000,000,000,000,000
141
nfsd: fix undefined behavior in nfsd4_layout_verify UBSAN: Undefined behaviour in fs/nfsd/nfs4proc.c:1262:34 shift exponent 128 is too large for 32-bit type 'int' Depending on compiler+architecture, this may cause the check for layout_type to succeed for overly large values (which seems to be the case with amd64)...
local void gen_bitlen(s, desc) deflate_state *s; tree_desc *desc; /* the tree descriptor */ { ct_data *tree = desc->dyn_tree; int max_code = desc->max_code; const ct_data *stree = desc->stat_desc->static_tree; const intf *extra = desc->stat_desc->extra_bits; int base ...
0
[ "CWE-284", "CWE-787" ]
zlib
5c44459c3b28a9bd3283aaceab7c615f8020c531
70,849,763,872,938,230,000,000,000,000,000,000,000
77
Fix a bug that can crash deflate on some input when using Z_FIXED. This bug was reported by Danilo Ramos of Eideticom, Inc. It has lain in wait 13 years before being found! The bug was introduced in zlib 1.2.2.2, with the addition of the Z_FIXED option. That option forces the use of fixed Huffman codes. For rare input...
static int hugetlbfs_file_mmap(struct file *file, struct vm_area_struct *vma) { struct inode *inode = file_inode(file); loff_t len, vma_len; int ret; struct hstate *h = hstate_file(file); /* * vma address alignment (but not the pgoff alignment) has * already been checked by prepare_hugepage_range. If you add...
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
126,550,480,425,734,140,000,000,000,000,000,000,000
52
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 ...
buf_setreadl(struct tok_state *tok, const char* enc) { tok->enc = enc; return 1; }
0
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
52,520,890,635,223,750,000,000,000,000,000,000,000
4
bpo-35766: Merge typed_ast back into CPython (GH-11645)
static void adjust_poke_descs(struct bpf_prog *prog, u32 off, u32 len) { struct bpf_jit_poke_descriptor *tab = prog->aux->poke_tab; int i, sz = prog->aux->size_poke_tab; struct bpf_jit_poke_descriptor *desc; for (i = 0; i < sz; i++) { desc = &tab[i]; if (desc->insn_idx <= off) continue; desc->insn_idx += ...
0
[ "CWE-843" ]
bpf
5b029a32cfe4600f5e10e36b41778506b90fd4de
225,487,527,346,277,770,000,000,000,000,000,000,000
13
bpf: Fix ringbuf helper function compatibility Commit 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it") extended check_map_func_compatibility() by enforcing map -> helper function match, but not helper -> map type match. Due to this all of the bpf_ringbuf_*() helper functions could be used w...
static void pop_output_configuration(AACContext *ac) { if (ac->oc[1].status != OC_LOCKED && ac->oc[0].status != OC_NONE) { ac->oc[1] = ac->oc[0]; ac->avctx->channels = ac->oc[1].channels; ac->avctx->channel_layout = ac->oc[1].channel_layout; output_configure(ac, ac->oc[1].layout_map,...
0
[ "CWE-703" ]
FFmpeg
6e42ccb9dbc13836cd52cda594f819d17af9afa2
60,673,614,877,040,790,000,000,000,000,000,000,000
9
avcodec/aacdec: Fix pulse position checks in decode_pulses() Fixes out of array read Fixes: asan_static-oob_1efed25_1887_cov_2013541199_HeyYa_RA10_AAC_192K_30s.rm Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static int do_dccp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) { struct dccp_sock *dp; int val, len; if (get_user(len, optlen)) return -EFAULT; if (len < (int)sizeof(int)) return -EINVAL; dp = dccp_sk(sk); switch (optname) { case DCCP_SOCKOPT_PACKET_...
0
[ "CWE-416" ]
linux
69c64866ce072dea1d1e59a0d61e0f66c0dffb76
38,050,451,944,112,010,000,000,000,000,000,000,000
67
dccp: CVE-2017-8824: use-after-free in DCCP code Whenever the sock object is in DCCP_CLOSED state, dccp_disconnect() must free dccps_hc_tx_ccid and dccps_hc_rx_ccid and set to NULL. Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <...
NCURSES_SP_NAME(start_color) (NCURSES_SP_DCL0) { int result = ERR; int maxpairs = 0, maxcolors = 0; T((T_CALLED("start_color(%p)"), (void *) SP_PARM)); if (SP_PARM == 0) { result = ERR; } else if (SP_PARM->_coloron) { result = OK; } else { maxpairs = MaxPairs; maxcolors = MaxColors; if (r...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
86,505,742,979,434,490,000,000,000,000,000,000,000
80
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...
cudnnRNNInputMode_t input_mode() const { return input_mode_; }
0
[ "CWE-20" ]
tensorflow
14755416e364f17fb1870882fa778c7fec7f16e3
164,688,862,596,400,820,000,000,000,000,000,000,000
1
Prevent CHECK-fail in LSTM/GRU with zero-length input. PiperOrigin-RevId: 346239181 Change-Id: I5f233dbc076aab7bb4e31ba24f5abd4eaf99ea4f
void operator()(OpKernelContext* ctx, const CPUDevice& d, int64 num_batches, int64 samples_per_batch, int64 num_elements, const BCast& bcast, typename TTypes<T>::ConstFlat counts, typename TTypes<T>::ConstFlat probs, const random::PhiloxRandom& g...
1
[ "CWE-703", "CWE-197" ]
tensorflow
ca8c013b5e97b1373b3bb1c97ea655e69f31a575
305,611,415,017,902,050,000,000,000,000,000,000,000
146
Prevent integer truncation from 64 to 32 bits. The `tensorflow::Shard` functions last argument must be a 2 argument function where both arguments are `int64` (`long long`, 64 bits). However, there are usages where code passes in a function where arguments are `int` or `int32` (32 bits). In these cases, it is possible ...
static void destroy_pit_timer(struct kvm_timer *pt) { pr_debug("execute del timer!\n"); hrtimer_cancel(&pt->timer); }
0
[ "CWE-119", "CWE-787" ]
linux
ee73f656a604d5aa9df86a97102e4e462dd79924
93,793,839,315,525,830,000,000,000,000,000,000,000
5
KVM: PIT: control word is write-only PIT control word (address 0x43) is write-only, reads are undefined. Cc: stable@kernel.org Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
_TIFFVSetField(TIFF* tif, uint32 tag, va_list ap) { static const char module[] = "_TIFFVSetField"; TIFFDirectory* td = &tif->tif_dir; int status = 1; uint32 v32, i, v; double dblval; char* s; const TIFFField *fip = TIFFFindField(tif, tag, TIFF_ANY); uint32 standard_tag = tag; if( fip == NULL ) /* cannot ha...
1
[ "CWE-20" ]
libtiff
3144e57770c1e4d26520d8abee750f8ac8b75490
262,149,127,801,247,200,000,000,000,000,000,000,000
581
* libtiff/tif_dir.c, tif_dirread.c, tif_dirwrite.c: implement various clampings of double to other data types to avoid undefined behaviour if the output range isn't big enough to hold the input value. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2643 http://bugzilla.maptools.org/show_bug.cgi?id=2642 http://bugzil...
bool WebContents::WasInitiallyShown() { return initially_shown_; }
0
[ "CWE-200", "CWE-668" ]
electron
07a1c2a3e5845901f7e2eda9506695be58edc73c
132,446,455,470,912,300,000,000,000,000,000,000,000
3
fix: restrict sendToFrame to same-process frames by default (#26875)
pkcs11dh_computesecret(const dst_key_t *pub, const dst_key_t *priv, isc_buffer_t *secret) { CK_RV rv; CK_MECHANISM mech = { CKM_DH_PKCS_DERIVE, NULL, 0 }; CK_OBJECT_CLASS keyClass = CKO_SECRET_KEY; CK_KEY_TYPE keyType = CKK_GENERIC_SECRET; CK_OBJECT_HANDLE hDerived = CK_INVALID_HANDLE; CK_OBJECT_HANDLE h...
0
[ "CWE-617" ]
bind9
8d807cc21655eaa6e6a08afafeec3682c0f3f2ab
40,092,615,501,474,186,000,000,000,000,000,000,000
106
Fix crash in pk11_numbits() when native-pkcs11 is used When pk11_numbits() is passed a user provided input that contains all zeroes (via crafted DNS message), it would crash with assertion failure. Fix that by properly handling such input.
static void handle_s_without_atn(ESPState *s) { int32_t cmdlen; if (s->dma && !s->dma_enabled) { s->dma_cb = handle_s_without_atn; return; } s->pdma_cb = s_without_satn_pdma_cb; cmdlen = get_cmd(s, ESP_CMDFIFO_SZ); if (cmdlen > 0) { s->cmdfifo_cdb_offset = 0; do_...
1
[ "CWE-476" ]
qemu
607206948cacda4a80be5b976dba490970a18a76
254,962,712,524,486,130,000,000,000,000,000,000,000
20
esp: ensure that do_cmd is set to zero before submitting an ESP select command When a CDB has been received and is about to be submitted to the SCSI layer via one of the ESP select commands, ensure that do_cmd is set to zero before executing the command. Otherwise a guest executing 2 valid CDBs in quick sequence can ...
R_API DsoJsonObj *r_bin_java_get_method_json_definitions(RBinJavaObj *bin) { RBinJavaField *fm_type = NULL; RListIter *iter = NULL; DsoJsonObj *json_list = dso_json_list_new (); if (!bin) { return json_list; } r_list_foreach (bin->methods_list, iter, fm_type) { DsoJsonObj *method_proto = r_bin_java_get_method...
0
[ "CWE-119", "CWE-788" ]
radare2
6c4428f018d385fc80a33ecddcb37becea685dd5
17,497,673,124,763,254,000,000,000,000,000,000,000
14
Improve boundary checks to fix oobread segfaults ##crash * Reported by Cen Zhang via huntr.dev * Reproducer: bins/fuzzed/javaoob-havoc.class
int sock_no_recvmsg(struct socket *sock, struct msghdr *m, size_t len, int flags) { return -EOPNOTSUPP; }
0
[ "CWE-119", "CWE-787" ]
linux
b98b0bc8c431e3ceb4b26b0dfc8db509518fb290
33,874,768,482,229,950,000,000,000,000,000,000,000
5
net: avoid signed overflows for SO_{SND|RCV}BUFFORCE CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various memory corruptions, crashes, OOM... Note that before commit 82981930125a ("net: cleanups in sock_setsockopt()"), the bug was even more serious, since ...
tokenizeFormat(String format) { char **result = 0; format = x_skip_blanks(format); if (*format != '\0') { char *blob = x_strdup(format); int pass; for (pass = 0; pass < 2; ++pass) { int used = 0; int first = 1; int escaped = 0; int squoted = 0; int dquoted = 0; int n; ...
0
[ "CWE-399" ]
xterm-snapshots
82ba55b8f994ab30ff561a347b82ea340ba7075c
132,930,967,874,879,400,000,000,000,000,000,000,000
80
snapshot of project "xterm", label xterm-365d
ctl_printf( const char * fmt, ... ) { static const char * ellipsis = "[...]"; va_list va; char fmtbuf[128]; int rc; va_start(va, fmt); rc = vsnprintf(fmtbuf, sizeof(fmtbuf), fmt, va); va_end(va); if (rc < 0 || rc >= sizeof(fmtbuf)) strcpy(fmtbuf + sizeof(fmtbuf) - strlen(ellipsis) - 1, el...
0
[ "CWE-254" ]
ntp
3680c2e4d5f88905ce062c7b43305d610a2c9796
301,718,356,756,696,170,000,000,000,000,000,000,000
18
[Bug 2938] ntpq saveconfig command allows dangerous characters in filenames. - make sure the file does not exist (no overwrite allowed) - ensure text mode where applicable (windows)
ccbDestroy(CCBORD **pccb) { CCBORD *ccb; PROCNAME("ccbDestroy"); if (pccb == NULL) { L_WARNING("ptr address is NULL!\n", procName); return; } if ((ccb = *pccb) == NULL) return; ccb->refcount--; if (ccb->refcount == 0) { if (ccb->pix) pixDestroy(&...
0
[ "CWE-125" ]
leptonica
8d6e1755518cfb98536d6c3daf0601f226d16842
217,931,734,319,574,700,000,000,000,000,000,000,000
36
Issue 23433 in oss-fuzz: Heap-buffer-overflow in findNextBorderPixel() * Check pix boundary when looking for the next pixel.
void add_dispatcher_head(Dispatcher *d) { bool first = dispatchers.empty(); dispatchers.push_front(d); if (d->ms_can_fast_dispatch_any()) fast_dispatchers.push_front(d); if (first) ready(); }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
201,428,873,649,271,700,000,000,000,000,000,000,000
8
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
void authority_cert_free(authority_cert_t *cert) { if (!cert) return; tor_free(cert->cache_info.signed_descriptor_body); crypto_pk_free(cert->signing_key); crypto_pk_free(cert->identity_key); tor_free(cert);
0
[]
tor
1afc2ed956a35b40dfd1d207652af5b50c295da7
180,366,520,842,940,800,000,000,000,000,000,000,000
11
Fix policies.c instance of the "if (r=(a-b)) return r" pattern I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related...
TEST_F(QueryPlannerTest, MaxMinReverseSort) { addIndex(BSON("a" << 1)); // Run an empty query, sort {a: -1}, max/min arguments. runQueryFull(BSONObj(), fromjson("{a: -1}"), BSONObj(), 0, 0, BSONObj(), from...
0
[]
mongo
b0ef26c639112b50648a02d969298650fbd402a4
154,133,800,178,629,730,000,000,000,000,000,000,000
17
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
const char *rpc_peeraddr2str(struct rpc_clnt *clnt, enum rpc_display_format_t format) { struct rpc_xprt *xprt = clnt->cl_xprt; if (xprt->address_strings[format] != NULL) return xprt->address_strings[format]; else return "unprintable"; }
0
[ "CWE-400", "CWE-399", "CWE-703" ]
linux
0b760113a3a155269a3fba93a409c640031dd68f
265,903,027,019,126,070,000,000,000,000,000,000,000
10
NLM: Don't hang forever on NLM unlock requests If the NLM daemon is killed on the NFS server, we can currently end up hanging forever on an 'unlock' request, instead of aborting. Basically, if the rpcbind request fails, or the server keeps returning garbage, we really want to quit instead of retrying. Tested-by: Vasi...
int proc_pid_readdir(struct file *file, struct dir_context *ctx) { struct tgid_iter iter; struct pid_namespace *ns = file_inode(file)->i_sb->s_fs_info; loff_t pos = ctx->pos; if (pos >= PID_MAX_LIMIT + TGID_OFFSET) return 0; if (pos == TGID_OFFSET - 2) { struct inode *inode = d_inode(ns->proc_self); if (!d...
0
[ "CWE-362" ]
linux
8148a73c9901a8794a50f950083c00ccf97d43b3
333,878,768,476,494,870,000,000,000,000,000,000,000
42
proc: prevent accessing /proc/<PID>/environ until it's ready If /proc/<PID>/environ gets read before the envp[] array is fully set up in create_{aout,elf,elf_fdpic,flat}_tables(), we might end up trying to read more bytes than are actually written, as env_start will already be set but env_end will still be zero, makin...
static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment) { unsigned char *p,*plen; int i,mac_size,clear=0; int prefix_len=0; int eivlen; long align=0; SSL3_RECORD *wr; SSL3_BUFFER *wb=&(s->s3->wbuf); SSL_SESSION *sess; if (wb->buf == NULL) if (!...
0
[]
openssl
ee2ffc279417f15fef3b1073c7dc81a908991516
37,716,753,846,258,597,000,000,000,000,000,000,000
204
Add Next Protocol Negotiation.
static void qdev_e1000_reset(DeviceState *dev) { E1000State *d = E1000(dev); e1000_reset(d); }
0
[ "CWE-835" ]
qemu
1caff0340f49c93d535c6558a5138d20d475315c
329,474,180,754,147,300,000,000,000,000,000,000,000
5
e1000: switch to use qemu_receive_packet() for loopback This patch switches to use qemu_receive_packet() which can detect reentrancy and return early. This is intended to address CVE-2021-3416. Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>...
void gfs2_quota_unlock(struct gfs2_inode *ip) { struct gfs2_alloc *al = ip->i_alloc; struct gfs2_quota_data *qda[4]; unsigned int count = 0; unsigned int x; if (!test_and_clear_bit(GIF_QD_LOCKED, &ip->i_flags)) goto out; for (x = 0; x < al->al_qd_num; x++) { struct gfs2_quota_data *qd; int sync; qd = a...
0
[ "CWE-399" ]
linux-2.6
7e619bc3e6252dc746f64ac3b486e784822e9533
211,025,641,875,520,740,000,000,000,000,000,000,000
32
GFS2: Fix writing to non-page aligned gfs2_quota structures This is the upstream fix for this bug. This patch differs from the RHEL5 fix (Red Hat bz #555754) which simply writes to the 8-byte value field of the quota. In upstream quota code, we're required to write the entire quota (88 bytes) which can be split across...
static ssize_t disk_alignment_offset_show(struct device *dev, struct device_attribute *attr, char *buf) { struct gendisk *disk = dev_to_disk(dev); return sprintf(buf, "%d\n", queue_alignment_offset(disk->queue)); }
0
[ "CWE-416" ]
linux-stable
77da160530dd1dc94f6ae15a981f24e5f0021e84
71,682,447,489,823,810,000,000,000,000,000,000,000
8
block: fix use-after-free in seq file I got a KASAN report of use-after-free: ================================================================== BUG: KASAN: use-after-free in klist_iter_exit+0x61/0x70 at addr ffff8800b6581508 Read of size 8 by task trinity-c1/315 ======================================...
void iterate(HeaderMap::ConstIterateCb cb) const override { header_map_->iterate(cb); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
198,967,757,167,865,370,000,000,000,000,000,000,000
1
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, struct dentry *dentry, struct path *lowerpath, struct kstat *stat, struct iattr *attr, const char *link) { struct inode *wdir = workdir->d_inode; struct inode *udir = upperdir->d_inode; struct dentry *newdentry ...
1
[ "CWE-399" ]
linux
ab79efab0a0ba01a74df782eb7fa44b044dae8b5
329,415,012,317,876,250,000,000,000,000,000,000,000
76
ovl: fix dentry reference leak In ovl_copy_up_locked(), newdentry is leaked if the function exits through out_cleanup as this just to out after calling ovl_cleanup() - which doesn't actually release the ref on newdentry. The out_cleanup segment should instead exit through out2 as certainly newdentry leaks - and possi...
static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) { struct socket *sock, *oldsock; struct vhost_virtqueue *vq; struct vhost_net_virtqueue *nvq; struct vhost_net_ubuf_ref *ubufs, *oldubufs = NULL; int r; mutex_lock(&n->dev.mutex); r = vhost_dev_check_owner(&n->dev); if (r) goto er...
1
[ "CWE-399" ]
linux
dd7633ecd553a5e304d349aa6f8eb8a0417098c5
157,269,473,645,414,420,000,000,000,000,000,000,000
90
vhost-net: fix use-after-free in vhost_net_flush vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 "vhost-net: flush outstanding DMAs on memory change" vhost_net_flush tries to use the argument after passing it to ...
static void sep_free(gpointer data) { struct avdtp_remote_sep *sep = data; if (sep->destroy) sep->destroy(sep->user_data); g_slist_free_full(sep->caps, g_free); g_free(sep); }
0
[ "CWE-703" ]
bluez
7a80d2096f1b7125085e21448112aa02f49f5e9a
110,728,361,210,873,600,000,000,000,000,000,000,000
10
avdtp: Fix accepting invalid/malformed capabilities Check if capabilities are valid before attempting to copy them.
static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) { struct pipe_inode_info *pipe = i->pipe; struct pipe_buffer *buf; unsigned int p_tail = pipe->tail; unsigned int p_mask = pipe->ring_size - 1; unsigned int i_head = i->head; size_t off; if (unlikely(byt...
0
[ "CWE-665", "CWE-284" ]
linux
9d2231c5d74e13b2a0546fee6737ee4446017903
180,545,976,031,450,150,000,000,000,000,000,000,000
48
lib/iov_iter: initialize "flags" in new pipe_buffer The functions copy_page_to_iter_pipe() and push_pipe() can both allocate a new pipe_buffer, but the "flags" member initializer is missing. Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed") To: Alexander Viro <viro@zeniv.linux.org.uk> To: linux-fsdevel@vger.k...
static void beam_bucket_destroy(void *data) { h2_beam_proxy *d = data; if (apr_bucket_shared_destroy(d)) { /* When the beam gets destroyed before this bucket, it will * NULLify its reference here. This is not protected by a mutex, * so it will not help with race conditions. *...
0
[ "CWE-400" ]
mod_h2
83a2e3866918ce6567a683eb4c660688d047ee81
59,670,195,528,581,230,000,000,000,000,000,000,000
16
* fixes a race condition where aborting streams triggers an unnecessary timeout.
void *Type_LUT16_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsUInt32Number* nItems, cmsUInt32Number SizeOfTag) { cmsUInt8Number InputChannels, OutputChannels, CLUTpoints; cmsPipeline* NewLUT = NULL; cmsUInt32Number nTabSize; cmsFloat64Number Matrix[3*3]; cmsUInt16Number InputEntri...
0
[ "CWE-125" ]
Little-CMS
d41071eb8cfea7aa10a9262c12bd95d5d9d81c8f
230,936,238,123,230,070,000,000,000,000,000,000,000
88
Contributed fixes from Oracle Two minor glitches
Status clear() { tensorflow::mutex_lock lock(mu_); map_.clear(); incomplete_.clear(); current_bytes_ = 0; notify_inserters_if_bounded(); return Status::OK(); }
0
[ "CWE-20", "CWE-476" ]
tensorflow
d7de67733925de196ec8863a33445b73f9562d1d
54,703,938,920,456,890,000,000,000,000,000,000,000
10
Prevent a CHECK-fail due to empty tensor input in `map_stage_op.cc` PiperOrigin-RevId: 387737906 Change-Id: Idc52df0c71c7ed6e2dd633b651a581932f277c8a
bool Field_time_hires::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate) { if (check_zero_in_date_with_warn(fuzzydate)) return true; uint32 len= pack_length(); longlong packed= read_bigendian(ptr, len); packed= sec_part_unshift(packed - zero_point, dec); unpack_time(packed, ltime, MYSQL_TIMESTAMP_TIME); ...
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
232,158,305,784,659,720,000,000,000,000,000,000,000
12
MDEV-24176 Server crashes after insert in the table with virtual column generated using date_format() and if() vcol_info->expr is allocated on expr_arena at parsing stage. Since expr item is allocated on expr_arena all its containee items must be allocated on expr_arena too. Otherwise fix_session_expr() will encounter...
static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int entries; avio_r8(pb); /* version */ avio_rb24(pb); /* flags */ entries = avio_rb32(pb); return ff_mov_read_stsd_entries(c, pb, entries); }
0
[ "CWE-119", "CWE-787" ]
FFmpeg
689e59b7ffed34eba6159dcc78e87133862e3746
73,017,509,397,940,810,000,000,000,000,000,000,000
10
mov: reset dref_count on realloc to keep values consistent. This fixes a potential crash. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
family_str(int family) { if (family == AF_INET) return "IPv4"; if (family == AF_INET6) return "IPv6"; return "None"; }
0
[ "CWE-59", "CWE-61" ]
keepalived
04f2d32871bb3b11d7dc024039952f2fe2750306
230,620,205,388,357,200,000,000,000,000,000,000,000
8
When opening files for write, ensure they aren't symbolic links Issue #1048 identified that if, for example, a non privileged user created a symbolic link from /etc/keepalvied.data to /etc/passwd, writing to /etc/keepalived.data (which could be invoked via DBus) would cause /etc/passwd to be overwritten. This commit ...
struct avrcp_player *avrcp_get_target_player_by_device(struct btd_device *dev) { struct avrcp_server *server; struct avrcp *session; struct avrcp_data *target; server = find_server(servers, device_get_adapter(dev)); if (server == NULL) return NULL; session = find_session(server->sessions, dev); if (session =...
0
[ "CWE-200" ]
bluez
e2b0f0d8d63e1223bb714a9efb37e2257818268b
47,971,582,663,732,630,000,000,000,000,000,000,000
20
avrcp: Fix not checking if params_len match number of received bytes This makes sure the number of bytes in the params_len matches the remaining bytes received so the code don't end up accessing invalid memory.
e_ews_config_utils_unref_in_thread (GObject *object) { GThread *thread; g_return_if_fail (object != NULL); g_return_if_fail (G_IS_OBJECT (object)); thread = g_thread_new (NULL, ews_config_utils_unref_in_thread, object); g_thread_unref (thread); }
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
81,526,218,915,727,500,000,000,000,000,000,000,000
10
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
_compare_cached_resolves_by_expiry(const void *_a, const void *_b) { const cached_resolve_t *a = _a, *b = _b; if (a->expire < b->expire) return -1; else if (a->expire == b->expire) return 0; else return 1; }
0
[ "CWE-399" ]
tor
62637fa22405278758febb1743da9af562524d4c
116,867,629,284,994,520,000,000,000,000,000,000,000
10
Avoid hard (impossible?)-to-trigger double-free in dns_resolve() Fixes 6480; fix on 0.2.0.1-alpha; based on pseudonymous patch.
static int io_write(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock) { struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs; struct kiocb *kiocb = &req->rw.kiocb; struct iov_iter iter; size_t iov_count; ssize_t ret, io_size; ret = io_import_iovec(WRITE, req, &iovec, &iter); if (ret...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
335,155,329,750,384,840,000,000,000,000,000,000,000
82
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
static CharDriverState *qemu_chr_open_win_con(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { ChardevCommon *common = backend->u.console.data; re...
0
[ "CWE-416" ]
qemu
a4afa548fc6dd9842ed86639b4d37d4d1c4ad480
283,728,702,686,351,680,000,000,000,000,000,000,000
9
char: move front end handlers in CharBackend Since the hanlders are associated with a CharBackend, rather than the CharDriverState, it is more appropriate to store in CharBackend. This avoids the handler copy dance in qemu_chr_fe_set_handlers() then mux_chr_update_read_handler(), by storing the CharBackend pointer dir...
send_message(int sock_fd, SCK_Message *message, int flags) { struct cmsghdr cmsg_buf[CMSG_BUF_SIZE / sizeof (struct cmsghdr)]; union sockaddr_all saddr; socklen_t saddr_len; struct msghdr msg; struct iovec iov; assert(flags == 0); switch (message->addr_type) { case SCK_ADDR_UNSPEC: saddr_len =...
0
[ "CWE-59" ]
chrony
e18903a6b56341481a2e08469c0602010bf7bfe3
139,229,313,028,864,580,000,000,000,000,000,000,000
119
switch to new util file functions Replace all fopen(), rename(), and unlink() calls with the new util functions.
static int _annotate_getdb(const char *mboxname, unsigned int uid, int dbflags, annotate_db_t **dbp) { annotate_db_t *d, *prev = NULL; char *fname = NULL; struct db *db; int r; *dbp = NULL; /* * The incoming ...
0
[ "CWE-732" ]
cyrus-imapd
621f9e41465b521399f691c241181300fab55995
36,051,841,209,558,570,000,000,000,000,000,000,000
76
annotate: don't allow everyone to write shared server entries
int unit_add_default_slice(Unit *u) { _cleanup_free_ char *b = NULL; const char *slice_name; Unit *slice; int r; assert(u); if (UNIT_ISSET(u->slice)) return 0; if (!unit_get_cgroup_context(u)) return 0; if (u->instance) ...
0
[]
systemd
5ba6985b6c8ef85a8bcfeb1b65239c863436e75b
121,305,809,655,942,180,000,000,000,000,000,000,000
52
core: allow PIDs to be watched by two units at the same time In some cases it is interesting to map a PID to two units at the same time. For example, when a user logs in via a getty, which is reexeced to /sbin/login that binary will be explicitly referenced as main pid of the getty service, as well as implicitly refer...
int lockdep_genl_is_held(void) { return lockdep_is_held(&genl_mutex); }
0
[ "CWE-264" ]
net
90f62cf30a78721641e08737bda787552428061e
183,186,838,794,124,980,000,000,000,000,000,000,000
4
net: Use netlink_ns_capable to verify the permisions of netlink messages It is possible by passing a netlink socket to a more privileged executable and then to fool that executable into writing to the socket data that happens to be valid netlink message to do something that privileged executable did not intend to do. ...
void rt_flush_dev(struct net_device *dev) { struct rtable *rt; int cpu; for_each_possible_cpu(cpu) { struct uncached_list *ul = &per_cpu(rt_uncached_list, cpu); spin_lock_bh(&ul->lock); list_for_each_entry(rt, &ul->head, rt_uncached) { if (rt->dst.dev != dev) continue; rt->dst.dev = blackhole_netde...
0
[ "CWE-327" ]
linux
aa6dd211e4b1dde9d5dc25d699d35f789ae7eeba
83,640,516,056,465,950,000,000,000,000,000,000,000
19
inet: use bigger hash table for IP ID generation In commit 73f156a6e8c1 ("inetpeer: get rid of ip_id_count") I used a very small hash table that could be abused by patient attackers to reveal sensitive information. Switch to a dynamic sizing, depending on RAM size. Typical big hosts will now use 128x more storage (2...
CotpConnection_getRemoteRef(CotpConnection* self) { return self->remoteRef; }
0
[ "CWE-122" ]
libiec61850
033ab5b6488250c8c3b838f25a7cbc3e099230bb
264,361,150,128,525,560,000,000,000,000,000,000,000
4
- COTP: fixed possible heap buffer overflow when handling message with invalid (zero) value in length field (#250)
get_pf_socket(void) { int pf; /* This should be opened before dropping privileges. */ if (pf_socket >= 0) return pf_socket; #if defined(OpenBSD) /* only works on OpenBSD */ pf = tor_open_cloexec("/dev/pf", O_RDONLY, 0); #else /* works on NetBSD and FreeBSD */ pf = tor_open_cloexec("/dev/pf", O_RDWR,...
0
[ "CWE-532" ]
tor
80c404c4b79f3bcba3fc4585d4c62a62a04f3ed9
51,197,048,899,591,060,000,000,000,000,000,000,000
23
Log warning when connecting to soon-to-be-deprecated v2 onions.
void ixgbe_restore_vf_multicasts(struct ixgbe_adapter *adapter) { struct ixgbe_hw *hw = &adapter->hw; struct vf_data_storage *vfinfo; int i, j; u32 vector_bit; u32 vector_reg; u32 mta_reg; for (i = 0; i < adapter->num_vfs; i++) { u32 vmolr = IXGBE_READ_REG(hw, IXGBE_VMOLR(i)); vfinfo = &adapter->vfinfo[i]; ...
0
[ "CWE-20" ]
linux
63e39d29b3da02e901349f6cd71159818a4737a6
44,143,371,696,183,950,000,000,000,000,000,000,000
31
ixgbe: fix large MTU request from VF Check that the MTU value requested by the VF is in the supported range of MTUs before attempting to set the VF large packet enable, otherwise reject the request. This also avoids unnecessary register updates in the case of the 82599 controller. Fixes: 872844ddb9e4 ("ixgbe: Enable ...
_ber_get_len(BerElement *ber, ber_len_t *lenp) { OLBerElement *lber = (OLBerElement *)ber; if (NULL == lenp) { return LBER_DEFAULT; } *lenp = 0; if (NULL == lber) { return LBER_DEFAULT; } *lenp = lber->ber_len; return lber->ber_tag; }
0
[ "CWE-415" ]
389-ds-base
a3c298f8140d3e4fa1bd5a670f1bb965a21a9b7b
125,350,854,911,149,860,000,000,000,000,000,000,000
14
Issue 5218 - double-free of the virtual attribute context in persistent search (#5219) description: A search is processed by a worker using a private pblock. If the search is persistent, the worker spawn a thread and kind of duplicate its private pblock so that the spawn thread continue to process the p...
void CLASS redcine_load_raw() { #ifndef NO_JASPER int c, row, col; jas_stream_t *in; jas_image_t *jimg; jas_matrix_t *jmat; jas_seqent_t *data; ushort *img, *pix; jas_init(); #ifndef LIBRAW_LIBRARY_BUILD in = jas_stream_fopen(ifname, "rb"); #else in = (jas_stream_t *)ifp->make_jas_stream(); if (!in...
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
280,355,930,791,838,030,000,000,000,000,000,000,000
97
Secunia SA75000 advisory: several buffer overruns
static inline bool tcp_paws_discard(const struct sock *sk, const struct sk_buff *skb) { const struct tcp_sock *tp = tcp_sk(sk); return !tcp_paws_check(&tp->rx_opt, TCP_PAWS_WINDOW) && !tcp_disordered_ack(sk, skb); }
0
[ "CWE-703", "CWE-189" ]
linux
8b8a321ff72c785ed5e8b4cf6eda20b35d427390
193,684,501,610,002,900,000,000,000,000,000,000,000
8
tcp: fix zero cwnd in tcp_cwnd_reduction Patch 3759824da87b ("tcp: PRR uses CRB mode by default and SS mode conditionally") introduced a bug that cwnd may become 0 when both inflight and sndcnt are 0 (cwnd = inflight + sndcnt). This may lead to a div-by-zero if the connection starts another cwnd reduction phase by set...
CelValue Produce(ProtobufWkt::Arena* arena) override { // Producer is unique per evaluation arena since activation is re-created. arena_ = arena; return CelValue::CreateMap(this); }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
248,911,408,162,645,180,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...
bgp_put_cap_llgr1(struct bgp_proto *p, byte *buf) { *buf++ = 71; /* Capability 71: Support for long-lived graceful restart */ *buf++ = 7; /* Capability data length */ *buf++ = 0; /* Appropriate AF */ *buf++ = BGP_AF; *buf++ = 1; /* and SAFI 1 */ /* Next is 8bit flags and 24bit time */ put_u32(buf, p...
0
[ "CWE-787" ]
bird
1657c41c96b3c07d9265b07dd4912033ead4124b
230,635,010,257,175,730,000,000,000,000,000,000,000
16
BGP: Fix bugs in handling of shutdown messages There is an improper check for valid message size, which may lead to stack overflow and buffer leaks to log when a large message is received. Thanks to Daniel McCarney for bugreport and analysis.
static int snd_timer_start1(struct snd_timer_instance *timeri, bool start, unsigned long ticks) { struct snd_timer *timer; int result; unsigned long flags; timer = timeri->timer; if (!timer) return -EINVAL; spin_lock_irqsave(&timer->lock, flags); if (timer->card && timer->card->shutdown) { result = ...
0
[ "CWE-200" ]
sound
cec8f96e49d9be372fdb0c3836dcf31ec71e457e
316,838,453,243,642,400,000,000,000,000,000,000,000
50
ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS The stack object “tread” has a total size of 32 bytes. Its field “event” and “val” both contain 4 bytes padding. These 8 bytes padding bytes are sent to user without being initialized. Signed-off-by: Kangjie Lu <kjlu@gatech.edu> Signed-off-by: Takashi Iwai <tiwai@suse...
static int __compat_put_timespec64(const struct timespec64 *ts64, struct compat_timespec __user *cts) { struct compat_timespec ts = { .tv_sec = ts64->tv_sec, .tv_nsec = ts64->tv_nsec }; return copy_to_user(cts, &ts, sizeof(ts)) ? -EFAULT : 0; }
0
[ "CWE-200" ]
linux
0a0b98734479aa5b3c671d5190e86273372cab95
306,047,201,229,001,700,000,000,000,000,000,000,000
9
compat: fix 4-byte infoleak via uninitialized struct field Commit 3a4d44b61625 ("ntp: Move adjtimex related compat syscalls to native counterparts") removed the memset() in compat_get_timex(). Since then, the compat adjtimex syscall can invoke do_adjtimex() with an uninitialized ->tai. If do_adjtimex() doesn't write...
void bpf_register_prog_type(struct bpf_prog_type_list *tl) { list_add(&tl->list_node, &bpf_prog_types); }
0
[ "CWE-703" ]
linux
92117d8443bc5afacc8d5ba82e541946310f106e
261,012,565,747,825,850,000,000,000,000,000,000,000
4
bpf: fix refcnt overflow On a system with >32Gbyte of phyiscal memory and infinite RLIMIT_MEMLOCK, the malicious application may overflow 32-bit bpf program refcnt. It's also possible to overflow map refcnt on 1Tb system. Impose 32k hard limit which means that the same bpf program or map cannot be shared by more than ...
int gnutls_x509_ext_import_policies(const gnutls_datum_t * ext, gnutls_x509_policies_t policies, unsigned int flags) { ASN1_TYPE c2 = ASN1_TYPE_EMPTY; char tmpstr[128]; char tmpoid[MAX_OID_SIZE]; gnutls_datum_t tmpd = { NULL, 0 }; int ret, len; unsigned i, j, current = 0; ret = asn1_create_element ...
0
[]
gnutls
d6972be33264ecc49a86cd0958209cd7363af1e9
105,919,676,210,103,500,000,000,000,000,000,000,000
141
eliminated double-free in the parsing of dist points Reported by Robert Święcki.
static void ev_stream_resumed(h2_proxy_session *session, int arg, const char *msg) { switch (session->state) { case H2_PROXYS_ST_WAIT: transit(session, "stream resumed", H2_PROXYS_ST_BUSY); break; default: /* nop */ break; } }
0
[ "CWE-770" ]
mod_h2
dd05d49abe0f67512ce9ed5ba422d7711effecfb
199,834,508,807,144,000,000,000,000,000,000,000,000
11
* fixes Timeout vs. KeepAliveTimeout behaviour, see PR 63534 (for trunk now, mpm event backport to 2.4.x up for vote). * Fixes stream cleanup when connection throttling is in place. * Counts stream resets by client on streams initiated by client as cause for connection throttling. * Header length checks are no...
void ndpi_ptree_destroy(ndpi_ptree_t *tree) { if(tree) { if(tree->v4) ndpi_Destroy_Patricia(tree->v4, free_ptree_data); if(tree->v6) ndpi_Destroy_Patricia(tree->v6, free_ptree_data); ndpi_free(tree); } }
0
[ "CWE-416", "CWE-787" ]
nDPI
6a9f5e4f7c3fd5ddab3e6727b071904d76773952
54,948,664,311,092,660,000,000,000,000,000,000,000
10
Fixed use after free caused by dangling pointer * This fix also improved RCE Injection detection Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
DviContext *mdvi_init_context(DviParams *par, DviPageSpec *spec, const char *file) { FILE *p; Int32 arg; int op; long offset; int n; DviContext *dvi; char *filename; int pagecount; /* * 1. Open the file and initialize the DVI context */ filename = opendvi(file); if(filename == NULL) { perror(file); ...
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
302,398,663,340,574,400,000,000,000,000,000,000,000
244
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
struct bpf_prog *bpf_prog_get_curr_or_next(u32 *id) { struct bpf_prog *prog; spin_lock_bh(&prog_idr_lock); again: prog = idr_get_next(&prog_idr, id); if (prog) { prog = bpf_prog_inc_not_zero(prog); if (IS_ERR(prog)) { (*id)++; goto again; } } spin_unlock_bh(&prog_idr_lock); return prog; }
0
[ "CWE-307" ]
linux
350a5c4dd2452ea999cc5e1d4a8dbf12de2f97ef
143,133,312,205,619,860,000,000,000,000,000,000,000
18
bpf: Dont allow vmlinux BTF to be used in map_create and prog_load. The syzbot got FD of vmlinux BTF and passed it into map_create which caused crash in btf_type_id_size() when it tried to access resolved_ids. The vmlinux BTF doesn't have 'resolved_ids' and 'resolved_sizes' initialized to save memory. To avoid such is...
void llhttp_free(llhttp_t* parser) { free(parser); }
0
[ "CWE-444" ]
node
af488f8dc82d69847992ea1cd2f53dc8082b3b91
292,609,215,273,572,600,000,000,000,000,000,000,000
3
deps: update llhttp to 6.0.4 Refs: https://hackerone.com/reports/1238099 Refs: https://hackerone.com/reports/1238709 Refs: https://github.com/nodejs-private/llhttp-private/pull/6 Refs: https://github.com/nodejs-private/llhttp-private/pull/5 CVE-ID: CVE-2021-22959 CVE-ID: CVE-2021-22960 PR-URL: https://github.com/node...
void WebContents::RenderViewHostChanged(content::RenderViewHost* old_host, content::RenderViewHost* new_host) { currently_committed_process_id_ = new_host->GetProcess()->GetID(); }
0
[ "CWE-284", "CWE-693" ]
electron
18613925610ba319da7f497b6deed85ad712c59b
190,521,794,414,480,550,000,000,000,000,000,000,000
4
refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25108) * refactor: wire will-navigate up to a navigation throttle instead of OpenURL (#25065) * refactor: wire will-navigate up to a navigation throttle instead of OpenURL * spec: add test for x-site _top navigation * chore: old cod...
int FLTProcessPropertyIsNull(FilterEncodingNode *psFilterNode, mapObj *map, int i) { int status = MS_SUCCESS; if (psFilterNode->eType == FILTER_NODE_TYPE_COMPARISON && psFilterNode->psLeftNode != NULL && psFilterNode->psLeftNode->eType == FILTER_NODE_TYPE_PROPERTYNAM...
0
[ "CWE-200", "CWE-119" ]
mapserver
e52a436c0e1c5e9f7ef13428dba83194a800f4df
171,533,316,537,724,540,000,000,000,000,000,000,000
44
security fix (patch by EvenR)
static void nf_tables_abort_release(struct nft_trans *trans) { switch (trans->msg_type) { case NFT_MSG_NEWTABLE: nf_tables_table_destroy(&trans->ctx); break; case NFT_MSG_NEWCHAIN: nf_tables_chain_destroy(trans->ctx.chain); break; case NFT_MSG_NEWRULE: nf_tables_rule_destroy(&trans->ctx, nft_trans_rule(tr...
0
[ "CWE-19" ]
nf
a2f18db0c68fec96631c10cad9384c196e9008ac
293,479,515,566,616,650,000,000,000,000,000,000,000
18
netfilter: nf_tables: fix flush ruleset chain dependencies Jumping between chains doesn't mix well with flush ruleset. Rules from a different chain and set elements may still refer to us. [ 353.373791] ------------[ cut here ]------------ [ 353.373845] kernel BUG at net/netfilter/nf_tables_api.c:1159! [ 353.373896...
void ConnectionHandlerImpl::enableListeners() { disable_listeners_ = false; for (auto& listener : listeners_) { listener.second.listener_->listener()->enable(); } }
0
[ "CWE-835" ]
envoy
c8de199e2971f79cbcbc6b5eadc8c566b28705d1
272,778,879,876,738,960,000,000,000,000,000,000,000
6
listener: clean up accept filter before creating connection (#8922) Signed-off-by: Yuchen Dai <silentdai@gmail.com>
static void jpc_undo_roi(jas_matrix_t *x, int roishift, int bgshift, int numbps) { int i; int j; int thresh; jpc_fix_t val; jpc_fix_t mag; bool warn; uint_fast32_t mask; if (roishift == 0 && bgshift == 0) { return; } thresh = 1 << roishift; warn = false; for (i = 0; i < jas_matrix_numrows(x); ++i) { f...
1
[ "CWE-476" ]
jasper
2e82fa00466ae525339754bb3ab0a0474a31d4bd
195,060,257,515,661,670,000,000,000,000,000,000,000
46
Fixed an integral type promotion problem by adding a JAS_CAST. Modified the jpc_tsfb_synthesize function so that it will be a noop for an empty sequence (in order to avoid dereferencing a null pointer).
nfa_regconcat(void) { int cont = TRUE; int first = TRUE; while (cont) { switch (peekchr()) { case NUL: case Magic('|'): case Magic('&'): case Magic(')'): cont = FALSE; break; case Magic('Z'): regflags |= RF_ICOMBINE; skipchr_keepstart(); break; case Magic('c...
0
[ "CWE-122" ]
vim
65b605665997fad54ef39a93199e305af2fe4d7f
222,376,062,484,891,100,000,000,000,000,000,000,000
62
patch 8.2.3409: reading beyond end of line with invalid utf-8 character Problem: Reading beyond end of line with invalid utf-8 character. Solution: Check for NUL when advancing.
res_nmkquery(res_state statp, int op, /* opcode of query */ const char *dname, /* domain name */ int class, int type, /* class and type of query */ const u_char *data, /* resource record data */ int datalen, /* length of data */ const u_char *newrr_in, /* new rr for modify or app...
1
[ "CWE-476" ]
glibc
fc82b0a2dfe7dbd35671c10510a8da1043d746a5
207,824,546,890,292,100,000,000,000,000,000,000,000
119
CVE-2015-5180: resolv: Fix crash with internal QTYPE [BZ #18784] Also rename T_UNSPEC because an upcoming public header file update will use that name.
_asn1_extract_der_octet (asn1_node node, const unsigned char *der, int der_len) { int len2, len3; int counter, counter_end; int result; len2 = asn1_get_length_der (der, der_len, &len3); if (len2 < -1) return ASN1_DER_ERROR; counter = len3 + 1; if (len2 == -1) counter_end = der_len - 2; el...
0
[]
libtasn1
6fee6745b1bd1a82f16ae9b607855a3e3ab39fc6
336,137,739,855,525,270,000,000,000,000,000,000,000
50
use DECR_LEN in _asn1_get_octet_string()
static int opor(RAsm *a, ut8 * data, const Opcode *op) { if (op->operands[1].type & OT_CONSTANT) { if (op->operands[0].type & OT_GPREG && op->operands[0].type & OT_WORD) { return process_16bit_group_1 (a, data, op, 0x08); } if (!is_al_reg (&op->operands[0])) { return process_group_1 (a, data, op); ...
0
[ "CWE-119", "CWE-125", "CWE-787" ]
radare2
9b46d38dd3c4de6048a488b655c7319f845af185
174,943,066,466,828,440,000,000,000,000,000,000,000
12
Fix #12372 and #12373 - Crash in x86 assembler (#12380) 0 ,0,[bP-bL-bP-bL-bL-r-bL-bP-bL-bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx-- leA ,0,[bP-bL-bL-bP-bL-bP-bL-60@bL- leA ,0,[bP-bL-r-bP-bL-bP-bL-60@bL- mov ,0,[ax+Bx-ax+Bx-ax+ax+Bx-ax+Bx--
int fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode, struct writeback_control *wbc, bool atomic) { pgoff_t index, end; pgoff_t last_idx = ULONG_MAX; struct pagevec pvec; int ret = 0; struct page *last_page = NULL; bool marked = false; nid_t ino = inode->i_ino; if (atomic) { last_page = last...
0
[ "CWE-200", "CWE-362" ]
linux
30a61ddf8117c26ac5b295e1233eaa9629a94ca3
230,723,273,197,900,220,000,000,000,000,000,000,000
119
f2fs: fix race condition in between free nid allocator/initializer In below concurrent case, allocated nid can be loaded into free nid cache and be allocated again. Thread A Thread B - f2fs_create - f2fs_new_inode - alloc_nid - __insert_nid_to_list(ALLOC_NID_LIST) - f2fs_balance_fs_bg - build_free...