func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
const int Display::terminalId() const { return m_terminalId; }
0
[ "CWE-613", "CWE-287", "CWE-284" ]
sddm
147cec383892d143b5e02daa70f1e7def50f5d98
327,093,536,103,924,030,000,000,000,000,000,000,000
3
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
MagickPrivate double GetResizeFilterScale(const ResizeFilter *resize_filter) { assert(resize_filter != (ResizeFilter *) NULL); assert(resize_filter->signature == MagickCoreSignature); return(resize_filter->scale); }
0
[ "CWE-125" ]
ImageMagick
c5402b6e0fcf8b694ae2af6a6652ebb8ce0ccf46
171,053,602,586,348,460,000,000,000,000,000,000,000
6
https://github.com/ImageMagick/ImageMagick/issues/717
flow_wc_map(const struct flow *flow, struct flowmap *map) { /* Update this function whenever struct flow changes. */ BUILD_ASSERT_DECL(FLOW_WC_SEQ == 40); flowmap_init(map); if (flow_tnl_dst_is_set(&flow->tunnel)) { FLOWMAP_SET__(map, tunnel, offsetof(struct flow_tnl, metadata)); if (!...
0
[ "CWE-400" ]
ovs
48ceca0446b1c2c2c03e7551048c5b19ed23cc97
126,772,419,521,228,960,000,000,000,000,000,000,000
97
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
loadURIMethods(char *filename) { FILE *f; int i, n; Str tmp; struct table2 *um; char *up, *p; f = fopen(expandPath(filename), "r"); if (f == NULL) return NULL; i = 0; while (tmp = Strfgets(f), tmp->length > 0) { if (tmp->ptr[0] != '#') i++; } fseek(f, 0, 0); n = i...
0
[ "CWE-119" ]
w3m
ba9d78faeba9024c3e8840579c3b0e959ae2cb0f
96,372,946,177,247,980,000,000,000,000,000,000,000
44
Prevent global-buffer-overflow in parseURL() Bug-Debian: https://github.com/tats/w3m/issues/41
void NumberFormatTest::TestIllegalPatterns() { // Test cases: // Prefix with "-:" for illegal patterns // Prefix with "+:" for legal patterns const char* DATA[] = { // Unquoted special characters in the suffix are illegal "-:000.000|###", "+:000.000'|###'", 0 }; f...
0
[ "CWE-190" ]
icu
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
293,708,435,554,475,730,000,000,000,000,000,000,000
26
ICU-20246 Fixing another integer overflow in number parsing.
static inline struct sk_buff *alloc_skb_fclone(unsigned int size, gfp_t priority) { return __alloc_skb(size, priority, SKB_ALLOC_FCLONE, NUMA_NO_NODE);
0
[ "CWE-20" ]
linux
2b16f048729bf35e6c28a40cbfad07239f9dcd90
46,290,264,349,312,535,000,000,000,000,000,000,000
5
net: create skb_gso_validate_mac_len() If you take a GSO skb, and split it into packets, will the MAC length (L2 + L3 + L4 headers + payload) of those packets be small enough to fit within a given length? Move skb_gso_mac_seglen() to skbuff.h with other related functions like skb_gso_network_seglen() so we can use it...
soa_rrstream_current(rrstream_t *rs, dns_name_t **name, uint32_t *ttl, dns_rdata_t **rdata) { soa_rrstream_t *s = (soa_rrstream_t *) rs; *name = &s->soa_tuple->name; *ttl = s->soa_tuple->ttl; *rdata = &s->soa_tuple->rdata; }
0
[ "CWE-732" ]
bind9
34348d9ee4db15307c6c42db294419b4df569f76
88,079,817,637,640,800,000,000,000,000,000,000,000
8
denied axfr requests were not effective for writable DLZ zones (cherry picked from commit d9077cd0038e59726e1956de18b4b7872038a283)
rsvg_cairo_render_image (RsvgDrawingCtx * ctx, const GdkPixbuf * pixbuf, double pixbuf_x, double pixbuf_y, double w, double h) { RsvgCairoRender *render = (RsvgCairoRender *) ctx->render; RsvgState *state = rsvg_current_state (ctx); gint width = gdk_pixbuf_get_width (pixbuf); g...
0
[]
librsvg
34c95743ca692ea0e44778e41a7c0a129363de84
83,791,553,750,852,430,000,000,000,000,000,000,000
121
Store node type separately in RsvgNode The node name (formerly RsvgNode:type) cannot be used to infer the sub-type of RsvgNode that we're dealing with, since for unknown elements we put type = node-name. This lead to a (potentially exploitable) crash e.g. when the element name started with "fe" which tricked the old c...
static void usb_enable_link_state(struct usb_hcd *hcd, struct usb_device *udev, enum usb3_link_state state) { int timeout, ret; __u8 u1_mel = udev->bos->ss_cap->bU1devExitLat; __le16 u2_mel = udev->bos->ss_cap->bU2DevExitLat; /* If the device says it doesn't have *any* exit latency to come out of * U1 or U2, i...
0
[ "CWE-400", "CWE-703" ]
linux
704620afc70cf47abb9d6a1a57f3825d2bca49cf
99,037,961,539,542,800,000,000,000,000,000,000,000
69
USB: check usb_get_extra_descriptor for proper size When reading an extra descriptor, we need to properly check the minimum and maximum size allowed, to prevent from invalid data being sent by a device. Reported-by: Hui Peng <benquike@gmail.com> Reported-by: Mathias Payer <mathias.payer@nebelwelt.net> Co-developed-by...
static int read_huffman_code_normal(WebPContext *s, HuffReader *hc, int alphabet_size) { HuffReader code_len_hc = { { 0 }, 0, 0, { 0 } }; int *code_lengths = NULL; int code_length_code_lengths[NUM_CODE_LENGTH_CODES] = { 0 }; int i, symbol, max_symbol, prev_code_len, r...
0
[ "CWE-119", "CWE-787" ]
FFmpeg
6b5d3fb26fb4be48e4966e4b1d97c2165538d4ef
280,000,103,689,222,800,000,000,000,000,000,000,000
92
avcodec/webp: Always set pix_fmt Fixes: out of array access Fixes: 1434/clusterfuzz-testcase-minimized-6314998085189632 Fixes: 1435/clusterfuzz-testcase-minimized-6483783723253760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Reviewed-by: "Ronald S. Bultje" <rsbult...
static u32 lsr_read_vluimsbf8(GF_LASeRCodec *lsr, const char *name) { u32 nb_words = 0; u32 nb_tot, nb_bits, val; while (gf_bs_read_int(lsr->bs, 1)) nb_words++; nb_words++; nb_tot = nb_words; nb_bits = nb_words*7; nb_tot += nb_bits; val = gf_bs_read_int(lsr->bs, nb_bits); GF_LOG(GF_LOG_DEBUG, GF_LOG_CODING, (...
0
[ "CWE-190" ]
gpac
faa75edde3dfeba1e2cf6ffa48e45a50f1042096
60,680,491,638,181,620,000,000,000,000,000,000,000
14
fixed #2213
void Krecipes::printSetupSlot() { Recipe recipe; m_view->selectPanel->getCurrentRecipe( &recipe ); KConfigGroup grp(KGlobal::config(),"Page Setup"); QString layout = grp.readEntry( "Layout", KStandardDirs::locate( "appdata", "layouts/None.klo" ) ); QString printLayout = grp.readEntry( "PrintLayout", KStand...
0
[]
krecipes
cd1490fb5fe82cbe9172a43be13298001b446ecd
129,296,819,934,821,220,000,000,000,000,000,000,000
19
Use WebKit instead of KHTML for printing recipes, fixes sourceforge #2990118 and #2960140. svn path=/trunk/extragear/utils/krecipes/; revision=1137824
static int pep_init(struct sock *sk) { struct pep_sock *pn = pep_sk(sk); sk->sk_destruct = pipe_destruct; INIT_HLIST_HEAD(&pn->hlist); pn->listener = NULL; skb_queue_head_init(&pn->ctrlreq_queue); atomic_set(&pn->tx_credits, 0); pn->ifindex = 0; pn->peer_type = 0; pn->pipe_handle = PN_PIPE_INVALID_HANDLE; pn...
0
[ "CWE-200" ]
net
bcd0f93353326954817a4f9fa55ec57fb38acbb0
152,006,338,261,668,380,000,000,000,000,000,000,000
18
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...
TEST_P(HeaderIntegrationTest, TestPathAndRouteOnNormalizedPath) { normalize_path_ = true; initializeFilter(HeaderMode::Append, false); performRequest( Http::TestRequestHeaderMapImpl{ {":method", "GET"}, {":path", "/private/../public"}, {":scheme", "http"}, {":authorit...
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
154,743,202,486,952,570,000,000,000,000,000,000,000
26
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct nlattr **attrs) { struct net *net = sock_net(skb->sk); struct xfrm_policy *xp; struct xfrm_userpolicy_id *p; u8 type = XFRM_POLICY_TYPE_MAIN; int err; struct km_event c; int delete; struct xfrm_mark m; u32 mark = xfrm_mark_get(attrs...
0
[ "CWE-200" ]
linux
1f86840f897717f86d523a13e99a447e6a5d2fa5
229,486,423,693,356,060,000,000,000,000,000,000,000
82
xfrm_user: fix info leak in copy_to_user_tmpl() The memory used for the template copy is a local stack variable. As struct xfrm_user_tmpl contains multiple holes added by the compiler for alignment, not initializing the memory will lead to leaking stack bytes to userland. Add an explicit memset(0) to avoid the info le...
int basic_authentication(zval* this_ptr, smart_str* soap_headers TSRMLS_DC) { zval **login, **password; if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_login", sizeof("_login"), (void **)&login) == SUCCESS && !zend_hash_exists(Z_OBJPROP_P(this_ptr), "_digest", sizeof("_digest"))) { unsigned char* buf; int len; ...
1
[ "CWE-19" ]
php-src
0c136a2abd49298b66acb0cad504f0f972f5bfe8
339,832,827,899,815,700,000,000,000,000,000,000,000
26
Added type checks
int vcc_create(struct net *net, struct socket *sock, int protocol, int family) { struct sock *sk; struct atm_vcc *vcc; sock->sk = NULL; if (sock->type == SOCK_STREAM) return -EINVAL; sk = sk_alloc(net, family, GFP_KERNEL, &vcc_proto); if (!sk) return -ENOMEM; sock_init_data(sock, sk); sk->sk_state_change =...
0
[ "CWE-200" ]
linux
e862f1a9b7df4e8196ebec45ac62295138aa3fc2
284,685,015,844,835,800,000,000,000,000,000,000,000
30
atm: fix info leak in getsockopt(SO_ATMPVC) The ATM code fails to initialize the two padding bytes of struct sockaddr_atmpvc inserted for alignment. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: David S. Miller <dav...
void usbip_pack_pdu(struct usbip_header *pdu, struct urb *urb, int cmd, int pack) { switch (cmd) { case USBIP_CMD_SUBMIT: usbip_pack_cmd_submit(pdu, urb, pack); break; case USBIP_RET_SUBMIT: usbip_pack_ret_submit(pdu, urb, pack); break; default: /* NOT REACHED */ pr_err("unknown command\n"); bre...
0
[ "CWE-200", "CWE-119" ]
linux
b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb
44,517,414,814,966,140,000,000,000,000,000,000,000
16
USB: usbip: fix potential out-of-bounds write Fix potential out-of-bounds write to urb->transfer_buffer usbip handles network communication directly in the kernel. When receiving a packet from its peer, usbip code parses headers according to protocol. As part of this parsing urb->actual_length is filled. Since the inp...
void set_result_field(Field *field) { result_field= field; }
0
[]
mysql-server
f7316aa0c9a3909fc7498e7b95d5d3af044a7e21
201,507,452,788,761,150,000,000,000,000,000,000,000
1
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) Backport of Bug#19143243 fix. NAME_CONST item can return NULL_ITEM type in case of incorrect arguments. NULL_ITEM has special processing in Item_func_in function. In Item_func_in::fix_length_and_dec an a...
asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0, unsigned long thread_info_flags) { /* deal with pending signal delivery */ if (thread_info_flags & _TIF_SIGPENDING) do_signal(regs, save_r0); if (thread_info_flags & _TIF_NOTIFY_RESUME) { clear_thread_flag(TIF_NOTIFY_RESUME); tr...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
121,088,459,043,666,430,000,000,000,000,000,000,000
14
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
void write (char *&ptr) const { Xdr::write<CharPtrIO> (ptr, _suffix.c_str()); // Encode _cscIdx (-1-3) in the upper 4 bits, // _scheme (0-2) in the next 2 bits // _caseInsen in the bottom bit unsigned char value = 0; value |= ((unsigned char)(_...
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
226,775,285,793,466,230,000,000,000,000,000,000,000
15
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
static u32 ip4_key_hashfn(const void *data, u32 len, u32 seed) { return jhash2(data, sizeof(struct frag_v4_compare_key) / sizeof(u32), seed); }
0
[ "CWE-20" ]
linux
5d407b071dc369c26a38398326ee2be53651cfe4
327,455,249,457,242,440,000,000,000,000,000,000,000
5
ip: frags: fix crash in ip_do_fragment() A kernel crash occurrs when defragmented packet is fragmented in ip_do_fragment(). In defragment routine, skb_orphan() is called and skb->ip_defrag_offset is set. but skb->sk and skb->ip_defrag_offset are same union member. so that frag->sk is not NULL. Hence crash occurrs in s...
static void read_capacity_error(struct scsi_disk *sdkp, struct scsi_device *sdp, struct scsi_sense_hdr *sshdr, int sense_valid, int the_result) { sd_print_result(sdkp, the_result); if (driver_byte(the_result) & DRIVER_SENSE) sd_print_sense_hdr(sdkp, sshdr); else sd_printk(KERN_NOTICE, sdkp, "Sense not avai...
0
[ "CWE-284", "CWE-264" ]
linux
0bfc96cb77224736dfa35c3c555d37b3646ef35e
259,588,769,015,503,540,000,000,000,000,000,000,000
25
block: fail SCSI passthrough ioctls on partition devices Linux allows executing the SG_IO ioctl on a partition or LVM volume, and will pass the command to the underlying block device. This is well-known, but it is also a large security problem when (via Unix permissions, ACLs, SELinux or a combination thereof) a prog...
gs_font_map_glyph_to_unicode(gs_font *font, gs_glyph glyph, int ch, ushort *u, unsigned int length) { font_data *pdata = pfont_data(font); const ref *UnicodeDecoding; uchar *unicode_return = (uchar *)u; if (r_type(&pdata->GlyphNames2Unicode) == t_dictionary) { int c = gs_font_map_glyph_by_dict(...
1
[ "CWE-476" ]
ghostpdl
407c98a38c3a6ac1681144ed45cc2f4fc374c91f
258,073,312,248,734,330,000,000,000,000,000,000,000
65
txtwrite - guard against using GS_NO_GLYPH to retrieve Unicode values Bug 701822 "Segmentation fault at psi/iname.c:296 in names_index_ref" Avoid using a glyph with the value GS_NO_GLYPH to retrieve a glyph name or Unicode code point from the glyph ID, as this is not a valid ID.
virtual void set_max() { DBUG_ASSERT(0); }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
95,015,933,340,847,740,000,000,000,000,000,000,000
2
MDEV-24176 Server crashes after insert in the table with virtual column generated using date_format() and if() vcol_info->expr is allocated on expr_arena at parsing stage. Since expr item is allocated on expr_arena all its containee items must be allocated on expr_arena too. Otherwise fix_session_expr() will encounter...
zsetcolor(i_ctx_t * i_ctx_p) { os_ptr op = osp; es_ptr ep; const gs_color_space * pcs = gs_currentcolorspace(igs); gs_client_color cc; int n_comps, n_numeric_comps, num_offset = 0, code, depth; PS_colour_space_t *space; /* initialize the client ...
1
[]
ghostpdl
b326a71659b7837d3acde954b18bda1a6f5e9498
225,668,182,502,541,900,000,000,000,000,000,000,000
94
Bug 699655: Properly check the return value.... ...when getting a value from a dictionary
struct vm_area_struct *vm_area_dup(struct vm_area_struct *orig) { struct vm_area_struct *new = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); if (new) { *new = *orig; INIT_LIST_HEAD(&new->anon_vma_chain); } return new; }
0
[ "CWE-362" ]
linux
7b55851367136b1efd84d98fea81ba57a98304cf
121,256,843,830,540,850,000,000,000,000,000,000,000
10
fork: record start_time late This changes the fork(2) syscall to record the process start_time after initializing the basic task structure but still before making the new process visible to user-space. Technically, we could record the start_time anytime during fork(2). But this might lead to scenarios where a start_...
static bool blk_mq_attempt_merge(struct request_queue *q, struct blk_mq_ctx *ctx, struct bio *bio) { struct request *rq; int checked = 8; list_for_each_entry_reverse(rq, &ctx->rq_list, queuelist) { int el_ret; if (!checked--) break; if (!blk_rq_merge_ok(rq, bio)) continue; el_ret = blk_try_mer...
0
[ "CWE-362", "CWE-264" ]
linux
0048b4837affd153897ed1222283492070027aa9
264,114,349,527,851,460,000,000,000,000,000,000,000
33
blk-mq: fix race between timeout and freeing request Inside timeout handler, blk_mq_tag_to_rq() is called to retrieve the request from one tag. This way is obviously wrong because the request can be freed any time and some fiedds of the request can't be trusted, then kernel oops might be triggered[1]. Currently wrt. ...
static Token *new_Token(Token * next, enum pp_token_type type, const char *text, int txtlen) { Token *t; int i; if (!freeTokens) { freeTokens = (Token *) new_Block(TOKEN_BLOCKSIZE * sizeof(Token)); for (i = 0; i < TOKEN_BLOCKSIZE - 1; i++) freeTokens[i].n...
0
[ "CWE-125" ]
nasm
3144e84add8b152cc7a71e44617ce6f21daa4ba3
97,317,036,278,216,010,000,000,000,000,000,000,000
28
preproc: Don't access offsting byte on unterminated strings https://bugzilla.nasm.us/show_bug.cgi?id=3392446 Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
static bool is_executable(RBinObject *obj) { RListIter *it; RBinSection* sec; r_return_val_if_fail (obj, false); if (obj->info && obj->info->arch) { return true; } r_list_foreach (obj->sections, it, sec) { if (sec->perm & R_PERM_X) { return true; } } return false; }
0
[ "CWE-78" ]
radare2
5411543a310a470b1257fb93273cdd6e8dfcb3af
190,480,732,996,983,470,000,000,000,000,000,000,000
14
More fixes for the CVE-2019-14745
parse_delay_value(const char *src, double *delays, int *always) { int star = 0; *delays = 0.0; if (always) *always = 0; while (isdigit(UChar(*src))) { (*delays) = (*delays) * 10 + (*src++ - '0'); } if (*src == '.') { int gotdot = 1; ++src; while (isdigit(UChar(*src))) { gotdot *= 10...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
102,058,296,093,590,550,000,000,000,000,000,000,000
33
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
Status TrySimplify(NodeDef* node, string* simplified_node_name) override { if (ctx().graph_properties->GetInputProperties(node->name()).size() < 2) { return Status::OK(); } const auto& t = ctx().graph_properties->GetInputProperties(node->name())[0]; const auto& c = ctx().graph_properties->GetInp...
0
[ "CWE-476" ]
tensorflow
e6340f0665d53716ef3197ada88936c2a5f7a2d3
2,542,665,752,210,746,300,000,000,000,000,000,000
49
Handle a special grappler case resulting in crash. It might happen that a malformed input could be used to trick Grappler into trying to optimize a node with no inputs. This, in turn, would produce a null pointer dereference and a segfault. PiperOrigin-RevId: 369242852 Change-Id: I2e5cbe7aec243d34a6d60220ac8ac9b16f13...
static int r_cmd_java_resolve_cp_idx_b64 (RBinJavaObj *obj, ut16 idx) { if (obj && idx){ char * str = r_bin_java_resolve_b64_encode (obj, idx) ; r_cons_println (str); free (str); } return true; }
0
[ "CWE-703", "CWE-193" ]
radare2
ced0223c7a1b3b5344af315715cd28fe7c0d9ebc
101,399,846,498,468,940,000,000,000,000,000,000,000
8
Fix unmatched array length in core_java.c (issue #16304) (#16313)
do_remote_deliveries(BOOL fallback) { int parmax; int delivery_count; int poffset; parcount = 0; /* Number of executing subprocesses */ /* When sending down an existing channel, only do one delivery at a time. We use a local variable (parmax) to hold the maximum number of processes; this gets reduced from remote_m...
0
[ "CWE-78" ]
exim
7ea1237c783e380d7bdb86c90b13d8203c7ecf26
149,163,936,929,584,650,000,000,000,000,000,000,000
860
Events: raise msg:fail:internal & msg:complete for -Mrm. Bug 2310
static int get_gateway_host_ip(struct tunnel *tunnel) { const struct addrinfo hints = { .ai_family = AF_INET }; struct addrinfo *result = NULL; int ret = getaddrinfo(tunnel->config->gateway_host, NULL, &hints, &result); if (ret) { if (ret == EAI_SYSTEM) log_error("getaddrinfo: %s\n", strerror(errno)); else...
0
[ "CWE-295" ]
openfortivpn
60660e00b80bad0fadcf39aee86f6f8756c94f91
62,920,309,310,924,660,000,000,000,000,000,000,000
23
correctly check return value of X509_check_host CVE-2020-7041 incorrect use of X509_check_host (regarding return value) is fixed with this commit. The flaw came in with #242 and prevented proper host name verification when openssl >= 1.0.2 was in use since openfortivpn 1.7.0.
int SSL_get_ex_data_X509_STORE_CTX_idx(void) { if (!RUN_ONCE(&ssl_x509_store_ctx_once, ssl_x509_store_ctx_init)) return -1; return ssl_x509_store_ctx_idx; }
0
[ "CWE-835" ]
openssl
758754966791c537ea95241438454aa86f91f256
225,354,179,922,193,830,000,000,000,000,000,000,000
7
Fix invalid handling of verify errors in libssl In the event that X509_verify() returned an internal error result then libssl would mishandle this and set rwstate to SSL_RETRY_VERIFY. This subsequently causes SSL_get_error() to return SSL_ERROR_WANT_RETRY_VERIFY. That return code is supposed to only ever be returned i...
static bool blk_add_partition(struct gendisk *disk, struct parsed_partitions *state, int p) { sector_t size = state->parts[p].size; sector_t from = state->parts[p].from; struct block_device *part; if (!size) return true; if (from >= get_capacity(disk)) { printk(KERN_WARNING "%s: p%d start %llu is ...
0
[ "CWE-416" ]
linux
9fbfabfda25d8774c5a08634fdd2da000a924890
260,599,734,447,748,400,000,000,000,000,000,000,000
49
block: fix incorrect references to disk objects When adding partitions to the disk, the reference count of the disk object is increased. then alloc partition device and called device_add(), if the device_add() return error, the reference count of the disk object will be reduced twice, at put_device(pdev) and put_disk(...
check_for_opt_lnum_arg(typval_T *args, int idx) { return (args[idx].v_type == VAR_UNKNOWN || check_for_lnum_arg(args, idx)); }
0
[ "CWE-125", "CWE-122" ]
vim
1e56bda9048a9625bce6e660938c834c5c15b07d
289,323,709,509,133,760,000,000,000,000,000,000,000
5
patch 9.0.0104: going beyond allocated memory when evaluating string constant Problem: Going beyond allocated memory when evaluating string constant. Solution: Properly skip over <Key> form.
static long media_device_enum_entities(struct media_device *mdev, struct media_entity_desc __user *uent) { struct media_entity *ent; struct media_entity_desc u_ent; memset(&u_ent, 0, sizeof(u_ent)); if (copy_from_user(&u_ent.id, &uent->id, sizeof(u_ent.id))) return -EFAULT; ent = find_entity(mdev, u...
0
[ "CWE-200" ]
linux
e6a623460e5fc960ac3ee9f946d3106233fd28d8
136,396,067,983,994,890,000,000,000,000,000,000,000
33
[media] media-device: fix infoleak in ioctl media_enum_entities() This fixes CVE-2014-1739. Signed-off-by: Salva Peiró <speiro@ai2.upv.es> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: stable@vger.kernel.org Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Network::FilterStatus Context::onWrite(Buffer::Instance& data, bool end_stream) { network_upstream_data_buffer_ = &data; auto result = onUpstreamData(data.length(), end_stream); network_upstream_data_buffer_ = nullptr; if (end_stream) { // This is called when seeing end_stream=true and not on an upstream co...
0
[ "CWE-476" ]
envoy
8788a3cf255b647fd14e6b5e2585abaaedb28153
224,936,164,949,974,580,000,000,000,000,000,000,000
11
1.4 - Do not call into the VM unless the VM Context has been created. (#24) * Ensure that the in VM Context is created before onDone is called. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Update as per offline discussion. Signed-off-by: John Plevyak <jplevyak@gmail.com> * Set in_vm_context_created_ in onNet...
void PDFDoc::writeObject (Object* obj, OutStream* outStr, XRef *xRef, unsigned int numOffset, unsigned char *fileKey, CryptAlgorithm encAlgorithm, int keyLength, int objNum, int objGen, std::set<Dict*> *alreadyWrittenDicts) { Array *array; switch (obj->getType()) { case objBool: ...
0
[ "CWE-787" ]
poppler
fada09a2ccc11a3a1d308e810f1336d8df6011fd
295,655,835,082,996,870,000,000,000,000,000,000,000
150
pdfunite: Fix stack overflow on broken file Fixes issue #741
f_test_ignore_error(typval_T *argvars, typval_T *rettv UNUSED) { if (check_for_string_arg(argvars, 0) == FAIL) return; ignore_error_for_testing(tv_get_string(&argvars[0])); }
0
[ "CWE-476" ]
vim
1540d334a04d874c2aa9d26b82dbbcd4bc5a78de
116,754,793,440,613,880,000,000,000,000,000,000,000
7
patch 9.0.0404: crash when passing invalid arguments to assert_fails() Problem: Crash when passing invalid arguments to assert_fails(). Solution: Check for NULL string.
char *redisProtocolToLuaType(lua_State *lua, char* reply) { if (!lua_checkstack(lua, 5)) { /* * Increase the Lua stack if needed, to make sure there is enough room * to push 5 elements to the stack. On failure, exit with panic.          * Notice that we need, in the worst case, 5 elements...
0
[ "CWE-787" ]
redis
666ed7facf4524bf6d19b11b20faa2cf93fdf591
59,364,486,201,707,070,000,000,000,000,000,000,000
27
Fix invalid memory write on lua stack overflow {CVE-2021-32626} When LUA call our C code, by default, the LUA stack has room for 20 elements. In most cases, this is more than enough but sometimes it's not and the caller must verify the LUA stack size before he pushes elements. On 3 places in the code, there was no ve...
static int hso_start_net_device(struct hso_device *hso_dev) { int i, result = 0; struct hso_net *hso_net = dev2net(hso_dev); if (!hso_net) return -ENODEV; /* send URBs for all read buffers */ for (i = 0; i < MUX_BULK_RX_BUF_COUNT; i++) { /* Prep a receive URB */ usb_fill_bulk_urb(hso_net->mux_bulk_rx_urb_...
0
[ "CWE-125" ]
linux
5146f95df782b0ac61abde36567e718692725c89
162,944,428,365,735,880,000,000,000,000,000,000,000
32
USB: hso: Fix OOB memory access in hso_probe/hso_get_config_data The function hso_probe reads if_num from the USB device (as an u8) and uses it without a length check to index an array, resulting in an OOB memory read in hso_probe or hso_get_config_data. Add a length check for both locations and updated hso_probe to ...
static inline bool cpu_has_vmx_ple(void) { return vmcs_config.cpu_based_2nd_exec_ctrl & SECONDARY_EXEC_PAUSE_LOOP_EXITING; }
0
[ "CWE-400" ]
linux-2.6
9581d442b9058d3699b4be568b6e5eae38a41493
186,240,658,129,902,500,000,000,000,000,000,000,000
5
KVM: Fix fs/gs reload oops with invalid ldt kvm reloads the host's fs and gs blindly, however the underlying segment descriptors may be invalid due to the user modifying the ldt after loading them. Fix by using the safe accessors (loadsegment() and load_gs_index()) instead of home grown unsafe versions. This is CVE-...
l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { const char *t1 = luaT_objtypename(L, p1); const char *t2 = luaT_objtypename(L, p2); if (strcmp(t1, t2) == 0) luaG_runerror(L, "attempt to compare two %s values", t1); else luaG_runerror(L, "attempt to compare %s with %s", t1, t...
0
[ "CWE-703" ]
lua
a2195644d89812e5b157ce7bac35543e06db05e3
151,887,660,418,743,530,000,000,000,000,000,000,000
8
Fixed bug: invalid 'oldpc' when returning to a function The field 'L->oldpc' is not always updated when control returns to a function; an invalid value can seg. fault when computing 'changedline'. (One example is an error in a finalizer; control can return to 'luaV_execute' without executing 'luaD_poscall'.) Instead o...
fiber_resume(mrb_state *mrb, mrb_value self) { const mrb_value *a; mrb_int len; mrb_bool vmexec = FALSE; mrb_get_args(mrb, "*!", &a, &len); if (mrb->c->ci->cci > 0) { vmexec = TRUE; } return fiber_switch(mrb, self, len, a, TRUE, vmexec); }
0
[ "CWE-476", "CWE-703" ]
mruby
da48e7dbb20024c198493b8724adae1b842083aa
2,389,754,778,762,626,800,000,000,000,000,000,000
12
fiber.c: should pack 15+ arguments in an array.
static int post_msg(struct pptp_conn_t *conn, void *buf, int size) { int n; if (conn->out_size) { log_error("pptp: buffer is not empty\n"); return -1; } again: n=write(conn->hnd.fd, buf, size); if (n < 0) { if (errno == EINTR) goto again; else if (errno == EAGAIN) n = 0; else { if (errno != EPI...
1
[ "CWE-787" ]
accel-ppp
a0b8bfc4e74ff31b15ccfa6c626e3bbc591ba98f
330,227,030,877,580,280,000,000,000,000,000,000,000
31
Fix post_msg implementation bug I think the error handling code of `post_msg` is wrongly implemented due to coding typo. The `EPIPE` should be also considered and then return -1, just like `PPTP_write`: https://github.com/xebd/accel-ppp/blob/1b8711cf75a7c278d99840112bc7a396398e0205/accel-pppd/ctrl/pptp/pptp.c#L539-L5...
PssDecode( TPM_ALG_ID hashAlg, // IN: hash algorithm to use for the encoding TPM2B *dIn, // In: the digest to compare TPM2B *eIn // IN: the encoded data ) { UINT32 hLen = CryptHashGetDigestSize(hashAlg); BYTE mask[MAX_RSA_KEY_BYTES]; ...
0
[ "CWE-787" ]
libtpms
505ef841c00b4c096b1977c667cb957bec3a1d8b
227,076,076,567,062,100,000,000,000,000,000,000,000
83
tpm2: Fix output buffer parameter and size for RSA decyrption For the RSA decryption we have to use an output buffer of the size of the (largest possible) RSA key for the decryption to always work. This fixes a stack corruption bug that caused a SIGBUS and termination of 'swtpm'. Signed-off-by: Stefan Berger <stefan...
HandShakeType ClientKeyExchange::get_type() const { return client_key_exchange; }
0
[]
mysql-server
b9768521bdeb1a8069c7b871f4536792b65fd79b
107,624,965,567,865,670,000,000,000,000,000,000,000
4
Updated yassl to yassl-2.3.8 (cherry picked from commit 7f9941eab55ed672bfcccd382dafbdbcfdc75aaa)
bool const_item() const { return (*ref)->const_item() && (used_tables() == 0); }
0
[]
mysql-server
f7316aa0c9a3909fc7498e7b95d5d3af044a7e21
39,704,979,193,709,893,000,000,000,000,000,000,000
4
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) Backport of Bug#19143243 fix. NAME_CONST item can return NULL_ITEM type in case of incorrect arguments. NULL_ITEM has special processing in Item_func_in function. In Item_func_in::fix_length_and_dec an a...
int64_t qmp_guest_fsfreeze_freeze_list(bool has_mountpoints, strList *mountpoints, Error **errp) { error_setg(errp, QERR_UNSUPPORTED); return 0; }
0
[ "CWE-190" ]
qemu
141b197408ab398c4f474ac1a728ab316e921f2b
261,136,110,346,397,740,000,000,000,000,000,000,000
8
qga: check bytes count read by guest-file-read While reading file content via 'guest-file-read' command, 'qmp_guest_file_read' routine allocates buffer of count+1 bytes. It could overflow for large values of 'count'. Add check to avoid it. Reported-by: Fakhri Zulkifli <mohdfakhrizulkifli@gmail.com> Signed-off-by: Pra...
static int entersafe_compute_with_prkey(sc_card_t *card, const u8 * data, size_t datalen, u8 * out, size_t outlen) { int r; sc_apdu_t apdu; u8 sbuf[SC_MAX_APDU_BUFFER_SIZE]; u8 rbuf[SC_MAX_APDU_BUFFER_SIZE]; u8* p=sbuf; size_t size = datalen; SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE); ...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
93,767,375,785,458,450,000,000,000,000,000,000,000
42
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
NDIS_STATUS ParaNdis_InitializeContext( PARANDIS_ADAPTER *pContext, PNDIS_RESOURCE_LIST pResourceList) { NDIS_STATUS status = NDIS_STATUS_SUCCESS; USHORT linkStatus = 0; UCHAR CurrentMAC[ETH_LENGTH_OF_ADDRESS] = {0}; ULONG dependentOptions; DEBUG_ENTRY(0); ReadNicConfiguration(pContext...
0
[ "CWE-20" ]
kvm-guest-drivers-windows
723416fa4210b7464b28eab89cc76252e6193ac1
90,938,811,597,164,230,000,000,000,000,000,000,000
121
NetKVM: BZ#1169718: Checking the length only on read Signed-off-by: Joseph Hindin <yhindin@rehat.com>
PHPAPI int php_var_unserialize(UNSERIALIZE_PARAMETER) { const unsigned char *cursor, *limit, *marker, *start; zval **rval_ref; limit = max; cursor = *p; if (YYCURSOR >= YYLIMIT) { return 0; } if (var_hash && cursor[0] != 'R') { var_push(var_hash, rval); } start = cursor; #line 487 "ext/standard...
1
[]
php-src
646572d6d3847d68124b03936719f60936b49a38
157,498,198,689,310,080,000,000,000,000,000,000,000
830
Fixed bug #68976 - Use After Free Vulnerability in unserialize()
ImagingNew2(const char* mode, Imaging imOut, Imaging imIn) { /* allocate or validate output image */ if (imOut) { /* make sure images match */ if (strcmp(imOut->mode, mode) != 0 || imOut->xsize != imIn->xsize || imOut->ysize != imIn->ysize) { return ImagingEr...
0
[ "CWE-284" ]
Pillow
5d8a0be45aad78c5a22c8d099118ee26ef8144af
104,149,394,032,531,500,000,000,000,000,000,000,000
20
Memory error in Storage.c when accepting negative image size arguments
decompress_gzip(tvbuff_t *tvb, packet_info *pinfo, int offset, guint32 length, tvbuff_t **decompressed_tvb, int *decompressed_offset) { *decompressed_tvb = tvb_child_uncompress(tvb, tvb, offset, length); *decompressed_offset = 0; if (*decompressed_tvb) { return 1; } else { col_append_str...
1
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
290,495,423,518,942,100,000,000,000,000,000,000,000
11
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...
rad_put_vendor_addr(struct rad_handle *h, int vendor, int type, struct in_addr addr) { return (rad_put_vendor_attr(h, vendor, type, &addr.s_addr, sizeof addr.s_addr)); }
0
[ "CWE-119", "CWE-787" ]
php-radius
13c149b051f82b709e8d7cc32111e84b49d57234
138,700,301,482,817,240,000,000,000,000,000,000
6
Fix a security issue in radius_get_vendor_attr(). The underlying rad_get_vendor_attr() function assumed that it would always be given valid VSA data. Indeed, the buffer length wasn't even passed in; the assumption was that the length field within the VSA structure would be valid. This could result in denial of servic...
CopyFrom(CopyState cstate) { HeapTuple tuple; TupleDesc tupDesc; Datum *values; bool *nulls; ResultRelInfo *resultRelInfo; EState *estate = CreateExecutorState(); /* for ExecConstraints() */ ExprContext *econtext; TupleTableSlot *myslot; MemoryContext oldcontext = CurrentMemoryContext; ErrorContextC...
1
[ "CWE-209" ]
postgres
804b6b6db4dcfc590a468e7be390738f9f7755fb
86,441,383,362,052,850,000,000,000,000,000,000,000
347
Fix column-privilege leak in error-message paths While building error messages to return to the user, BuildIndexValueDescription, ExecBuildSlotValueDescription and ri_ReportViolation would happily include the entire key or entire row in the result returned to the user, even if the user didn't have access to view all o...
return &priv->session_cont.ac == cont; } static int iscsi_conn_match(struct attribute_container *cont, struct device *dev) { struct iscsi_cls_session *session; struct iscsi_cls_conn *conn; struct Scsi_Host *shost; struct iscsi_internal *priv; if (!iscsi_is_conn_dev(dev)) return 0; conn = iscsi_dev_to_...
0
[ "CWE-787" ]
linux
ec98ea7070e94cc25a422ec97d1421e28d97b7ee
260,967,289,260,809,120,000,000,000,000,000,000,000
24
scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE As the iSCSI parameters are exported back through sysfs, it should be enforcing that they never are more than PAGE_SIZE (which should be more than enough) before accepting updates through netlink. Change all iSCSI sysfs attributes to use sysfs_emit(). Cc:...
TEST_P(ProtocolIntegrationTest, OverflowEncoderBufferFromEncodeData) { config_helper_.setBufferLimits(64 * 1024, 64 * 1024); // Make the add-body-filter stop iteration from encodeData. Headers should be sent to the client. config_helper_.prependFilter(R"EOF( name: add-body-filter typed_config: "@type": ...
0
[ "CWE-416" ]
envoy
148de954ed3585d8b4298b424aa24916d0de6136
109,622,353,270,259,070,000,000,000,000,000,000,000
33
CVE-2021-43825 Response filter manager crash Signed-off-by: Yan Avlasov <yavlasov@google.com>
struct rpc_task *rpc_run_bc_task(struct rpc_rqst *req, const struct rpc_call_ops *tk_ops) { struct rpc_task *task; struct xdr_buf *xbufp = &req->rq_snd_buf; struct rpc_task_setup task_setup_data = { .callback_ops = tk_ops, }; dprintk("RPC: rpc_run_bc_task req= %p\n", req); /* * Create an rpc_task to send...
0
[ "CWE-400", "CWE-399", "CWE-703" ]
linux
0b760113a3a155269a3fba93a409c640031dd68f
320,925,204,116,804,700,000,000,000,000,000,000,000
36
NLM: Don't hang forever on NLM unlock requests If the NLM daemon is killed on the NFS server, we can currently end up hanging forever on an 'unlock' request, instead of aborting. Basically, if the rpcbind request fails, or the server keeps returning garbage, we really want to quit instead of retrying. Tested-by: Vasi...
int rmap_walk(struct page *page, struct rmap_walk_control *rwc) { if (unlikely(PageKsm(page))) return rmap_walk_ksm(page, rwc); else if (PageAnon(page)) return rmap_walk_anon(page, rwc); else return rmap_walk_file(page, rwc); }
0
[ "CWE-400", "CWE-703", "CWE-264" ]
linux
57e68e9cd65b4b8eb4045a1e0d0746458502554c
194,804,430,595,328,600,000,000,000,000,000,000,000
9
mm: try_to_unmap_cluster() should lock_page() before mlocking A BUG_ON(!PageLocked) was triggered in mlock_vma_page() by Sasha Levin fuzzing with trinity. The call site try_to_unmap_cluster() does not lock the pages other than its check_page parameter (which is already locked). The BUG_ON in mlock_vma_page() is not ...
code_exist_check(OnigCodePoint c, UChar* from, UChar* end, int ignore_escaped, ScanEnv* env) { int in_esc; OnigCodePoint code; OnigEncoding enc = env->enc; UChar* p = from; PFETCH_READY; in_esc = 0; while (! PEND) { if (ignore_escaped && in_esc) { in_esc = 0; } else { PFETCH(co...
0
[ "CWE-125" ]
oniguruma
65a9b1aa03c9bc2dc01b074295b9603232cb3b78
105,884,709,147,563,240,000,000,000,000,000,000,000
22
onig-5.9.2
static CURLcode blobdup(struct curl_blob **dest, struct curl_blob *src) { DEBUGASSERT(dest); DEBUGASSERT(!*dest); if(src) { /* only if there's data to dupe! */ struct curl_blob *d; d = malloc(sizeof(struct curl_blob) + src->len); if(!d) return CURLE_OUT_OF_MEMORY; ...
0
[ "CWE-290" ]
curl
b09c8ee15771c614c4bf3ddac893cdb12187c844
262,878,099,208,717,970,000,000,000,000,000,000,000
21
vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() To make sure we set and extract the correct session. Reported-by: Mingtao Yang Bug: https://curl.se/docs/CVE-2021-22890.html CVE-2021-22890
static ext4_fsblk_t ext4_ext_find_goal(struct inode *inode, struct ext4_ext_path *path, ext4_lblk_t block) { if (path) { int depth = path->p_depth; struct ext4_extent *ex; /* * Try to predict block placement assuming that we are * filling in a file which will eventually be * non-spars...
0
[ "CWE-362" ]
linux-2.6
dee1f973ca341c266229faa5a1a5bb268bed3531
23,660,744,875,854,876,000,000,000,000,000,000,000
45
ext4: race-condition protection for ext4_convert_unwritten_extents_endio We assumed that at the time we call ext4_convert_unwritten_extents_endio() extent in question is fully inside [map.m_lblk, map->m_len] because it was already split during submission. But this may not be true due to a race between writeback vs fa...
static inline unsigned long cfs_rq_load_avg(struct cfs_rq *cfs_rq) { return cfs_rq->avg.load_avg; }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
linux
c40f7d74c741a907cfaeb73a7697081881c497d0
127,720,528,903,649,630,000,000,000,000,000,000,000
4
sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c Zhipeng Xie, Xie XiuQi and Sargun Dhillon reported lockups in the scheduler under high loads, starting at around the v4.18 time frame, and Zhipeng Xie tracked it down to bugs in the rq->leaf_cfs_rq_list manipulation. Do a (manual) re...
int EVP_BytesToKey(const EVP_CIPHER* type, const EVP_MD* md, const byte* salt, const byte* data, int sz, int count, byte* key, byte* iv) { // only support MD5 for now if (strncmp(md, "MD5", 3)) return 0; int keyLen = 0; int ivLen = 0; // only support CBC DES and AES for now ...
0
[ "CWE-254" ]
mysql-server
e7061f7e5a96c66cb2e0bf46bec7f6ff35801a69
285,049,131,382,101,850,000,000,000,000,000,000,000
77
Bug #22738607: YASSL FUNCTION X509_NAME_GET_INDEX_BY_NID IS NOT WORKING AS EXPECTED.
pkcs11dsa_sign(dst_context_t *dctx, isc_buffer_t *sig) { CK_RV rv; CK_ULONG siglen = ISC_SHA1_DIGESTLENGTH * 2; isc_region_t r; pk11_context_t *pk11_ctx = dctx->ctxdata.pk11_ctx; isc_result_t ret = ISC_R_SUCCESS; unsigned int klen; isc_buffer_availableregion(sig, &r); if (r.length < ISC_SHA1_DIGESTLENGTH * 2 +...
0
[ "CWE-617" ]
bind9
8d807cc21655eaa6e6a08afafeec3682c0f3f2ab
21,461,568,619,661,340,000,000,000,000,000,000,000
27
Fix crash in pk11_numbits() when native-pkcs11 is used When pk11_numbits() is passed a user provided input that contains all zeroes (via crafted DNS message), it would crash with assertion failure. Fix that by properly handling such input.
static VALUE cState_aref(VALUE self, VALUE name) { name = rb_funcall(name, i_to_s, 0); if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) { return rb_funcall(self, i_send, 1, name); } else { return rb_ivar_get(self, rb_intern_str(rb_str_concat(rb_str_new2("@"), name))); } }
0
[ "CWE-119", "CWE-787" ]
json
8f782fd8e181d9cfe9387ded43a5ca9692266b85
159,589,780,173,785,900,000,000,000,000,000,000,000
9
Fix arbitrary heap exposure problem
static int fbo_open(struct tcmu_device *dev) { struct fbo_state *state; int64_t size; char *options; char *path; state = calloc(1, sizeof(*state)); if (!state) return -ENOMEM; tcmu_set_dev_private(dev, state); #if 0 /* TBD: If we can figure out how the hw_block_size attribute * gets set (and change it), ...
0
[ "CWE-200" ]
tcmu-runner
8cf8208775022301adaa59c240bb7f93742d1329
295,113,927,563,740,330,000,000,000,000,000,000,000
89
removed all check_config callback implementations to avoid security issues see github issue #194 qcow.c contained an information leak, could test for existance of any file in the system file_example.c and file_optical.c allow also to test for existance of any file, plus to temporarily create empty new files anywhere...
static int pcan_usb_fd_restart_async(struct peak_usb_device *dev, struct urb *urb, u8 *buf) { u8 *pc = buf; /* build the entire cmds list in the provided buffer, to go back into * operational mode. */ pc += pcan_usb_fd_build_restart_cmd(dev, pc); /* add EOC */ memset(pc, 0xff, sizeof(struct pucan_co...
0
[ "CWE-908" ]
linux
30a8beeb3042f49d0537b7050fd21b490166a3d9
185,204,119,716,583,160,000,000,000,000,000,000,000
23
can: peak_usb: pcan_usb_fd: Fix info-leaks to USB devices Uninitialized Kernel memory can leak to USB devices. Fix by using kzalloc() instead of kmalloc() on the affected buffers. Signed-off-by: Tomas Bortoli <tomasbortoli@gmail.com> Reported-by: syzbot+513e4d0985298538bf9b@syzkaller.appspotmail.com Fixes: 0a25e1f4f...
struct nft_set_ext *nft_set_catchall_lookup(const struct net *net, const struct nft_set *set) { struct nft_set_elem_catchall *catchall; u8 genmask = nft_genmask_cur(net); struct nft_set_ext *ext; list_for_each_entry_rcu(catchall, &set->catchall_list, list) { ext = nft_set_elem_ext(set, catchall->elem); ...
0
[ "CWE-665" ]
linux
ad9f151e560b016b6ad3280b48e42fa11e1a5440
233,558,306,590,428,440,000,000,000,000,000,000,000
16
netfilter: nf_tables: initialize set before expression setup nft_set_elem_expr_alloc() needs an initialized set if expression sets on the NFT_EXPR_GC flag. Move set fields initialization before expression setup. [4512935.019450] ================================================================== [4512935.019456] BUG: ...
void __blk_put_request(struct request_queue *q, struct request *req) { req_flags_t rq_flags = req->rq_flags; if (unlikely(!q)) return; if (q->mq_ops) { blk_mq_free_request(req); return; } lockdep_assert_held(q->queue_lock); blk_req_zone_write_unlock(req); blk_pm_put_request(req); elv_completed_reques...
0
[ "CWE-416", "CWE-703" ]
linux
54648cf1ec2d7f4b6a71767799c45676a138ca24
211,215,944,640,966,700,000,000,000,000,000,000,000
41
block: blk_init_allocated_queue() set q->fq as NULL in the fail case We find the memory use-after-free issue in __blk_drain_queue() on the kernel 4.14. After read the latest kernel 4.18-rc6 we think it has the same problem. Memory is allocated for q->fq in the blk_init_allocated_queue(). If the elevator init function...
examineFile(char *path, URLFile *uf) { struct stat stbuf; uf->guess_type = NULL; if (path == NULL || *path == '\0' || stat(path, &stbuf) == -1 || NOT_REGULAR(stbuf.st_mode)) { uf->stream = NULL; return; } uf->stream = openIS(path); if (!do_download) { if (use_lessopen && getenv("LESSOPEN") ...
0
[ "CWE-476" ]
w3m
59b91cd8e30c86f23476fa81ae005cabff49ebb6
121,290,396,569,953,780,000,000,000,000,000,000,000
37
Prevent segfault with malformed input type Bug-Debian: https://github.com/tats/w3m/issues/7
static void ext4_idx_store_pblock(struct ext4_extent_idx *ix, ext4_fsblk_t pb) { ix->ei_leaf_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & 0xffff); }
0
[ "CWE-703" ]
linux
744692dc059845b2a3022119871846e74d4f6e11
215,372,794,449,227,870,000,000,000,000,000,000,000
5
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...
CImgDisplay& render(const CImg<T>& img) { return assign(img); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
230,583,755,843,064,770,000,000,000,000,000,000,000
3
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static void object_list_initialize(object_list* list) { list->type_id = 0; list->strings = 0; list->allocated = 0; list->count = 0; list->maximum = INT_MAX; }
0
[ "CWE-787" ]
FreeRDP
8305349a943c68b1bc8c158f431dc607655aadea
59,543,420,300,543,250,000,000,000,000,000,000,000
8
Fixed GHSL-2020-102 heap overflow (cherry picked from commit 197b16cc15a12813c2e4fa2d6ae9cd9c4a57e581)
void SSL_get0_alpn_selected(const SSL *ssl, const unsigned char **data, unsigned *len) { *data = NULL; if (ssl->s3) *data = ssl->s3->alpn_selected; if (*data == NULL) *len = 0; else *len = ssl->s3->alpn_selected_len; }
0
[ "CWE-310" ]
openssl
cf6da05304d554aaa885151451aa4ecaa977e601
300,628,037,920,415,880,000,000,000,000,000,000,000
11
Support TLS_FALLBACK_SCSV. Reviewed-by: Stephen Henson <steve@openssl.org>
wchar_t* DupWcs(cmsContext ContextID, const wchar_t* ptr) { if (ptr == NULL) return NULL; return (wchar_t*) _cmsDupMem(ContextID, ptr, (mywcslen(ptr) + 1) * sizeof(wchar_t)); }
0
[]
Little-CMS
886e2f524268efe8a1c3aa838c28e446fda24486
287,363,155,045,547,300,000,000,000,000,000,000,000
5
Fixes from coverity check
gdm_display_dispose (GObject *object) { GdmDisplay *self; GdmDisplayPrivate *priv; self = GDM_DISPLAY (object); priv = gdm_display_get_instance_private (self); g_debug ("GdmDisplay: Disposing display"); if (priv->finish_idle_id != 0) { g_source_remove (...
0
[ "CWE-754" ]
gdm
4e6e5335d29c039bed820c43bfd1c19cb62539ff
73,043,435,811,717,390,000,000,000,000,000,000,000
22
display: Use autoptr to handle errors in look for existing users It will make things just cleaner
PHP_FUNCTION(grapheme_strpos) { unsigned char *haystack, *needle; int haystack_len, needle_len; unsigned char *found; long loffset = 0; int32_t offset = 0, noffset = 0; int ret_pos; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", (char **)&haystack, &haystack_len, (char **)&needle, &needle_len, &lo...
0
[]
php-src
16d0b9c836b793f9338c5a6296fba1b272bbae06
53,708,117,053,739,130,000,000,000,000,000,000,000
64
Fix bug #72061 - Out-of-bounds reads in zif_grapheme_stripos with negative offset
int dtls1_accept(SSL *s) { BUF_MEM *buf; unsigned long Time=(unsigned long)time(NULL); void (*cb)(const SSL *ssl,int type,int val)=NULL; unsigned long alg_k; int ret= -1; int new_state,state,skip=0; int listen; #ifndef OPENSSL_NO_SCTP unsigned char sctpauthkey[64]; char labelbuffer[sizeof(DTLS1_SCTP_AUTH_LABE...
0
[ "CWE-310" ]
openssl
37580f43b5a39f5f4e920d17273fab9713d3a744
140,360,038,728,124,940,000,000,000,000,000,000,000
712
Only allow ephemeral RSA keys in export ciphersuites. OpenSSL clients would tolerate temporary RSA keys in non-export ciphersuites. It also had an option SSL_OP_EPHEMERAL_RSA which enabled this server side. Remove both options as they are a protocol violation. Thanks to Karthikeyan Bhargavan for reporting this issue....
RZ_API const RzList /*<RzBinResource *>*/ *rz_bin_object_get_resources(RZ_NONNULL RzBinObject *obj) { rz_return_val_if_fail(obj, NULL); return obj->resources; }
0
[ "CWE-200", "CWE-787" ]
rizin
07b43bc8aa1ffebd9b68d60624c9610cf7e460c7
311,224,729,443,292,430,000,000,000,000,000,000,000
4
fix oob read on luac
R_API ut64 r_bin_java_element_value_calc_size(RBinJavaElementValue *element_value) { RListIter *iter, *iter_tmp; RBinJavaElementValue *ev_element; RBinJavaElementValuePair *evps; ut64 sz = 0; if (element_value == NULL) { return sz; } // tag sz += 1; switch (element_value->tag) { case R_BIN_JAVA_EV_TAG_BYTE:...
0
[ "CWE-787" ]
radare2
9650e3c352f675687bf6c6f65ff2c4a3d0e288fa
325,702,449,381,501,000,000,000,000,000,000,000,000
69
Fix oobread segfault in java arith8.class ##crash * Reported by Cen Zhang via huntr.dev
cmp_remote (gconstpointer a, gconstpointer b, gpointer user_data) { FlatpakDir *self = user_data; const char *a_name = *(const char **) a; const char *b_name = *(const char **) b; int prio_a, prio_b; prio_a = flatpak_dir_get_remote_prio (self, a_name); prio_b = flatpak_dir_get_...
0
[ "CWE-668" ]
flatpak
cd2142888fc4c199723a0dfca1f15ea8788a5483
164,258,234,975,554,670,000,000,000,000,000,000,000
18
Don't expose /proc when running apply_extra As shown by CVE-2019-5736, it is sometimes possible for the sandbox app to access outside files using /proc/self/exe. This is not typically an issue for flatpak as the sandbox runs as the user which has no permissions to e.g. modify the host files. However, when installing ...
PDO_API void php_pdo_stmt_addref(pdo_stmt_t *stmt TSRMLS_DC) { stmt->refcount++;
0
[ "CWE-476" ]
php-src
6045de69c7dedcba3eadf7c4bba424b19c81d00d
249,897,234,538,564,120,000,000,000,000,000,000,000
4
Fix bug #73331 - do not try to serialize/unserialize objects wddx can not handle Proper soltion would be to call serialize/unserialize and deal with the result, but this requires more work that should be done by wddx maintainer (not me).
int handler::ha_index_next_same(uchar *buf, const uchar *key, uint keylen) { int result; DBUG_ASSERT(table_share->tmp_table != NO_TMP_TABLE || m_lock_type != F_UNLCK); DBUG_ASSERT(inited==INDEX); TABLE_IO_WAIT(tracker, m_psi, PSI_TABLE_FETCH_ROW, active_index, 0, { result= index_next_same(buf...
0
[ "CWE-416" ]
server
af810407f78b7f792a9bb8c47c8c532eb3b3a758
188,125,099,059,834,230,000,000,000,000,000,000,000
19
MDEV-28098 incorrect key in "dup value" error after long unique reset errkey after using it, so that it wouldn't affect the next error message in the next statement
void print_error(const char *file, int line, const char *format, const Args & ... args) { fmt::print("{}: {}: ", file, line); fmt::print(format, args...); }
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
246,629,635,469,945,400,000,000,000,000,000,000,000
5
Fix segfault on complex pointer formatting (#642)
bool TopologyDescription::containsServerAddress(const HostAndPort& address) const { return findServerByAddress(address) != boost::none; }
0
[ "CWE-755" ]
mongo
75f7184eafa78006a698cda4c4adfb57f1290047
337,255,756,087,189,100,000,000,000,000,000,000,000
3
SERVER-50170 fix max staleness read preference parameter for server selection
static void vrend_free_sync_thread(void) { if (!vrend_state.sync_thread) return; mtx_lock(&vrend_state.fence_mutex); vrend_state.stop_sync_thread = true; cnd_signal(&vrend_state.fence_cond); mtx_unlock(&vrend_state.fence_mutex); thrd_join(vrend_state.sync_thread, NULL); vrend_state.sync_thr...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
133,169,798,419,326,680,000,000,000,000,000,000,000
16
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 double mp_bitwise_right_shift(_cimg_math_parser& mp) { return (double)((longT)_mp_arg(2)>>(unsigned int)_mp_arg(3));
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
1,946,518,094,324,100,800,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
apdu_send (int slot, int extended_mode, int class, int ins, int p0, int p1, int lc, const char *data, unsigned char **retbuf, size_t *retbuflen) { return send_le (slot, class, ins, p0, p1, lc, data, 256, retbuf, retbuflen, NULL, extended_mode); }
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
232,547,051,838,218,560,000,000,000,000,000,000,000
7
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
ModuleExport size_t RegisterTIM2Image(void) { MagickInfo *entry; entry=AcquireMagickInfo("TIM2","TM2","PS2 TIM2"); entry->decoder=(DecodeImageHandler *) ReadTIM2Image; (void) RegisterMagickInfo(entry); return(MagickImageCoderSignature); }
0
[ "CWE-617" ]
ImageMagick
716496e6df0add89e9679d6da9c0afca814cfe49
250,802,230,318,371,340,000,000,000,000,000,000,000
10
do not attempt to write a null image list (thanks to Vinay Rohila)
static uint16_t ProbingParserDummyForTesting(Flow *f, uint8_t *input, uint32_t input_len) { return 0; }
0
[ "CWE-20" ]
suricata
8357ef3f8ffc7d99ef6571350724160de356158b
241,411,434,594,113,670,000,000,000,000,000,000,000
6
proto/detect: workaround dns misdetected as dcerpc The DCERPC UDP detection would misfire on DNS with transaction ID 0x0400. This would happen as the protocol detection engine gives preference to pattern based detection over probing parsers for performance reasons. This hack/workaround fixes this specific case by sti...
static int iscsi_add_notunderstood_response( char *key, char *value, struct iscsi_param_list *param_list) { struct iscsi_extra_response *extra_response; if (strlen(value) > VALUE_MAXLEN) { pr_err("Value for notunderstood key \"%s\" exceeds %d," " protocol error.\n", key, VALUE_MAXLEN); return -1; } extr...
0
[ "CWE-119" ]
target-pending
cea4dcfdad926a27a18e188720efe0f2c9403456
16,131,722,567,253,625,000,000,000,000,000,000,000
29
iscsi-target: fix heap buffer overflow on error If a key was larger than 64 bytes, as checked by iscsi_check_key(), the error response packet, generated by iscsi_add_notunderstood_response(), would still attempt to copy the entire key into the packet, overflowing the structure on the heap. Remote preauthentication ke...
art_blend_pixel_16_inline(uint16_t *gs_restrict dst, const uint16_t *gs_restrict backdrop, const uint16_t *gs_restrict src, int n_chan, gs_blend_mode_t blend_mode, const pdf14_nonseparable_blending_procs_t * pblend_procs, pdf14_device *p14dev) { int i; int b...
0
[ "CWE-476" ]
ghostpdl
7870f4951bcc6a153f317e3439e14d0e929fd231
285,124,855,366,565,940,000,000,000,000,000,000,000
194
Bug 701795: Segv due to image mask issue
static bool check_lock_and_start_stmt(THD *thd, Query_tables_list *prelocking_ctx, TABLE_LIST *table_list) { int error; thr_lock_type lock_type; DBUG_ENTER("check_lock_and_start_stmt"); /* Prelocking placeholder is not set for TABL...
0
[]
server
0168d1eda30dad4b517659422e347175eb89e923
37,000,591,987,525,133,000,000,000,000,000,000,000
54
MDEV-25766 Unused CTE lead to a crash in find_field_in_tables/find_order_in_list Do not assume that subquery Item always present.
static int is_acl_well_supported(int err) { switch (err) { case ENOTSUP: /* no file system support */ case EINVAL: /* acl does not point to a valid ACL */ case ENOSYS: /* compatibility - acl_(g|s)et_fd(3) should never return this */ case EBUSY: /* compatibility - acl_(g|s...
0
[ "CWE-732" ]
logrotate
f46d0bdfc9c53515c13880c501f4d2e1e7dd8b25
37,669,418,679,752,820,000,000,000,000,000,000,000
12
Lock state file to prevent parallel execution Running multiple instances of logrotate on the same set of log-files might have undesirable effects. Add command line option --skip-state-lock to skip locking the state file, for example if locking is unsupported or prohibited. Fixes: https://github.com/logrotate/logrota...
void __hci_req_update_name(struct hci_request *req) { struct hci_dev *hdev = req->hdev; struct hci_cp_write_local_name cp; memcpy(cp.name, hdev->dev_name, sizeof(cp.name)); hci_req_add(req, HCI_OP_WRITE_LOCAL_NAME, sizeof(cp), &cp); }
0
[ "CWE-362" ]
linux
e2cb6b891ad2b8caa9131e3be70f45243df82a80
264,727,068,179,774,770,000,000,000,000,000,000,000
9
bluetooth: eliminate the potential race condition when removing the HCI controller There is a possible race condition vulnerability between issuing a HCI command and removing the cont. Specifically, functions hci_req_sync() and hci_dev_do_close() can race each other like below: thread-A in hci_req_sync() | th...