func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
create_pty_only(term_T *term, jobopt_T *options) { HANDLE hPipeIn = INVALID_HANDLE_VALUE; HANDLE hPipeOut = INVALID_HANDLE_VALUE; char in_name[80], out_name[80]; channel_T *channel = NULL; create_vterm(term, term->tl_rows, term->tl_cols); vim_snprintf(in_name, sizeof(in_name), ...
1
[ "CWE-476" ]
vim
cd929f7ba8cc5b6d6dcf35c8b34124e969fed6b8
199,982,426,731,989,550,000,000,000,000,000,000,000
64
patch 8.1.0633: crash when out of memory while opening a terminal window Problem: Crash when out of memory while opening a terminal window. Solution: Handle out-of-memory more gracefully.
GF_Err GetESD(GF_MovieBox *moov, GF_ISOTrackID trackID, u32 StreamDescIndex, GF_ESD **outESD) { GF_Err e; GF_ESD *esd; u32 track_num = 0; u32 k; GF_SampleTableBox *stbl; GF_TrackBox *trak, *OCRTrack; GF_TrackReferenceTypeBox *dpnd; GF_SLConfig *slc; GF_MPEGSampleEntryBox *entry; if (!moov) return GF_ISOM_INV...
0
[ "CWE-476" ]
gpac
df8fffd839fe5ae9acd82d26fd48280a397411d9
267,838,183,772,496,500,000,000,000,000,000,000,000
246
fixed #1736
void sum_update(const char *p, int32 len) { if (protocol_version >= 30) { md5_update(&md, (uchar *)p, len); return; } if (len + sumresidue < CSUM_CHUNK) { memcpy(md.buffer + sumresidue, p, len); sumresidue += len; return; } if (sumresidue) { int32 i = CSUM_CHUNK - sumresidue; memcpy(md.buffer + sum...
0
[]
rsync
eac858085e3ac94ec0ab5061d11f52652c90a869
256,481,230,824,389,200,000,000,000,000,000,000,000
31
Add compat flag to allow proper seed checksum order. Fixes the equivalent of librsync's CVE-2014-8242 issue.
void Inspect::operator()(Complex_Selector_Ptr c) { Compound_Selector_Obj head = c->head(); Complex_Selector_Obj tail = c->tail(); Complex_Selector::Combinator comb = c->combinator(); if (comb == Complex_Selector::ANCESTOR_OF && (!head || head->empty())) { if (tail) tail->perfo...
0
[ "CWE-476" ]
libsass
38f4c3699d06b64128bebc7cf1e8b3125be74dc4
158,965,641,507,786,000,000,000,000,000,000,000,000
63
Fix possible bug with handling empty reference combinators Fixes #2665
GF_Box *reftype_New() { ISOM_DECL_BOX_ALLOC(GF_TrackReferenceTypeBox, GF_ISOM_BOX_TYPE_REFT); return (GF_Box *)tmp; }
0
[ "CWE-125" ]
gpac
bceb03fd2be95097a7b409ea59914f332fb6bc86
209,525,772,594,568,500,000,000,000,000,000,000,000
5
fixed 2 possible heap overflows (inc. #1088)
static inline uint32_t get_uint32(unsigned char *value) { return value[0] << 24 | value[1] << 16 | value[2] << 8 | value[3]; }
0
[]
connman
a74524b3e3fad81b0fd1084ffdf9f2ea469cd9b1
212,529,119,316,895,540,000,000,000,000,000,000,000
5
gdhcp: Avoid leaking stack data via unitiialized variable Fixes: CVE-2021-26676
static struct ewah_bitmap *lookup_stored_bitmap(struct stored_bitmap *st) { struct ewah_bitmap *parent; struct ewah_bitmap *composed; if (st->xor == NULL) return st->root; composed = ewah_pool_new(); parent = lookup_stored_bitmap(st->xor); ewah_xor(st->root, parent, composed); ewah_pool_free(st->root); st-...
0
[ "CWE-119", "CWE-787" ]
git
de1e67d0703894cb6ea782e36abb63976ab07e60
173,960,429,310,614,360,000,000,000,000,000,000,000
18
list-objects: pass full pathname to callbacks When we find a blob at "a/b/c", we currently pass this to our show_object_fn callbacks as two components: "a/b/" and "c". Callbacks which want the full value then call path_name(), which concatenates the two. But this is an inefficient interface; the path is a strbuf, and ...
static inline uint32_t vmsvga_fifo_read(struct vmsvga_state_s *s) { return le32_to_cpu(vmsvga_fifo_read_raw(s)); }
0
[]
qemu
fa892e9abb728e76afcf27323ab29c57fb0fe7aa
108,367,946,749,402,950,000,000,000,000,000,000,000
4
ui/cursor: fix integer overflow in cursor_alloc (CVE-2021-4206) Prevent potential integer overflow by limiting 'width' and 'height' to 512x512. Also change 'datasize' type to size_t. Refer to security advisory https://starlabs.sg/advisories/22-4206/ for more information. Fixes: CVE-2021-4206 Signed-off-by: Mauro Matt...
R_API wchar_t* r_str_mb_to_wc(const char *buf) { if (!buf) { return NULL; } return r_str_mb_to_wc_l (buf, strlen (buf)); }
0
[ "CWE-78" ]
radare2
04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9
215,168,863,078,616,270,000,000,000,000,000,000,000
6
Fix command injection on PDB download (#16966) * Fix r_sys_mkdirp with absolute path on Windows * Fix build with --with-openssl * Use RBuffer in r_socket_http_answer() * r_socket_http_answer: Fix read for big responses * Implement r_str_escape_sh() * Cleanup r_socket_connect() on Windows * Fix socket being creat...
static SQLITE_NOINLINE void exprListDeleteNN(sqlite3 *db, ExprList *pList){ int i = pList->nExpr; struct ExprList_item *pItem = pList->a; assert( pList->nExpr>0 ); do{ sqlite3ExprDelete(db, pItem->pExpr); sqlite3DbFree(db, pItem->zName); sqlite3DbFree(db, pItem->zSpan); pItem++; }while( --i>0...
0
[ "CWE-476" ]
sqlite
57f7ece78410a8aae86aa4625fb7556897db384c
278,709,746,707,623,760,000,000,000,000,000,000,000
12
Fix a problem that comes up when using generated columns that evaluate to a constant in an index and then making use of that index in a join. FossilOrigin-Name: 8b12e95fec7ce6e0de82a04ca3dfcf1a8e62e233b7382aa28a8a9be6e862b1af
common_op_match_null_string_p (p, end, reg_info) unsigned char **p, *end; register_info_type *reg_info; { int mcnt; boolean ret; int reg_no; unsigned char *p1 = *p; switch ((re_opcode_t) *p1++) { case no_op: case begline: case endline: case begbuf: case endbuf: case wordbe...
0
[ "CWE-190", "CWE-252" ]
glibc
2864e767053317538feafa815046fff89e5a16be
123,522,606,010,489,420,000,000,000,000,000,000,000
82
Update. 1999-11-09 Ulrich Drepper <drepper@cygnus.com> * elf/dl-load.c (_dl_dst_count): Allow $ORIGIN to point to directory with the reference since this is as secure as using the object with the dependency. (_dl_dst_substitute): Likewise. * elf/dl-load.c (_dl_dst_count): Change strings in first two strncmp ...
static void bind_image_locs(struct vrend_linked_shader_program *sprog, int id) { int i; char name[32]; const char *prefix = pipe_shader_to_prefix(id); uint32_t mask = sprog->ss[id]->sel->sinfo.images_used_mask; if (!mask && ! sprog->ss[id]->sel->sinfo.num_image_arrays) ...
0
[ "CWE-787" ]
virglrenderer
cbc8d8b75be360236cada63784046688aeb6d921
262,489,649,698,326,100,000,000,000,000,000,000,000
46
vrend: check transfer bounds for negative values too and report error Closes #138 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
zbase_make_font(gs_font_dir * pdir, const gs_font * oldfont, const gs_matrix * pmat, gs_font ** ppfont) { /* * We must call gs_base_make_font so that the XUID gets copied * if necessary. */ int code = gs_base_make_font(pdir, oldfont, pmat, ppfont); if (code < 0) retur...
0
[ "CWE-704" ]
ghostpdl
548bb434e81dadcc9f71adf891a3ef5bea8e2b4e
27,156,776,256,331,170,000,000,000,000,000,000,000
13
PS interpreter - add some type checking These were 'probably' safe anyway, since they mostly treat the objects as integers without checking, which at least can't result in a crash. Nevertheless, we ought to check. The return from comparedictkeys could be wrong if one of the keys had a value which was not an array, i...
MagickExport unsigned char *ImagesToBlob(const ImageInfo *image_info, Image *images,size_t *length,ExceptionInfo *exception) { const MagickInfo *magick_info; ImageInfo *clone_info; MagickBooleanType status; unsigned char *blob; assert(image_info != (const ImageInfo *) NULL); assert(ima...
0
[ "CWE-416" ]
ImageMagick6
614a257295bdcdeda347086761062ac7658b6830
189,111,202,052,458,900,000,000,000,000,000,000,000
112
https://github.com/ImageMagick/ImageMagick6/issues/43
void Subgraph::UseNNAPI(bool enable) { // Note that there is no way to disable the delegate once it modified the // graph. if (applied_nnapi_delegate_ && !enable) { ReportError("Attempting to disable NNAPI delegate after it's applied."); } else { should_apply_nnapi_delegate_ = enable; } }
0
[ "CWE-20", "CWE-787" ]
tensorflow
d58c96946b2880991d63d1dacacb32f0a4dfa453
153,791,692,858,635,330,000,000,000,000,000,000,000
9
[tflite] Ensure inputs and outputs don't overlap. If a model uses the same tensor for both an input and an output then this can result in data loss and memory corruption. This should not happen. PiperOrigin-RevId: 332522916 Change-Id: If0905b142415a9dfceaf2d181872f2a8fb88f48a
png_set_gAMA_fixed(png_const_structrp png_ptr, png_inforp info_ptr, png_fixed_point file_gamma) { png_debug1(1, "in %s storage function", "gAMA"); if (png_ptr == NULL || info_ptr == NULL) return; png_colorspace_set_gamma(png_ptr, &info_ptr->colorspace, file_gamma); png_colorspace_sync_info(png_p...
0
[ "CWE-120" ]
libpng
a901eb3ce6087e0afeef988247f1a1aa208cb54d
78,788,291,496,716,830,000,000,000,000,000,000,000
11
[libpng16] Prevent reading over-length PLTE chunk (Cosmin Truta).
EXPORTED int mailbox_get_xconvmodseq(struct mailbox *mailbox, modseq_t *modseqp) { conv_status_t status = CONV_STATUS_INIT; int r; if (modseqp) *modseqp = 0; struct conversations_state *cstate = mailbox_get_cstate(mailbox); if (!cstate) return 0; r = conversation_getstatus(cstate, ...
0
[]
cyrus-imapd
1d6d15ee74e11a9bd745e80be69869e5fb8d64d6
168,889,466,462,218,560,000,000,000,000,000,000,000
19
mailbox.c/reconstruct.c: Add mailbox_mbentry_from_path()
static void ff_jref_idct4_add(uint8_t *dest, int line_size, int16_t *block) { ff_j_rev_dct4 (block); add_pixels_clamped4_c(block, dest, line_size); }
0
[ "CWE-703", "CWE-189" ]
FFmpeg
454a11a1c9c686c78aa97954306fb63453299760
328,041,446,355,354,550,000,000,000,000,000,000,000
5
avcodec/dsputil: fix signedness in sizeof() comparissions Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
void CtcpParser::sendCtcpEvent(CtcpEvent *e) { CoreNetwork *net = coreNetwork(e); if(e->type() == EventManager::CtcpEvent) { QByteArray quotedReply; QString bufname = nickFromMask(e->prefix()); if(e->ctcpType() == CtcpEvent::Query && !e->reply().isNull()) { if(_replies.contains(e->uuid())) ...
0
[ "CWE-399" ]
quassel
da215fcb9cd3096a3e223c87577d5d4ab8f8518b
334,831,473,815,008,770,000,000,000,000,000,000,000
19
Fix core crash Some CTCP requests triggered a bug in the parser; this fixes the issue.
bool Client::startRequestBodyFlow() { HttpRequest *r = originalRequest(); assert(r->body_pipe != NULL); requestBodySource = r->body_pipe; if (requestBodySource->setConsumerIfNotLate(this)) { debugs(11,3, HERE << "expecting request body from " << requestBodySource->status()); ...
0
[ "CWE-20" ]
squid
1e05a85bd28c22c9ca5d3ac9f5e86d6269ec0a8c
98,385,830,744,703,460,000,000,000,000,000,000,000
16
Handle more partial responses (#791)
R_API int r_sys_fork() { #if HAVE_FORK #if __WINDOWS__ return -1; #else return fork (); #endif #else return -1; #endif }
0
[ "CWE-78" ]
radare2
04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9
291,522,801,540,861,300,000,000,000,000,000,000,000
11
Fix command injection on PDB download (#16966) * Fix r_sys_mkdirp with absolute path on Windows * Fix build with --with-openssl * Use RBuffer in r_socket_http_answer() * r_socket_http_answer: Fix read for big responses * Implement r_str_escape_sh() * Cleanup r_socket_connect() on Windows * Fix socket being creat...
format_SET_MPLS_LABEL(const struct ofpact_mpls_label *a, const struct ofpact_format_params *fp) { ds_put_format(fp->s, "%sset_mpls_label(%s%"PRIu32"%s)%s", colors.paren, colors.end, ntohl(a->label), colors.paren, colors.end); }
0
[ "CWE-416" ]
ovs
77cccc74deede443e8b9102299efc869a52b65b2
235,455,969,119,080,100,000,000,000,000,000,000,000
7
ofp-actions: Fix use-after-free while decoding RAW_ENCAP. While decoding RAW_ENCAP action, decode_ed_prop() might re-allocate ofpbuf if there is no enough space left. However, function 'decode_NXAST_RAW_ENCAP' continues to use old pointer to 'encap' structure leading to write-after-free and incorrect decoding. ==3...
fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env) { int num; OnigCodePoint c, c2; OnigSyntaxType* syn = env->syntax; OnigEncoding enc = env->enc; UChar* prev; UChar* p = *src; PFETCH_READY; if (PEND) { tok->type = TK_EOT; return tok->type; } PFETCH(c); tok->type = ...
1
[ "CWE-787" ]
oniguruma
f015fbdd95f76438cd86366467bb2b39870dd7c6
174,648,383,410,877,880,000,000,000,000,000,000,000
218
fix #55 : Byte value expressed in octal must be smaller than 256
encode_putfh(struct xdr_stream *xdr, const struct nfs_fh *fh) { int len = fh->size; __be32 *p; RESERVE_SPACE(8 + len); WRITE32(OP_PUTFH); WRITE32(len); WRITEMEM(fh->data, len); return 0; }
0
[ "CWE-703" ]
linux
dc0b027dfadfcb8a5504f7d8052754bf8d501ab9
153,732,021,732,717,610,000,000,000,000,000,000,000
12
NFSv4: Convert the open and close ops to use fmode Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
int ldb_modify(struct ldb_context *ldb, const struct ldb_message *message) { struct ldb_request *req; int ret; ret = ldb_msg_sanity_check(ldb, message); if (ret != LDB_SUCCESS) { return ret; } ret = ldb_build_mod_req(&req, ldb, ldb, message, NULL, NULL, ldb_op_default_callback, ...
0
[ "CWE-476" ]
samba
d8b9bb274b7e7a390cf3bda9cd732cb2227bdbde
79,192,323,858,988,835,000,000,000,000,000,000,000
27
CVE-2020-10730: lib ldb: Check if ldb_lock_backend_callback called twice Prevent use after free issues if ldb_lock_backend_callback is called twice, usually due to ldb_module_done being called twice. This can happen if a module ignores the return value from function a function that calls ldb_module_done as part of it'...
file_create (const char *name, int fd, off_t st_size, bool is_block, direction d) { struct rw_file *rwf = calloc (1, sizeof *rwf); if (rwf == NULL) { perror ("calloc"); exit (EXIT_FAILURE); } rwf->rw.ops = &file_ops; rwf->rw.name = name; rwf->fd = fd; rwf->is_block = is_block; if (is_block)...
0
[ "CWE-252" ]
libnbd
8d444b41d09a700c7ee6f9182a649f3f2d325abb
7,470,284,441,178,873,000,000,000,000,000,000,000
67
copy: CVE-2022-0485: Fail nbdcopy if NBD read or write fails nbdcopy has a nasty bug when performing multi-threaded copies using asynchronous nbd calls - it was blindly treating the completion of an asynchronous command as successful, rather than checking the *error parameter. This can result in the silent creation o...
void CLASS eight_bit_load_raw() { uchar *pixel; unsigned row, col; pixel = (uchar *)calloc(raw_width, sizeof *pixel); merror(pixel, "eight_bit_load_raw()"); #ifdef LIBRAW_LIBRARY_BUILD try { #endif for (row = 0; row < raw_height; row++) { #ifdef LIBRAW_LIBRARY_BUILD checkCancel(); #endif ...
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
225,750,034,046,063,800,000,000,000,000,000,000,000
32
Secunia SA75000 advisory: several buffer overruns
sprint_message( message_t *message) { int i; static int first_message = 1; GString *result; char *json_file; char *json_process; char *json_running_on; char *json_component; char *json_module; char *json_msg; if (message == NULL) return NULL; message_indent = 4; j...
0
[ "CWE-77" ]
amanda
29bae2e271093cd8d06ea98f73a474c685c5a314
17,084,857,562,178,363,000,000,000,000,000,000,000
75
* application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c: Filter option from COMMAND-OPTIONS * common-src/ammessage.c: Add message. git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/trunk@6483 a8d146d6-cc15-0410-8900-af154a0219e0
MockAddressResolver::MockAddressResolver() { ON_CALL(*this, name()).WillByDefault(Return("envoy.mock.resolver")); }
0
[ "CWE-835" ]
envoy
c8de199e2971f79cbcbc6b5eadc8c566b28705d1
211,568,709,417,187,600,000,000,000,000,000,000,000
3
listener: clean up accept filter before creating connection (#8922) Signed-off-by: Yuchen Dai <silentdai@gmail.com>
static inline bool skb_loop_sk(struct packet_type *ptype, struct sk_buff *skb) { if (!ptype->af_packet_priv || !skb->sk) return false; if (ptype->id_match) return ptype->id_match(ptype, skb->sk); else if ((struct sock *)ptype->af_packet_priv == skb->sk) return true; return false;
0
[ "CWE-400", "CWE-703" ]
linux
fac8e0f579695a3ecbc4d3cac369139d7f819971
163,110,970,659,262,360,000,000,000,000,000,000,000
12
tunnels: Don't apply GRO to multiple layers of encapsulation. When drivers express support for TSO of encapsulated packets, they only mean that they can do it for one layer of encapsulation. Supporting additional levels would mean updating, at a minimum, more IP length fields and they are unaware of this. No encapsul...
void brcmf_dev_reset(struct device *dev) { struct brcmf_bus *bus_if = dev_get_drvdata(dev); struct brcmf_pub *drvr = bus_if->drvr; if (drvr == NULL) return; if (drvr->iflist[0]) brcmf_fil_cmd_int_set(drvr->iflist[0], BRCMF_C_TERMINATED, 1); }
0
[ "CWE-20" ]
linux
a4176ec356c73a46c07c181c6d04039fafa34a9f
260,839,336,608,375,440,000,000,000,000,000,000,000
11
brcmfmac: add subtype check for event handling in data path For USB there is no separate channel being used to pass events from firmware to the host driver and as such are passed over the data path. In order to detect mock event messages an additional check is needed on event subtype. This check is added conditionally...
sector_t map_swap_page(struct page *page, struct block_device **bdev) { swp_entry_t entry; entry.val = page_private(page); return map_swap_entry(entry, bdev); }
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
154,760,767,029,395,750,000,000,000,000,000,000,000
6
mm: thp: fix pmd_bad() triggering in code paths holding mmap_sem read mode In some cases it may happen that pmd_none_or_clear_bad() is called with the mmap_sem hold in read mode. In those cases the huge page faults can allocate hugepmds under pmd_none_or_clear_bad() and that can trigger a false positive from pmd_bad(...
mrb_yield_argv(mrb_state *mrb, mrb_value b, mrb_int argc, const mrb_value *argv) { struct RProc *p = mrb_proc_ptr(b); return mrb_yield_with_class(mrb, b, argc, argv, MRB_PROC_ENV(p)->stack[0], MRB_PROC_TARGET_CLASS(p)); }
0
[ "CWE-122", "CWE-787" ]
mruby
47068ae07a5fa3aa9a1879cdfe98a9ce0f339299
123,842,293,349,778,360,000,000,000,000,000,000,000
6
vm.c: packed arguments length may be zero for `send` method.
static void free_service_auth(gpointer data, gpointer user_data) { struct service_auth *auth = data; g_free(auth); }
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
152,543,029,108,496,160,000,000,000,000,000,000,000
6
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
void STDCALL symver16_mysql_close(MYSQL *mysql) { return mysql_close(mysql);
0
[ "CWE-319" ]
mysql-server
0002e1380d5f8c113b6bce91f2cf3f75136fd7c7
156,728,489,422,297,860,000,000,000,000,000,000,000
4
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION MYSQL_OPT_SSL_MODE option introduced. It is set in case of --ssl-mode=REQUIRED and permits only SSL connection. (cherry picked from commit f91b941842d240b8a62645e507f5554e8be76aec)
pgp_get_challenge(struct sc_card *card, u8 *rnd, size_t len) { struct pgp_priv_data *priv; LOG_FUNC_CALLED(card->ctx); priv = DRVDATA(card); if (0 == (priv->ext_caps & EXT_CAP_GET_CHALLENGE)) { LOG_FUNC_RETURN(card->ctx, SC_ERROR_NOT_SUPPORTED); } if (priv->max_challenge_size > 0 && len > priv->max_challenge...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
17,636,825,860,414,562,000,000,000,000,000,000,000
17
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
static CImg<T> get_load_dcraw_external(const char *const filename) { return CImg<T>().load_dcraw_external(filename); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
202,349,848,987,980,670,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 inline int put_page_testzero(struct page *page) { VM_BUG_ON_PAGE(page_ref_count(page) == 0, page); return page_ref_dec_and_test(page); }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
228,161,591,833,206,570,000,000,000,000,000,000,000
5
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info, const int argc,const char **argv,Image **images,ExceptionInfo *exception) { const char *option; ImageInfo *mogrify_info; MagickStatusType status; PixelInterpolateMethod interpolate_method; QuantizeInfo *quantize_info...
1
[ "CWE-399", "CWE-401" ]
ImageMagick
5f21230b657ccd65452dd3d94c5b5401ba691a2d
25,693,255,134,216,270,000,000,000,000,000,000,000
1,158
https://github.com/ImageMagick/ImageMagick/issues/1616
static void tag_fn(struct cgit_context *ctx) { cgit_print_tag(ctx->qry.sha1); }
0
[]
cgit
02a545e63454530c1639014d3239c14ced2022c6
328,530,345,631,137,580,000,000,000,000,000,000,000
4
Add support for cloning over http This patch implements basic support for cloning over http, based on the work on git-http-backend by Shawn O. Pearce. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
read_one_cert (ReadFromGConfInfo *info, const char *setting_name, const char *key, gboolean fail_if_missing, GError **error) { char *value = NULL; if (nm_gconf_get_string_helper (info->client, info->dir, key, setting_name, &value)) { if (fail_if_missing &...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
147,180,457,903,824,390,000,000,000,000,000,000,000
18
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
CImg<T> get_rol(const char *const expression) const { return (+*this).rol(expression); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
313,169,748,953,436,460,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 bool __fastcall SendCopyDataMessage(HWND Window, TCopyDataMessage & Message) { COPYDATASTRUCT CopyData; CopyData.cbData = sizeof(Message); CopyData.lpData = &Message; LRESULT SendResult = SendMessage(Window, WM_COPYDATA, reinterpret_cast<WPARAM>(HInstance), reinterpret_cast<LPARAM>(&C...
0
[ "CWE-787" ]
winscp
faa96e8144e6925a380f94a97aa382c9427f688d
139,395,654,185,645,200,000,000,000,000,000,000,000
12
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
did_set_spell_option(int is_spellfile) { char *errmsg = NULL; win_T *wp; int l; if (is_spellfile) { l = (int)STRLEN(curwin->w_s->b_p_spf); if (l > 0 && (l < 4 || STRCMP(curwin->w_s->b_p_spf + l - 4, ".add") != 0)) errmsg = e_invalid_argument; } if (errmsg == NULL) { ...
0
[ "CWE-416" ]
vim
2813f38e021c6e6581c0c88fcf107e41788bc835
120,648,021,239,774,550,000,000,000,000,000,000,000
25
patch 8.2.5072: using uninitialized value and freed memory in spell command Problem: Using uninitialized value and freed memory in spell command. Solution: Initialize "attr". Check for empty line early.
static void bitmapUnitTest() { u_int32_t val, i, j; for(i=0; i<32; i++) { NDPI_ZERO_BIT(val); NDPI_SET_BIT(val, i); assert(NDPI_ISSET_BIT(val, i)); for(j=0; j<32; j++) { if(j != i) { assert(!NDPI_ISSET_BIT(val, j)); } } } }
0
[ "CWE-125" ]
nDPI
b7e666e465f138ae48ab81976726e67deed12701
92,311,152,725,621,640,000,000,000,000,000,000,000
16
Added fix to avoid potential heap buffer overflow in H.323 dissector Modified HTTP report information to make it closer to the HTTP field names
void Display::slotAuthError(const QString &message, Auth::Error error) { // TODO: handle more errors qWarning() << "Authentication error:" << message; if (!m_socket) return; if (error == Auth::ERROR_AUTHENTICATION) emit loginFailed(m_socket); }
0
[ "CWE-613", "CWE-287", "CWE-284" ]
sddm
147cec383892d143b5e02daa70f1e7def50f5d98
44,944,396,252,499,580,000,000,000,000,000,000,000
10
Fix authentication when reusing an existing session - Check the success value before unlocking the session - Don't attempt to use the nonexistant "sddm-check" PAM service
zero_block_p (char const *buffer, size_t size) { while (size--) if (*buffer++) return false; return true; }
0
[]
tar
c15c42ccd1e2377945fd0414eca1a49294bff454
329,644,675,220,697,070,000,000,000,000,000,000,000
7
Fix CVE-2018-20482 * NEWS: Update. * src/sparse.c (sparse_dump_region): Handle short read condition. (sparse_extract_region,check_data_region): Fix dumped_size calculation. Handle short read condition. (pax_decode_header): Fix dumped_size calculation. * tests/Makefile.am: Add new testcases. * tests/testsuite.at: Likew...
static int dummy_init(struct digest *d) { return 0; }
0
[ "CWE-200" ]
barebox
0a9f9a7410681e55362f8311537ebc7be9ad0fbe
258,019,275,433,002,600,000,000,000,000,000,000,000
4
crypto: digest: use crypto_memneq() When verifying a digest it is important not to leak timing information through memcmp(). Use crypto_memneq() instead. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
static int parse_options (char *options, struct super_block *sb, unsigned int *inum, unsigned long *journal_devnum, ext3_fsblk_t *n_blocks_count, int is_remount) { struct ext3_sb_info *sbi = EXT3_SB(sb); char * p; substring_t args[MAX_OPT_ARGS]; int data_opt = 0; int option; kuid_t uid; kgid_t gid; #if...
0
[ "CWE-20" ]
linux
8d0c2d10dd72c5292eda7a06231056a4c972e4cc
213,554,427,333,462,750,000,000,000,000,000,000,000
358
ext3: Fix format string issues ext3_msg() takes the printk prefix as the second parameter and the format string as the third parameter. Two callers of ext3_msg omit the prefix and pass the format string as the second parameter and the first parameter to the format string as the third parameter. In both cases this stri...
agoo_ws_calc_len(agooCon c, uint8_t *buf, size_t cnt) { uint8_t *b = buf; bool is_masked; uint64_t plen; if (0 == (0x80 & *b)) { agoo_log_cat(&agoo_error_cat, "FIN must be 1. Websocket continuation not implemented on connection %llu.", (unsigned long long)c->id); return -1; } b++; is_mask...
0
[ "CWE-444", "CWE-61" ]
agoo
23d03535cf7b50d679a60a953a0cae9519a4a130
211,087,616,787,897,500,000,000,000,000,000,000,000
37
Remote addr (#99) * REMOTE_ADDR added * Ready for merge
bool is_string() const { return m_type == DYN_COL_STRING; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
240,192,464,533,203,740,000,000,000,000,000,000,000
1
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 ...
GF_Err gf_avc_change_par(GF_AVCConfig *avcc, s32 ar_n, s32 ar_d) { GF_VUIInfo vuii; memset(&vuii, 0, sizeof(GF_VUIInfo)); vuii.ar_num = ar_n; vuii.ar_den = ar_d; vuii.fullrange = -1; vuii.video_format = -1; vuii.color_prim = -1; vuii.color_tfc = -1; vuii.color_matrix = -1; return gf_avc_change_vui(avcc, &vuii...
0
[ "CWE-190" ]
gpac
0cd19f4db70615d707e0e6202933c2ea0c1d36df
218,216,088,635,835,040,000,000,000,000,000,000,000
13
fixed #2067
void CClient::PutStatusNotice(const CString& sLine) { PutModNotice("status", sLine); }
0
[ "CWE-476" ]
znc
2390ad111bde16a78c98ac44572090b33c3bd2d8
275,107,447,495,430,100,000,000,000,000,000,000,000
3
Fix null pointer dereference in echo-message The bug was introduced while fixing #1705. If a client did not enable echo-message, and doesn't have a network, it crashes. Thanks to LunarBNC for reporting this
bit_fprint_bits (FILE *fp, unsigned char *bits, long unsigned int size) { for (long unsigned int i = 0; i < size; i++) { unsigned char bit = i % 8; unsigned char result = (bits[i / 8] & (0x80 >> bit)) >> (7 - bit); if (i && !bit) printf (" "); fprintf (fp, "%d", result ? 1 : 0); ...
0
[ "CWE-703", "CWE-125" ]
libredwg
95cc9300430d35feb05b06a9badf678419463dbe
236,384,635,132,020,830,000,000,000,000,000,000,000
12
encode: protect from stack under-flow From GH #178 fuzzing
static void vrend_framebuffer_texture_2d(struct vrend_resource *res, GLenum target, GLenum attachment, GLenum textarget, uint32_t texture, int32_t level, uint32_t samples) { if (samples == 0) { ...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
115,543,934,016,793,310,000,000,000,000,000,000,000
32
vrend: Add test to resource OOB write and fix it v2: Also check that no depth != 1 has been send when none is due Closes: #250 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
static void free_watch_adapter(struct watch_adapter *watch) { kfree(watch->watch.node); kfree(watch->token); kfree(watch); }
0
[]
linux
0beef634b86a1350c31da5fcc2992f0d7c8a622b
24,407,139,653,034,526,000,000,000,000,000,000,000
6
xenbus: don't BUG() on user mode induced condition Inability to locate a user mode specified transaction ID should not lead to a kernel crash. For other than XS_TRANSACTION_START also don't issue anything to xenbus if the specified ID doesn't match that of any active transaction. Signed-off-by: Jan Beulich <jbeulich@...
StringVal EncryptionFunctions::to_base64(FunctionContext* ctx, const StringVal& src) { if (src.len == 0 || src.is_null) { return StringVal::null(); } int cipher_len = (size_t)(4.0 * ceil((double)src.len / 3.0)); std::unique_ptr<char[]> p; p.reset(new char[cipher_len]); int ret_code = b...
1
[ "CWE-200" ]
incubator-doris
246ac4e37aa4da6836b7850cb990f02d1c3725a3
11,463,709,953,156,243,000,000,000,000,000,000,000
15
[fix] fix a bug of encryption function with iv may return wrong result (#8277)
static CURLcode pop3_state_user_resp(struct connectdata *conn, int pop3code, pop3state instate) { CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct FTP *pop3 = data->state.proto.pop3; (void)instate; /* no use fo...
0
[ "CWE-89" ]
curl
75ca568fa1c19de4c5358fed246686de8467c238
77,267,646,395,529,720,000,000,000,000,000,000,000
24
URL sanitize: reject URLs containing bad data Protocols (IMAP, POP3 and SMTP) that use the path part of a URL in a decoded manner now use the new Curl_urldecode() function to reject URLs with embedded control codes (anything that is or decodes to a byte value less than 32). URLs containing such codes could easily oth...
rescore_one(suginfo_T *su, suggest_T *stp) { slang_T *slang = stp->st_slang; char_u sal_badword[MAXWLEN]; char_u *p; // Only rescore suggestions that have no sal score yet and do have a // language. if (slang != NULL && slang->sl_sal.ga_len > 0 && !stp->st_had_bonus) { if (slang == su->su_...
0
[ "CWE-457" ]
vim
15d9890eee53afc61eb0a03b878a19cb5672f732
327,364,613,067,044,640,000,000,000,000,000,000,000
25
patch 8.2.3582: reading uninitialized memory when giving spell suggestions Problem: Reading uninitialized memory when giving spell suggestions. Solution: Check that preword is not empty.
static char *page_getlink(struct dentry * dentry, struct page **ppage) { char *kaddr; struct page *page; struct address_space *mapping = dentry->d_inode->i_mapping; page = read_mapping_page(mapping, 0, NULL); if (IS_ERR(page)) return (char*)page; *ppage = page; kaddr = kmap(page); nd_terminate_link(kaddr, den...
0
[ "CWE-20", "CWE-362", "CWE-416" ]
linux
86acdca1b63e6890540fa19495cfc708beff3d8b
332,987,224,888,076,620,000,000,000,000,000,000,000
13
fix autofs/afs/etc. magic mountpoint breakage We end up trying to kfree() nd.last.name on open("/mnt/tmp", O_CREAT) if /mnt/tmp is an autofs direct mount. The reason is that nd.last_type is bogus here; we want LAST_BIND for everything of that kind and we get LAST_NORM left over from finding parent directory. So make...
static struct sock *__l2tp_ip_bind_lookup(struct net *net, __be32 laddr, int dif, u32 tunnel_id) { struct hlist_node *node; struct sock *sk; sk_for_each_bound(sk, node, &l2tp_ip_bind_table) { struct inet_sock *inet = inet_sk(sk); struct l2tp_ip_sock *l2tp = l2tp_ip_sk(sk); if (l2tp == NULL) continue; i...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
195,437,057,463,088,540,000,000,000,000,000,000,000
23
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
jpeg_skip_scanlines(j_decompress_ptr cinfo, JDIMENSION num_lines) { my_main_ptr main_ptr = (my_main_ptr)cinfo->main; my_coef_ptr coef = (my_coef_ptr)cinfo->coef; my_master_ptr master = (my_master_ptr)cinfo->master; JDIMENSION i, x; int y; JDIMENSION lines_per_iMCU_row, lines_left_in_iMCU_row, lines_after_iM...
0
[ "CWE-476" ]
libjpeg-turbo
9120a247436e84c0b4eea828cb11e8f665fcde30
25,108,086,796,787,610,000,000,000,000,000,000,000
191
Fix jpeg_skip_scanlines() segfault w/merged upsamp The additional segfault mentioned in #244 was due to the fact that the merged upsamplers use a different private structure than the non-merged upsamplers. jpeg_skip_scanlines() was assuming the latter, so when merged upsampling was enabled, jpeg_skip_scanlines() clob...
static int pipe_skb_send(struct sock *sk, struct sk_buff *skb) { struct pep_sock *pn = pep_sk(sk); struct pnpipehdr *ph; int err; if (pn_flow_safe(pn->tx_fc) && !atomic_add_unless(&pn->tx_credits, -1, 0)) { kfree_skb(skb); return -ENOBUFS; } skb_push(skb, 3 + pn->aligned); skb_reset_transport_header(s...
0
[ "CWE-200" ]
net
bcd0f93353326954817a4f9fa55ec57fb38acbb0
339,863,323,858,225,050,000,000,000,000,000,000,000
29
phonet: refcount leak in pep_sock_accep sock_hold(sk) is invoked in pep_sock_accept(), but __sock_put(sk) is not invoked in subsequent failure branches(pep_accept_conn() != 0). Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Link: https://lore.kernel.org/r/20211209082839.33985-1-hbh25y@gmail.com Signed-off-by: Jakub Kic...
QPDFWriter::writeBuffer(PointerHolder<Buffer>& b) { this->pipeline->write(b->getBuffer(), b->getSize()); }
0
[ "CWE-399", "CWE-835" ]
qpdf
8249a26d69f72b9cda584c14cc3f12769985e481
226,903,710,047,408,760,000,000,000,000,000,000,000
4
Fix infinite loop in QPDFWriter (fixes #143)
static void init_vmcs_shadow_fields(void) { int i, j; memset(vmx_vmread_bitmap, 0xff, PAGE_SIZE); memset(vmx_vmwrite_bitmap, 0xff, PAGE_SIZE); for (i = j = 0; i < max_shadow_read_only_fields; i++) { u16 field = shadow_read_only_fields[i]; if (vmcs_field_width(field) == VMCS_FIELD_WIDTH_U64 && (i + 1 ==...
0
[ "CWE-863" ]
kvm
acff78477b9b4f26ecdf65733a4ed77fe837e9dc
182,556,540,916,335,700,000,000,000,000,000,000,000
70
KVM: x86: nVMX: close leak of L0's x2APIC MSRs (CVE-2019-3887) The nested_vmx_prepare_msr_bitmap() function doesn't directly guard the x2APIC MSR intercepts with the "virtualize x2APIC mode" MSR. As a result, we discovered the potential for a buggy or malicious L1 to get access to L0's x2APIC MSRs, via an L2, as follo...
static void pj_scan_syntax_err(pj_scanner *scanner) { (*scanner->callback)(scanner); }
0
[ "CWE-125" ]
pjproject
077b465c33f0aec05a49cd2ca456f9a1b112e896
121,404,322,696,250,190,000,000,000,000,000,000,000
4
Merge pull request from GHSA-7fw8-54cv-r7pm
void avrcp_player_event(struct avrcp_player *player, uint8_t id, const void *data) { uint8_t buf[AVRCP_HEADER_LENGTH + 9]; struct avrcp_header *pdu = (void *) buf; uint8_t code; uint16_t size; GSList *l; if (player->sessions == NULL) return; memset(buf, 0, sizeof(buf)); set_company_id(pdu->company_i...
0
[ "CWE-200" ]
bluez
e2b0f0d8d63e1223bb714a9efb37e2257818268b
205,226,353,705,638,230,000,000,000,000,000,000,000
85
avrcp: Fix not checking if params_len match number of received bytes This makes sure the number of bytes in the params_len matches the remaining bytes received so the code don't end up accessing invalid memory.
static void mct_u232_break_ctl(struct tty_struct *tty, int break_state) { struct usb_serial_port *port = tty->driver_data; struct usb_serial *serial = port->serial; struct mct_u232_private *priv = (struct mct_u232_private *)port->private; unsigned char lcr = priv->last_lcr; dev_dbg(&port->dev, "%s - state=%d\...
0
[ "CWE-532" ]
linux
146cc8a17a3b4996f6805ee5c080e7101277c410
272,094,659,343,510,270,000,000,000,000,000,000,000
16
USB: serial: kl5kusb105: fix line-state error handling The current implementation failed to detect short transfers when attempting to read the line state, and also, to make things worse, logged the content of the uninitialised heap transfer buffer. Fixes: abf492e7b3ae ("USB: kl5kusb105: fix DMA buffers on stack") Fix...
static void sycc420_to_rgb(opj_image_t *img) { int *d0, *d1, *d2, *r, *g, *b, *nr, *ng, *nb; const int *y, *cb, *cr, *ny; size_t maxw, maxh, max, offx, loopmaxw, offy, loopmaxh; int offset, upb; size_t i; upb = (int)img->comps[0].prec; offset = 1<<(upb - 1); upb = (1<<upb)-1; maxw = (size_t)img->comps[0].w; m...
0
[ "CWE-703", "CWE-125" ]
openjpeg
15f081c89650dccee4aa4ae66f614c3fdb268767
274,769,807,828,903,700,000,000,000,000,000,000,000
113
Fix Out-Of-Bounds Read in sycc42x_to_rgb function (#745) 42x Images with an odd x0/y0 lead to subsampled component starting at the 2nd column/line. That is offset = comp->dx * comp->x0 - image->x0 = 1 Fix #726
assert_connection_edge_not_dns_pending(edge_connection_t *conn) { pending_connection_t *pend; cached_resolve_t search; #if 1 cached_resolve_t *resolve; strlcpy(search.address, conn->_base.address, sizeof(search.address)); resolve = HT_FIND(cache_map, &cache_root, &search); if (!resolve) return; for (...
0
[ "CWE-399" ]
tor
62637fa22405278758febb1743da9af562524d4c
208,257,172,551,364,200,000,000,000,000,000,000,000
23
Avoid hard (impossible?)-to-trigger double-free in dns_resolve() Fixes 6480; fix on 0.2.0.1-alpha; based on pseudonymous patch.
static BROTLI_INLINE uint32_t GetCopyBase(uint16_t copycode) { return kBrotliCopyBase[copycode]; }
0
[ "CWE-120" ]
brotli
223d80cfbec8fd346e32906c732c8ede21f0cea6
172,336,194,695,832,800,000,000,000,000,000,000,000
3
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
static int unsubscribe_port(struct snd_seq_client *client, struct snd_seq_client_port *port, struct snd_seq_port_subs_info *grp, struct snd_seq_port_subscribe *info, int send_ack) { int err = 0; if (! grp->count) return -EINVAL; grp->count--; if (grp->close && grp->count == 0) err =...
0
[ "CWE-416", "CWE-362" ]
linux
71105998845fb012937332fe2e806d443c09e026
103,953,217,311,310,170,000,000,000,000,000,000,000
19
ALSA: seq: Fix use-after-free at creating a port There is a potential race window opened at creating and deleting a port via ioctl, as spotted by fuzzing. snd_seq_create_port() creates a port object and returns its pointer, but it doesn't take the refcount, thus it can be deleted immediately by another thread. Meanwh...
TEST_P(SdsDynamicDownstreamCertValidationContextTest, BasicSuccess) { on_server_init_function_ = [this]() { createSdsStream(*(fake_upstreams_[1])); sendSdsResponse(getCvcSecret()); }; initialize(); ConnectionCreationFunction creator = [&]() -> Network::ClientConnectionPtr { return makeSslClientConn...
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
205,006,291,004,158,140,000,000,000,000,000,000,000
12
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
static ssize_t ocfs2_file_dedupe_range(struct file *src_file, u64 loff, u64 len, struct file *dst_file, u64 dst_loff) { int error; error = ocfs2_reflink_remap_range(src_file, loff, dst_file, dst_loff, len, true); if (error) return error; return len; }
0
[ "CWE-401" ]
linux
28f5a8a7c033cbf3e32277f4cc9c6afd74f05300
262,758,885,526,363,550,000,000,000,000,000,000,000
14
ocfs2: should wait dio before inode lock in ocfs2_setattr() we should wait dio requests to finish before inode lock in ocfs2_setattr(), otherwise the following deadlock will happen: process 1 process 2 process 3 truncate file 'A' end_io of writing file 'A' receiving the ...
void init(TABLE *table, MEM_ROOT *mem) { init (get_field(mem, table->field[MYSQL_PROXIES_PRIV_HOST]), get_field(mem, table->field[MYSQL_PROXIES_PRIV_USER]), get_field(mem, table->field[MYSQL_PROXIES_PRIV_PROXIED_HOST]), get_field(mem, table->field[MYSQL_PROXIES_PRIV_PROXIED_USER]),...
0
[]
mysql-server
25d1b7e03b9b375a243fabdf0556c063c7282361
4,579,847,538,297,334,000,000,000,000,000,000,000
8
Bug #22722946: integer overflow may lead to wrong results in get_56_lenc_string
nl80211_send_pmsr_ftm_capa(const struct cfg80211_pmsr_capabilities *cap, struct sk_buff *msg) { struct nlattr *ftm; if (!cap->ftm.supported) return 0; ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); if (!ftm) return -ENOBUFS; if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_A...
0
[ "CWE-120" ]
linux
f88eb7c0d002a67ef31aeb7850b42ff69abc46dc
95,550,673,944,502,840,000,000,000,000,000,000,000
41
nl80211: validate beacon head We currently don't validate the beacon head, i.e. the header, fixed part and elements that are to go in front of the TIM element. This means that the variable elements there can be malformed, e.g. have a length exceeding the buffer size, but most downstream code from this assumes that thi...
tsize_t t2p_write_pdf_stream_length(tsize_t len, TIFF* output){ tsize_t written=0; char buffer[32]; int buflen=0; buflen=snprintf(buffer, sizeof(buffer), "%lu", (unsigned long)len); check_snprintf_ret((T2P*)NULL, buflen, buffer); written += t2pWriteFile(output, (tdata_t) buffer, buflen); written += t2pWriteFil...
0
[ "CWE-787" ]
libtiff
7be2e452ddcf6d7abca88f41d3761e6edab72b22
20,176,055,167,056,084,000,000,000,000,000,000,000
13
tiff2pdf.c: properly calculate datasize when saving to JPEG YCbCr fixes #220
xfs_getbmap_format( struct kgetbmap *p, struct getbmapx __user *u, size_t recsize) { if (put_user(p->bmv_offset, &u->bmv_offset) || put_user(p->bmv_block, &u->bmv_block) || put_user(p->bmv_length, &u->bmv_length) || put_user(0, &u->bmv_count) || put_user(0, &u->bmv_entries)) return false; ...
0
[ "CWE-125" ]
linux
983d8e60f50806f90534cc5373d0ce867e5aaf79
112,964,579,936,620,990,000,000,000,000,000,000,000
20
xfs: map unwritten blocks in XFS_IOC_{ALLOC,FREE}SP just like fallocate The old ALLOCSP/FREESP ioctls in XFS can be used to preallocate space at the end of files, just like fallocate and RESVSP. Make the behavior consistent with the other ioctls. Reported-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Darric...
static int _gnutls_send_finished(gnutls_session_t session, int again) { mbuffer_st *bufel; uint8_t *data; int ret; size_t vdata_size = 0; const version_entry_st *vers; if (again == 0) { bufel = _gnutls_handshake_alloc(session, MAX_VERIFY_DATA_SIZE); if (bufel == NULL) { gnutls_assert(); ...
0
[ "CWE-310" ]
gnutls
db9a7d810f9ee4c9cc49731f5fd9bdeae68d7eaa
171,502,598,522,219,500,000,000,000,000,000,000,000
77
handshake: check for TLS_FALLBACK_SCSV If TLS_FALLBACK_SCSV was sent by the client during the handshake, and the advertised protocol version is lower than GNUTLS_TLS_VERSION_MAX, send the "Inappropriate fallback" fatal alert and abort the handshake. This mechanism was defined in RFC7507.
static void __init cpu_pmu_init(struct arm_pmu *armpmu) { int cpu; for_each_possible_cpu(cpu) { struct pmu_hw_events *events = &per_cpu(cpu_hw_events, cpu); events->events = per_cpu(hw_events, cpu); events->used_mask = per_cpu(used_mask, cpu); raw_spin_lock_init(&events->pmu_lock); } armpmu->get_hw_events =...
0
[ "CWE-284", "CWE-264" ]
linux
8fff105e13041e49b82f92eef034f363a6b1c071
72,876,100,398,873,460,000,000,000,000,000,000,000
11
arm64: perf: reject groups spanning multiple HW PMUs The perf core implicitly rejects events spanning multiple HW PMUs, as in these cases the event->ctx will differ. However this validation is performed after pmu::event_init() is called in perf_init_event(), and thus pmu::event_init() may be called with a group leader...
TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { const TfLitePackParams* data = reinterpret_cast<TfLitePackParams*>(node->builtin_data); TfLiteTensor* output = GetOutput(context, node, kOutputTensor); switch (output->type) { case kTfLiteFloat32: { return PackImpl<float>(context, node...
1
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
99,125,324,069,217,270,000,000,000,000,000,000,000
39
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
void Statement::Work_BeginAll(Baton* baton) { STATEMENT_BEGIN(All); }
0
[]
node-sqlite3
593c9d498be2510d286349134537e3bf89401c4a
267,241,281,112,344,900,000,000,000,000,000,000,000
3
bug: fix segfault of invalid toString() object (#1450) * bug: verify toString() returns valid data * test: faulty toString test
dname_subdomain_c(uint8_t* d1, uint8_t* d2) { int m; /* check subdomain: d1: www.example.com. and d2: example.com. */ /* or d1: example.com. and d2: example.com. */ int labs1 = dname_count_labels(d1); int labs2 = dname_count_labels(d2); if(labs2 > labs1) return 0; if(dname_lab_cmp(d1, labs1, d2, labs2,...
0
[ "CWE-400" ]
unbound
ba0f382eee814e56900a535778d13206b86b6d49
66,243,205,429,526,120,000,000,000,000,000,000,000
16
- CVE-2020-12662 Unbound can be tricked into amplifying an incoming query into a large number of queries directed to a target. - CVE-2020-12663 Malformed answers from upstream name servers can be used to make Unbound unresponsive.
static int tcf_block_insert(struct tcf_block *block, struct net *net, struct netlink_ext_ack *extack) { struct tcf_net *tn = net_generic(net, tcf_net_id); int err; idr_preload(GFP_KERNEL); spin_lock(&tn->idr_lock); err = idr_alloc_u32(&tn->idr, block, &block->index, block->index, GFP_NOWAIT); spin_...
0
[ "CWE-416" ]
linux
04c2a47ffb13c29778e2a14e414ad4cb5a5db4b5
105,220,003,242,908,200,000,000,000,000,000,000,000
15
net: sched: fix use-after-free in tc_new_tfilter() Whenever tc_new_tfilter() jumps back to replay: label, we need to make sure @q and @chain local variables are cleared again, or risk use-after-free as in [1] For consistency, apply the same fix in tc_ctl_chain() BUG: KASAN: use-after-free in mini_qdisc_pair_swap+0x1...
static void f_midi_drop_out_substreams(struct f_midi *midi) { unsigned int i; for (i = 0; i < midi->in_ports; i++) { struct gmidi_in_port *port = midi->in_ports_array + i; struct snd_rawmidi_substream *substream = port->substream; if (port->active && substream) snd_rawmidi_drop_output(substream); } }
0
[ "CWE-415" ]
linux
7fafcfdf6377b18b2a726ea554d6e593ba44349f
308,601,367,085,546,940,000,000,000,000,000,000,000
12
USB: gadget: f_midi: fixing a possible double-free in f_midi It looks like there is a possibility of a double-free vulnerability on an error path of the f_midi_set_alt function in the f_midi driver. If the path is feasible then free_ep_req gets called twice: req->complete = f_midi_complete; err = us...
dissect_gquic_unencrypt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info){ proto_item *ti_prflags; proto_tree *prflags_tree; /* Message Authentication Hash */ proto_tree_add_item(gquic_tree, hf_gquic_message_authentication_hash, tvb,...
0
[]
wireshark
b287e7165e8aa89cde6ae37e7c257c5d87d16b9b
228,031,069,162,922,850,000,000,000,000,000,000,000
26
GQUIC: make sure our tag offset advances. Make sure gquic tag offset advances so that we don't infinitely loop.
static s32 wl_init_priv(struct brcmf_cfg80211_info *cfg) { s32 err = 0; cfg->scan_request = NULL; cfg->pwr_save = true; cfg->active_scan = true; /* we do active scan per default */ cfg->dongle_up = false; /* dongle is not up yet */ err = brcmf_init_priv_mem(cfg); if (err) return err; brcmf_register_event_ha...
0
[ "CWE-119", "CWE-703" ]
linux
ded89912156b1a47d940a0c954c43afbabd0c42c
1,498,561,066,609,811,200,000,000,000,000,000,000
18
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 unsigned int first_packet_length(struct sock *sk) { struct sk_buff_head list_kill, *rcvq = &sk->sk_receive_queue; struct sk_buff *skb; unsigned int res; __skb_queue_head_init(&list_kill); spin_lock_bh(&rcvq->lock); while ((skb = skb_peek(rcvq)) != NULL && udp_lib_checksum_complete(skb)) { UDP_INC_STA...
0
[ "CWE-20" ]
net
bceaa90240b6019ed73b49965eac7d167610be69
49,265,391,059,764,750,000,000,000,000,000,000,000
31
inet: prevent leakage of uninitialized memory to user in recv syscalls Only update *addr_len when we actually fill in sockaddr, otherwise we can return uninitialized memory from the stack to the caller in the recvfrom, recvmmsg and recvmsg syscalls. Drop the the (addr_len == NULL) checks because we only get called wit...
static int sctp_do_bind(struct sock *sk, union sctp_addr *addr, int len) { struct net *net = sock_net(sk); struct sctp_sock *sp = sctp_sk(sk); struct sctp_endpoint *ep = sp->ep; struct sctp_bind_addr *bp = &ep->base.bind_addr; struct sctp_af *af; unsigned short snum; int ret = 0; /* Common sockaddr verificatio...
0
[ "CWE-415" ]
linux
dfcb9f4f99f1e9a49e43398a7bfbf56927544af1
98,484,698,036,497,860,000,000,000,000,000,000,000
78
sctp: deny peeloff operation on asocs with threads sleeping on it commit 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf") attempted to avoid a BUG_ON call when the association being used for a sendmsg() is blocked waiting for more sndbuf and another thread did a peeloff operation on such asoc, moving it to ...
struct sctp_transport *sctp_assoc_choose_shutdown_transport( struct sctp_association *asoc) { /* If this is the first time SHUTDOWN is sent, use the active path, * else use the retran path. If the last SHUTDOWN was sent over the * retran path, update the retran path and use it. */ if (!asoc->shutdown_last_sent...
0
[ "CWE-287" ]
linux-2.6
add52379dde2e5300e2d574b172e62c6cf43b3d3
70,882,576,964,651,560,000,000,000,000,000,000,000
16
sctp: Fix oops when INIT-ACK indicates that peer doesn't support AUTH If INIT-ACK is received with SupportedExtensions parameter which indicates that the peer does not support AUTH, the packet will be silently ignore, and sctp_process_init() do cleanup all of the transports in the association. When T1-Init timer is ex...
round_up_pow2 (guint n) { n = n - 1; n = n | (n >> 1); n = n | (n >> 2); n = n | (n >> 4); n = n | (n >> 8); n = n | (n >> 16); return n + 1; }
0
[ "CWE-125" ]
gst-plugins-good
d0949baf3dadea6021d54abef6802fed5a06af75
180,458,303,822,883,600,000,000,000,000,000,000,000
10
qtdemux: Fix out of bounds read in tag parsing code We can't simply assume that the length of the tag value as given inside the stream is correct but should also check against the amount of data we have actually available. https://bugzilla.gnome.org/show_bug.cgi?id=775451
TPMI_RH_AC_Unmarshal(TPMI_RH_AC *target, BYTE **buffer, INT32 *size) { TPM_RC rc = TPM_RC_SUCCESS; TPMI_RH_AC orig_target = *target; // libtpms added if (rc == TPM_RC_SUCCESS) { rc = TPM_HANDLE_Unmarshal(target, buffer, size); } if (rc == TPM_RC_SUCCESS) { BOOL isNotAC = (*target < AC_FIRST) ||...
0
[ "CWE-787" ]
libtpms
5cc98a62dc6f204dcf5b87c2ee83ac742a6a319b
214,675,885,240,171,530,000,000,000,000,000,000,000
17
tpm2: Restore original value if unmarshalled value was illegal Restore the original value of the memory location where data from a stream was unmarshalled and the unmarshalled value was found to be illegal. The goal is to not keep illegal values in memory. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
sf_writef_int (SNDFILE *sndfile, const int *ptr, sf_count_t frames) { SF_PRIVATE *psf ; sf_count_t count ; VALIDATE_SNDFILE_AND_ASSIGN_PSF (sndfile, psf, 1) ; if (psf->file.mode == SFM_READ) { psf->error = SFE_NOT_WRITEMODE ; return 0 ; } ; if (psf->write_int == NULL || psf->seek == NULL) { psf->error = S...
0
[ "CWE-119", "CWE-787" ]
libsndfile
708e996c87c5fae77b104ccfeb8f6db784c32074
87,446,688,381,286,630,000,000,000,000,000,000,000
40
src/ : Move to a variable length header buffer Previously, the `psf->header` buffer was a fixed length specified by `SF_HEADER_LEN` which was set to `12292`. This was problematic for two reasons; this value was un-necessarily large for the majority of files and too small for some others. Now the size of the header bu...
kauth_reply_print(netdissect_options *ndo, register const u_char *bp, int length, int32_t opcode) { const struct rx_header *rxh; if (length <= (int)sizeof(struct rx_header)) return; rxh = (const struct rx_header *) bp; /* * Print out the afs call we're invoking. The table used here was *...
0
[ "CWE-125" ]
tcpdump
c24922e692a52121e853a84ead6b9337f4c08a94
55,507,182,298,132,580,000,000,000,000,000,000,000
46
(for 4.9.3) CVE-2018-14466/Rx: fix an over-read bug In rx_cache_insert() and rx_cache_find() properly read the serviceId field of the rx_header structure as a 16-bit integer. When those functions tried to read 32 bits the extra 16 bits could be outside of the bounds checked in rx_print() for the rx_header structure, a...
static NTSTATUS update_trust_user(TALLOC_CTX *mem_ctx, struct ldb_context *sam_ldb, struct ldb_dn *base_dn, bool delete_user, const char *netbios_name, struct trustAuthInOutBlob *in) { const char *attrs[] = { "userAccountControl", NULL }; struct ldb_message **msgs; struct ldb_message *m...
0
[ "CWE-200" ]
samba
0a3aa5f908e351201dc9c4d4807b09ed9eedff77
171,933,190,157,432,060,000,000,000,000,000,000,000
104
CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message This aims to minimise usage of the error-prone pattern of searching for a just-added message element in order to make modifications to it (and potentially finding the wrong element). BUG: https://bugzilla.samba.org/show_bug.cgi?id=15009 Signed...
static MagickBooleanType GetProfilesFromResourceBlock(Image *image, const StringInfo *resource_block,ExceptionInfo *exception) { const unsigned char *datum; register const unsigned char *p; size_t length; StringInfo *profile; unsigned char length_byte; size_t count; unsigne...
0
[ "CWE-190" ]
ImageMagick
e9438e2a82d35b6657e908ff38ec0303f432b655
277,748,904,159,422,460,000,000,000,000,000,000,000
124
png_get_header_version(png_const_structrp png_ptr) { /* Returns longer string containing both version and date */ PNG_UNUSED(png_ptr) /* Silence compiler warning about unused png_ptr */ #ifdef __STDC__ return PNG_HEADER_VERSION_STRING # ifndef PNG_READ_SUPPORTED " (NO READ SUPPORT)" # endif PNG_...
0
[ "CWE-476" ]
libpng
812768d7a9c973452222d454634496b25ed415eb
308,005,803,233,527,350,000,000,000,000,000,000,000
14
[libpng16] Fixed a potential null pointer dereference in png_set_text_2() (bug report and patch by Patrick Keshishian).
u32 gf_id3_read_size(GF_BitStream *bs) { u32 size = 0; gf_bs_read_int(bs, 1); size |= gf_bs_read_int(bs, 7); size<<=7; gf_bs_read_int(bs, 1); size |= gf_bs_read_int(bs, 7); size<<=7; gf_bs_read_int(bs, 1); size |= gf_bs_read_int(bs, 7); size<<=7; gf_bs_read_int(bs, 1); size |= gf_bs_read_int(bs, 7); return...
0
[ "CWE-190", "CWE-787" ]
gpac
51cdb67ff7c5f1242ac58c5aa603ceaf1793b788
100,744,692,282,591,250,000,000,000,000,000,000,000
16
add safety in avc/hevc/vvc sps/pps/vps ID check - cf #1720 #1721 #1722
dfa_t::~dfa_t() { std::vector<dfa_state_t*>::iterator i = states.begin(), e = states.end(); for (; i != e; ++i) { delete *i; } }
0
[ "CWE-787" ]
re2c
a3473fd7be829cb33907cb08612f955133c70a96
262,242,864,356,210,500,000,000,000,000,000,000,000
10
Limit maximum allowed NFA and DFA size. Instead of failing with an out of memory exception or crashing with a stack overflow, emit an error message and exit. This is a partial fix for bug #394 "Stack overflow due to recursion in src/dfa/dead_rules.cc", where re2c hit stack overflow on a counted repetition regexp with ...
static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int count) { struct vc_draw_region draw = { .x = -1, }; int c, tc, n = 0; unsigned int currcons; struct vc_data *vc; struct vt_notifier_param param; bool rescan; if (in_interrupt()) return count; console_lock(); vc = tty->driver_d...
0
[ "CWE-125" ]
linux
3c4e0dff2095c579b142d5a0693257f1c58b4804
236,477,315,784,888,250,000,000,000,000,000,000,000
74
vt: Disable KD_FONT_OP_COPY It's buggy: On Fri, Nov 06, 2020 at 10:30:08PM +0800, Minh Yuan wrote: > We recently discovered a slab-out-of-bounds read in fbcon in the latest > kernel ( v5.10-rc2 for now ). The root cause of this vulnerability is that > "fbcon_do_set_font" did not handle "vc->vc_font.data" and > "vc->...