func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static int tg_cfs_schedulable_down(struct task_group *tg, void *data) { struct cfs_schedulable_data *d = data; struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; s64 quota = 0, parent_quota = -1; if (!tg->parent) { quota = RUNTIME_INF; } else { struct cfs_bandwidth *parent_b = &tg->parent->cfs_bandwidth; qu...
0
[ "CWE-119" ]
linux
29d6455178a09e1dc340380c582b13356227e8df
18,949,670,751,942,911,000,000,000,000,000,000,000
27
sched: panic on corrupted stack end Until now, hitting this BUG_ON caused a recursive oops (because oops handling involves do_exit(), which calls into the scheduler, which in turn raises an oops), which caused stuff below the stack to be overwritten until a panic happened (e.g. via an oops in interrupt context, cause...
QPDF::setOutputStreams(std::ostream* out, std::ostream* err) { this->out_stream = out ? out : &std::cout; this->err_stream = err ? err : &std::cerr; }
0
[ "CWE-399", "CWE-835" ]
qpdf
701b518d5c56a1449825a3a37a716c58e05e1c3e
332,139,909,226,474,880,000,000,000,000,000,000,000
5
Detect recursion loops resolving objects (fixes #51) During parsing of an object, sometimes parts of the object have to be resolved. An example is stream lengths. If such an object directly or indirectly points to the object being parsed, it can cause an infinite loop. Guard against all cases of re-entrant resolution ...
dns_run_resolution(struct dns_resolution *resolution) { struct dns_resolvers *resolvers = resolution->resolvers; int query_id, i; /* Avoid sending requests for resolutions that don't yet have an * hostname, ie resolutions linked to servers that do not yet have an * fqdn */ if (!resolution->hostname_dn) retu...
0
[ "CWE-125" ]
haproxy
efbbdf72992cd20458259962346044cafd9331c0
10,576,415,072,303,012,000,000,000,000,000,000,000
44
BUG: dns: Prevent out-of-bounds read in dns_validate_dns_response() We need to make sure that the record length is not making us read past the end of the data we received. Before this patch we could for example read the 16 bytes corresponding to an AAAA record from the non-initialized part of the buffer, possibly acce...
__releases(&hb->lock) { __queue_me(q, hb); spin_unlock(&hb->lock); }
0
[ "CWE-190" ]
linux
fbe0e839d1e22d88810f3ee3e2f1479be4c0aa4a
211,364,212,340,841,900,000,000,000,000,000,000,000
5
futex: Prevent overflow by strengthen input validation UBSAN reports signed integer overflow in kernel/futex.c: UBSAN: Undefined behaviour in kernel/futex.c:2041:18 signed integer overflow: 0 - -2147483648 cannot be represented in type 'int' Add a sanity check to catch negative values of nr_wake and nr_requeue. ...
bool mysql_install_plugin(THD *thd, const LEX_STRING *name, const LEX_STRING *dl_arg) { TABLE_LIST tables; TABLE *table; LEX_STRING dl= *dl_arg; bool error; int argc=orig_argc; char **argv=orig_argv; unsigned long event_class_mask[MYSQL_AUDIT_CLASS_MASK_SIZE] = { MYSQL_AUDIT_GE...
0
[ "CWE-416" ]
server
c05fd700970ad45735caed3a6f9930d4ce19a3bd
97,846,760,301,658,470,000,000,000,000,000,000,000
86
MDEV-26323 use-after-poison issue of MariaDB server
S3BootScriptSaveMemWrite ( IN S3_BOOT_SCRIPT_LIB_WIDTH Width, IN UINT64 Address, IN UINTN Count, IN VOID *Buffer ) { UINT8 Length; UINT8 *Script; UINT8 ...
0
[ "CWE-787" ]
edk2
322ac05f8bbc1bce066af1dabd1b70ccdbe28891
3,995,905,604,155,880,400,000,000,000,000,000,000
43
MdeModulePkg/PiDxeS3BootScriptLib: Fix potential numeric truncation (CVE-2019-14563) REF:https://bugzilla.tianocore.org/show_bug.cgi?id=2001 For S3BootScriptLib APIs: S3BootScriptSaveIoWrite S3BootScriptSaveMemWrite S3BootScriptSavePciCfgWrite S3BootScriptSavePciCfg2Write S3BootScriptSaveSmbusExecute S3BootScriptSav...
long do_mount(const char *dev_name, const char __user *dir_name, const char *type_page, unsigned long flags, void *data_page) { struct path path; int retval = 0; int mnt_flags = 0; /* Discard magic */ if ((flags & MS_MGC_MSK) == MS_MGC_VAL) flags &= ~MS_MGC_MSK; /* Basic sanity checks */ if (data_page) (...
0
[ "CWE-400", "CWE-703" ]
linux
d29216842a85c7970c536108e093963f02714498
16,277,836,641,984,010,000,000,000,000,000,000,000
77
mnt: Add a per mount namespace limit on the number of mounts CAI Qian <caiqian@redhat.com> pointed out that the semantics of shared subtrees make it possible to create an exponentially increasing number of mounts in a mount namespace. mkdir /tmp/1 /tmp/2 mount --make-rshared / for i in $(seq 1 20) ; do mo...
SaveContext* prev() { return prev_; }
0
[ "CWE-20", "CWE-119" ]
node
530af9cb8e700e7596b3ec812bad123c9fa06356
323,354,181,072,966,470,000,000,000,000,000,000,000
1
v8: Interrupts must not mask stack overflow. Backport of https://codereview.chromium.org/339883002
static int wait_for_packet(struct sock *sk, int *err, long *timeo_p) { int error; DEFINE_WAIT_FUNC(wait, receiver_wake_function); prepare_to_wait_exclusive(sk_sleep(sk), &wait, TASK_INTERRUPTIBLE); /* Socket errors? */ error = sock_error(sk); if (error) goto out_err; if (!skb_queue_empty(&sk->sk_receive_que...
0
[]
linux-2.6
77c1090f94d1b0b5186fb13a1b71b47b1343f87f
306,978,949,461,991,930,000,000,000,000,000,000,000
46
net: fix infinite loop in __skb_recv_datagram() Tommi was fuzzing with trinity and reported the following problem : commit 3f518bf745 (datagram: Add offset argument to __skb_recv_datagram) missed that a raw socket receive queue can contain skbs with no payload. We can loop in __skb_recv_datagram() with MSG_PEEK mode...
static void *AcquireLZMAMemory(void *context,size_t items,size_t size) { (void) context; return((void *) AcquireQuantumMemory((size_t) items,(size_t) size)); }
0
[ "CWE-617" ]
ImageMagick
5d95b4c24a964114e2b1ae85c2b36769251ed11d
30,261,723,301,498,346,000,000,000,000,000,000,000
5
https://github.com/ImageMagick/ImageMagick/issues/500
static int cgroup_cpu_pressure_show(struct seq_file *seq, void *v) { struct cgroup *cgrp = seq_css(seq)->cgroup; struct psi_group *psi = cgroup_ino(cgrp) == 1 ? &psi_system : &cgrp->psi; return psi_show(seq, psi, PSI_CPU); }
0
[ "CWE-416" ]
linux
a06247c6804f1a7c86a2e5398a4c1f1db1471848
12,826,294,075,637,886,000,000,000,000,000,000,000
7
psi: Fix uaf issue when psi trigger is destroyed while being polled With write operation on psi files replacing old trigger with a new one, the lifetime of its waitqueue is totally arbitrary. Overwriting an existing trigger causes its waitqueue to be freed and pending poll() will stumble on trigger->event_wait which w...
static void swap_guid(ff_asf_guid guid) { FFSWAP(unsigned char, guid[0], guid[3]); FFSWAP(unsigned char, guid[1], guid[2]); FFSWAP(unsigned char, guid[4], guid[5]); FFSWAP(unsigned char, guid[6], guid[7]); }
0
[ "CWE-119", "CWE-787" ]
FFmpeg
2b46ebdbff1d8dec7a3d8ea280a612b91a582869
282,825,512,353,517,100,000,000,000,000,000,000,000
7
avformat/asfdec_o: Check size_bmp more fully Fixes: integer overflow and out of array access Fixes: asfo-crash-46080c4341572a7137a162331af77f6ded45cbd7 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ico_read_info (FILE *fp, gint icon_count) { gint i; IcoFileEntry *entries; IcoLoadInfo *info; /* read icon entries */ entries = g_new (IcoFileEntry, icon_count); if ( fread (entries, sizeof(IcoFileEntry), icon_count, fp) <= 0 ) { g_free (entries); return NULL...
1
[]
gimp
323ecb73f7bf36788fb7066eb2d6678830cd5de7
64,746,658,914,187,460,000,000,000,000,000,000,000
37
Bug 773233 - CVE-2007-3126 - Gimp 2.3.14 allows context-dependent attackers... ...to cause a denial of service (crash) via an ICO file with an InfoHeader containing a Height of zero Add some error handling to ico-load.c and bail out on zero width or height icons. Also some formatting cleanup. (cherry picked from com...
compressVerify (const unsigned short raw[], int n, const unsigned int dekHash) { Array <char> compressed (3 * n + 4 * 65536); int nCompressed = hufCompress (raw, n, compressed); // // This hash algorithm proposed by Donald E. Knuth in // The Art Of Computer Pr...
0
[ "CWE-190" ]
openexr
51a92d67f53c08230734e74564c807043cbfe41e
99,641,112,191,037,700,000,000,000,000,000,000,000
45
check for valid Huf code lengths (#849) * check for valid Huf code lengths * test non-fast huf decoder in testHuf Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
int SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) { int ret; if (pkey == NULL) { SSLerr(SSL_F_SSL_USE_PRIVATEKEY,ERR_R_PASSED_NULL_PARAMETER); return(0); } if (!ssl_cert_inst(&ssl->cert)) { SSLerr(SSL_F_SSL_USE_PRIVATEKEY,ERR_R_MALLOC_FAILURE); return(0); } ret=ssl_set_pkey(ssl->cert,pkey); return...
0
[]
openssl
0ffa49970b9f8ea66b43ce2eb7f8fd523b65bc2c
18,702,036,166,335,194,000,000,000,000,000,000,000
17
Backport support for fixed DH ciphersuites (from HEAD)
report_child_exit_status (int exitc, int setup_finished_fd) { ssize_t s; char data[2]; cleanup_free char *output = NULL; if (opt_json_status_fd == -1 || setup_finished_fd == -1) return; s = TEMP_FAILURE_RETRY (read (setup_finished_fd, data, sizeof data)); if (s == -1 && errno != EAGAIN) die_with_er...
0
[ "CWE-20", "CWE-269" ]
bubblewrap
efc89e3b939b4bde42c10f065f6b7b02958ed50e
36,556,173,059,394,953,000,000,000,000,000,000,000
20
Don't create our own temporary mount point for pivot_root An attacker could pre-create /tmp/.bubblewrap-$UID and make it a non-directory, non-symlink (in which case mounting our tmpfs would fail, causing denial of service), or make it a symlink under their control (potentially allowing bad things if the protected_syml...
static int ip_vs_info_open(struct inode *inode, struct file *file) { return seq_open_net(inode, file, &ip_vs_info_seq_ops, sizeof(struct ip_vs_iter)); }
0
[ "CWE-200" ]
linux
2d8a041b7bfe1097af21441cb77d6af95f4f4680
165,100,828,524,310,410,000,000,000,000,000,000,000
5
ipvs: fix info leak in getsockopt(IP_VS_SO_GET_TIMEOUT) If at least one of CONFIG_IP_VS_PROTO_TCP or CONFIG_IP_VS_PROTO_UDP is not set, __ip_vs_get_timeouts() does not fully initialize the structure that gets copied to userland and that for leaks up to 12 bytes of kernel stack. Add an explicit memset(0) before passing...
CommandSASL(Module* Creator, SimpleExtItem<SaslAuthenticator>& ext) : Command(Creator, "SASL", 2), authExt(ext) { this->flags_needed = FLAG_SERVERONLY; // should not be called by users }
0
[ "CWE-284", "CWE-264" ]
inspircd
74fafb7f11b06747f69f182ad5e3769b665eea7a
266,203,465,530,911,380,000,000,000,000,000,000,000
4
m_sasl: don't allow AUTHENTICATE with mechanisms with a space
void Curl_up_free(struct Curl_easy *data) { struct urlpieces *up = &data->state.up; Curl_safefree(up->scheme); Curl_safefree(up->hostname); Curl_safefree(up->port); Curl_safefree(up->user); Curl_safefree(up->password); Curl_safefree(up->options); Curl_safefree(up->path); Curl_safefree(up->query); cu...
0
[ "CWE-416" ]
curl
81d135d67155c5295b1033679c606165d4e28f3f
83,267,128,876,999,670,000,000,000,000,000,000,000
14
Curl_close: clear data->multi_easy on free to avoid use-after-free Regression from b46cfbc068 (7.59.0) CVE-2018-16840 Reported-by: Brian Carpenter (Geeknik Labs) Bug: https://curl.haxx.se/docs/CVE-2018-16840.html
WandPrivate void CLINoImageOperator(MagickCLI *cli_wand, const char *option,const char *arg1n,const char *arg2n) { const char /* percent escaped versions of the args */ *arg1, *arg2; #define _image_info (cli_wand->wand.image_info) #define _images (cli_wand->wand.images) #define _exception ...
0
[ "CWE-399", "CWE-401" ]
ImageMagick
4a334bbf5584de37c6f5a47c380a531c8c4b140a
264,190,072,851,029,660,000,000,000,000,000,000,000
478
https://github.com/ImageMagick/ImageMagick/issues/1623
int vnc_display_pw_expire(const char *id, time_t expires) { VncDisplay *vd = vnc_display_find(id); if (!vd) { return -EINVAL; } vd->expires = expires; return 0; }
0
[ "CWE-401" ]
qemu
6bf21f3d83e95bcc4ba35a7a07cc6655e8b010b0
210,915,539,662,543,150,000,000,000,000,000,000,000
11
vnc: fix memory leak when vnc disconnect Currently when qemu receives a vnc connect, it creates a 'VncState' to represent this connection. In 'vnc_worker_thread_loop' it creates a local 'VncState'. The connection 'VcnState' and local 'VncState' exchange data in 'vnc_async_encoding_start' and 'vnc_async_encoding_end'. ...
virt_to_phys_or_null_size(void *va, unsigned long size) { bool bad_size; if (!va) return 0; if (virt_addr_valid(va)) return virt_to_phys(va); /* * A fully aligned variable on the stack is guaranteed not to * cross a page bounary. Try to catch strings on the stack by * checking that 'size' is a power of...
0
[ "CWE-388" ]
tip
4e78921ba4dd0aca1cc89168f45039add4183f8e
184,814,910,561,034,870,000,000,000,000,000,000,000
21
efi/x86/Add missing error handling to old_memmap 1:1 mapping code The old_memmap flow in efi_call_phys_prolog() performs numerous memory allocations, and either does not check for failure at all, or it does but fails to propagate it back to the caller, which may end up calling into the firmware with an incomplete 1:1 ...
unknowntag_start(struct archive_read *a, struct xar *xar, const char *name) { struct unknown_tag *tag; tag = malloc(sizeof(*tag)); if (tag == NULL) { archive_set_error(&a->archive, ENOMEM, "Out of memory"); return (ARCHIVE_FATAL); } tag->next = xar->unknowntags; archive_string_init(&(tag->name)); archive_st...
0
[ "CWE-125" ]
libarchive
fa7438a0ff4033e4741c807394a9af6207940d71
291,467,853,468,068,100,000,000,000,000,000,000,000
22
Do something sensible for empty strings to make fuzzers happy.
check_nomodeline(char_u **argp) { if (STRNCMP(*argp, "<nomodeline>", 12) == 0) { *argp = skipwhite(*argp + 12); return FALSE; } return TRUE; }
0
[ "CWE-200", "CWE-668" ]
vim
5a73e0ca54c77e067c3b12ea6f35e3e8681e8cf8
40,734,551,047,026,560,000,000,000,000,000,000,000
9
patch 8.0.1263: others can read the swap file if a user is careless Problem: Others can read the swap file if a user is careless with his primary group. Solution: If the group permission allows for reading but the world permissions doesn't, make sure the group is right.
ProviderVerifierImpl(const std::string& provider_name, const AuthFactory& factory, const JwtProvider& provider, const BaseVerifierImpl* parent) : BaseVerifierImpl(parent), auth_factory_(factory), extractor_(Extractor::create(provider)), provider_name_(provider_name) {}
0
[ "CWE-303", "CWE-703" ]
envoy
ea39e3cba652bcc4b11bb0d5c62b017e584d2e5a
188,814,695,609,119,200,000,000,000,000,000,000,000
4
jwt_authn: fix a bug where JWT with wrong issuer is allowed in allow_missing case (#15194) [jwt] When allow_missing is used inside RequiresAny, the requests with JWT with wrong issuer are accepted. This is a bug, allow_missing should only allow requests without any JWT. This change fixed the above issue by preserving ...
bool DocumentSourceMatch::isTextQuery(const BSONObj& query) { BSONForEach(e, query) { const StringData fieldName = e.fieldNameStringData(); if (fieldName == "$text"_sd) return true; if (e.isABSONObj() && isTextQuery(e.Obj())) return true; } return false; }
0
[]
mongo
b3107d73a2c58d7e016b834dae0acfd01c0db8d7
312,689,607,947,125,770,000,000,000,000,000,000,000
11
SERVER-59299: Flatten top-level nested $match stages in doOptimizeAt (cherry picked from commit 4db5eceda2cff697f35c84cd08232bac8c33beec)
int HeaderMapWrapper::luaRemove(lua_State* state) { checkModifiable(state); const char* key = luaL_checkstring(state, 2); headers_.remove(Http::LowerCaseString(key)); return 0; }
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
266,991,803,278,555,400,000,000,000,000,000,000,000
7
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
mm_answer_audit_command(int socket, Buffer *m) { u_int len; char *cmd; debug3("%s entering", __func__); cmd = buffer_get_string(m, &len); /* sanity check command, if so how? */ audit_run_command(cmd); free(cmd); return (0); }
0
[ "CWE-20", "CWE-200" ]
openssh-portable
d4697fe9a28dab7255c60433e4dd23cf7fce8a8b
259,480,776,157,491,230,000,000,000,000,000,000,000
12
Don't resend username to PAM; it already has it. Pointed out by Moritz Jodeit; ok dtucker@
static int on_send_data_cb(nghttp2_session *ngh2, nghttp2_frame *frame, const uint8_t *framehd, size_t length, nghttp2_data_source *source, void *userp) { apr_status_t status =...
0
[ "CWE-770" ]
mod_h2
dd05d49abe0f67512ce9ed5ba422d7711effecfb
268,874,291,995,279,000,000,000,000,000,000,000,000
85
* fixes Timeout vs. KeepAliveTimeout behaviour, see PR 63534 (for trunk now, mpm event backport to 2.4.x up for vote). * Fixes stream cleanup when connection throttling is in place. * Counts stream resets by client on streams initiated by client as cause for connection throttling. * Header length checks are no...
static inline void f2fs_unlock_all(struct f2fs_sb_info *sbi) { up_write(&sbi->cp_rwsem); }
0
[ "CWE-476" ]
linux
4969c06a0d83c9c3dc50b8efcdc8eeedfce896f6
237,072,114,799,038,930,000,000,000,000,000,000,000
4
f2fs: support swap file w/ DIO Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
get_system_info(void) { FILE* fp; static char buf[1000]; fp = popen("uname -a", "r"); if (fp == NULL) return NULL; fgets(buf, sizeof(buf), fp); pclose(fp); return buf; }
0
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
52,917,403,371,804,720,000,000,000,000,000,000,000
12
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
void ElectronBrowserClient::ExposeInterfacesToRenderer( service_manager::BinderRegistry* registry, blink::AssociatedInterfaceRegistry* associated_registry, content::RenderProcessHost* render_process_host) { #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) associated_registry->AddInterface(base::BindRepeating( ...
0
[]
electron
e9fa834757f41c0b9fe44a4dffe3d7d437f52d34
36,018,448,551,955,205,000,000,000,000,000,000,000
12
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 ...
static void FS_Startup( const char *gameName ) { const char *homePath; Com_Printf( "----- FS_Startup -----\n" ); fs_packFiles = 0; fs_debug = Cvar_Get( "fs_debug", "0", 0 ); fs_basepath = Cvar_Get ("fs_basepath", Sys_DefaultInstallPath(), CVAR_INIT|CVAR_PROTECTED ); fs_basegame = Cvar_Get ("fs_basegame", "", C...
0
[ "CWE-269" ]
ioq3
376267d534476a875d8b9228149c4ee18b74a4fd
186,141,143,809,549,500,000,000,000,000,000,000,000
105
Don't load .pk3s as .dlls, and don't load user config files from .pk3s.
PHP_METHOD(PharFileInfo, decompress) { char *error; PHAR_ENTRY_OBJECT(); if (zend_parse_parameters_none() == FAILURE) { return; } if (entry_obj->ent.entry->is_dir) { zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, \ "Phar entry is a directory, cannot set compression"); \ return; } ...
0
[ "CWE-119" ]
php-src
13ad4d3e971807f9a58ab5933182907dc2958539
160,081,475,888,665,920,000,000,000,000,000,000,000
73
Fix bug #71354 - remove UMR when size is 0
inline sql_mode_t sql_mode_for_dates(THD *thd) { return thd->variables.sql_mode & (MODE_NO_ZERO_DATE | MODE_NO_ZERO_IN_DATE | MODE_INVALID_DATES); }
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
75,298,604,387,502,350,000,000,000,000,000,000,000
5
MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob the bug was that in_vector array in Item_func_in was allocated in the statement arena, not in the table->expr_arena. revert part of the 5acd391e8b2d. Instead, change the arena correctly in fix_all_session_vcol_exprs(). Remove TABLE_ARENA, t...
static int __netdev_upper_dev_link(struct net_device *dev, struct net_device *upper_dev, bool master, void *private) { struct netdev_adjacent *i, *j, *to_i, *to_j; int ret = 0; ASSERT_RTNL(); if (dev == upper_dev) return -EBUSY; /* To prevent loops, check if dev is not upper device to upper_dev...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
135,951,689,329,711,670,000,000,000,000,000,000,000
100
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...
void vnc_hextile_set_pixel_conversion(VncState *vs, int generic) { if (!generic) { switch (vs->ds->surface->pf.bits_per_pixel) { case 8: vs->hextile.send_tile = send_hextile_tile_8; break; case 16: vs->hextile.send_tile = send_hextile_t...
1
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
334,573,614,575,755,000,000,000,000,000,000,000,000
28
pixman/vnc: use pixman images in vnc. The vnc code uses *three* DisplaySurfaces: First is the surface of the actual QemuConsole, usually the guest screen, but could also be a text console (monitor/serial reachable via Ctrl-Alt-<nr> keys). This is left as-is. Second is the current server's view of the screen content...
static int flashsv_decode_block(AVCodecContext *avctx, AVPacket *avpkt, GetBitContext *gb, int block_size, int width, int height, int x_pos, int y_pos, int blk_idx) { struct FlashSVContext *s = avctx->priv_data; uint...
0
[ "CWE-20" ]
FFmpeg
880c73cd76109697447fbfbaa8e5ee5683309446
179,011,043,118,380,500,000,000,000,000,000,000,000
59
avcodec/flashsv: check diff_start/height Fixes out of array accesses Fixes Ticket2844 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static bool is_negative(T value) { return value < 0; }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
262,726,993,947,337,980,000,000,000,000,000,000,000
1
Fix segfault on complex pointer formatting (#642)
restart_job_control () { if (shell_tty != -1) close (shell_tty); initialize_job_control (0); }
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
68,178,106,299,899,020,000,000,000,000,000,000,000
6
bash-4.4-rc2 release
static int rxrpc_preparse_xdr(struct key_preparsed_payload *prep) { const __be32 *xdr = prep->data, *token; const char *cp; unsigned int len, paddedlen, loop, ntoken, toklen, sec_ix; size_t datalen = prep->datalen; int ret; _enter(",{%x,%x,%x,%x},%zu", ntohl(xdr[0]), ntohl(xdr[1]), ntohl(xdr[2]), ntohl(x...
0
[ "CWE-190" ]
linux
5f2f97656ada8d811d3c1bef503ced266fcd53a0
323,609,787,361,538,900,000,000,000,000,000,000,000
119
rxrpc: Fix several cases where a padded len isn't checked in ticket decode This fixes CVE-2017-7482. When a kerberos 5 ticket is being decoded so that it can be loaded into an rxrpc-type key, there are several places in which the length of a variable-length field is checked to make sure that it's not going to overrun...
bool chunking() const { return chunking_; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
13,079,707,640,833,890,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
z_jbig2decode(i_ctx_t * i_ctx_p) { os_ptr op = osp; ref *sop = NULL; s_jbig2_global_data_t *gref; stream_jbig2decode_state state; /* Extract the global context reference, if any, from the parameter dictionary and embed it in our stream state. The original object ref is under the JBIG2...
1
[ "CWE-704" ]
ghostpdl
ef252e7dc214bcbd9a2539216aab9202848602bb
196,694,238,274,389,240,000,000,000,000,000,000,000
27
Bug #700168 - add a type check Bug #700168 "Type confusion in JBIG2Decode" The code was assuming that .jbig2globalctx was a structure allocated by the graphics library, without checking. Add a check to see that it is a structure and that its the correct type of structure.
PGPool OSD::_get_pool(int id, OSDMapRef createmap) { if (!createmap->have_pg_pool(id)) { dout(5) << __func__ << ": the OSDmap does not contain a PG pool with id = " << id << dendl; ceph_abort(); } PGPool p = PGPool(cct, createmap, id); dout(10) << "_get_pool " << p.id << dendl; return p; }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
45,385,055,580,892,430,000,000,000,000,000,000,000
13
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
xfs_attr3_leaf_getvalue( struct xfs_buf *bp, struct xfs_da_args *args) { struct xfs_attr_leafblock *leaf; struct xfs_attr3_icleaf_hdr ichdr; struct xfs_attr_leaf_entry *entry; struct xfs_attr_leaf_name_local *name_loc; struct xfs_attr_leaf_name_remote *name_rmt; int valuelen; leaf = bp->b_addr; xfs_attr3_...
0
[ "CWE-476" ]
linux
bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a
304,939,655,107,331,770,000,000,000,000,000,000,000
52
xfs: don't call xfs_da_shrink_inode with NULL bp xfs_attr3_leaf_create may have errored out before instantiating a buffer, for example if the blkno is out of range. In that case there is no work to do to remove it, and in fact xfs_da_shrink_inode will lead to an oops if we try. This also seems to fix a flaw where th...
mymain(void) { int ret; struct testChainData data; struct testLookupData data2; struct testPathCanonicalizeData data3; struct testPathRelativeBacking data4; struct testBackingParseData data5; virStorageSourcePtr chain2; /* short for chain->backingStore */ virStorageSourcePtr chain3; /* s...
0
[ "CWE-212" ]
libvirt
524de6cc35d3b222f0e940bb0fd027f5482572c5
170,089,631,547,918,630,000,000,000,000,000,000,000
1,041
virstoragetest: testBackingParse: Use VIR_DOMAIN_DEF_FORMAT_SECURE when formatting xml We want to format even the secure information in tests. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
ccss_property (CRDocHandler * a_handler, CRString * a_name, CRTerm * a_expr, gboolean a_important) { CSSUserData *user_data; gchar *name = NULL; size_t len = 0; g_return_if_fail (a_handler); user_data = (CSSUserData *) a_handler->app_data; if (a_name && a_expr && user_data->selector) { ...
0
[ "CWE-20" ]
librsvg
d1c9191949747f6dcfd207831d15dd4ba00e31f2
132,042,564,647,118,780,000,000,000,000,000,000,000
34
state: Store mask as reference Instead of immediately looking up the mask, store the reference and look it up on use.
static void kvm_ioapic_reset(struct kvm_ioapic *ioapic) { int i; cancel_delayed_work_sync(&ioapic->eoi_inject); for (i = 0; i < IOAPIC_NUM_PINS; i++) ioapic->redirtbl[i].fields.mask = 1; ioapic->base_address = IOAPIC_DEFAULT_BASE_ADDRESS; ioapic->ioregsel = 0; ioapic->irr = 0; ioapic->irr_delivered = 0; ioap...
0
[ "CWE-703", "CWE-125" ]
linux
81cdb259fb6d8c1c4ecfeea389ff5a73c07f5755
166,721,495,299,928,740,000,000,000,000,000,000,000
15
KVM: x86: fix out-of-bounds accesses of rtc_eoi map KVM was using arrays of size KVM_MAX_VCPUS with vcpu_id, but ID can be bigger that the maximal number of VCPUs, resulting in out-of-bounds access. Found by syzkaller: BUG: KASAN: slab-out-of-bounds in __apic_accept_irq+0xb33/0xb50 at addr [...] Write of size 1 ...
static int ZEND_FASTCALL ZEND_IS_NOT_IDENTICAL_SPEC_TMP_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); zend_free_op free_op1; zval *result = &EX_T(opline->result.u.var).tmp_var; is_identical_function(result, _get_zval_ptr_tmp(&opline->op1, EX(Ts), &free_op1 TSRMLS_CC), _get_zval_ptr_cv(&...
0
[]
php-src
ce96fd6b0761d98353761bf78d5bfb55291179fd
74,194,294,258,575,030,000,000,000,000,000,000,000
14
- fix #39863, do not accept paths with NULL in them. See http://news.php.net/php.internals/50191, trunk will have the patch later (adding a macro and/or changing (some) APIs. Patch by Rasmus
static void PreservePSDOpacityMask(Image *image,LayerInfo* layer_info, ExceptionInfo *exception) { char *key; RandomInfo *random_info; StringInfo *key_info; if (image->debug != MagickFalse) (void) LogMagickEvent(CoderEvent,GetMagickModule(), " preserving opacity mask"); random_info...
0
[ "CWE-399", "CWE-401" ]
ImageMagick
8a43abefb38c5e29138e1c9c515b313363541c06
79,428,252,036,048,290,000,000,000,000,000,000,000
29
https://github.com/ImageMagick/ImageMagick/issues/1451
struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family) { struct xfrm_state_afinfo *afinfo; if (unlikely(family >= NPROTO)) return NULL; rcu_read_lock(); afinfo = rcu_dereference(xfrm_state_afinfo[family]); if (unlikely(!afinfo)) rcu_read_unlock(); return afinfo; }
0
[ "CWE-416" ]
linux
dbb2483b2a46fbaf833cfb5deb5ed9cace9c7399
86,227,765,158,545,270,000,000,000,000,000,000,000
11
xfrm: clean up xfrm protocol checks In commit 6a53b7593233 ("xfrm: check id proto in validate_tmpl()") I introduced a check for xfrm protocol, but according to Herbert IPSEC_PROTO_ANY should only be used as a wildcard for lookup, so it should be removed from validate_tmpl(). And, IPSEC_PROTO_ANY is expected to only m...
static int segmented_read(struct x86_emulate_ctxt *ctxt, struct segmented_address addr, void *data, unsigned size) { int rc; ulong linear; rc = linearize(ctxt, addr, size, false, &linear); if (rc != X86EMUL_CONTINUE) return rc; return read_emulated(ctxt, linear, data, size); }
0
[]
kvm
e28ba7bb020f07193bc000453c8775e9d2c0dda7
145,038,736,722,429,470,000,000,000,000,000,000,000
13
KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests will crash (and 64bit guests may behave in a wrong way) for example by simply executing following nasm-demo-application: [bits 32] global _start SECTION .text _start: syscall (I tested it with winxp and linux ...
DLLIMPORT int cfg_setlist(cfg_t *cfg, const char *name, unsigned int nvalues, ...) { va_list ap; cfg_opt_t *opt = cfg_getopt(cfg, name); if (!opt || !is_set(CFGF_LIST, opt->flags)) { errno = EINVAL; return CFG_FAIL; } cfg_free_value(opt); va_start(ap, nvalues); cfg_addlist_internal(opt, nvalues, ap); va_e...
0
[]
libconfuse
d73777c2c3566fb2647727bb56d9a2295b81669b
215,499,405,682,784,350,000,000,000,000,000,000,000
17
Fix #163: unterminated username used with getpwnam() Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
read_mysql_variables_from_result(MYSQL_RES *mysql_result, mysql_variable *vars, bool vertical_result) { MYSQL_ROW row; mysql_variable *var; ut_ad(!vertical_result || mysql_num_fields(mysql_result) == 2); int rows_read = 0; if (vertical_result) { while ((row = mysql_fetch_row(mysql_result))) { ++rows_read; ...
0
[ "CWE-200" ]
percona-xtrabackup
7742f875bb289a874246fb4653b7cd9f14b588fe
35,391,834,231,759,937,000,000,000,000,000,000,000
43
PXB-2722 password is written into xtrabackup_info https://jira.percona.com/browse/PXB-2722 Analysis: password passed with -p option is written into backup tool_command in xtrabackup_info Fix: mask password before writting into xtrabackup_info
GF_Err gf_odf_write_descriptor(GF_BitStream *bs, GF_Descriptor *desc) { switch(desc->tag) { case GF_ODF_IOD_TAG : return gf_odf_write_iod(bs, (GF_InitialObjectDescriptor *)desc); case GF_ODF_ESD_TAG : return gf_odf_write_esd(bs, (GF_ESD *)desc); case GF_ODF_DCD_TAG : return gf_odf_write_dcd(bs, (GF_DecoderCon...
0
[ "CWE-787" ]
gpac
4e56ad72ac1afb4e049a10f2d99e7512d7141f9d
237,100,867,371,593,070,000,000,000,000,000,000,000
92
fixed #2216
mode_t MirrorJob::get_mode_mask() { mode_t mode_mask=0; if(!FlagSet(ALLOW_SUID)) mode_mask|=S_ISUID|S_ISGID; if(!FlagSet(NO_UMASK)) { if(target_is_local) { mode_t u=umask(022); // get+set umask(u); // retore mode_mask|=u; } else mode_mask|=022; // sane default. ...
0
[ "CWE-20", "CWE-401" ]
lftp
a27e07d90a4608ceaf928b1babb27d4d803e1992
136,009,336,711,029,650,000,000,000,000,000,000,000
18
mirror: prepend ./ to rm and chmod arguments to avoid URL recognition (fix #452)
static int acurite_986_decode(r_device *decoder, bitbuffer_t *bitbuffer) { int const browlen = 5; uint8_t *bb, sensor_num, status, crc, crcc; uint8_t br[8]; int8_t tempf; // Raw Temp is 8 bit signed Fahrenheit uint16_t sensor_id, valid_cnt = 0; char sensor_type; char *channel_str; int ba...
0
[ "CWE-703" ]
rtl_433
37455483889bd1c641bdaafc493d1cc236b74904
257,769,237,696,529,180,000,000,000,000,000,000,000
97
Fix overflow in Acurite-00275rm (closes #2012)
TEST_P(ProtocolIntegrationTest, 200HeadResponseWithContentLength) { initialize(); codec_client_ = makeHttpConnection(lookupPort("http")); auto response = codec_client_->makeHeaderOnlyRequest( Http::TestRequestHeaderMapImpl{{":method", "HEAD"}, {":path", "/test/long/url"}...
0
[ "CWE-416" ]
envoy
148de954ed3585d8b4298b424aa24916d0de6136
282,576,099,122,646,400,000,000,000,000,000,000,000
19
CVE-2021-43825 Response filter manager crash Signed-off-by: Yan Avlasov <yavlasov@google.com>
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(ULONG* pcPackages, PSecPkgInfoW* ppPackageInfo) { int index; size_t size; UINT32 cPackages; SecPkgInfoW* pPackageInfo; cPackages = sizeof(SecPkgInfoW_LIST) / sizeof(*(SecPkgInfoW_LIST)); size = sizeof(SecPkgInfoW) * cPackages; pPackageInfo = (SecPkgInfoW*) s...
0
[ "CWE-476", "CWE-125" ]
FreeRDP
0773bb9303d24473fe1185d85a424dfe159aff53
213,442,982,409,643,300,000,000,000,000,000,000,000
27
nla: invalidate sec handle after creation If sec pointer isn't invalidated after creation it is not possible to check if the upper and lower pointers are valid. This fixes a segfault in the server part if the client disconnects before the authentication was finished.
PHP_FUNCTION(imagerectangle) { zval *IM; zend_long x1, y1, x2, y2, col; gdImagePtr im; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlllll", &IM, &x1, &y1, &x2, &y2, &col) == FAILURE) { return; } if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) { RETURN_FALSE; } gdImageRect...
0
[ "CWE-787" ]
php-src
28022c9b1fd937436ab67bb3d61f652c108baf96
152,578,409,641,872,330,000,000,000,000,000,000,000
17
Fix bug#72697 - select_colors write out-of-bounds (cherry picked from commit b6f13a5ef9d6280cf984826a5de012a32c396cd4) Conflicts: ext/gd/gd.c
BSONObj operand1() { return BSON("" << numeric_limits<int>::max()); }
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
318,045,053,393,576,160,000,000,000,000,000,000,000
3
SERVER-38070 fix infinite loop in agg expression
dissect_kafka_elect_leaders_request_topic(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version) { proto_item *subti, *subsubti; proto_tree *subtree, *subsubtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ...
0
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
6,448,972,303,125,661,000,000,000,000,000,000,000
25
Kafka: Limit our decompression size. Don't assume that the Internet has our best interests at heart when it gives us the size of our decompression buffer. Assign an arbitrary limit of 50 MB. This fixes #16739 in that it takes care of ** (process:17681): WARNING **: 20:03:07.440: Dissector bug, protocol Kafka, in pac...
GF_EXPORT GF_Err gf_isom_apple_enum_tag(GF_ISOFile *mov, u32 idx, GF_ISOiTunesTag *out_tag, const u8 **data, u32 *data_len, u64 *out_int_val, u32 *out_int_val2, u32 *out_flags) { u32 i, child_index; GF_ListItemBox *info; GF_ItemListBox *ilst; GF_MetaBox *meta; GF_DataBox *dbox = NULL; u32 itype, tag_val; s32 tag...
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
328,505,991,615,475,480,000,000,000,000,000,000,000
130
fixed #1706
struct file *fget_raw(unsigned int fd) { return __fget(fd, 0, 1); }
0
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
249,930,183,169,841,620,000,000,000,000,000,000,000
4
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...
int smb3_validate_negotiate(const unsigned int xid, struct cifs_tcon *tcon) { int rc = 0; struct validate_negotiate_info_req vneg_inbuf; struct validate_negotiate_info_rsp *pneg_rsp; u32 rsplen; cifs_dbg(FYI, "validate negotiate\n"); /* * validation ioctl must be signed, so no point sending this if we * can...
0
[ "CWE-476" ]
linux
cabfb3680f78981d26c078a26e5c748531257ebb
45,738,316,819,872,000,000,000,000,000,000,000,000
75
CIFS: Enable encryption during session setup phase In order to allow encryption on SMB connection we need to exchange a session key and generate encryption and decryption keys. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
static int vnc_refresh_server_surface(VncDisplay *vd) { int width = pixman_image_get_width(vd->guest.fb); int height = pixman_image_get_height(vd->guest.fb); int y; uint8_t *guest_row0 = NULL, *server_row0; int guest_stride = 0, server_stride; int cmp_bytes; VncState *vs; int has_dirty =...
1
[ "CWE-125" ]
qemu
bea60dd7679364493a0d7f5b54316c767cf894ef
233,754,734,555,049,500,000,000,000,000,000,000,000
86
ui/vnc: fix potential memory corruption issues this patch makes the VNC server work correctly if the server surface and the guest surface have different sizes. Basically the server surface is adjusted to not exceed VNC_MAX_WIDTH x VNC_MAX_HEIGHT and additionally the width is rounded up to multiple of VNC_DIRTY_PIXELS...
broadcast_timeout(void *arg) { BroadcastDestination *destination; NTP_int64 orig_ts; struct timeval recv_ts; destination = ARR_GetElement(broadcasts, (long)arg); orig_ts.hi = 0; orig_ts.lo = 0; recv_ts.tv_sec = 0; recv_ts.tv_usec = 0; transmit_packet(MODE_BROADCAST, 6 /* FIXME: should this be log2(...
0
[]
chrony
a78bf9725a7b481ebff0e0c321294ba767f2c1d8
334,900,453,881,958,850,000,000,000,000,000,000,000
21
ntp: restrict authentication of server/peer to specified key When a server/peer was specified with a key number to enable authentication with a symmetric key, packets received from the server/peer were accepted if they were authenticated with any of the keys contained in the key file and not just the specified key. T...
xmlRngVErrMemory(xmlRelaxNGValidCtxtPtr ctxt, const char *extra) { xmlStructuredErrorFunc schannel = NULL; xmlGenericErrorFunc channel = NULL; void *data = NULL; if (ctxt != NULL) { if (ctxt->serror != NULL) schannel = ctxt->serror; else channel = ctxt->error; data = ctxt->us...
0
[ "CWE-134" ]
libxml2
502f6a6d08b08c04b3ddfb1cd21b2f699c1b7f5b
118,372,042,732,785,280,000,000,000,000,000,000,000
26
More format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 adds a new xmlEscapeFormatString() function to escape composed format strings
TORRENT_TEST(gzip) { std::vector<char> zipped; error_code ec; load_file(combine_path("..", "zeroes.gz"), zipped, ec, 1000000); if (ec) fprintf(stderr, "failed to open file: (%d) %s\n", ec.value() , ec.message().c_str()); TEST_CHECK(!ec); std::vector<char> inflated; inflate_gzip(&zipped[0], zipped.size(), infl...
1
[ "CWE-20" ]
libtorrent
debf3c6e3688aab8394fe5c47737625faffe6f9e
185,965,949,769,921,300,000,000,000,000,000,000,000
20
update puff.c for gzip inflation (#1022) update puff.c for gzip inflation
int Segment::WriteFramesAll() { if (frames_ == NULL) return 0; if (cluster_list_size_ < 1) return -1; Cluster* const cluster = cluster_list_[cluster_list_size_ - 1]; if (!cluster) return -1; for (int32_t i = 0; i < frames_size_; ++i) { Frame*& frame = frames_[i]; // TODO(jzern/vigneshv...
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
195,706,879,499,623,330,000,000,000,000,000,000,000
40
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
int PE_(r_bin_pe_get_image_size)(struct PE_(r_bin_pe_obj_t)* bin) { return bin->nt_headers->optional_header.SizeOfImage; }
0
[ "CWE-125" ]
radare2
4e1cf0d3e6f6fe2552a269def0af1cd2403e266c
338,088,145,548,479,370,000,000,000,000,000,000,000
3
Fix crash in pe
TEST(QuantizedUInt8PoolingOpTest, MaxPool) { // Choose the input ranges carefully so that the dequantized output matches // the results of the float model above. // Input Range[0, 15.9375] --> [Scale{0.0625}, zero_point{0}] QuantizedPoolingOpModel m( BuiltinOperator_MAX_POOL_2D, /*input=*/{TensorTyp...
0
[ "CWE-369" ]
tensorflow
5f7975d09eac0f10ed8a17dbb6f5964977725adc
168,206,259,329,307,460,000,000,000,000,000,000,000
19
Prevent another div by 0 in optimized pooling implementations TFLite PiperOrigin-RevId: 370800091 Change-Id: I2119352f57fb5ca4f2051e0e2d749403304a979b
issuerAndThisUpdateCheck( struct berval *in, struct berval *is, struct berval *tu, void *ctx ) { int numdquotes = 0; struct berval x = *in; struct berval ni = BER_BVNULL; /* Parse GSER format */ enum { HAVE_NONE = 0x0, HAVE_ISSUER = 0x1, HAVE_THISUPDATE = 0x2, HAVE_ALL = ( HAVE_ISSUER | HAVE_THISUPDAT...
1
[ "CWE-617" ]
openldap
3539fc33212b528c56b716584f2c2994af7c30b0
296,580,747,977,289,520,000,000,000,000,000,000,000
161
ITS#9454 fix issuerAndThisUpdateCheck
static void __mcheck_cpu_init_early(struct cpuinfo_x86 *c) { if (c->x86_vendor == X86_VENDOR_AMD) { mce_flags.overflow_recov = !!cpu_has(c, X86_FEATURE_OVERFLOW_RECOV); mce_flags.succor = !!cpu_has(c, X86_FEATURE_SUCCOR); mce_flags.smca = !!cpu_has(c, X86_FEATURE_SMCA); if (mce_flags.smca) { msr_ops.ctl...
0
[ "CWE-362" ]
linux
b3b7c4795ccab5be71f080774c45bbbcc75c2aaf
102,538,346,524,045,240,000,000,000,000,000,000,000
15
x86/MCE: Serialize sysfs changes The check_interval file in /sys/devices/system/machinecheck/machinecheck<cpu number> directory is a global timer value for MCE polling. If it is changed by one CPU, mce_restart() broadcasts the event to other CPUs to delete and restart the MCE polling timer and __mcheck_cpu_init_ti...
static int get_client_hello(SSL *s) { int i, n; unsigned long len; unsigned char *p; STACK_OF(SSL_CIPHER) *cs; /* a stack of SSL_CIPHERS */ STACK_OF(SSL_CIPHER) *cl; /* the ones we want to use */ STACK_OF(SSL_CIPHER) *prio, *allow; int z; /* * This is a bit of a hack to check f...
0
[ "CWE-20" ]
openssl
86f8fb0e344d62454f8daf3e15236b2b59210756
46,914,357,020,654,390,000,000,000,000,000,000,000
165
Fix reachable assert in SSLv2 servers. This assert is reachable for servers that support SSLv2 and export ciphers. Therefore, such servers can be DoSed by sending a specially crafted SSLv2 CLIENT-MASTER-KEY. Also fix s2_srvr.c to error out early if the key lengths are malformed. These lengths are sent unencrypted, so...
ast_for_arg(struct compiling *c, const node *n) { identifier name; expr_ty annotation = NULL; node *ch; arg_ty ret; assert(TYPE(n) == tfpdef || TYPE(n) == vfpdef); ch = CHILD(n, 0); name = NEW_IDENTIFIER(ch); if (!name) return NULL; if (forbidden_name(c, name, ch, 0)) ...
1
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
273,713,360,742,469,220,000,000,000,000,000,000,000
27
bpo-35766: Merge typed_ast back into CPython (GH-11645)
static int readSeparateTilesIntoBuffer (TIFF* in, uint8 *obuf, uint32 imagelength, uint32 imagewidth, uint32 tw, uint32 tl, uint16 spp, uint16 bps) { int i, status = 1, sample; int shift_width, bytes_per_pixel; ui...
0
[ "CWE-125" ]
libtiff
21d39de1002a5e69caa0574b2cc05d795d6fbfad
87,115,765,316,486,540,000,000,000,000,000,000,000
146
* tools/tiffcrop.c: fix multiple uint32 overflows in writeBufferToSeparateStrips(), writeBufferToContigTiles() and writeBufferToSeparateTiles() that could cause heap buffer overflows. Reported by Henri Salo from Nixu Corporation. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2592
void beginFetchPhase() { fassert(17191, !_authzManager->_isFetchPhaseBusy); _isThisGuardInFetchPhase = true; _authzManager->_isFetchPhaseBusy = true; _startGeneration = _authzManager->_cacheGeneration; _lock.unlock(); }
0
[ "CWE-613" ]
mongo
6dfb92b1299de04677d0bd2230e89a52eb01003c
59,885,575,418,764,630,000,000,000,000,000,000,000
7
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
transformAlterTableStmt(Oid relid, AlterTableStmt *stmt, const char *queryString) { Relation rel; ParseState *pstate; CreateStmtContext cxt; List *result; List *save_alist; ListCell *lcmd, *l; List *newcmds = NIL; bool skipValidation = true; AlterTableCmd *newcmd; RangeTblEntry *rte; ...
0
[ "CWE-94" ]
postgres
f52d2fbd8c62f667191b61228acf9d8aa53607b9
99,019,033,964,640,300,000,000,000,000,000,000,000
336
In extensions, don't replace objects not belonging to the extension. Previously, if an extension script did CREATE OR REPLACE and there was an existing object not belonging to the extension, it would overwrite the object and adopt it into the extension. This is problematic, first because the overwrite is probably uni...
void dn_dev_down(struct net_device *dev) { struct dn_dev *dn_db = rtnl_dereference(dev->dn_ptr); struct dn_ifaddr *ifa; if (dn_db == NULL) return; while ((ifa = rtnl_dereference(dn_db->ifa_list)) != NULL) { dn_dev_del_ifa(dn_db, &dn_db->ifa_list, 0); dn_dev_free_ifa(ifa); } dn_dev_delete(dev); }
0
[ "CWE-264" ]
net
90f62cf30a78721641e08737bda787552428061e
106,461,782,343,690,860,000,000,000,000,000,000,000
15
net: Use netlink_ns_capable to verify the permisions of netlink messages It is possible by passing a netlink socket to a more privileged executable and then to fool that executable into writing to the socket data that happens to be valid netlink message to do something that privileged executable did not intend to do. ...
ZEND_VM_HANDLER(86, ZEND_FETCH_RW, CONST|TMPVAR|CV, UNUSED, VAR_FETCH) { ZEND_VM_DISPATCH_TO_HELPER(zend_fetch_var_address_helper, type, BP_VAR_RW); }
0
[ "CWE-787" ]
php-src
f1ce8d5f5839cb2069ea37ff424fb96b8cd6932d
93,045,557,758,983,430,000,000,000,000,000,000,000
4
Fix #73122: Integer Overflow when concatenating strings We must avoid integer overflows in memory allocations, so we introduce an additional check in the VM, and bail out in the rare case of an overflow. Since the recent fix for bug #74960 still doesn't catch all possible overflows, we fix that right away.
parse_fcall_arguments(StringInfo msgBuf, struct fp_info * fip, FunctionCallInfo fcinfo) { int nargs; int i; int numAFormats; int16 *aformats = NULL; StringInfoData abuf; /* Get the argument format codes */ numAFormats = pq_getmsgint(msgBuf, 2); if (numAFormats > 0) { aformats = (int16 *) pal...
0
[ "CWE-89" ]
postgres
2b3a8b20c2da9f39ffecae25ab7c66974fbc0d3b
229,976,588,420,453,870,000,000,000,000,000,000,000
130
Be more careful to not lose sync in the FE/BE protocol. If any error occurred while we were in the middle of reading a protocol message from the client, we could lose sync, and incorrectly try to interpret a part of another message as a new protocol message. That will usually lead to an "invalid frontend message" erro...
static inline int __init dccp_mib_init(void) { dccp_statistics = alloc_percpu(struct dccp_mib); if (!dccp_statistics) return -ENOMEM; return 0; }
0
[ "CWE-416" ]
linux
69c64866ce072dea1d1e59a0d61e0f66c0dffb76
258,341,019,482,156,770,000,000,000,000,000,000,000
7
dccp: CVE-2017-8824: use-after-free in DCCP code Whenever the sock object is in DCCP_CLOSED state, dccp_disconnect() must free dccps_hc_tx_ccid and dccps_hc_rx_ccid and set to NULL. Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <...
com_nopager(String *buffer __attribute__((unused)), char *line __attribute__((unused))) { strmov(pager, "stdout"); opt_nopager=1; PAGER= stdout; tee_fprintf(stdout, "PAGER set to stdout\n"); return 0; }
0
[ "CWE-295" ]
mysql-server
b3e9211e48a3fb586e88b0270a175d2348935424
139,320,333,727,455,260,000,000,000,000,000,000,000
9
WL#9072: Backport WL#8785 to 5.5
void DataReaderImpl::InnerDataReaderListener::on_liveliness_changed( RTPSReader* /*reader*/, const fastrtps::LivelinessChangedStatus& status) { data_reader_->update_liveliness_status(status); DataReaderListener* listener = data_reader_->get_listener_for(StatusMask::liveliness_changed()); if ...
0
[ "CWE-284" ]
Fast-DDS
d2aeab37eb4fad4376b68ea4dfbbf285a2926384
115,873,048,511,542,260,000,000,000,000,000,000,000
15
check remote permissions (#1387) * Refs 5346. Blackbox test Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. one-way string compare Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. Do not add partition separator on last partition Signed-off-by: Iker Luengo <ikerluengo@e...
static void rng_backend_class_init(ObjectClass *oc, void *data) { UserCreatableClass *ucc = USER_CREATABLE_CLASS(oc); ucc->complete = rng_backend_complete; }
0
[ "CWE-119" ]
qemu
60253ed1e6ec6d8e5ef2efe7bf755f475dce9956
184,802,412,740,585,060,000,000,000,000,000,000,000
6
rng: add request queue support to rng-random Requests are now created in the RngBackend parent class and the code path is shared by both rng-egd and rng-random. This commit fixes the rng-random implementation which processed only one request at a time and simply discarded all but the most recent one. In the guest thi...
//! Insert n copies of the list \c list at position \c pos of the current list \newinstance. template<typename t> CImgList<T> get_insert(const unsigned int n, const CImgList<t>& list, const unsigned int pos=~0U,
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
31,517,797,552,538,963,000,000,000,000,000,000,000
4
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static void vmx_disable_intercept_for_msr(u32 msr, bool longmode_only) { if (!longmode_only) __vmx_disable_intercept_for_msr(vmx_msr_bitmap_legacy, msr, MSR_TYPE_R | MSR_TYPE_W); __vmx_disable_intercept_for_msr(vmx_msr_bitmap_longmode, msr, MSR_TYPE_R | MSR_TYPE_W); }
0
[]
kvm
a642fc305053cc1c6e47e4f4df327895747ab485
203,331,319,302,529,930,000,000,000,000,000,000,000
8
kvm: vmx: handle invvpid vm exit gracefully On systems with invvpid instruction support (corresponding bit in IA32_VMX_EPT_VPID_CAP MSR is set) guest invocation of invvpid causes vm exit, which is currently not handled and results in propagation of unknown exit to userspace. Fix this by installing an invvpid vm exit ...
static av_always_inline int filter_3800(APEPredictor *p, const int decoded, const int filter, const int delayA, const int delayB, const int start, const int shift) { int32_t predictionA, predic...
0
[ "CWE-125" ]
FFmpeg
ba4beaf6149f7241c8bd85fe853318c2f6837ad0
35,755,922,819,107,494,000,000,000,000,000,000,000
44
avcodec/apedec: Fix integer overflow Fixes: out of array access Fixes: PoC.ape and others Found-by: Bingchang, Liu@VARAS of IIE Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static void GTextFieldChanged(GTextField *gt,int src) { GEvent e; e.type = et_controlevent; e.w = gt->g.base; e.u.control.subtype = et_textchanged; e.u.control.g = &gt->g; e.u.control.u.tf_changed.from_pulldown = src; if ( gt->g.handle_controlevent != NULL ) (gt->g.handle_controlevent)(&gt...
0
[ "CWE-119", "CWE-787" ]
fontforge
626f751752875a0ddd74b9e217b6f4828713573c
98,040,305,594,331,140,000,000,000,000,000,000,000
13
Warn users before discarding their unsaved scripts (#3852) * Warn users before discarding their unsaved scripts This closes #3846.
int ext4_ext_get_blocks(handle_t *handle, struct inode *inode, ext4_lblk_t iblock, unsigned int max_blocks, struct buffer_head *bh_result, int flags) { struct ext4_ext_path *path = NULL; struct ext4_extent_header *eh; struct ext4_extent newex, *ex, *last_ex; ext4_fsblk_t newblock; int err = 0, depth, ret,...
1
[ "CWE-703" ]
linux
744692dc059845b2a3022119871846e74d4f6e11
13,168,939,870,586,630,000,000,000,000,000,000,000
250
ext4: use ext4_get_block_write in buffer write Allocate uninitialized extent before ext4 buffer write and convert the extent to initialized after io completes. The purpose is to make sure an extent can only be marked initialized after it has been written with new data so we can safely drop the i_mutex lock in ext4 DIO...
COMPS_MRTree * comps_mrtree_clone(COMPS_MRTree * rt) { COMPS_HSList * to_clone, *tmplist, *new_subnodes; COMPS_MRTree * ret; COMPS_HSListItem *it, *it2; COMPS_MRTreeData *rtdata; COMPS_HSList *new_data_list; to_clone = comps_hslist_create(); comps_hslist_init(to_clone, NULL, NULL, NULL); ...
0
[ "CWE-416", "CWE-862" ]
libcomps
e3a5d056633677959ad924a51758876d415e7046
135,212,872,830,952,080,000,000,000,000,000,000,000
52
Fix UAF in comps_objmrtree_unite function The added field is not used at all in many places and it is probably the left-over of some copy-paste.
ssize_t qemu_receive_packet(NetClientState *nc, const uint8_t *buf, int size) { if (!qemu_can_receive_packet(nc)) { return 0; } return qemu_net_queue_receive(nc->incoming_queue, buf, size); }
0
[ "CWE-835" ]
qemu
705df5466c98f3efdd2b68d3b31dad86858acad7
160,161,094,941,050,240,000,000,000,000,000,000,000
8
net: introduce qemu_receive_packet() Some NIC supports loopback mode and this is done by calling nc->info->receive() directly which in fact suppresses the effort of reentrancy check that is done in qemu_net_queue_send(). Unfortunately we can't use qemu_net_queue_send() here since for loopback there's no sender as pee...
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) { lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, en...
1
[ "CWE-125" ]
oniguruma
d3e402928b6eb3327f8f7d59a9edfa622fec557b
180,067,450,694,786,940,000,000,000,000,000,000,000
18
fix heap-buffer-overflow
return *this; }
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
233,995,471,937,811,400,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static unsigned int spectrum512_FindIndex(i64 x, unsigned int c) { i64 x1; x1 = 10 * (i64)c; if (c & 1) /* If c is odd */ x1 = x1 - 5; else /* If c is even */ x1 = x1 + 1; if (x >= x1 && x < x1+160) c = c + 16; else if (x >= x1+160) c = c + 32; return c; }
0
[ "CWE-369" ]
deark
62acb7753b0e3c0d3ab3c15057b0a65222313334
165,763,841,123,276,250,000,000,000,000,000,000,000
18
pict,macrsrc: Fixed a bug that could cause division by 0 Found by F. Çelik.
GF_Err Media_ParseODFrame(GF_MediaBox *mdia, const GF_ISOSample *sample, GF_ISOSample **od_samp) { GF_TrackReferenceBox *tref; GF_TrackReferenceTypeBox *mpod; GF_Err e; GF_ODCom *com; GF_ODCodec *ODencode; GF_ODCodec *ODdecode; u32 i, j; //the commands we proceed GF_ESDUpdate *esdU, *esdU2; GF_ESDRemove *esdR...
0
[ "CWE-476" ]
gpac
f0ba83717b6e4d7a15a1676d1fe06152e199b011
300,055,804,056,972,870,000,000,000,000,000,000,000
208
fixed #1772 (fuzz)
static void sctp_endpoint_bh_rcv(struct work_struct *work) { struct sctp_endpoint *ep = container_of(work, struct sctp_endpoint, base.inqueue.immediate); struct sctp_association *asoc; struct sock *sk; struct sctp_transport *transport; struct sctp_chunk *chunk; struct sctp_inq *inqueue; sctp_subtype_t ...
0
[]
linux-2.6
5e739d1752aca4e8f3e794d431503bfca3162df4
212,683,153,357,637,250,000,000,000,000,000,000,000
93
sctp: fix potential panics in the SCTP-AUTH API. All of the SCTP-AUTH socket options could cause a panic if the extension is disabled and the API is envoked. Additionally, there were some additional assumptions that certain pointers would always be valid which may not always be the case. This patch hardens the API a...
NOEXPORT char *sni_init(SERVICE_OPTIONS *section) { char *tmp_str; SERVICE_OPTIONS *tmpsrv; /* server mode: update servername_list based on the SNI option */ if(!section->option.client && section->sni) { tmp_str=strchr(section->sni, ':'); if(!tmp_str) return "Invalid SNI par...
0
[ "CWE-295" ]
stunnel
ebad9ddc4efb2635f37174c9d800d06206f1edf9
318,740,309,603,706,040,000,000,000,000,000,000,000
58
stunnel-5.57
int snd_line6_hw_free(struct snd_pcm_substream *substream) { struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream); mutex_lock(&line6pcm->state_mutex); line6_buffer_release(line6pcm, pstr, LINE6_STREAM_PCM); mutex_unlock(&line6p...
0
[ "CWE-476" ]
linux
3450121997ce872eb7f1248417225827ea249710
242,826,173,576,202,500,000,000,000,000,000,000,000
10
ALSA: line6: Fix write on zero-sized buffer LINE6 drivers allocate the buffers based on the value returned from usb_maxpacket() calls. The manipulated device may return zero for this, and this results in the kmalloc() with zero size (and it may succeed) while the other part of the driver code writes the packet data w...