func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
int tls1_shared_curve(SSL *s, int nmatch) { const unsigned char *pref, *supp; size_t preflen, supplen, i, j; int k; /* Can't do anything on client side */ if (s->server == 0) return -1; if (nmatch == -2) { if (tls1_suiteb(s)) { /* For Suite B ciphersuite determines curve: we * already know these...
0
[ "CWE-19" ]
openssl
45473632c54947859a731dfe2db087c002ef7aa7
17,611,196,729,379,955,000,000,000,000,000,000,000
54
Prevent use of RSA+MD5 in TLS 1.2 by default. Removing RSA+MD5 from the default signature algorithm list prevents its use by default. If a broken implementation attempts to use RSA+MD5 anyway the sanity checking of signature algorithms will cause a fatal alert.
void CLASS Kodak_KDC_WBtags(int wb, int wbi) { int c; FORC3 imgdata.color.WB_Coeffs[wb][c] = get4(); imgdata.color.WB_Coeffs[wb][3] = imgdata.color.WB_Coeffs[wb][1]; if (wbi == wb) FORC4 cam_mul[c] = imgdata.color.WB_Coeffs[wb][c]; return; }
0
[ "CWE-400" ]
LibRaw
e67a9862d10ebaa97712f532eca1eb5e2e410a22
208,107,605,136,902,900,000,000,000,000,000,000,000
9
Fixed Secunia Advisory SA86384 - possible infinite loop in unpacked_load_raw() - possible infinite loop in parse_rollei() - possible infinite loop in parse_sinar_ia() Credits: Laurent Delosieres, Secunia Research at Flexera
utf32be_is_mbc_newline(const UChar* p, const UChar* end) { if (p + 3 < end) { if (*(p+3) == 0x0a && *(p+2) == 0 && *(p+1) == 0 && *p == 0) return 1; #ifdef USE_UNICODE_ALL_LINE_TERMINATORS if (( #ifndef USE_CRNL_AS_LINE_TERMINATOR *(p+3) == 0x0d || #endif *(p+3) == 0x85) && *(p+2) == 0 && *(p+1) ==...
0
[ "CWE-125" ]
php-src
9d6c59eeea88a3e9d7039cb4fed5126ef704593a
219,536,949,390,281,600,000,000,000,000,000,000,000
20
Fix bug #77418 - Heap overflow in utf32be_mbc_to_code
static struct mfc_cache *ipmr_cache_alloc(void) { struct mfc_cache *c=kmem_cache_alloc(mrt_cachep, GFP_KERNEL); if(c==NULL) return NULL; memset(c, 0, sizeof(*c)); c->mfc_un.res.minvif = MAXVIFS; return c; }
0
[ "CWE-200" ]
linux-2.6
9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8
289,566,994,530,234,400,000,000,000,000,000,000,000
9
[NETLINK]: Missing initializations in dumped data Mostly missing initialization of padding fields of 1 or 2 bytes length, two instances of uninitialized nlmsgerr->msg of 16 bytes length. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
static int _tls_server_conf_free(fr_tls_server_conf_t *conf) { if (conf->ctx) SSL_CTX_free(conf->ctx); #ifdef HAVE_OPENSSL_OCSP_H if (conf->ocsp_store) X509_STORE_free(conf->ocsp_store); conf->ocsp_store = NULL; #endif #ifndef NDEBUG memset(conf, 0, sizeof(*conf)); #endif return 0; }
0
[ "CWE-295" ]
freeradius-server
874b39451702338389260edbfc52b381b20352ec
332,287,225,953,809,660,000,000,000,000,000,000,000
14
Set X509_V_FLAG_CRL_CHECK_ALL
static size_t idprime_list_meter(const void *el) { return sizeof(idprime_object_t); }
0
[]
OpenSC
f015746d22d249642c19674298a18ad824db0ed7
69,188,124,545,475,070,000,000,000,000,000,000,000
3
idprime: Use temporary variable instead of messing up the passed one Thanks oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28185
PackLinuxElf64::unRela64( upx_uint64_t dt_rela, Elf64_Rela *rela0, unsigned relasz, MemBuffer &ptload1, upx_uint64_t const load_off, OutputFile *fo ) { Elf64_Rela *rela = rela0; for (int k = relasz / sizeof(Elf64_Rela); --k >= 0; ++rela) { upx_uint64_t r_addend = get_te64(&rela->...
0
[ "CWE-415" ]
upx
d9288213ec156dffc435566b9d393d23e87c6914
19,369,000,716,669,592,000,000,000,000,000,000,000
41
More checking of PT_DYNAMIC and its contents. https://github.com/upx/upx/issues/206 modified: p_lx_elf.cpp
copy_opt_exact(OptStr* to, OptStr* from) { *to = *from; }
0
[ "CWE-476", "CWE-125" ]
oniguruma
c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c
58,158,411,495,762,940,000,000,000,000,000,000,000
4
Fix CVE-2019-13225: problem in converting if-then-else pattern to bytecode.
static inline unsigned long idx_to_pfn(struct xenvif *vif, u16 idx) { return page_to_pfn(vif->mmap_pages[idx]); }
0
[ "CWE-399" ]
net-next
e9d8b2c2968499c1f96563e6522c56958d5a1d0d
192,615,642,886,330,580,000,000,000,000,000,000,000
5
xen-netback: disable rogue vif in kthread context When netback discovers frontend is sending malformed packet it will disables the interface which serves that frontend. However disabling a network interface involving taking a mutex which cannot be done in softirq context, so we need to defer this process to kthread c...
static int save_ptr(void *p, const char *k, const char *v) { Sdb *sdbs[2]; sdbs[0] = ((Sdb**) p)[0]; sdbs[1] = ((Sdb**) p)[1]; if (!strncmp (v, "cc", strlen ("cc") + 1)) { const char *x = sdb_const_get (sdbs[1], sdb_fmt ("cc.%s.name", k), 0); char *tmp = sdb_fmt ("%p", x); sdb_set (sdbs[0], tmp, x, 0); } re...
0
[ "CWE-78" ]
radare2
5411543a310a470b1257fb93273cdd6e8dfcb3af
292,403,912,311,489,970,000,000,000,000,000,000,000
11
More fixes for the CVE-2019-14745
DEFUN (clear_ip_bgp_all_ipv4_soft_in, clear_ip_bgp_all_ipv4_soft_in_cmd, "clear ip bgp * ipv4 (unicast|multicast) soft in", CLEAR_STR IP_STR BGP_STR "Clear all peers\n" "Address family\n" "Address Family modifier\n" "Address Family modifier\n" "Soft ...
0
[ "CWE-125" ]
frr
6d58272b4cf96f0daa846210dd2104877900f921
86,755,272,345,641,980,000,000,000,000,000,000,000
20
[bgpd] cleanup, compact and consolidate capability parsing code 2007-07-26 Paul Jakma <paul.jakma@sun.com> * (general) Clean up and compact capability parsing slightly. Consolidate validation of length and logging of generic TLV, and memcpy of capability data, thus removing such from cap specifc code (not a...
static void put_pwq(struct pool_workqueue *pwq) { lockdep_assert_held(&pwq->pool->lock); if (likely(--pwq->refcnt)) return; if (WARN_ON_ONCE(!(pwq->wq->flags & WQ_UNBOUND))) return; /* * @pwq can't be released under pool->lock, bounce to * pwq_unbound_release_workfn(). This never recurses on the same * p...
0
[ "CWE-200" ]
tip
dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
301,868,937,475,662,400,000,000,000,000,000,000,000
17
time: Remove CONFIG_TIMER_STATS Currently CONFIG_TIMER_STATS exposes process information across namespaces: kernel/time/timer_list.c print_timer(): SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); /proc/timer_list: #11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570 Given that the trac...
static int check_pack_inflate(struct packed_git *p, struct pack_window **w_curs, off_t offset, off_t len, unsigned long expect) { git_zstream stream; unsigned char fakebuf[4096], *in; int st; memset(&stream, 0, sizeof(stream)); git_inflate_init(&stream); do { in = use_pack(p, w_curs, offset, &stream.av...
0
[ "CWE-119", "CWE-787" ]
git
de1e67d0703894cb6ea782e36abb63976ab07e60
224,688,656,523,886,850,000,000,000,000,000,000,000
25
list-objects: pass full pathname to callbacks When we find a blob at "a/b/c", we currently pass this to our show_object_fn callbacks as two components: "a/b/" and "c". Callbacks which want the full value then call path_name(), which concatenates the two. But this is an inefficient interface; the path is a strbuf, and ...
struct file *get_mm_exe_file(struct mm_struct *mm) { struct file *exe_file; /* We need mmap_sem to protect against races with removal of exe_file */ down_read(&mm->mmap_sem); exe_file = mm->exe_file; if (exe_file) get_file(exe_file); up_read(&mm->mmap_sem); return exe_file; }
0
[ "CWE-284", "CWE-264" ]
linux
e66eded8309ebf679d3d3c1f5820d1f2ca332c71
94,793,165,299,777,240,000,000,000,000,000,000,000
12
userns: Don't allow CLONE_NEWUSER | CLONE_FS Don't allowing sharing the root directory with processes in a different user namespace. There doesn't seem to be any point, and to allow it would require the overhead of putting a user namespace reference in fs_struct (for permission checks) and incrementing that reference...
static void release_in_xmit(struct rds_connection *conn) { clear_bit(RDS_IN_XMIT, &conn->c_flags); smp_mb__after_atomic(); /* * We don't use wait_on_bit()/wake_up_bit() because our waking is in a * hot path and finding waiters is very rare. We don't want to walk * the system-wide hashed waitqueue buckets in t...
0
[ "CWE-362" ]
linux
8c7188b23474cca017b3ef354c4a58456f68303a
97,366,660,740,021,550,000,000,000,000,000,000,000
13
RDS: fix race condition when sending a message on unbound socket Sasha's found a NULL pointer dereference in the RDS connection code when sending a message to an apparently unbound socket. The problem is caused by the code checking if the socket is bound in rds_sendmsg(), which checks the rs_bound_addr field without ...
EXPORTED int mboxlist_setquotas(const char *root, quota_t newquotas[QUOTA_NUMRESOURCES], int force) { struct quota q; int r; int res; struct txn *tid = NULL; struct mboxevent *mboxevents = NULL; struct mboxevent *quotachange_event = NULL; struct mboxevent *quotawithin_...
0
[ "CWE-20" ]
cyrus-imapd
6bd33275368edfa71ae117de895488584678ac79
258,586,290,912,354,920,000,000,000,000,000,000,000
139
mboxlist: fix uninitialised memory use where pattern is "Other Users"
static int selinux_bpf_map(struct bpf_map *map, fmode_t fmode) { u32 sid = current_sid(); struct bpf_security_struct *bpfsec; bpfsec = map->security; return avc_has_perm(&selinux_state, sid, bpfsec->sid, SECCLASS_BPF, bpf_map_fmode_to_av(fmode), NULL); }
0
[ "CWE-349" ]
linux
fb73974172ffaaf57a7c42f35424d9aece1a5af6
10,578,404,995,477,869,000,000,000,000,000,000,000
10
selinux: properly handle multiple messages in selinux_netlink_send() Fix the SELinux netlink_send hook to properly handle multiple netlink messages in a single sk_buff; each message is parsed and subject to SELinux access control. Prior to this patch, SELinux only inspected the first message in the sk_buff. Cc: stab...
static int cap_msg_queue_msgsnd(struct msg_queue *msq, struct msg_msg *msg, int msgflg) { return 0; }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
219,505,818,829,700,260,000,000,000,000,000,000,000
5
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
get_old_sub(void) { return old_sub; }
0
[ "CWE-416" ]
vim
37f47958b8a2a44abc60614271d9537e7f14e51a
117,142,349,300,829,970,000,000,000,000,000,000,000
4
patch 8.2.4253: using freed memory when substitute with function call Problem: Using freed memory when substitute uses a recursive function call. Solution: Make a copy of the substitute text.
template<typename t> CImgList<T> get_split(const CImg<t>& values, const char axis=0, const bool keep_values=true) const { typedef _cimg_Tt Tt; CImgList<T> res; if (is_empty()) return res; const ulongT vsiz = values.size(); const char _axis = cimg::lowercase(axis); if (!vsiz)...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
22,342,384,843,140,983,000,000,000,000,000,000,000
146
.
e_ews_connection_empty_folder_sync (EEwsConnection *cnc, gint pri, const gchar *folder_id, gboolean is_distinguished_id, const gchar *delete_type, gboolean delete_subfolder, GCancellable *cancellable, GError **error) { EAsyncClosure *closure; GAsyncResult *resul...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
236,634,434,804,652,600,000,000,000,000,000,000,000
33
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
qemuProcessSetupBalloon(virQEMUDriverPtr driver, virDomainObjPtr vm, qemuDomainAsyncJob asyncJob) { unsigned long long balloon = vm->def->mem.cur_balloon; qemuDomainObjPrivatePtr priv = vm->privateData; int ret = -1; if (!virDomainDefHasMemballoon(vm->def...
0
[ "CWE-416" ]
libvirt
1ac703a7d0789e46833f4013a3876c2e3af18ec7
305,787,735,478,477,770,000,000,000,000,000,000,000
27
qemu: Add missing lock in qemuProcessHandleMonitorEOF qemuMonitorUnregister will be called in multiple threads (e.g. threads in rpc worker pool and the vm event thread). In some cases, it isn't protected by the monitor lock, which may lead to call g_source_unref more than one time and a use-after-free problem eventua...
ReportSIBadType(CompatInfo *info, SymInterpInfo *si, const char *field, const char *wanted) { return ReportBadType(info->ctx, "symbol interpretation", field, siText(si, info), wanted); }
0
[ "CWE-476" ]
libxkbcommon
96df3106d49438e442510c59acad306e94f3db4d
51,160,127,825,600,570,000,000,000,000,000,000,000
6
xkbcomp: Don't crash on no-op modmask expressions If we have an expression of the form 'l1' in an interp section, we unconditionally try to dereference its args, even if it has none. Signed-off-by: Daniel Stone <daniels@collabora.com>
static void i40e_get_platform_mac_addr(struct pci_dev *pdev, struct i40e_pf *pf) { if (eth_platform_get_mac_address(&pdev->dev, pf->hw.mac.addr)) i40e_get_mac_addr(&pf->hw, pf->hw.mac.addr); }
0
[ "CWE-400", "CWE-401" ]
linux
27d461333459d282ffa4a2bdb6b215a59d493a8f
191,346,886,355,401,470,000,000,000,000,000,000,000
5
i40e: prevent memory leak in i40e_setup_macvlans In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for ch should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
ofputil_decode_flow_update(struct ofputil_flow_update *update, struct ofpbuf *msg, struct ofpbuf *ofpacts) { struct nx_flow_update_header *nfuh; unsigned int length; struct ofp_header *oh; if (!msg->header) { ofpraw_pull_assert(msg); } ofpbuf_clear(ofpacts); ...
0
[ "CWE-617", "CWE-703" ]
ovs
4af6da3b275b764b1afe194df6499b33d2bf4cde
77,190,564,678,011,330,000,000,000,000,000,000,000
92
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...
v8::Handle<v8::Object> TRI_RequestCppToV8(v8::Isolate* isolate, TRI_v8_global_t const* v8g, arangodb::GeneralRequest* request, TRI_action_t const* action) { // setup the request v8::Handle<v...
0
[ "CWE-918" ]
arangodb
d7b35a6884c6b2802d34d79fb2a79fb2c9ec2175
82,102,777,635,751,375,000,000,000,000,000,000,000
396
[APM-78] Disable installation from remote URL (#15292) (#15343) * [APM-78] Disable installation from remote URL (#15292) * Update CHANGELOG * Fix clang-format Co-authored-by: Vadim <vadim@arangodb.com>
gnome_desktop_thumbnail_factory_save_thumbnail (GnomeDesktopThumbnailFactory *factory, GdkPixbuf *thumbnail, const char *uri, time_t original_mtime) { char *path; path = thumbnail_path (uri, factory->priv->size); if (!save_thumbnail (thumbnail, path, uri, ...
0
[]
nautilus
2ddba428ef2b13d0620bd599c3635b9c11044659
270,671,326,297,981,480,000,000,000,000,000,000,000
18
Update gnome-desktop code Closes https://gitlab.gnome.org/GNOME/nautilus/issues/987
resolve_unres_schema_item(struct lys_module *mod, void *item, enum UNRES_ITEM type, void *str_snode, struct unres_schema *unres) { /* has_str - whether the str_snode is a string in a dictionary that needs to be freed */ int rc = -1, has_str = 0, parent_type = 0, i, k; unsigned int ...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
273,784,708,979,457,070,000,000,000,000,000,000,000
364
schema tree BUGFIX do not check features while still resolving schema Fixes #723
static int nl80211_probe_client(struct sk_buff *skb, struct genl_info *info) { struct cfg80211_registered_device *rdev = info->user_ptr[0]; struct net_device *dev = info->user_ptr[1]; struct wireless_dev *wdev = dev->ieee80211_ptr; struct sk_buff *msg; void *hdr; const u8 *addr; u64 cookie; int err; if (w...
0
[ "CWE-120" ]
linux
f88eb7c0d002a67ef31aeb7850b42ff69abc46dc
54,992,667,522,540,230,000,000,000,000,000,000,000
53
nl80211: validate beacon head We currently don't validate the beacon head, i.e. the header, fixed part and elements that are to go in front of the TIM element. This means that the variable elements there can be malformed, e.g. have a length exceeding the buffer size, but most downstream code from this assumes that thi...
cmsBool CMSEXPORT cmsPipelineCheckAndRetreiveStages(const cmsPipeline* Lut, cmsUInt32Number n, ...) { va_list args; cmsUInt32Number i; cmsStage* mpe; cmsStageSignature Type; void** ElemPtr; // Make sure same number of elements if (cmsPipelineStageCount(Lut) != n) return FALSE; va_star...
0
[]
Little-CMS
b0d5ffd4ad91cf8683ee106f13742db3dc66599a
79,116,782,779,833,720,000,000,000,000,000,000,000
41
Memory Squeezing: LCMS2: CLUTElemDup Check for allocation failures and tidy up if found.
static void __exit inet6_exit(void) { if (disable_ipv6_mod) return; /* First of all disallow new sockets creation. */ sock_unregister(PF_INET6); /* Disallow any further netlink messages */ rtnl_unregister_all(PF_INET6); udpv6_exit(); udplitev6_exit(); tcpv6_exit(); /* Cleanup code parts. */ ipv6_packet_c...
1
[]
net
5f81bd2e5d804ca93f3ec8873451b22d2f454721
294,498,704,953,571,500,000,000,000,000,000,000,000
44
ipv6: export a stub for IPv6 symbols used by vxlan In case IPv6 is compiled as a module, introduce a stub for ipv6_sock_mc_join and ipv6_sock_mc_drop etc.. It will be used by vxlan module. Suggested by Ben. This is an ugly but easy solution for now. Cc: Ben Hutchings <bhutchings@solarflare.com> Cc: Stephen Hemminger...
static int isbinarystream(fz_context *ctx, fz_buffer *buf) { unsigned char *data; size_t len = fz_buffer_storage(ctx, buf, &data); size_t i; for (i = 0; i < len; i++) if (isbinary(data[i])) return 1; return 0; }
0
[ "CWE-119" ]
mupdf
520cc26d18c9ee245b56e9e91f9d4fcae02be5f0
80,524,923,653,679,500,000,000,000,000,000,000,000
10
Bug 689699: Avoid buffer overrun. When cleaning a pdf file, various lists (of pdf_xref_len length) are defined early on. If we trigger a repair during the clean, this can cause pdf_xref_len to increase causing an overrun. Fix this by watching for changes in the length, and checking accesses to the list for validity....
void imap_error (const char *where, const char *msg) { mutt_error ("%s [%s]\n", where, msg); mutt_sleep (2); }
0
[ "CWE-78" ]
mutt
185152818541f5cdc059cbff3f3e8b654fc27c1d
207,606,370,433,394,500,000,000,000,000,000,000,000
5
Properly quote IMAP mailbox names when (un)subscribing. When handling automatic subscription (via $imap_check_subscribed), or manual subscribe/unsubscribe commands, mutt generating a "mailboxes" command but failed to properly escape backquotes. Thanks to Jeriko One for the detailed bug report and patch, which this co...
static void prepare_show_merge(struct rev_info *revs) { struct commit_list *bases; struct commit *head, *other; unsigned char sha1[20]; const char **prune = NULL; int i, prune_num = 1; /* counting terminating NULL */ if (get_sha1("HEAD", sha1)) die("--merge without HEAD?"); head = lookup_commit_or_die(sha1, "...
0
[]
git
a937b37e766479c8e780b17cce9c4b252fd97e40
112,389,857,424,434,480,000,000,000,000,000,000,000
43
revision: quit pruning diff more quickly when possible When the revision traversal machinery is given a pathspec, we must compute the parent-diff for each commit to determine which ones are TREESAME. We set the QUICK diff flag to avoid looking at more entries than we need; we really just care whether there are any cha...
static void mctp_serial_close(struct tty_struct *tty) { struct mctp_serial *dev = tty->disc_data; int idx = dev->idx; unregister_netdev(dev->netdev); ida_free(&mctp_serial_ida, idx); }
0
[]
linux
6c342ce2239c182c2428ce5a44cb32330434ae6e
286,517,481,265,950,700,000,000,000,000,000,000,000
8
mctp: serial: Cancel pending work from ndo_uninit handler We cannot do the cancel_work_sync from after the unregister_netdev, as the dev pointer is no longer valid, causing a uaf on ldisc unregister (or device close). Instead, do the cancel_work_sync from the ndo_uninit op, where the dev still exists, but the queue h...
option_nofilesystem_cb (const gchar *option_name, const gchar *value, gpointer data, GError **error) { FlatpakContext *context = data; g_autofree char *fs = NULL; FlatpakFilesystemMode mode; if (!flatpak_context_parse_filesystem (v...
0
[ "CWE-94", "CWE-74" ]
flatpak
6e5ae7a109cdfa9735ea7ccbd8cb79f9e8d3ae8b
109,990,331,633,065,320,000,000,000,000,000,000,000
16
context: Add --env-fd option This allows environment variables to be added to the context without making their values visible to processes running under a different uid, which might be significant if the variable's value is a token or some other secret value. Signed-off-by: Simon McVittie <smcv@collabora.com> Part-of...
static int __init nf_nat_irc_init(void) { BUG_ON(nf_nat_irc_hook != NULL); RCU_INIT_POINTER(nf_nat_irc_hook, help); return 0; }
0
[ "CWE-200", "CWE-119" ]
linux
2690d97ade05c5325cbf7c72b94b90d265659886
52,807,917,032,332,410,000,000,000,000,000,000,000
6
netfilter: nf_nat: fix access to uninitialized buffer in IRC NAT helper Commit 5901b6be885e attempted to introduce IPv6 support into IRC NAT helper. By doing so, the following code seemed to be removed by accident: ip = ntohl(exp->master->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3.ip); sprintf(buffer, "%u %u", ip, p...
gst_rtsp_source_dispatch_read (GPollableInputStream * stream, GstRTSPWatch * watch) { GstRTSPResult res = GST_RTSP_ERROR; GstRTSPConnection *conn = watch->conn; /* if this connection was already closed, stop now */ if (G_POLLABLE_INPUT_STREAM (conn->input_stream) != stream) goto eof; res = build_nex...
0
[]
gst-plugins-base
f672277509705c4034bc92a141eefee4524d15aa
320,609,184,142,583,070,000,000,000,000,000,000,000
145
gstrtspconnection: Security loophole making heap overflow The former code allowed an attacker to create a heap overflow by sending a longer than allowed session id in a response and including a semicolon to change the maximum length. With this change, the parser will never go beyond 512 bytes.
static int process_backlog(struct napi_struct *napi, int quota) { int work = 0; struct softnet_data *sd = container_of(napi, struct softnet_data, backlog); #ifdef CONFIG_RPS /* Check if we have pending ipi, its better to send them now, * not waiting net_rx_action() end. */ if (sd->rps_ipi_list) { local_irq_...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
142,976,070,372,227,160,000,000,000,000,000,000,000
56
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
PLIST_API void plist_to_bin(plist_t plist, char **plist_bin, uint32_t * length) { ptrarray_t* objects = NULL; hashtable_t* ref_table = NULL; struct serialize_s ser_s; uint8_t offset_size = 0; uint8_t dict_param_size = 0; uint64_t num_objects = 0; uint64_t root_object = 0; uint64_t offset...
0
[ "CWE-770" ]
libplist
26061aac4ec75e7a4469a9aab9a424716223e5c4
334,862,759,000,622,480,000,000,000,000,000,000,000
161
bplist: Check for invalid offset_size in bplist trailer
static void pll_delete(struct proclistlist *pll){ free(pll->proclist); free(pll); }
0
[ "CWE-119", "CWE-787" ]
das_watchdog
bd20bb02e75e2c0483832b52f2577253febfb690
219,121,974,027,346,870,000,000,000,000,000,000,000
4
Fix memory overflow if the name of an environment is larger than 500 characters. Bug found by Adam Sampson.
static void showmem (RList *list) { if (!r_list_empty (list)) { AeaMemItem *item; RListIter *iter; r_list_foreach (list, iter, item) { r_cons_printf (" 0x%08"PFMT64x, item->addr); } } r_cons_newline (); }
0
[ "CWE-703", "CWE-908" ]
radare2
4d3811681a80f92a53e795f6a64c4b0fc2c8dd22
279,853,407,563,458,620,000,000,000,000,000,000,000
11
Fix segfault in adf (#16230)
struct fib6_node *fib6_locate(struct fib6_node *root, const struct in6_addr *daddr, int dst_len, const struct in6_addr *saddr, int src_len, bool exact_match) { struct fib6_node *fn; fn = fib6_locate_1(root, daddr, dst_len, offsetof(struct fib6_info, fib6_dst), exact_match); #i...
0
[ "CWE-755" ]
linux
7b09c2d052db4b4ad0b27b97918b46a7746966fa
14,097,956,445,819,455,000,000,000,000,000,000,000
31
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...
do_conf( sockaddr_u *srcadr, endpt *inter, struct req_pkt *inpkt ) { u_short items; size_t item_sz; u_int fl; char * datap; struct conf_peer temp_cp; sockaddr_u peeraddr; /* * Do a check of everything to see that it looks * okay. If not, complain about it. Note we are * very picky here. *...
0
[ "CWE-190" ]
ntp
c04c3d3d940dfe1a53132925c4f51aef017d2e0f
24,748,970,405,679,470,000,000,000,000,000,000,000
76
[TALOS-CAN-0052] crash by loop counter underrun.
u8 bnx2x_link_test(struct bnx2x *bp, u8 is_serdes) { u8 rc = 0; if (!BP_NOMCP(bp)) { bnx2x_acquire_phy_lock(bp); rc = bnx2x_test_link(&bp->link_params, &bp->link_vars, is_serdes); bnx2x_release_phy_lock(bp); } else BNX2X_ERR("Bootcode is missing - can not test link\n"); return rc; }
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
224,409,318,000,456,100,000,000,000,000,000,000,000
14
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
ex_tag_cmd(exarg_T *eap, char_u *name) { int cmd; switch (name[1]) { case 'j': cmd = DT_JUMP; /* ":tjump" */ break; case 's': cmd = DT_SELECT; /* ":tselect" */ break; case 'p': cmd = DT_PREV; /* ":tprevious" */ break; case 'N': cmd = DT_PREV; /* ":tNext" */ break; case 'n': cmd = DT_N...
0
[ "CWE-78" ]
vim
8c62a08faf89663e5633dc5036cd8695c80f1075
175,324,441,093,227,670,000,000,000,000,000,000,000
48
patch 8.1.0881: can execute shell commands in rvim through interfaces Problem: Can execute shell commands in rvim through interfaces. Solution: Disable using interfaces in restricted mode. Allow for writing file with writefile(), histadd() and a few others.
empe_mp_signed_parse (EMailParserExtension *extension, EMailParser *parser, CamelMimePart *part, GString *part_id, GCancellable *cancellable, GQueue *out_mail_parts) { CamelMimePart *cpart = NULL; CamelMultip...
1
[ "CWE-347" ]
evolution
f66cd3e1db301d264563b4222a3574e2e58e2b85
278,350,505,805,674,140,000,000,000,000,000,000,000
166
eds-I#3 - [GPG] Mails that are not encrypted look encrypted Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/3
repodata_search(Repodata *data, Id solvid, Id keyname, int flags, int (*callback)(void *cbdata, Solvable *s, Repodata *data, Repokey *key, KeyValue *kv), void *cbdata) { repodata_search_keyskip(data, solvid, keyname, flags, 0, callback, cbdata); }
0
[ "CWE-125" ]
libsolv
fdb9c9c03508990e4583046b590c30d958f272da
250,206,549,235,879,850,000,000,000,000,000,000,000
4
repodata_schema2id: fix heap-buffer-overflow in memcmp When the length of last schema in data->schemadata is less than length of input schema, we got a read overflow in asan test. Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
static inline void ConvertRGBToCMYK(PixelInfo *pixel) { MagickRealType black, blue, cyan, green, magenta, red, yellow; if (pixel->colorspace != sRGBColorspace) { red=QuantumScale*pixel->red; green=QuantumScale*pixel->green; blue=QuantumScale*pixel->blue; } el...
0
[ "CWE-369" ]
ImageMagick
a81ca9a1b46a96be83682af3389f0a6f3d0d389d
158,178,492,030,896,270,000,000,000,000,000,000,000
47
https://github.com/ImageMagick/ImageMagick/issues/1711
static ssize_t snd_compr_write(struct file *f, const char __user *buf, size_t count, loff_t *offset) { struct snd_compr_file *data = f->private_data; struct snd_compr_stream *stream; size_t avail; int retval; if (snd_BUG_ON(!data)) return -EFAULT; stream = &data->stream; mutex_lock(&stream->device->lock); ...
0
[ "CWE-703" ]
linux
6217e5ede23285ddfee10d2e4ba0cc2d4c046205
132,869,183,124,792,160,000,000,000,000,000,000,000
45
ALSA: compress: fix an integer overflow check I previously added an integer overflow check here but looking at it now, it's still buggy. The bug happens in snd_compr_allocate_buffer(). We multiply ".fragments" and ".fragment_size" and that doesn't overflow but then we save it in an unsigned int so it truncates the h...
txtwrite_fill_rectangle(gx_device * dev, int x, int y, int w, int h, gx_color_index color) { return 0; }
0
[ "CWE-476" ]
ghostpdl
407c98a38c3a6ac1681144ed45cc2f4fc374c91f
27,670,976,045,846,140,000,000,000,000,000,000,000
5
txtwrite - guard against using GS_NO_GLYPH to retrieve Unicode values Bug 701822 "Segmentation fault at psi/iname.c:296 in names_index_ref" Avoid using a glyph with the value GS_NO_GLYPH to retrieve a glyph name or Unicode code point from the glyph ID, as this is not a valid ID.
template<typename t, typename tc> CImg<T>& draw_line(const CImg<t>& points, const tc *const color, const float opacity=1, const unsigned int pattern=~0U, const bool init_hatch=true) { if (is_empty() || !points || points._width<2) return *this; bool ninit...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
206,515,255,095,830,120,000,000,000,000,000,000,000
25
.
void file_checksum(const char *fname, const STRUCT_STAT *st_p, char *sum) { struct map_struct *buf; OFF_T i, len = st_p->st_size; md_context m; int32 remainder; int fd; memset(sum, 0, MAX_DIGEST_LEN); fd = do_open(fname, O_RDONLY, 0); if (fd == -1) return; buf = map_file(fd, len, MAX_MAP_SIZE, CSUM_CHUNK)...
0
[ "CWE-354" ]
rsync
7b8a4ecd6ff9cdf4e5d3850ebf822f1e989255b3
294,601,100,416,191,020,000,000,000,000,000,000,000
60
Handle archaic checksums properly.
static bool tnt_send(struct gps_device_t *session, const char *fmt, ...) /* printf(3)-like TNT command generator */ { char buf[BUFSIZ]; va_list ap; ssize_t sent; va_start(ap, fmt); (void)vsnprintf(buf, sizeof(buf) - 5, fmt, ap); va_end(ap); sent = tnt_control_send(session, buf, strlen(buf))...
0
[]
gpsd
08edc49d8f63c75bfdfb480b083b0d960310f94f
87,493,372,645,871,660,000,000,000,000,000,000,000
19
Address Savannah bug #38511: ais_context->bitlen <= sizeof(ais_context->bits)/8 is not checked
static int wcd9335_irq_init(struct wcd9335_codec *wcd) { int ret; /* * INTR1 consists of all possible interrupt sources Ear OCP, * HPH OCP, MBHC, MAD, VBAT, and SVA * INTR2 is a subset of first interrupt sources MAD, VBAT, and SVA */ wcd->intr1 = of_irq_get_byname(wcd->dev->of_node, "intr1"); if (wcd->intr...
0
[]
sound
a54988113985ca22e414e132054f234fc8a92604
291,214,908,431,134,800,000,000,000,000,000,000,000
25
wcd9335: fix a incorrect use of kstrndup() In wcd9335_codec_enable_dec(), 'widget_name' is allocated by kstrndup(). However, according to doc: "Note: Use kmemdup_nul() instead if the size is known exactly." So we should use kmemdup_nul() here instead of kstrndup(). Signed-off-by: Gen Zhang <blackgod016574@gmail.com> ...
hook_timer_time_to_next (struct timeval *tv_timeout) { struct t_hook *ptr_hook; int found; struct timeval tv_now; long diff_usec; hook_timer_check_system_clock (); found = 0; tv_timeout->tv_sec = 0; tv_timeout->tv_usec = 0; for (ptr_hook = weechat_hooks[HOOK_TYPE_TIMER...
0
[ "CWE-20" ]
weechat
c265cad1c95b84abfd4e8d861f25926ef13b5d91
100,623,877,380,612,070,000,000,000,000,000,000,000
64
Fix verification of SSL certificates by calling gnutls verify callback (patch #7459)
const char* FunctionContext::error_msg() const { if (has_error()) { return _impl->_error_msg.c_str(); } return nullptr; }
0
[ "CWE-200" ]
incubator-doris
246ac4e37aa4da6836b7850cb990f02d1c3725a3
233,868,784,615,409,700,000,000,000,000,000,000,000
7
[fix] fix a bug of encryption function with iv may return wrong result (#8277)
nfa_get_reganch(nfa_state_T *start, int depth) { nfa_state_T *p = start; if (depth > 4) return 0; while (p != NULL) { switch (p->c) { case NFA_BOL: case NFA_BOF: return 1; // yes! case NFA_ZSTART: case NFA_ZEND: case NFA_CURSOR: case NFA_VISUAL: case NFA_MOPEN...
0
[ "CWE-122" ]
vim
65b605665997fad54ef39a93199e305af2fe4d7f
216,826,609,571,692,850,000,000,000,000,000,000,000
56
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.
static int date_from_ISO8601 (const char *text, time_t * value) { struct tm tm; int n; int i; char buf[18]; if (strchr (text, '-')) { char *p = (char *) text, *p2 = buf; while (p && *p) { if (*p != '-') { *p2 = *p; p2++; } p++; } text = buf; } tm.tm_isdst = -1; if(strlen(...
1
[]
php-src
c818d0d01341907fee82bdb81cab07b7d93bb9db
209,298,909,314,842,870,000,000,000,000,000,000,000
82
MFH: - Merged fix from SF project (Import Jeff Lawsons patches for XML datetime bug fixes) Fixed bugs: #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string) #18916 (xmlrpc_set_type() "not working")
LiteralString(const std::string &s, bool ignore_case) : lit_(s), ignore_case_(ignore_case), is_word_(false) {}
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
68,246,373,088,804,190,000,000,000,000,000,000,000
2
Fix #122
static int var_comparator(const RAnalVar *a, const RAnalVar *b){ // avoid NULL dereference return (a && b)? (a->delta > b->delta) - (a->delta < b->delta) : 0; }
0
[ "CWE-416" ]
radare2
a7ce29647fcb38386d7439696375e16e093d6acb
191,802,815,175,183,270,000,000,000,000,000,000,000
4
Fix UAF in aaaa on arm/thumb switching ##crash * Reported by @peacock-doris via huntr.dev * Reproducer tests_65185 * This is a logic fix, but not the fully safe as changes in the code can result on UAF again, to properly protect r2 from crashing we need to break the ABI and add refcounting to RRegItem, which can't...
void LibuvStreamWrap::Initialize(Local<Object> target, Local<Value> unused, Local<Context> context) { Environment* env = Environment::GetCurrent(context); auto is_construct_call_callback = [](const FunctionCallbackInfo<Value>& args) { CHEC...
0
[ "CWE-416" ]
node
7f178663ebffc82c9f8a5a1b6bf2da0c263a30ed
147,403,525,453,205,290,000,000,000,000,000,000,000
31
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 <...
n_tty_receive_buf_fast(struct tty_struct *tty, const unsigned char *cp, char *fp, int count) { struct n_tty_data *ldata = tty->disc_data; char flag = TTY_NORMAL; while (count--) { if (fp) flag = *fp++; if (likely(flag == TTY_NORMAL)) { unsigned char c = *cp++; if (!test_bit(c, ldata->char_map...
0
[ "CWE-362" ]
tty
4291086b1f081b869c6d79e5b7441633dc3ace00
32,969,875,983,547,870,000,000,000,000,000,000,000
24
n_tty: Fix n_tty_write crash when echoing in raw mode The tty atomic_write_lock does not provide an exclusion guarantee for the tty driver if the termios settings are LECHO & !OPOST. And since it is unexpected and not allowed to call TTY buffer helpers like tty_insert_flip_string concurrently, this may lead to crashe...
int nci_core_conn_create(struct nci_dev *ndev, u8 destination_type, u8 number_destination_params, size_t params_len, const struct core_conn_create_dest_spec_params *params) { int r; struct nci_core_conn_create_cmd *cmd; struct core_conn_create_data data; data.length = params_len + sizeof(struct nci_cor...
0
[]
linux
48b71a9e66c2eab60564b1b1c85f4928ed04e406
285,731,119,275,734,660,000,000,000,000,000,000,000
37
NFC: add NCI_UNREG flag to eliminate the race There are two sites that calls queue_work() after the destroy_workqueue() and lead to possible UAF. The first site is nci_send_cmd(), which can happen after the nci_close_device as below nfcmrvl_nci_unregister_dev | nfc_genl_dev_up nci_close_device | f...
int nfs4_do_close(struct path *path, struct nfs4_state *state, int wait) { struct nfs_server *server = NFS_SERVER(state->inode); struct nfs4_closedata *calldata; struct nfs4_state_owner *sp = state->owner; struct rpc_task *task; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_CLOSE], .rpc...
1
[ "CWE-703" ]
linux
dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
216,758,938,353,689,120,000,000,000,000,000,000,000
56
NFSv4: Convert the open and close ops to use fmode Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
static void update_from_utee_param(struct tee_ta_param *p, const struct utee_params *up) { size_t n; for (n = 0; n < TEE_NUM_PARAMS; n++) { switch (TEE_PARAM_TYPE_GET(p->types, n)) { case TEE_PARAM_TYPE_MEMREF_OUTPUT: case TEE_PARAM_TYPE_MEMREF_INOUT: /* See comment for struct utee_params in utee_types.h...
0
[ "CWE-703", "CWE-189" ]
optee_os
7e768f8a473409215fe3fff8f6e31f8a3a0103c6
122,518,931,284,110,220,000,000,000,000,000,000,000
23
core: clear the entire TA area Previously we cleared (memset to zero) the size corresponding to code and data segments, however the allocation for the TA is made on the granularity of the memory pool, meaning that we did not clear all memory and because of that we could potentially leak code and data of a previous loa...
g_tls_connection_base_close_async (GIOStream *stream, int io_priority, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer ...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
134,567,680,077,206,580,000,000,000,000,000,000,000
10
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
NumberFormatTest::TestPatterns(void) { UErrorCode status = U_ZERO_ERROR; DecimalFormatSymbols sym(Locale::getUS(), status); if (U_FAILURE(status)) { errcheckln(status, "FAIL: Could not construct DecimalFormatSymbols - %s", u_errorName(status)); return; } const char* pat[] = { "#.#", "#.", ".#", "#" ...
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
217,548,983,406,226,070,000,000,000,000,000,000,000
29
ICU-20246 Fixing another integer overflow in number parsing.
void __put_task_struct(struct task_struct *tsk) { WARN_ON(!tsk->exit_state); WARN_ON(refcount_read(&tsk->usage)); WARN_ON(tsk == current); cgroup_free(tsk); task_numa_free(tsk, true); security_task_free(tsk); exit_creds(tsk); delayacct_tsk_free(tsk); put_signal_struct(tsk->signal); if (!profile_handoff_task...
1
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
330,991,235,875,973,000,000,000,000,000,000,000,000
16
io_uring: don't rely on weak ->files references Grab actual references to the files_struct. To avoid circular references issues due to this, we add a per-task note that keeps track of what io_uring contexts a task has used. When the tasks execs or exits its assigned files, we cancel requests based on this tracking. W...
inline int abs(const unsigned char a) { return (int)a; }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
215,911,117,700,949,180,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.
int virDomainMigrateUnmanagedCheckCompat(virDomainPtr domain, unsigned int flags) { VIR_EXCLUSIVE_FLAGS_RET(VIR_MIGRATE_NON_SHARED_DISK, VIR_MIGRATE_NON_SHARED_INC, -1); if (flags & VIR_MIGRATE_OFFLINE && !...
0
[ "CWE-254" ]
libvirt
506e9d6c2d4baaf580d489fff0690c0ff2ff588f
44,275,650,670,287,610,000,000,000,000,000,000,000
36
virDomainGetTime: Deny on RO connections We have a policy that if API may end up talking to a guest agent it should require RW connection. We don't obey the rule in virDomainGetTime(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
uint32_t virtio_config_readw(VirtIODevice *vdev, uint32_t addr) { VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev); uint16_t val; if (addr + sizeof(val) > vdev->config_len) { return (uint32_t)-1; } k->get_config(vdev, vdev->config); val = lduw_p(vdev->config + addr); return va...
0
[ "CWE-94" ]
qemu
cc45995294b92d95319b4782750a3580cabdbc0c
157,612,607,559,155,820,000,000,000,000,000,000,000
14
virtio: out-of-bounds buffer write on invalid state load CVE-2013-4151 QEMU 1.0 out-of-bounds buffer write in virtio_load@hw/virtio/virtio.c So we have this code since way back when: num = qemu_get_be32(f); for (i = 0; i < num; i++) { vdev->vq[i].vring.num = qemu_get_be32(f); array of vqs has size ...
PJ_DEF(pj_status_t) pj_ssl_cipher_get_availables(pj_ssl_cipher ciphers[], unsigned *cipher_num) { unsigned i; PJ_ASSERT_RETURN(ciphers && cipher_num, PJ_EINVAL); ssl_ciphers_populate(); if (ssl_cipher_num == 0) { *cipher_num = 0; return PJ_ENOTFOUND; } *cipher_num = PJ_MIN(*c...
0
[ "CWE-362", "CWE-703" ]
pjproject
d5f95aa066f878b0aef6a64e60b61e8626e664cd
85,672,126,603,991,730,000,000,000,000,000,000,000
21
Merge pull request from GHSA-cv8x-p47p-99wr * - Avoid SSL socket parent/listener getting destroyed during handshake by increasing parent's reference count. - Add missing SSL socket close when the newly accepted SSL socket is discarded in SIP TLS transport. * - Fix silly mistake: accepted active socket created without...
static void av1_parse_uncompressed_header(GF_BitStream *bs, AV1State *state) { Bool error_resilient_mode = GF_FALSE, allow_screen_content_tools = GF_FALSE, force_integer_mv = GF_FALSE; Bool /*use_ref_frame_mvs = GF_FALSE,*/ FrameIsIntra = GF_FALSE, frame_size_override_flag = GF_FALSE; Bool disable_cdf_update = GF_FA...
0
[ "CWE-190", "CWE-787" ]
gpac
51cdb67ff7c5f1242ac58c5aa603ceaf1793b788
299,422,080,689,053,400,000,000,000,000,000,000,000
635
add safety in avc/hevc/vvc sps/pps/vps ID check - cf #1720 #1721 #1722
static void mlx5_fpga_conn_event(struct mlx5_core_qp *mqp, int event) { struct mlx5_fpga_conn *conn; conn = container_of(mqp, struct mlx5_fpga_conn, qp.mqp); mlx5_fpga_warn(conn->fdev, "QP event %u on QP #%u\n", event, mqp->qpn); }
0
[ "CWE-400", "CWE-401" ]
linux
c8c2a057fdc7de1cd16f4baa51425b932a42eb39
159,559,700,006,157,110,000,000,000,000,000,000,000
7
net/mlx5: prevent memory leak in mlx5_fpga_conn_create_cq In mlx5_fpga_conn_create_cq if mlx5_vector2eqn fails the allocated memory should be released. Fixes: 537a50574175 ("net/mlx5: FPGA, Add high-speed connection routines") Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Saeed Mahameed <s...
sctp_disposition_t sctp_sf_do_asconf(const struct sctp_endpoint *ep, const struct sctp_association *asoc, const sctp_subtype_t type, void *arg, sctp_cmd_seq_t *commands) { struct sctp_chunk *chunk = arg; struct sctp_chunk *asconf_ack = NULL; struct sctp_paramhdr *err_param = NULL; sctp_ad...
1
[ "CWE-20" ]
linux-2.6
ba0166708ef4da7eeb61dd92bbba4d5a749d6561
163,511,805,060,768,300,000,000,000,000,000,000,000
110
sctp: Fix kernel panic while process protocol violation parameter Since call to function sctp_sf_abort_violation() need paramter 'arg' with 'struct sctp_chunk' type, it will read the chunk type and chunk length from the chunk_hdr member of chunk. But call to sctp_sf_violation_paramlen() always with 'struct sctp_paramh...
Value DocumentSourceGroup::serialize(boost::optional<ExplainOptions::Verbosity> explain) const { MutableDocument insides; // Add the _id. if (_idFieldNames.empty()) { invariant(_idExpressions.size() == 1); insides["_id"] = _idExpressions[0]->serialize(static_cast<bool>(explain)); } else...
0
[]
mongo
14784757ff5e983ea40b21c14e661aba81dfc083
185,305,614,394,384,550,000,000,000,000,000,000,000
51
SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
tape_clear_rest_of_block (int out_file_des) { write_nuls_to_file (io_block_size - output_size, out_file_des, tape_buffered_write); }
0
[ "CWE-190" ]
cpio
dd96882877721703e19272fe25034560b794061b
282,019,932,491,017,000,000,000,000,000,000,000,000
5
Rewrite dynamic string support. * src/dstring.c (ds_init): Take a single argument. (ds_free): New function. (ds_resize): Take a single argument. Use x2nrealloc to expand the storage. (ds_reset,ds_append,ds_concat,ds_endswith): New function. (ds_fgetstr): Rewrite. In particular, this fixes integer overflow. * src/dst...
int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_path *p, int ins_len, int cow) { struct extent_buffer *b; int slot; int ret; int err; int level; int lowest_unlock = 1; int root_lock; /* everything at write_lock_level or lower m...
1
[ "CWE-416", "CWE-362" ]
linux
5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339
66,219,245,496,301,070,000,000,000,000,000,000,000
268
Btrfs: make xattr replace operations atomic Replacing a xattr consists of doing a lookup for its existing value, delete the current value from the respective leaf, release the search path and then finally insert the new value. This leaves a time window where readers (getxattr, listxattrs) won't see any value for the x...
virDomainDiskSourceFormatNetworkCookies(virBufferPtr buf, virStorageSourcePtr src) { g_auto(virBuffer) childBuf = VIR_BUFFER_INIT_CHILD(buf); size_t i; for (i = 0; i < src->ncookies; i++) { virBufferEscapeString(&childBuf, "<cookie name='%s'>", src->cookies[i...
1
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
259,334,491,143,449,830,000,000,000,000,000,000,000
13
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
krb5_rc_default(krb5_context con, krb5_rcache *rc) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_rc_default ) return(p_krb5_rc_default(con,rc)); else return KRB5KRB_ERR_GENERIC; }
0
[ "CWE-20" ]
openssl
cca1cd9a3447dd067503e4a85ebd1679ee78a48e
111,102,374,230,379,930,000,000,000,000,000,000,000
10
Submitted by: Tomas Hoger <thoger@redhat.com> Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL could be crashed if the relevant tables were not present (e.g. chrooted).
//! Convert pixel values from Lab to RGB color spaces. CImg<T>& LabtoRGB(const bool use_D65=true) { return LabtoXYZ().XYZtoRGB(use_D65);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
104,542,392,036,345,250,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static void update_target_expiration(struct kvm_lapic *apic, uint32_t old_divisor) { ktime_t now, remaining; u64 ns_remaining_old, ns_remaining_new; apic->lapic_timer.period = tmict_to_ns(apic, kvm_lapic_get_reg(apic, APIC_TMICT)); limit_periodic_timer_frequency(apic); now = ktime_get(); remaining = ktime_su...
0
[ "CWE-703", "CWE-459" ]
linux
f7d8a19f9a056a05c5c509fa65af472a322abfee
231,744,176,330,298,140,000,000,000,000,000,000,000
23
Revert "KVM: x86: Open code necessary bits of kvm_lapic_set_base() at vCPU RESET" Revert a change to open code bits of kvm_lapic_set_base() when emulating APIC RESET to fix an apic_hw_disabled underflow bug due to arch.apic_base and apic_hw_disabled being unsyncrhonized when the APIC is created. If kvm_arch_vcpu_crea...
nautilus_file_should_show_thumbnail (NautilusFile *file) { const char *mime_type; GFilesystemPreviewType use_preview; use_preview = nautilus_file_get_filesystem_use_preview (file); mime_type = eel_ref_str_peek (file->details->mime_type); if (mime_type == NULL) { mime_type = "application/octet-stream"; } /*...
0
[]
nautilus
7632a3e13874a2c5e8988428ca913620a25df983
214,217,796,803,707,800,000,000,000,000,000,000,000
44
Check for trusted desktop file launchers. 2009-02-24 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-directory-async.c: Check for trusted desktop file launchers. * libnautilus-private/nautilus-file-private.h: * libnautilus-private/nautilus-file.c: * libnautilus-...
GF_Err parse_high_dynamc_range_xml_desc(GF_ISOFile* movie, char* file_name) { M4_LOG(GF_LOG_ERROR, ("XML Not supported in this build of GPAC - cannot process HDR parameter file\n")); return GF_OK; }
0
[ "CWE-787" ]
gpac
da37ec8582266983d0ec4b7550ec907401ec441e
111,118,049,318,513,120,000,000,000,000,000,000,000
5
fixed crashes for very long path - cf #1908
RZ_API void rz_analysis_fcn_vars_add_types(RzAnalysis *analysis, RZ_NONNULL RzAnalysisFunction *fcn) { rz_return_if_fail(analysis && fcn && fcn->name); // Do not syncronize types if the function already exist in the types database if (rz_type_func_exist(analysis->typedb, fcn->name)) { return; } // Avoid saving...
0
[ "CWE-703" ]
rizin
6ce71d8aa3dafe3cdb52d5d72ae8f4b95916f939
301,316,580,620,070,230,000,000,000,000,000,000,000
40
Initialize retctx,ctx before freeing the inner elements In rz_core_analysis_type_match retctx structure was initialized on the stack only after a "goto out_function", where a field of that structure was freed. When the goto path is taken, the field is not properly initialized and it cause cause a crash of Rizin or hav...
static int do_monotonic_boot(s64 *t, cycle_t *cycle_now) { struct pvclock_gtod_data *gtod = &pvclock_gtod_data; unsigned long seq; int mode; u64 ns; do { seq = read_seqcount_begin(&gtod->seq); mode = gtod->clock.vclock_mode; ns = gtod->nsec_base; ns += vgettsc(cycle_now); ns >>= gtod->clock.shift; ns ...
0
[]
kvm
854e8bb1aa06c578c2c9145fa6bfe3680ef63b23
60,869,750,895,919,760,000,000,000,000,000,000,000
19
KVM: x86: Check non-canonical addresses upon WRMSR Upon WRMSR, the CPU should inject #GP if a non-canonical value (address) is written to certain MSRs. The behavior is "almost" identical for AMD and Intel (ignoring MSRs that are not implemented in either architecture since they would anyhow #GP). However, IA32_SYSENTE...
static int decode_operand(struct x86_emulate_ctxt *ctxt, struct operand *op, unsigned d) { int rc = X86EMUL_CONTINUE; switch (d) { case OpReg: decode_register_operand(ctxt, op); break; case OpImmUByte: rc = decode_imm(ctxt, op, 1, false); break; case OpMem: ctxt->memop.bytes = (ctxt->d & ByteOp) ? ...
0
[]
kvm
d1442d85cc30ea75f7d399474ca738e0bc96f715
273,192,300,554,036,080,000,000,000,000,000,000,000
157
KVM: x86: Handle errors when RIP is set during far jumps Far jmp/call/ret may fault while loading a new RIP. Currently KVM does not handle this case, and may result in failed vm-entry once the assignment is done. The tricky part of doing so is that loading the new CS affects the VMCS/VMCB state, so if we fail during...
_functor4d_streamline2d_directed(const CImg<T>& pref):ref(pref) {}
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
289,952,839,981,934,420,000,000,000,000,000,000,000
1
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
unsigned int full_name_hash(const unsigned char *name, unsigned int len) { unsigned long a, mask; unsigned long hash = 0; for (;;) { a = load_unaligned_zeropad(name); if (len < sizeof(unsigned long)) break; hash += a; hash *= 9; name += sizeof(unsigned long); len -= sizeof(unsigned long); if (!len)...
0
[ "CWE-416" ]
linux
f15133df088ecadd141ea1907f2c96df67c729f0
314,806,847,925,166,920,000,000,000,000,000,000,000
21
path_openat(): fix double fput() path_openat() jumps to the wrong place after do_tmpfile() - it has already done path_cleanup() (as part of path_lookupat() called by do_tmpfile()), so doing that again can lead to double fput(). Cc: stable@vger.kernel.org # v3.11+ Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
static inline void *htx_get_blk_ptr(const struct htx *htx, const struct htx_blk *blk) { return ((void *)htx->blocks + blk->addr); }
0
[ "CWE-190" ]
haproxy
3b69886f7dcc3cfb3d166309018e6cfec9ce2c95
253,380,395,745,512,870,000,000,000,000,000,000,000
4
BUG/MAJOR: htx: fix missing header name length check in htx_add_header/trailer Ori Hollander of JFrog Security reported that htx_add_header() and htx_add_trailer() were missing a length check on the header name. While this does not allow to overwrite any memory area, it results in bits of the header name length to sli...
FLAC__bool read_callback_(FLAC__byte buffer[], size_t *bytes, void *client_data) { FLAC__StreamDecoder *decoder = (FLAC__StreamDecoder *)client_data; if( #if FLAC__HAS_OGG /* see [1] HACK NOTE below for why we don't call the eof_callback when decoding Ogg FLAC */ !decoder->private_->is_ogg && #endif decoder->p...
0
[ "CWE-119" ]
flac
5b3033a2b355068c11fe637e14ac742d273f076e
46,100,203,514,994,960,000,000,000,000,000,000,000
79
src/libFLAC/stream_decoder.c : Fix buffer read overflow. This is CVE-2014-8962. Reported-by: Michele Spagnuolo, Google Security Team <mikispag@google.com>
static int update_open_stateid(struct nfs4_state *state, nfs4_stateid *open_stateid, nfs4_stateid *delegation, fmode_t fmode) { struct nfs_inode *nfsi = NFS_I(state->inode); struct nfs_delegation *deleg_cur; int ret = 0; fmode &= (FMODE_READ|FMODE_WRITE); rcu_read_lock(); deleg_cur = rcu_dereference(nfsi->deleg...
0
[ "CWE-703" ]
linux
dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
271,906,529,945,535,400,000,000,000,000,000,000,000
38
NFSv4: Convert the open and close ops to use fmode Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
static bool is_hsw_ioat(struct pci_dev *pdev) { switch (pdev->device) { case PCI_DEVICE_ID_INTEL_IOAT_HSW0: case PCI_DEVICE_ID_INTEL_IOAT_HSW1: case PCI_DEVICE_ID_INTEL_IOAT_HSW2: case PCI_DEVICE_ID_INTEL_IOAT_HSW3: case PCI_DEVICE_ID_INTEL_IOAT_HSW4: case PCI_DEVICE_ID_INTEL_IOAT_HSW5: case PCI_DEVICE_ID_INTEL...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
225,031,205,490,540,870,000,000,000,000,000,000,000
19
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
d_lite_prev_year(int argc, VALUE *argv, VALUE self) { VALUE n; rb_scan_args(argc, argv, "01", &n); if (argc < 1) n = INT2FIX(1); return d_lite_lshift(self, f_mul(n, INT2FIX(12))); }
0
[]
date
3959accef8da5c128f8a8e2fd54e932a4fb253b0
255,986,451,114,246,800,000,000,000,000,000,000,000
9
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
bool ValidateTwofish() { std::cout << "\nTwofish validation suite running...\n\n"; bool pass1 = true, pass2 = true, pass3 = true; TwofishEncryption enc; pass1 = enc.StaticGetValidKeyLength(8) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(16) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(24) =...
0
[ "CWE-190", "CWE-125" ]
cryptopp
07dbcc3d9644b18e05c1776db2a57fe04d780965
134,822,136,263,731,100,000,000,000,000,000,000,000
28
Add Inflator::BadDistanceErr exception (Issue 414) The improved validation and excpetion clears the Address Sanitizer and Undefined Behavior Sanitizer findings
static bool io_work_cancel(struct io_worker *worker, void *cancel_data) { struct io_cb_cancel_data *data = cancel_data; unsigned long flags; bool ret = false; /* * Hold the lock to avoid ->cur_work going out of scope, caller * may dereference the passed in work. */ spin_lock_irqsave(&worker->lock, flags); ...
0
[]
linux
181e448d8709e517c9c7b523fcd209f24eb38ca7
297,123,521,377,813,980,000,000,000,000,000,000,000
20
io_uring: async workers should inherit the user creds If we don't inherit the original task creds, then we can confuse users like fuse that pass creds in the request header. See link below on identical aio issue. Link: https://lore.kernel.org/linux-fsdevel/26f0d78e-99ca-2f1b-78b9-433088053a61@scylladb.com/T/#u Signed...
JsVar *jspeTemplateLiteral() { JsVar *a = 0; if (JSP_SHOULD_EXECUTE) { JsVar *template = jslGetTokenValueAsVar(); a = jsvNewFromEmptyString(); if (a && template) { JsvStringIterator it, dit; jsvStringIteratorNew(&it, template, 0); jsvStringIteratorNew(&dit, a, 0); while (jsvStrin...
0
[ "CWE-787" ]
Espruino
e069be2ecc5060ef47391716e4de94999595b260
281,352,086,205,848,980,000,000,000,000,000,000,000
51
Fix potential corruption issue caused by `delete [].__proto__` (fix #2142)
static void ide_set_signature(IDEState *s) { s->select &= 0xf0; /* clear head */ /* put signature */ s->nsector = 1; s->sector = 1; if (s->drive_kind == IDE_CD) { s->lcyl = 0x14; s->hcyl = 0xeb; } else if (s->blk) { s->lcyl = 0; s->hcyl = 0; } else { s...
0
[ "CWE-399" ]
qemu
3251bdcf1c67427d964517053c3d185b46e618e8
268,952,527,540,206,200,000,000,000,000,000,000,000
17
ide: Correct handling of malformed/short PRDTs This impacts both BMDMA and AHCI HBA interfaces for IDE. Currently, we confuse the difference between a PRDT having "0 bytes" and a PRDT having "0 complete sectors." When we receive an incomplete sector, inconsistent error checking leads to an infinite loop wherein the c...
static int vhost_net_enable_vq(struct vhost_net *n, struct vhost_virtqueue *vq) { struct vhost_net_virtqueue *nvq = container_of(vq, struct vhost_net_virtqueue, vq); struct vhost_poll *poll = n->poll + (nvq - n->vqs); struct socket *sock; sock = vq->private_data; if (!sock) return 0; return vhost_poll_s...
0
[ "CWE-787" ]
linux
e2b3b35eb9896f26c98b9a2c047d9111638059a2
307,274,306,688,838,150,000,000,000,000,000,000,000
14
vhost_net: batch used ring update in rx This patch tries to batched used ring update during RX. This is pretty fit for the case when guest is much faster (e.g dpdk based backend). In this case, used ring is almost empty: - we may get serious cache line misses/contending on both used ring and used idx. - at most 1 p...