func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
camel_imapx_server_have_capability (CamelIMAPXServer *is, guint32 capability) { gboolean have; g_return_val_if_fail (CAMEL_IS_IMAPX_SERVER (is), FALSE); g_mutex_lock (&is->priv->stream_lock); have = is->priv->cinfo != NULL && (is->priv->cinfo->capa & capability) != 0; g_mutex_unlock (&is->priv->stream_lo...
0
[]
evolution-data-server
f26a6f672096790d0bbd76903db4c9a2e44f116b
108,788,967,152,807,900,000,000,000,000,000,000,000
13
[IMAPx] 'STARTTLS not supported' error ignored When a user has setup the STARTTLS encryption method, but the server doesn't support it, then an error should be shown to the user, instead of using unsecure connection. There had been two bugs in the existing code which prevented this error from being used and the failur...
TConsoleRunner::TConsoleRunner(TConsole * Console) : FSynchronizeController(&SynchronizeControllerSynchronize, &SynchronizeControllerSynchronizeInvalid, &SynchronizeControllerTooManyDirectories) { FConsole = Console; FLastProgressLen = 0; FScript = NULL; FAborted = false; FBatchScript = fal...
0
[ "CWE-787" ]
winscp
faa96e8144e6925a380f94a97aa382c9427f688d
160,912,109,334,867,020,000,000,000,000,000,000,000
21
Bug 1943: Prevent loading session settings that can lead to remote code execution from handled URLs https://winscp.net/tracker/1943 (cherry picked from commit ec584f5189a856cd79509f754722a6898045c5e0) Source commit: 0f4be408b3f01132b00682da72d925d6c4ee649b
GF_Err sdp_Size(GF_Box *s) { GF_SDPBox *ptr = (GF_SDPBox *)s; //don't count the NULL char!!! ptr->size += strlen(ptr->sdpText); return GF_OK; }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
213,802,854,437,785,900,000,000,000,000,000,000,000
7
prevent dref memleak on invalid input (#1183)
TEST(HeaderMapImplTest, MoveIntoInline) { HeaderMapImpl headers; HeaderString key; key.setCopy(Headers::get().CacheControl.get()); HeaderString value; value.setCopy("hello", 5); headers.addViaMove(std::move(key), std::move(value)); EXPECT_EQ("cache-control", headers.CacheControl()->key().getStringView());...
0
[ "CWE-400", "CWE-703" ]
envoy
afc39bea36fd436e54262f150c009e8d72db5014
194,846,612,039,458,500,000,000,000,000,000,000,000
19
Track byteSize of HeaderMap internally. Introduces a cached byte size updated internally in HeaderMap. The value is stored as an optional, and is cleared whenever a non-const pointer or reference to a HeaderEntry is accessed. The cached value can be set with refreshByteSize() which performs an iteration over the Heade...
static int atl2_set_mac(struct net_device *netdev, void *p) { struct atl2_adapter *adapter = netdev_priv(netdev); struct sockaddr *addr = p; if (!is_valid_ether_addr(addr->sa_data)) return -EADDRNOTAVAIL; if (netif_running(netdev)) return -EBUSY; memcpy(netdev->dev_addr, addr->sa_data, netdev->addr_len); m...
0
[ "CWE-200" ]
linux
f43bfaeddc79effbf3d0fcb53ca477cca66f3db8
30,869,108,164,789,440,000,000,000,000,000,000,000
18
atl2: Disable unimplemented scatter/gather feature atl2 includes NETIF_F_SG in hw_features even though it has no support for non-linear skbs. This bug was originally harmless since the driver does not claim to implement checksum offload and that used to be a requirement for SG. Now that SG and checksum offload are i...
read_timeout(void *arg) { FILE *f; double temp, comp; f = UTI_OpenFile(NULL, filename, NULL, 'r', 0); if (f && fscanf(f, "%lf", &temp) == 1) { comp = get_tempcomp(temp); if (fabs(comp) <= MAX_COMP) { comp = LCL_SetTempComp(comp); DEBUG_LOG("tempcomp updated to %f for %f", comp, temp); ...
0
[ "CWE-59" ]
chrony
e18903a6b56341481a2e08469c0602010bf7bfe3
97,177,017,302,057,220,000,000,000,000,000,000,000
35
switch to new util file functions Replace all fopen(), rename(), and unlink() calls with the new util functions.
static void qxl_ring_set_dirty(PCIQXLDevice *qxl) { ram_addr_t addr = qxl->shadow_rom.ram_header_offset; ram_addr_t end = qxl->vga.vram_size; qxl_set_dirty(&qxl->vga.vram, addr, end); }
0
[ "CWE-476" ]
qemu
d52680fc932efb8a2f334cc6993e705ed1e31e99
67,048,455,088,816,770,000,000,000,000,000,000,000
6
qxl: check release info object When releasing spice resources in release_resource() routine, if release info object 'ext.info' is null, it leads to null pointer dereference. Add check to avoid it. Reported-by: Bugs SysSec <bugs-syssec@rub.de> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Message-id: 20190425...
void posix_cpu_timer_get(struct k_itimer *timer, struct itimerspec *itp) { union cpu_time_count now; struct task_struct *p = timer->it.cpu.task; int clear_dead; /* * Easy part: convert the reload time. */ sample_to_timespec(timer->it_clock, timer->it.cpu.incr, &itp->it_interval); if (timer->it.cpu.exp...
0
[ "CWE-189" ]
linux
f8bd2258e2d520dff28c855658bd24bdafb5102d
199,448,908,108,079,750,000,000,000,000,000,000,000
98
remove div_long_long_rem x86 is the only arch right now, which provides an optimized for div_long_long_rem and it has the downside that one has to be very careful that the divide doesn't overflow. The API is a little akward, as the arguments for the unsigned divide are signed. The signed version also doesn't handle ...
static inline unsigned long tid_to_event(unsigned long tid) { return tid / TID_STEP; }
0
[]
linux
fd4d9c7d0c71866ec0c2825189ebd2ce35bd95b8
103,206,473,160,745,280,000,000,000,000,000,000,000
4
mm: slub: add missing TID bump in kmem_cache_alloc_bulk() When kmem_cache_alloc_bulk() attempts to allocate N objects from a percpu freelist of length M, and N > M > 0, it will first remove the M elements from the percpu freelist, then call ___slab_alloc() to allocate the next element and repopulate the percpu freelis...
yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; ...
0
[ "CWE-20" ]
ntp
553f2fa65865c31c5e3c48812cfd46176cffdd27
273,151,526,292,298,830,000,000,000,000,000,000,000
99
[Bug 1593] ntpd abort in free() with logconfig syntax error.
e_ews_connection_sync_folder_items_sync (EEwsConnection *cnc, gint pri, const gchar *old_sync_state, const gchar *fid, const gchar *default_props, con...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
55,346,570,131,050,770,000,000,000,000,000,000,000
38
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
static void sta_deliver_ps_frames(struct work_struct *wk) { struct sta_info *sta; sta = container_of(wk, struct sta_info, drv_deliver_wk); if (sta->dead) return; local_bh_disable(); if (!test_sta_flag(sta, WLAN_STA_PS_STA)) ieee80211_sta_ps_deliver_wakeup(sta); else if (test_and_clear_sta_flag(sta, WLAN_ST...
0
[ "CWE-287" ]
linux
3e493173b7841259a08c5c8e5cbe90adb349da7e
204,472,949,953,277,400,000,000,000,000,000,000,000
18
mac80211: Do not send Layer 2 Update frame before authorization The Layer 2 Update frame is used to update bridges when a station roams to another AP even if that STA does not transmit any frames after the reassociation. This behavior was described in IEEE Std 802.11F-2003 as something that would happen based on MLME-...
CImg<T>& _load_inr(std::FILE *const file, const char *const filename, float *const voxel_size) { #define _cimg_load_inr_case(Tf,sign,pixsize,Ts) \ if (!loaded && fopt[6]==pixsize && fopt[4]==Tf && fopt[5]==sign) { \ Ts *xval, *const val = new Ts[(size_t)fopt[0]*fopt[3]]; \ cimg_forYZ(*this,y,z)...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
259,744,322,390,144,860,000,000,000,000,000,000,000
44
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
read_pages_map (Bit_Chain *dat, int64_t size_comp, int64_t size_uncomp, int64_t correction) { BITCODE_RC *data, *ptr, *ptr_end; r2007_page *pages = NULL, *last_page = NULL, *page; int64_t offset = 0x480; // dat->byte; // int64_t index; data = read_system_page (dat, size_comp, size_uncomp, cor...
0
[ "CWE-787" ]
libredwg
45d2a290c65ed691be0901ba2b2ef51044e07a16
59,597,282,334,323,720,000,000,000,000,000,000,000
63
decode_r2007: fix for invalid section size See GH #350. With fuzzing section->data_size might not fit section_page->uncomp_size.
schannel_connect_common(struct Curl_easy *data, struct connectdata *conn, int sockindex, bool nonblocking, bool *done) { CURLcode result; struct ssl_connect_data *connssl = &conn->ssl[sockindex]; curl_socket_t sockfd = conn->sock[sockindex]; timediff_t timeout_ms; int what; /* check...
0
[ "CWE-290" ]
curl
b09c8ee15771c614c4bf3ddac893cdb12187c844
156,469,729,815,723,840,000,000,000,000,000,000,000
119
vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() To make sure we set and extract the correct session. Reported-by: Mingtao Yang Bug: https://curl.se/docs/CVE-2021-22890.html CVE-2021-22890
nfsd4_read_release(union nfsd4_op_u *u) { if (u->read.rd_filp) fput(u->read.rd_filp); trace_nfsd_read_done(u->read.rd_rqstp, u->read.rd_fhp, u->read.rd_offset, u->read.rd_length); }
0
[ "CWE-476" ]
linux
01310bb7c9c98752cc763b36532fab028e0f8f81
129,553,010,522,685,440,000,000,000,000,000,000,000
7
nfsd: COPY and CLONE operations require the saved filehandle to be set Make sure we have a saved filehandle, otherwise we'll oops with a null pointer dereference in nfs4_preprocess_stateid_op(). Signed-off-by: Scott Mayhew <smayhew@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat....
static void brcmf_init_escan(struct brcmf_cfg80211_info *cfg) { brcmf_fweh_register(cfg->pub, BRCMF_E_ESCAN_RESULT, brcmf_cfg80211_escan_handler); cfg->escan_info.escan_state = WL_ESCAN_STATE_IDLE; /* Init scan_timeout timer */ init_timer(&cfg->escan_timeout); cfg->escan_timeout.data = (unsigned long) cfg; ...
0
[ "CWE-119", "CWE-703" ]
linux
ded89912156b1a47d940a0c954c43afbabd0c42c
85,942,475,001,303,750,000,000,000,000,000,000,000
12
brcmfmac: avoid potential stack overflow in brcmf_cfg80211_start_ap() User-space can choose to omit NL80211_ATTR_SSID and only provide raw IE TLV data. When doing so it can provide SSID IE with length exceeding the allowed size. The driver further processes this IE copying it into a local variable without checking the...
static int dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) { return i2d_DSAparams(pkey->pkey.dsa, pder); }
0
[]
openssl
ab4a81f69ec88d06c9d8de15326b9296d7f498ed
28,583,273,829,170,935,000,000,000,000,000,000,000
4
Remove broken DSA private key workarounds. Remove old code that handled various invalid DSA formats in ancient software. This also fixes a double free bug when parsing malformed DSA private keys. Thanks to Adam Langley (Google/BoringSSL) for discovering this bug using libFuzzer. CVE-2016-0705 Reviewed-by: Emilia K...
static int mct_u232_tiocmget(struct tty_struct *tty) { struct usb_serial_port *port = tty->driver_data; struct mct_u232_private *priv = usb_get_serial_port_data(port); unsigned int control_state; unsigned long flags; spin_lock_irqsave(&priv->lock, flags); control_state = priv->control_state; spin_unlock_irqrest...
0
[ "CWE-703" ]
linux
4e9a0b05257f29cf4b75f3209243ed71614d062e
287,540,859,221,206,700,000,000,000,000,000,000,000
13
USB: mct_u232: add sanity checking in probe An attack using the lack of sanity checking in probe is known. This patch checks for the existence of a second port. CVE-2016-3136 Signed-off-by: Oliver Neukum <ONeukum@suse.com> CC: stable@vger.kernel.org [johan: add error message ] Signed-off-by: Johan Hovold <johan@kern...
static inline unsigned char get_dtype(struct super_block *sb, int filetype) { if (!ext4_has_feature_filetype(sb) || filetype >= EXT4_FT_MAX) return DT_UNKNOWN; return ext4_filetype_table[filetype];
0
[ "CWE-787" ]
linux
c37e9e013469521d9adb932d17a1795c139b36db
201,187,082,444,381,160,000,000,000,000,000,000,000
7
ext4: add more inode number paranoia checks If there is a directory entry pointing to a system inode (such as a journal inode), complain and declare the file system to be corrupted. Also, if the superblock's first inode number field is too small, refuse to mount the file system. This addresses CVE-2018-10882. https...
oal_download_response_cb (SoupSession *soup_session, SoupMessage *soup_message, gpointer user_data) { GSimpleAsyncResult *simple; struct _oal_req_data *data; simple = G_SIMPLE_ASYNC_RESULT (user_data); data = g_simple_async_result_get_op_res_gpointer (simple); ...
1
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
87,613,320,039,742,930,000,000,000,000,000,000,000
32
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
rend_consider_services_intro_points(void) { int i; time_t now; const or_options_t *options = get_options(); /* Are we in single onion mode? */ const int allow_direct = rend_service_allow_non_anonymous_connection( get_options()); /* List of node...
0
[ "CWE-532" ]
tor
09ea89764a4d3a907808ed7d4fe42abfe64bd486
8,597,515,417,749,479,000,000,000,000,000,000,000
169
Fix log-uninitialized-stack bug in rend_service_intro_established. Fixes bug 23490; bugfix on 0.2.7.2-alpha. TROVE-2017-008 CVE-2017-0380
inline void Holder::accept(Visitor &v) { v.visit(*this); }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
37,729,690,590,815,230,000,000,000,000,000,000,000
1
Fix #122
deferral_log(address_item * addr, uschar * now, int logflags, uschar * driver_name, uschar * driver_kind) { gstring * g; void * reset_point; /* Build up the line that is used for both the message log and the main log. */ g = reset_point = string_get(256); /* Create the address string for logging. Must not do this ...
0
[ "CWE-78" ]
exim
d740d2111f189760593a303124ff6b9b1f83453d
124,235,762,227,232,100,000,000,000,000,000,000,000
78
Fix CVE-2019-10149
static noinline int btrfs_ioctl_snap_create_v2(struct file *file, void __user *arg, int subvol) { struct btrfs_ioctl_vol_args_v2 *vol_args; int ret; u64 transid = 0; u64 *ptr = NULL; bool readonly = false; struct btrfs_qgroup_inherit *inherit = NULL; if (!S_ISDIR(file_inode(file)->i_mode)) return ...
0
[ "CWE-476", "CWE-284" ]
linux
09ba3bc9dd150457c506e4661380a6183af651c1
3,878,383,646,925,681,000,000,000,000,000,000,000
59
btrfs: merge btrfs_find_device and find_device Both btrfs_find_device() and find_device() does the same thing except that the latter does not take the seed device onto account in the device scanning context. We can merge them. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: David Sterba <dsterba@suse.c...
int lxc_clear_config_network(struct lxc_conf *c) { struct lxc_list *it,*next; lxc_list_for_each_safe(it, &c->network, next) { lxc_remove_nic(it); } return 0; }
0
[ "CWE-59", "CWE-61" ]
lxc
592fd47a6245508b79fe6ac819fe6d3b2c1289be
151,697,096,358,686,500,000,000,000,000,000,000,000
8
CVE-2015-1335: Protect container mounts against symlinks When a container starts up, lxc sets up the container's inital fstree by doing a bunch of mounting, guided by the container configuration file. The container config is owned by the admin or user on the host, so we do not try to guard against bad entries. Howev...
server_request_free_answers(struct server_request *req) { struct server_reply_item *victim, *next, **list; int i; for (i = 0; i < 3; ++i) { if (i==0) list = &req->answer; else if (i==1) list = &req->authority; else list = &req->additional; victim = *list; while (victim) { next = victim->next; ...
0
[ "CWE-125" ]
libevent
96f64a022014a208105ead6c8a7066018449d86d
210,447,228,737,265,000,000,000,000,000,000,000,000
24
evdns: name_parse(): fix remote stack overread @asn-the-goblin-slayer: "the name_parse() function in libevent's DNS code is vulnerable to a buffer overread. 971 if (cp != name_out) { 972 if (cp + 1 >= end) return -1; 973 *cp++ = '.'; 974 } 975 if (cp + ...
explicit IPCRenderer(v8::Isolate* isolate) : content::RenderFrameObserver(GetCurrentRenderFrame()) { RenderFrame* render_frame = GetCurrentRenderFrame(); DCHECK(render_frame); weak_context_ = v8::Global<v8::Context>(isolate, isolate->GetCurrentContext()); weak_context_.SetWeak(); re...
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
247,342,797,227,308,300,000,000,000,000,000,000,000
11
fix: ensure ElectronBrowser mojo service is only bound to appropriate render frames (#33344) * fix: ensure ElectronBrowser mojo service is only bound to authorized render frames Notes: no-notes * refactor: extract electron API IPC to its own mojo interface * fix: just check main frame not primary main frame ...
void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu) { kvm_x86_ops->vcpu_put(vcpu); kvm_put_guest_fpu(vcpu); vcpu->arch.last_host_tsc = native_read_tsc(); }
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
334,408,730,961,123,930,000,000,000,000,000,000,000
6
KVM: x86: fix information leak to userland Structures kvm_vcpu_events, kvm_debugregs, kvm_pit_state2 and kvm_clock_data are copied to userland with some padding and reserved fields unitialized. It leads to leaking of contents of kernel stack memory. We have to initialize them to zero. In patch v1 Jan Kiszka suggest...
static inline void ConvertXYZToLab(const double X,const double Y,const double Z, double *L,double *a,double *b) { double x, y, z; assert(L != (double *) NULL); assert(a != (double *) NULL); assert(b != (double *) NULL); if ((X/D65X) > CIEEpsilon) x=pow(X/D65X,1.0/3.0); else x=(CIEK*X/...
0
[ "CWE-369" ]
ImageMagick
3d71aa8265ffaaf686021a6fbd54c037f71ee3a2
335,451,383,975,285,900,000,000,000,000,000,000,000
27
https://github.com/ImageMagick/ImageMagick/issues/1739
static int fwnet_stop(struct net_device *net) { struct fwnet_device *dev = netdev_priv(net); netif_stop_queue(net); fwnet_broadcast_stop(dev); return 0; }
0
[ "CWE-119", "CWE-284", "CWE-787" ]
linux
667121ace9dbafb368618dbabcf07901c962ddac
47,240,382,804,183,810,000,000,000,000,000,000,000
9
firewire: net: guard against rx buffer overflows The IP-over-1394 driver firewire-net lacked input validation when handling incoming fragmented datagrams. A maliciously formed fragment with a respectively large datagram_offset would cause a memcpy past the datagram buffer. So, drop any packets carrying a fragment wi...
static int kvm_no_compat_open(struct inode *inode, struct file *file) { return is_compat_task() ? -ENODEV : 0; }
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
126,974,670,585,337,440,000,000,000,000,000,000,000
4
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
_XimGetAuthProtocolNames( Xim im, CARD16 *buf, CARD8 *num, INT16 *len) { if (!IS_USE_AUTHORIZATION_FUNC(im)) { *num = 0; *len = 0; return True; } /* * Not yet */ return True; }
0
[ "CWE-190" ]
libx11
1a566c9e00e5f35c1f9e7f3d741a02e5170852b2
32,404,559,440,974,300,000,000,000,000,000,000,000
16
Zero out buffers in functions It looks like uninitialized stack or heap memory can leak out via padding bytes. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
find_hostinfo (const char *name) { int idx; for (idx=0; idx < hosttable_size; idx++) if (hosttable[idx] && !ascii_strcasecmp (hosttable[idx]->name, name)) return idx; return -1; }
0
[ "CWE-352" ]
gnupg
4a4bb874f63741026bd26264c43bb32b1099f060
127,514,392,308,228,690,000,000,000,000,000,000,000
9
dirmngr: Avoid possible CSRF attacks via http redirects. * dirmngr/http.h (parsed_uri_s): Add fields off_host and off_path. (http_redir_info_t): New. * dirmngr/http.c (do_parse_uri): Set new fields. (same_host_p): New. (http_prepare_redirect): New. * dirmngr/t-http-basic.c: New test. * dirmngr/ks-engine-hkp.c (send_re...
int main(void) { static void (*test_functions[])(void) = { test_do_init, test_jwt_hs_token, test_jwt_token_escape, test_jwt_bad_valid_token, test_jwt_broken_token, test_jwt_dates, test_jwt_key_files, test_jwt_kid_escape, test_jwt_rs_token, test_jwt_ps_token, test_jwt_ec_token, test_do_deinit, ...
0
[ "CWE-22" ]
core
15682a20d5589ebf5496b31c55ecf9238ff2457b
194,381,418,489,115,980,000,000,000,000,000,000,000
21
lib-oauth2: Do not escape '.' This is not really needed and just makes things difficult.
SPL_METHOD(MultipleIterator, next) { spl_SplObjectStorage *intern; spl_SplObjectStorageElement *element; zval *it; intern = (spl_SplObjectStorage*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } zend_hash_internal_poi...
1
[ "CWE-416" ]
php-src
c2e197e4efc663ca55f393bf0e799848842286f3
54,906,943,109,910,110,000,000,000,000,000,000,000
19
Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage
bool WindowsServiceControl::isRegistered() { return m_serviceHandle != nullptr; }
0
[ "CWE-428", "CWE-295" ]
veyon
f231ec511b9a09f43f49b2c7bb7c60b8046276b1
44,387,525,978,876,610,000,000,000,000,000,000,000
4
WindowsServiceControl: quote service binary path Fix unquoted service path vulnerability. Closes #657.
spell_dump_compl( char_u *pat, // leading part of the word int ic, // ignore case int *dir, // direction for adding matches int dumpflags_arg) // DUMPFLAG_* { langp_T *lp; slang_T *slang; idx_T arridx[MAXWLEN]; int curi[MAXWLEN]; char_u word[MAXWLEN]; int c; ...
0
[ "CWE-121", "CWE-787" ]
vim
54e5fed6d27b747ff152cdb6edfb72ff60e70939
98,643,763,570,505,620,000,000,000,000,000,000,000
190
patch 9.0.0035: spell dump may go beyond end of an array Problem: Spell dump may go beyond end of an array. Solution: Limit the word length.
static BOOL _update_read_pointer_large(wStream* s, POINTER_LARGE_UPDATE* pointer) { BYTE* newMask; UINT32 scanlineSize; if (!pointer) goto fail; if (Stream_GetRemainingLength(s) < 20) goto fail; Stream_Read_UINT16(s, pointer->xorBpp); Stream_Read_UINT16(s, pointer->cacheIndex); /* cacheIndex (2 bytes) */ ...
0
[ "CWE-125" ]
FreeRDP
0332cad015fdf7fac7e5c6863484f18a554e0fcf
319,535,406,616,462,230,000,000,000,000,000,000,000
107
Fixed oob read in update_recv properly use update_type_to_string to print update type. Thanks to hac425 CVE-2020-11019
static int snd_timer_stop1(struct snd_timer_instance *timeri, bool stop) { struct snd_timer *timer; int result = 0; unsigned long flags; timer = timeri->timer; if (!timer) return -EINVAL; spin_lock_irqsave(&timer->lock, flags); if (!(timeri->flags & (SNDRV_TIMER_IFLG_RUNNING | SNDRV_TIMER_IFLG_START...
0
[ "CWE-416", "CWE-703" ]
linux
e7af6307a8a54f0b873960b32b6a644f2d0fbd97
47,545,237,058,901,740,000,000,000,000,000,000,000
46
ALSA: timer: Fix incorrectly assigned timer instance The clean up commit 41672c0c24a6 ("ALSA: timer: Simplify error path in snd_timer_open()") unified the error handling code paths with the standard goto, but it introduced a subtle bug: the timer instance is stored in snd_timer_open() incorrectly even if it returns an...
longlong Item_func_isnull::val_int() { DBUG_ASSERT(fixed == 1); if (const_item() && !args[0]->maybe_null) return 0; return args[0]->is_null() ? 1: 0; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
159,212,737,460,460,960,000,000,000,000,000,000,000
7
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
signal_init(void) { #ifndef _DEBUG_ signal_set(SIGHUP, propagate_signal, NULL); signal_set(SIGUSR1, propagate_signal, NULL); signal_set(SIGUSR2, propagate_signal, NULL); #ifdef _WITH_JSON_ signal_set(SIGJSON, propagate_signal, NULL); #endif signal_set(SIGINT, sigend, NULL); signal_set(SIGTERM, sigend, NULL); #end...
0
[ "CWE-59", "CWE-61" ]
keepalived
04f2d32871bb3b11d7dc024039952f2fe2750306
311,729,379,553,458,240,000,000,000,000,000,000,000
14
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 ...
static inline void *nfc_hdr_put(struct sk_buff *skb, u32 portid, u32 seq, int flags, u8 cmd) { /* since there is no private header just add the generic one */ return genlmsg_put(skb, portid, seq, &nfc_genl_family, flags, cmd); }
0
[ "CWE-476" ]
linux
385097a3675749cbc9e97c085c0e5dfe4269ca51
194,844,148,214,713,900,000,000,000,000,000,000,000
6
nfc: Ensure presence of required attributes in the deactivate_target handler Check that the NFC_ATTR_TARGET_INDEX attributes (in addition to NFC_ATTR_DEVICE_INDEX) are provided by the netlink client prior to accessing them. This prevents potential unhandled NULL pointer dereference exceptions which can be triggered by...
get_bson (const char *filename) { ssize_t len; uint8_t buf[4096]; bson_t *b; char real_filename[256]; int fd; bson_snprintf ( real_filename, sizeof real_filename, BSON_BINARY_DIR "/%s", filename); real_filename[sizeof real_filename - 1] = '\0'; if (-1 == (fd = bson_open (real_filename, ...
0
[ "CWE-125" ]
mongo-c-driver
0d9a4d98bfdf4acd2c0138d4aaeb4e2e0934bd84
54,978,742,829,654,910,000,000,000,000,000,000,000
24
Fix for CVE-2018-16790 -- Verify bounds before binary length read. As reported here: https://jira.mongodb.org/browse/CDRIVER-2819, a heap overread occurs due a failure to correctly verify data bounds. In the original check, len - o returns the data left including the sizeof(l) we just read. Instead, the comparison sh...
static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) { return inc_ucount(ns, uid, UCOUNT_USER_NAMESPACES); }
0
[ "CWE-20", "CWE-862", "CWE-863" ]
linux
d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd
92,838,893,198,380,180,000,000,000,000,000,000,000
4
userns: also map extents in the reverse map to kernel IDs The current logic first clones the extent array and sorts both copies, then maps the lower IDs of the forward mapping into the lower namespace, but doesn't map the lower IDs of the reverse mapping. This means that code in a nested user namespace with >5 extent...
xmlFAParseQuantExact(xmlRegParserCtxtPtr ctxt) { int ret = 0; int ok = 0; while ((CUR >= '0') && (CUR <= '9')) { ret = ret * 10 + (CUR - '0'); ok = 1; NEXT; } if (ok != 1) { return(-1); } return(ret); }
0
[ "CWE-119" ]
libxml2
cbb271655cadeb8dbb258a64701d9a3a0c4835b4
161,087,423,990,427,620,000,000,000,000,000,000,000
14
Bug 757711: heap-buffer-overflow in xmlFAParsePosCharGroup <https://bugzilla.gnome.org/show_bug.cgi?id=757711> * xmlregexp.c: (xmlFAParseCharRange): Only advance to the next character if there is no error. Advancing to the next character in case of an error while parsing regexp leads to an out of bounds access.
void jpc_ns_fwdlift_row(jpc_fix_t *a, int numcols, int parity) { register jpc_fix_t *lptr; register jpc_fix_t *hptr; register int n; int llen; llen = (numcols + 1 - parity) >> 1; if (numcols > 1) { /* Apply the first lifting step. */ lptr = &a[0]; hptr = &a[llen]; if (parity) { jpc_fix_pluseq(hptr[...
0
[ "CWE-119", "CWE-787" ]
jasper
4a59cfaf9ab3d48fca4a15c0d2674bf7138e3d1a
161,703,710,079,587,040,000,000,000,000,000,000,000
121
Fixed a buffer overrun problem in the QMFB code in the JPC codec that was caused by a buffer being allocated with a size that was too small in some cases. Added a new regression test case.
hook_process_timer_cb (void *arg_hook_process, int remaining_calls) { struct t_hook *hook_process; int status, rc; /* make C compiler happy */ (void) remaining_calls; hook_process = (struct t_hook *)arg_hook_process; if (hook_process->deleted) return WEECHAT_RC_OK; if (remaining_...
0
[ "CWE-20" ]
weechat
efb795c74fe954b9544074aafcebb1be4452b03a
38,068,537,662,528,160,000,000,000,000,000,000,000
43
core: do not call shell to execute command in hook_process (fix security problem when a plugin/script gives untrusted command) (bug #37764)
int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, BIO *dcont, BIO *out, unsigned int flags) { int r; BIO *cont; if (OBJ_obj2nid(CMS_get0_type(cms)) != NID_pkcs7_enveloped) { CMSerr(CMS_F_CMS_DECRYPT, CMS_R_TYPE_NOT_ENVELOPED_DATA); return 0; } if (!dcont && !check_content(cms)) retu...
0
[ "CWE-399", "CWE-703" ]
openssl
cd30f03ac5bf2962f44bd02ae8d88245dff2f12c
156,983,043,614,779,650,000,000,000,000,000,000,000
28
Canonicalise input in CMS_verify. If content is detached and not binary mode translate the input to CRLF format. Before this change the input was verified verbatim which lead to a discrepancy between sign and verify.
njs_vm_prop_magic32(njs_object_prop_t *prop) { return prop->value.data.magic32; }
0
[ "CWE-416" ]
njs
6a07c2156a07ef307b6dcf3c2ca8571a5f1af7a6
134,241,316,339,516,640,000,000,000,000,000,000,000
4
Fixed recursive async function calls. Previously, PromiseCapability record was stored (function->context) directly in function object during a function invocation. This is not correct, because PromiseCapability record should be linked to current execution context. As a result, function->context is overwritten with c...
ecc_ecdsa_verify_itch (const struct ecc_curve *ecc) { /* Largest storage need is for the ecc->mul call. */ return 5*ecc->p.size + ecc->mul_itch; }
0
[ "CWE-787" ]
nettle
74ee0e82b6891e090f20723750faeb19064e31b2
166,517,536,854,214,350,000,000,000,000,000,000,000
5
Fix bug in ecc_ecdsa_verify. * ecc-ecdsa-verify.c (ecc_ecdsa_verify): Use ecc_mod_mul_canonical to compute the scalars used for ecc multiplication. * testsuite/ecdsa-verify-test.c (test_main): Add test case that triggers an assert on 64-bit platforms, without above fix. * testsuite/ecdsa-sign-test.c (test_main): Test ...
static void _store_item_copy_chunks(item *d_it, item *s_it, const int len) { item_chunk *dch = (item_chunk *) ITEM_data(d_it); /* Advance dch until we find free space */ while (dch->size == dch->used) { dch = dch->next; } if (s_it->it_flags & ITEM_CHUNKED) { int remain = len; ...
0
[ "CWE-190" ]
memcached
bd578fc34b96abe0f8d99c1409814a09f51ee71c
16,509,436,761,178,286,000,000,000,000,000,000,000
53
CVE reported by cisco talos
const char *qeth_get_cardname_short(struct qeth_card *card) { if (card->info.guestlan) { switch (card->info.type) { case QETH_CARD_TYPE_OSD: return "Virt.NIC QDIO"; case QETH_CARD_TYPE_IQD: return "Virt.NIC Hiper"; case QETH_CARD_TYPE_OSM: return "Virt.NIC OSM"; case QETH_CARD_TYPE_OSX: return "V...
0
[ "CWE-200", "CWE-119" ]
linux
6fb392b1a63ae36c31f62bc3fc8630b49d602b62
135,442,736,709,301,580,000,000,000,000,000,000,000
52
qeth: avoid buffer overflow in snmp ioctl Check user-defined length in snmp ioctl request and allow request only if it fits into a qeth command buffer. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Reviewed-by: Heiko Carstens <heicars2@linux.vnet.ibm.c...
e1000_mmio_write(void *opaque, hwaddr addr, uint64_t val, unsigned size) { E1000State *s = opaque; unsigned int index = (addr & 0x1ffff) >> 2; if (index < NWRITEOPS && macreg_writeops[index]) { macreg_writeops[index](s, index, val); } else if (index < NREADOPS && macreg_readops...
0
[ "CWE-120" ]
qemu
b0d9ffcd0251161c7c92f94804dcf599dfa3edeb
219,449,945,716,283,130,000,000,000,000,000,000,000
15
e1000: Discard packets that are too long if !SBP and !LPE The e1000_receive function for the e1000 needs to discard packets longer than 1522 bytes if the SBP and LPE flags are disabled. The linux driver assumes this behavior and allocates memory based on this assumption. Signed-off-by: Michael Contreras <michael@inet...
rb_str_lstrip_bang(str) VALUE str; { char *s, *t, *e; s = RSTRING(str)->ptr; if (!s || RSTRING(str)->len == 0) return Qnil; e = t = s + RSTRING(str)->len; /* remove spaces at head */ while (s < t && ISSPACE(*s)) s++; if (s > RSTRING(str)->ptr) { rb_str_modify(str); RSTRING(str)->len ...
0
[ "CWE-20" ]
ruby
e926ef5233cc9f1035d3d51068abe9df8b5429da
37,503,309,865,609,280,000,000,000,000,000,000,000
20
* random.c (rb_genrand_int32, rb_genrand_real), intern.h: Export. * string.c (rb_str_tmp_new), intern.h: New function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
xmlStringLenDecodeEntities(xmlParserCtxtPtr ctxt, const xmlChar *str, int len, int what, xmlChar end, xmlChar end2, xmlChar end3) { xmlChar *buffer = NULL; size_t buffer_size = 0; size_t nbchars = 0; xmlChar *current = NULL; xmlChar *rep = NULL; const xmlChar *last; xmlEntityPtr en...
1
[ "CWE-20" ]
libxml2
b1d34de46a11323fccffa9fadeb33be670d602f5
301,710,766,906,450,300,000,000,000,000,000,000,000
164
Fix inappropriate fetch of entities content For https://bugzilla.gnome.org/show_bug.cgi?id=761430 libfuzzer regression testing exposed another case where the parser would fetch content of an external entity while not in validating mode. Plug that hole
static int display_sync(void *handle, void *device) { IMAGE *img = image_find(handle, device); int color; int depth; int endian; int native555; int alpha; if (img == NULL) return -1; color = img->format & DISPLAY_COLORS_MASK; depth = img->format & DISPLAY_DEPTH_MASK; end...
1
[]
ghostpdl
514595fc2cc84f51efdef563cf7a35a0050902e5
7,456,660,978,652,417,000,000,000,000,000,000,000
359
Bug 693038 - allow gsx to build against GTK+ 3.x Patch from galtgendo@gmail.com applied with changes to maintain compatibility with GTK+ 2.x, and replace a function deprecated in GTK+ 3.x. This patch drops GTK+ 1.x support. No cluster differences.
static int ldb_kv_delete_internal(struct ldb_module *module, struct ldb_dn *dn) { struct ldb_message *msg; int ret = LDB_SUCCESS; msg = ldb_msg_new(module); if (msg == NULL) { return LDB_ERR_OPERATIONS_ERROR; } /* in case any attribute of the message was indexed, we need to fetch the old record */ ret = ...
0
[ "CWE-20" ]
samba
3c1fbb18321f61df44d7b0f0c7452ae230960293
311,046,507,398,315,570,000,000,000,000,000,000,000
39
CVE-2018-1140 ldb_tdb: Check for DN validity in add, rename and search This ensures we fail with a good error code before an eventual ldb_dn_get_casefold() which would otherwise fail. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> BUG: https://bugzil...
static inline u32 nfsd4_readlink_rsize(struct svc_rqst *rqstp, struct nfsd4_op *op) { return (op_encode_hdr_size + 1) * sizeof(__be32) + PAGE_SIZE; }
0
[ "CWE-20", "CWE-129" ]
linux
b550a32e60a4941994b437a8d662432a486235a5
197,446,985,201,232,900,000,000,000,000,000,000,000
4
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)...
void destroy_iommu_domain(struct iommu_domain *domain) { /* TODO: check if any device assigned to this domain */ (void)memset(domain, 0U, sizeof(*domain)); }
0
[ "CWE-120", "CWE-787" ]
acrn-hypervisor
25c0e3817eb332660dd63d1d4522e63dcc94e79a
275,916,054,989,328,850,000,000,000,000,000,000,000
5
hv: validate input for dmar_free_irte function Malicious input 'index' may trigger buffer overflow on array 'irte_alloc_bitmap[]'. This patch validate that 'index' shall be less than 'CONFIG_MAX_IR_ENTRIES' and also remove unnecessary check on 'index' in 'ptirq_free_irte()' function with this fix. Tracked-On: ...
MONGO_EXPORT void gridfile_destroy( gridfile *gfile ) { bson_destroy( gfile->meta ); bson_free( gfile->meta ); }
0
[ "CWE-190" ]
mongo-c-driver-legacy
1a1f5e26a4309480d88598913f9eebf9e9cba8ca
208,320,744,639,591,580,000,000,000,000,000,000,000
6
don't mix up int and size_t (first pass to fix that)
void InstanceKlass::clean_weak_instanceklass_links() { clean_implementors_list(); clean_method_data(); }
0
[]
jdk17u
f8eb9abe034f7c6bea4da05a9ea42017b3f80730
252,024,990,387,842,230,000,000,000,000,000,000,000
4
8270386: Better verification of scan methods Reviewed-by: coleenp Backport-of: ac329cef45979bd0159ecd1347e36f7129bb2ce4
TRIO_PUBLIC int trio_sscanf TRIO_VARGS3((buffer, format, va_alist), TRIO_CONST char* buffer, TRIO_CONST char* format, TRIO_VA_DECL) { int status; va_list args; assert(VALID(buffer)); assert(VALID(format)); TRIO_VA_START(args, format); status = TrioScan((trio_pointer_...
0
[ "CWE-190", "CWE-125" ]
FreeRDP
05cd9ea2290d23931f615c1b004d4b2e69074e27
300,740,919,546,948,800,000,000,000,000,000,000,000
15
Fixed TrioParse and trio_length limts. CVE-2020-4030 thanks to @antonio-morales for finding this.
transformIndexStmt(Oid relid, IndexStmt *stmt, const char *queryString) { ParseState *pstate; RangeTblEntry *rte; ListCell *l; Relation rel; /* * We must not scribble on the passed-in IndexStmt, so copy it. (This is * overkill, but easy.) */ stmt = (IndexStmt *) copyObject(stmt); /* Set up pstate */ ...
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
296,804,300,542,039,420,000,000,000,000,000,000,000
89
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
bool adminOnly() const override { return false; }
0
[ "CWE-20" ]
mongo
722f06f3217c029ef9c50062c8cc775966fd7ead
168,007,776,053,443,280,000,000,000,000,000,000,000
3
SERVER-38275 ban find explain with UUID
DataBuf readFile(const std::wstring& wpath) { FileIo file(wpath); if (file.open("rb") != 0) { throw WError(kerFileOpenFailed, wpath, "rb", strError().c_str()); } struct _stat st; if (0 != ::_wstat(wpath.c_str(), &st)) { throw WError(kerCallFailed, ...
0
[ "CWE-190" ]
exiv2
c73d1e27198a389ce7caf52ac30f8e2120acdafd
264,502,301,956,169,550,000,000,000,000,000,000,000
17
Avoid negative integer overflow when `filesize < io_->tell()`. This fixes #791.
static void ff_layout_commit_done(struct rpc_task *task, void *data) { pnfs_generic_write_commit_done(task, data); }
0
[ "CWE-787" ]
linux
ed34695e15aba74f45247f1ee2cf7e09d449f925
45,013,325,821,755,890,000,000,000,000,000,000,000
4
pNFS/flexfiles: fix incorrect size check in decode_nfs_fh() We (adam zabrocki, alexander matrosov, alexander tereshkin, maksym bazalii) observed the check: if (fh->size > sizeof(struct nfs_fh)) should not use the size of the nfs_fh struct which includes an extra two bytes from the size field. struct nfs_fh { unsi...
static inline Token *alloc_Token(void) { Token *t; nasm_new(*t); return t; }
0
[]
nasm
6299a3114ce0f3acd55d07de201a8ca2f0a83059
294,763,138,358,177,140,000,000,000,000,000,000,000
6
BR 3392708: fix NULL pointer reference for invalid %stacksize After issuing an error message for a missing %stacksize argument, need to quit rather than continuing to try to access the pointer. Fold uses of tok_text() while we are at it. Reported-by: Suhwan <prada960808@gmail.com> Signed-off-by: H. Peter Anvin (Inte...
_XimProtoOpenIM( Xim im) { _XimInitialResourceInfo(); im->methods = &im_methods; #ifdef XIM_CONNECTABLE _XimSetProtoResource(im); #endif /* XIM_CONNECTABLE */ if (_XimPreConnect(im)) { if (_XimConnection(im) && _XimOpen(im) && _XimEncodingNegotiation(im)) { _XimRegisterServerFilter(im); ...
0
[ "CWE-190" ]
libx11
1a566c9e00e5f35c1f9e7f3d741a02e5170852b2
82,127,670,136,908,020,000,000,000,000,000,000,000
26
Zero out buffers in functions It looks like uninitialized stack or heap memory can leak out via padding bytes. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
static void tcp_seq_stop(struct seq_file *seq, void *v) { struct tcp_iter_state *st = seq->private; switch (st->state) { case TCP_SEQ_STATE_OPENREQ: if (v) { struct inet_connection_sock *icsk = inet_csk(st->syn_wait_sk); read_unlock_bh(&icsk->icsk_accept_queue.syn_wait_lock); } case TCP_SEQ_STATE_LISTENI...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
300,247,448,256,053,760,000,000,000,000,000,000,000
20
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...
static BROTLI_NOINLINE BrotliDecoderErrorCode DecodeVarLenUint8( BrotliDecoderState* s, BrotliBitReader* br, uint32_t* value) { uint32_t bits; switch (s->substate_decode_uint8) { case BROTLI_STATE_DECODE_UINT8_NONE: if (BROTLI_PREDICT_FALSE(!BrotliSafeReadBits(br, 1, &bits))) { return BROTLI_D...
0
[ "CWE-120" ]
brotli
223d80cfbec8fd346e32906c732c8ede21f0cea6
150,731,230,296,536,010,000,000,000,000,000,000,000
42
Update (#826) * IMPORTANT: decoder: fix potential overflow when input chunk is >2GiB * simplify max Huffman table size calculation * eliminate symbol duplicates (static arrays in .h files) * minor combing in research/ code
execute_builtin (builtin, words, flags, subshell) sh_builtin_func_t *builtin; WORD_LIST *words; int flags, subshell; { int result, eval_unwind, ignexit_flag, old_e_flag; int isbltinenv; char *error_trap; error_trap = 0; /* The eval builtin calls parse_and_execute, which does not know about ...
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
22,093,622,672,203,450,000,000,000,000,000,000,000
122
bash-4.4-rc2 release
uint32_t lduw_phys(AddressSpace *as, hwaddr addr) { return address_space_lduw(as, addr, MEMTXATTRS_UNSPECIFIED, NULL); }
0
[]
qemu
e4a511f8cc6f4a46d409fb5c9f72c38ba45f8d83
322,190,034,721,194,860,000,000,000,000,000,000,000
4
exec: clamp accesses against the MemoryRegionSection Because the clamping was done against the MemoryRegion, address_space_rw was effectively broken if a write spanned multiple sections that are not linear in underlying memory (with the memory not being under an IOMMU). This is visible with the MIPS rc4030 IOMMU, whi...
parse_encrypted (IOBUF inp, int pkttype, unsigned long pktlen, PACKET * pkt, int new_ctb, int partial) { int rc = 0; PKT_encrypted *ed; unsigned long orig_pktlen = pktlen; ed = pkt->pkt.encrypted = xmalloc (sizeof *pkt->pkt.encrypted); /* ed->len is set below. */ ed->extralen = 0; /* Unknown here; onl...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
113,018,477,964,750,300,000,000,000,000,000,000,000
71
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
static void Fill(const complex128* data, size_t n, TensorProto* proto) { const double* p = reinterpret_cast<const double*>(data); FieldType copy(p, p + n * 2); proto->mutable_dcomplex_val()->Swap(&copy); }
0
[ "CWE-345" ]
tensorflow
abcced051cb1bd8fb05046ac3b6023a7ebcc4578
67,373,594,005,383,420,000,000,000,000,000,000,000
5
Prevent crashes when loading tensor slices with unsupported types. Also fix the `Tensor(const TensorShape&)` constructor swapping the LOG(FATAL) messages for the unset and unsupported types. PiperOrigin-RevId: 392695027 Change-Id: I4beda7db950db951d273e3259a7c8534ece49354
pg_open_tzfile(const char *name, char *canonname) { const char *fname; char fullname[MAXPGPATH]; int fullnamelen; int orignamelen; /* * Loop to split the given name into directory levels; for each level, * search using scan_directory_ci(). */ strcpy(fullname, pg_TZDIR()); orignamelen = fullnamelen = ...
1
[ "CWE-119" ]
postgres
01824385aead50e557ca1af28640460fa9877d51
75,566,639,250,498,170,000,000,000,000,000,000,000
43
Prevent potential overruns of fixed-size buffers. Coverity identified a number of places in which it couldn't prove that a string being copied into a fixed-size buffer would fit. We believe that most, perhaps all of these are in fact safe, or are copying data that is coming from a trusted source so that any overrun i...
static int l2tp_ip6_recv(struct sk_buff *skb) { struct sock *sk; u32 session_id; u32 tunnel_id; unsigned char *ptr, *optr; struct l2tp_session *session; struct l2tp_tunnel *tunnel = NULL; int length; /* Point to L2TP header */ optr = ptr = skb->data; if (!pskb_may_pull(skb, 4)) goto discard; session_id ...
0
[ "CWE-20" ]
net
85fbaa75037d0b6b786ff18658ddf0b4014ce2a4
80,323,197,518,492,080,000,000,000,000,000,000,000
91
inet: fix addr_len/msg->msg_namelen assignment in recv_error and rxpmtu functions Commit bceaa90240b6019ed73b49965eac7d167610be69 ("inet: prevent leakage of uninitialized memory to user in recv syscalls") conditionally updated addr_len if the msg_name is written to. The recv_error and rxpmtu functions relied on the re...
void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) { if (tail != skb) { skb->data_len += len; skb->len += len; } return skb_put(tail, len);
0
[ "CWE-20" ]
linux
2b16f048729bf35e6c28a40cbfad07239f9dcd90
218,525,712,042,403,440,000,000,000,000,000,000,000
8
net: create skb_gso_validate_mac_len() If you take a GSO skb, and split it into packets, will the MAC length (L2 + L3 + L4 headers + payload) of those packets be small enough to fit within a given length? Move skb_gso_mac_seglen() to skbuff.h with other related functions like skb_gso_network_seglen() so we can use it...
sql_mode_t Field_num::can_handle_sql_mode_dependency_on_store() const { return MODE_PAD_CHAR_TO_FULL_LENGTH; }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
26,042,139,803,597,850,000,000,000,000,000,000,000
4
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...
int hfi1_user_sdma_alloc_queues(struct hfi1_ctxtdata *uctxt, struct hfi1_filedata *fd) { int ret = -ENOMEM; char buf[64]; struct hfi1_devdata *dd; struct hfi1_user_sdma_comp_q *cq; struct hfi1_user_sdma_pkt_q *pq; if (!uctxt || !fd) return -EBADF; if (!hfi1_sdma_comp_ring_size) return -EINVAL; dd = u...
0
[ "CWE-416" ]
linux
3d2a9d642512c21a12d19b9250e7a835dcb41a79
233,699,118,034,634,540,000,000,000,000,000,000,000
95
IB/hfi1: Ensure correct mm is used at all times Two earlier bug fixes have created a security problem in the hfi1 driver. One fix aimed to solve an issue where current->mm was not valid when closing the hfi1 cdev. It attempted to do this by saving a cached value of the current->mm pointer at file open time. This is a ...
compile_tree_empty_check(Node* node, regex_t* reg, int empty_info, ScanEnv* env) { int r; int saved_num_null_check = reg->num_null_check; if (empty_info != BODY_IS_NOT_EMPTY) { r = add_op(reg, OP_EMPTY_CHECK_START); if (r != 0) return r; COP(reg)->empty_check_start.mem = reg->num_null_check; /* NULL ...
0
[ "CWE-476", "CWE-125" ]
oniguruma
c509265c5f6ae7264f7b8a8aae1cfa5fc59d108c
53,114,763,287,846,990,000,000,000,000,000,000,000
28
Fix CVE-2019-13225: problem in converting if-then-else pattern to bytecode.
brcmf_cfg80211_connect(struct wiphy *wiphy, struct net_device *ndev, struct cfg80211_connect_params *sme) { struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); struct brcmf_if *ifp = netdev_priv(ndev); struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; struct ieee80211_channel *chan = sme->cha...
0
[ "CWE-787" ]
linux
1b5e2423164b3670e8bc9174e4762d297990deff
50,011,045,566,205,480,000,000,000,000,000,000,000
218
brcmfmac: assure SSID length from firmware is limited The SSID length as received from firmware should not exceed IEEE80211_MAX_SSID_LEN as that would result in heap overflow. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com> Reviewed-by:...
void Item_date_literal::print(String *str, enum_query_type query_type) { str->append("DATE'"); char buf[MAX_DATE_STRING_REP_LENGTH]; my_date_to_str(&cached_time, buf); str->append(buf); str->append('\''); }
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
9,164,902,354,891,090,000,000,000,000,000,000,000
8
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
SymmetricCryptContextBase::SymmetricCryptContextBase() : m_ctx(nullptr), m_cbIV(0), m_cbTag(0) { }
0
[ "CWE-787" ]
GameNetworkingSockets
bea84e2844b647532a9b7fbc3a6a8989d66e49e3
173,788,128,830,435,570,000,000,000,000,000,000,000
4
Check if output buffer is too small. It really seems like libsodium (whose entire purpose is to make crypto idiot-proof) making me mess with these details is a flaw in the API design. Also, correct Hungarian.
struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue) { return __crypto_dequeue_request(queue, 0); }
0
[ "CWE-284", "CWE-264", "CWE-269" ]
linux
4943ba16bbc2db05115707b3ff7b4874e9e3c560
176,563,541,725,315,270,000,000,000,000,000,000,000
4
crypto: include crypto- module prefix in template This adds the module loading prefix "crypto-" to the template lookup as well. For example, attempting to load 'vfat(blowfish)' via AF_ALG now correctly includes the "crypto-" prefix at every level, correctly rejecting "vfat": net-pf-38 algif-hash crypto-vfat(blowf...
void *gf_filter_get_udta(GF_Filter *filter) { assert(filter); return filter->filter_udta; }
0
[ "CWE-787" ]
gpac
da37ec8582266983d0ec4b7550ec907401ec441e
47,569,436,657,079,160,000,000,000,000,000,000,000
6
fixed crashes for very long path - cf #1908
void Compute(OpKernelContext* context) override { const Tensor& images = context->input(0); const Tensor& boxes = context->input(1); const int64 depth = images.dim_size(3); OP_REQUIRES(context, images.dims() == 4, errors::InvalidArgument("The rank of the images should be 4")); OP_...
0
[ "CWE-476", "CWE-787" ]
tensorflow
79865b542f9ffdc9caeb255631f7c56f1d4b6517
230,163,530,230,233,720,000,000,000,000,000,000,000
174
Fix memory corruption issue with `tf.raw_ops.DrawBoundingBoxesV2`. PiperOrigin-RevId: 372033910 Change-Id: I8a9f4efc1c8ddaacbc26ec1fbe4bfdd6791c226d
gdm_session_get_session_id (GdmSession *self) { GdmSessionConversation *conversation; g_return_val_if_fail (GDM_IS_SESSION (self), NULL); conversation = self->priv->session_conversation; if (conversation == NULL) { return NULL; } return conversation->s...
0
[]
gdm
5ac224602f1d603aac5eaa72e1760d3e33a26f0a
133,677,207,869,455,910,000,000,000,000,000,000,000
14
session: disconnect signals from worker proxy when conversation is freed We don't want an outstanding reference on the worker proxy to lead to signal handlers getting dispatched after the conversation is freed. https://bugzilla.gnome.org/show_bug.cgi?id=758032
int _tiffCloseProc(thandle_t hdata) { TIFFSTATE *state = (TIFFSTATE *)hdata; TRACE(("_tiffCloseProc \n")); dump_state(state); return 0; }
0
[ "CWE-190", "CWE-787" ]
Pillow
4e2def2539ec13e53a82e06c4b3daf00454100c4
190,336,597,509,481,780,000,000,000,000,000,000,000
8
Overflow checks for realloc for tiff decoding
archive_read_format_zip_seekable_bid(struct archive_read *a, int best_bid) { struct zip *zip = (struct zip *)a->format->data; int64_t file_size, current_offset; const char *p; int i, tail; /* If someone has already bid more than 32, then avoid trashing the look-ahead buffers with a seek. */ if (best_bid > 32...
0
[ "CWE-20" ]
libarchive
d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7
291,450,021,558,561,300,000,000,000,000,000,000,000
54
Issue #656: Fix CVE-2016-1541, VU#862384 When reading OS X metadata entries in Zip archives that were stored without compression, libarchive would use the uncompressed entry size to allocate a buffer but would use the compressed entry size to limit the amount of data copied into that buffer. Since the compressed and...
struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs prefs) { struct ndpi_detection_module_struct *ndpi_str = ndpi_malloc(sizeof(struct ndpi_detection_module_struct)); int i; if(ndpi_str == NULL) { #ifdef NDPI_ENABLE_DEBUG_MESSAGES NDPI_LOG_ERR(ndpi_str, "ndpi_init_detection_module...
0
[ "CWE-416", "CWE-787" ]
nDPI
6a9f5e4f7c3fd5ddab3e6727b071904d76773952
148,027,345,947,833,960,000,000,000,000,000,000,000
71
Fixed use after free caused by dangling pointer * This fix also improved RCE Injection detection Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
CImg<T>& crop(const int x0, const int x1, const unsigned int boundary_conditions=0) { return crop(x0,0,0,0,x1,_height - 1,_depth - 1,_spectrum - 1,boundary_conditions); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
281,558,656,217,239,650,000,000,000,000,000,000,000
3
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static void __init init_mount_tree(void) { struct vfsmount *mnt; struct mnt_namespace *ns; struct path root; struct file_system_type *type; type = get_fs_type("rootfs"); if (!type) panic("Can't find rootfs type"); mnt = vfs_kern_mount(type, 0, "rootfs", NULL); put_filesystem(type); if (IS_ERR(mnt)) panic(...
0
[ "CWE-269" ]
user-namespace
a6138db815df5ee542d848318e5dae681590fccd
287,609,869,107,390,640,000,000,000,000,000,000,000
28
mnt: Only change user settable mount flags in remount Kenton Varda <kenton@sandstorm.io> discovered that by remounting a read-only bind mount read-only in a user namespace the MNT_LOCK_READONLY bit would be cleared, allowing an unprivileged user to the remount a read-only mount read-write. Correct this by replacing t...
static int hls_slice_header(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; SliceHeader *sh = &s->sh; int i, ret; // Coded parameters sh->first_slice_in_pic_flag = get_bits1(gb); if ((IS_IDR(s) || IS_BLA(s)) && sh->first_slice_in_pic_flag) { s->seq_decode = (s->seq_decode + 1) &...
1
[ "CWE-476" ]
FFmpeg
54655623a82632e7624714d7b2a3e039dc5faa7e
305,998,528,402,624,100,000,000,000,000,000,000,000
421
avcodec/hevcdec: Avoid only partly skiping duplicate first slices Fixes: NULL pointer dereference and out of array access Fixes: 13871/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5746167087890432 Fixes: 13845/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5650370728034304 This also fi...
gr_uint32 gr_face_lang_by_index(const gr_face* pFace, gr_uint16 i) { assert(pFace); return pFace->theSill().getLangName(i); }
0
[ "CWE-476" ]
graphite
db132b4731a9b4c9534144ba3a18e65b390e9ff6
308,522,977,607,496,700,000,000,000,000,000,000,000
5
Deprecate and make ineffective gr_face_dumbRendering
static int oidc_request_post_preserved_restore(request_rec *r, const char *original_url) { oidc_debug(r, "enter: original_url=%s", original_url); const char *method = "postOnLoad"; const char *script = apr_psprintf(r->pool, " <script type=\"text/javascript\">\n" " function str_decode(string)...
0
[ "CWE-79" ]
mod_auth_openidc
132a4111bf3791e76437619a66336dce2ce4c79b
185,871,887,051,436,600,000,000,000,000,000,000,000
38
release 2.3.10.2: fix XSS vulnerability for poll parameter in OIDC Session Management RP iframe; CSNC-2019-001; thanks Mischa Bachmann Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
static int get_v4l2_create32(struct v4l2_create_buffers *kp, struct v4l2_create_buffers32 __user *up) { if (!access_ok(VERIFY_READ, up, sizeof(*up)) || copy_from_user(kp, up, offsetof(struct v4l2_create_buffers32, format))) return -EFAULT; return __get_v4l2_format32(&kp->format, &up->format); }
1
[ "CWE-787" ]
linux
a1dfb4c48cc1e64eeb7800a27c66a6f7e88d075a
111,592,638,360,761,910,000,000,000,000,000,000,000
7
media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic The 32-bit compat v4l2 ioctl handling is implemented based on its 64-bit equivalent. It converts 32-bit data structures into its 64-bit equivalents and needs to provide the data to the 64-bit ioctl in user space memory which is commonly allocated using compat...
ath_tx_form_aggr(struct ath_softc *sc, struct ath_txq *txq, struct ath_atx_tid *tid, struct list_head *bf_q, struct ath_buf *bf_first, struct sk_buff_head *tid_q, int *aggr_len) { #define PADBYTES(_len) ((4 - ((_len) % 4)) % 4) struct ath_buf *bf = bf_first, *bf_prev = NULL; int nframes = 0, ndelim; u16 agg...
0
[ "CWE-362", "CWE-241" ]
linux
21f8aaee0c62708654988ce092838aa7df4d25d8
311,483,724,815,663,320,000,000,000,000,000,000,000
83
ath9k: protect tid->sched check We check tid->sched without a lock taken on ath_tx_aggr_sleep(). That is race condition which can result of doing list_del(&tid->list) twice (second time with poisoned list node) and cause crash like shown below: [424271.637220] BUG: unable to handle kernel paging request at 00100104 [...
str_lower_case_match(OnigEncoding enc, int case_fold_flag, const UChar* t, const UChar* tend, const UChar* p, const UChar* end) { int lowlen; UChar *q, lowbuf[ONIGENC_MBC_CASE_FOLD_MAXLEN]; while (t < tend) { if (p >= end) return 0; lowlen = ONIGENC_MBC_CASE_FOLD...
0
[ "CWE-125" ]
oniguruma
0463e21432515631a9bc925ce5eb95b097c73719
312,718,327,483,394,500,000,000,000,000,000,000,000
20
fix #164: Integer overflow related to reg->dmax in search_in_range()
zsetgray(i_ctx_t * i_ctx_p) { os_ptr op = osp; /* required by "push" macro */ float value; int code; /* Gather numeric operand value(s) */ code = float_params(op, 1, &value); if (code < 0) return code; /* Clamp numeric operand range(s) */ if (value < 0) value = 0; ...
0
[]
ghostpdl
b326a71659b7837d3acde954b18bda1a6f5e9498
31,986,247,598,197,077,000,000,000,000,000,000,000
33
Bug 699655: Properly check the return value.... ...when getting a value from a dictionary