func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
pfm_get_psr(void) { unsigned long tmp; tmp = ia64_getreg(_IA64_REG_PSR); ia64_srlz_i(); return tmp; }
0
[]
linux-2.6
41d5e5d73ecef4ef56b7b4cde962929a712689b4
44,057,589,135,249,660,000,000,000,000,000,000,000
7
[IA64] permon use-after-free fix Perfmon associates vmalloc()ed memory with a file descriptor, and installs a vma mapping that memory. Unfortunately, the vm_file field is not filled in, so processes with mappings to that memory do not prevent the file from being closed and the memory freed. This results in use-after...
int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain) { EVP_PKEY *ktmp = NULL, *ktmp2; int i, j; if ((pkey != NULL) && !EVP_PKEY_missing_parameters(pkey)) return 1; for (i = 0; i < sk_X509_num(chain); i++) { ktmp = X509_get0_pubkey(sk_X509_value(chain, i)); if (...
0
[]
openssl
33cc5dde478ba5ad79f8fd4acd8737f0e60e236e
47,094,934,317,444,930,000,000,000,000,000,000,000
34
Compat self-signed trust with reject-only aux data When auxiliary data contains only reject entries, continue to trust self-signed objects just as when no auxiliary data is present. This makes it possible to reject specific uses without changing what's accepted (and thus overring the underlying EKU). Added new suppo...
static void vmxnet3_rx_need_csum_calculate(struct VmxnetRxPkt *pkt, const void *pkt_data, size_t pkt_len) { struct virtio_net_hdr *vhdr; bool isip4, isip6, istcp, isudp; uint8_t *data; int len; if (!vmxnet_rx_pkt_...
0
[ "CWE-20" ]
qemu
a7278b36fcab9af469563bd7b9dadebe2ae25e48
146,202,591,916,902,980,000,000,000,000,000,000,000
41
net/vmxnet3: Refine l2 header validation Validation of l2 header length assumed minimal packet size as eth_header + 2 * vlan_header regardless of the actual protocol. This caused crash for valid non-IP packets shorter than 22 bytes, as 'tx_pkt->packet_type' hasn't been assigned for such packets, and 'vmxnet3_on_tx_do...
gdImagePtr gdImageScale(const gdImagePtr src, const unsigned int new_width, const unsigned int new_height) { gdImagePtr im_scaled = NULL; if (src == NULL || src->interpolation_id < 0 || src->interpolation_id > GD_METHOD_COUNT) { return 0; } switch (src->interpolation_id) { /*Special cases, optimized implement...
0
[ "CWE-119" ]
php-src
4bb422343f29f06b7081323844d9b52e1a71e4a5
260,576,856,502,407,800,000,000,000,000,000,000,000
32
Fix bug #70976: fix boundary check on gdImageRotateInterpolated
static int tls1_check_pkey_comp(SSL *s, EVP_PKEY *pkey) { const EC_KEY *ec; const EC_GROUP *grp; unsigned char comp_id; size_t i; /* If not an EC key nothing to check */ if (!EVP_PKEY_is_a(pkey, "EC")) return 1; ec = EVP_PKEY_get0_EC_KEY(pkey); grp = EC_KEY_get0_group(ec); ...
0
[ "CWE-476" ]
openssl
a87f3fe01a5a894aa27ccd6a239155fd129988e4
205,514,900,411,319,300,000,000,000,000,000,000,000
45
Fix NULL dereference in SSL_check_chain() for TLS 1.3 In the tls1_check_sig_alg() helper function, we loop through the list of "signature_algorithms_cert" values received from the client and attempt to look up each one in turn in our internal table that maps wire codepoint to string-form name, digest and/or signature ...
_gdm_display_set_x11_display_name (GdmDisplay *self, const char *x11_display) { GdmDisplayPrivate *priv; priv = gdm_display_get_instance_private (self); g_free (priv->x11_display_name); priv->x11_display_name = g_strdup (x11_display); }
0
[ "CWE-754" ]
gdm
4e6e5335d29c039bed820c43bfd1c19cb62539ff
295,253,967,471,855,820,000,000,000,000,000,000,000
9
display: Use autoptr to handle errors in look for existing users It will make things just cleaner
static const char *set_enable_mmap(cmd_parms *cmd, void *d_, const char *arg) { core_dir_config *d = d_; if (ap_cstr_casecmp(arg, "on") == 0) { d->enable_mmap = ENABLE_MMAP_ON; } else if (ap_cstr_casecmp(arg, "off") == 0) { d->enable_mmap = ENABLE_MMAP...
0
[ "CWE-416", "CWE-284" ]
httpd
4cc27823899e070268b906ca677ee838d07cf67a
33,155,577,511,509,603,000,000,000,000,000,000,000
17
core: Disallow Methods' registration at run time (.htaccess), they may be used only if registered at init time (httpd.conf). Calling ap_method_register() in children processes is not the right scope since it won't be shared for all requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1807655 13f7...
static void v4l_print_buffer(const void *arg, bool write_only) { const struct v4l2_buffer *p = arg; const struct v4l2_timecode *tc = &p->timecode; const struct v4l2_plane *plane; int i; pr_cont("%02d:%02d:%02d.%09ld index=%d, type=%s, request_fd=%d, flags=0x%08x, field=%s, sequence=%d, memory=%s", (int)p->time...
0
[ "CWE-401" ]
linux
fb18802a338b36f675a388fc03d2aa504a0d0899
204,760,512,395,362,630,000,000,000,000,000,000,000
35
media: v4l: ioctl: Fix memory leak in video_usercopy When an IOCTL with argument size larger than 128 that also used array arguments were handled, two memory allocations were made but alas, only the latter one of them was released. This happened because there was only a single local variable to hold such a temporary a...
CImg<T>& draw_text(const int x0, const int y0, const char *const text, const tc *const foreground_color, const int, const float opacity, const CImgList<t>& font, ...) { if (!font) return *this; CImg<charT> tmp(2048); std::va_list...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
211,878,105,992,995,500,000,000,000,000,000,000,000
10
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static int h2_frt_decode_headers(struct h2s *h2s, struct buffer *buf, int count) { struct h2c *h2c = h2s->h2c; const uint8_t *hdrs = (uint8_t *)h2c->dbuf->p; struct chunk *tmp = get_trash_chunk(); struct http_hdr list[MAX_HTTP_HDR * 2]; struct chunk *copy = NULL; int flen = h2c->dfl; int outlen = 0; int wrap; ...
0
[ "CWE-119" ]
haproxy
3f0e1ec70173593f4c2b3681b26c04a4ed5fc588
104,465,029,616,632,350,000,000,000,000,000,000,000
136
BUG/CRITICAL: h2: fix incorrect frame length check The incoming H2 frame length was checked against the max_frame_size setting instead of being checked against the bufsize. The max_frame_size only applies to outgoing traffic and not to incoming one, so if a large enough frame size is advertised in the SETTINGS frame, ...
int mem_cgroup_count_swap_user(swp_entry_t ent, struct page **pagep) { struct page *page; struct swap_info_struct *p; int count = 0; page = find_get_page(&swapper_space, ent.val); if (page) count += page_mapcount(page); p = swap_info_get(ent); if (p) { count += swap_count(p->swap_map[swp_offset(ent)]); sp...
0
[ "CWE-264" ]
linux-2.6
1a5a9906d4e8d1976b701f889d8f35d54b928f25
307,332,251,022,113,130,000,000,000,000,000,000,000
18
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(...
http_copyheader(struct worker *w, int fd, struct http *to, const struct http *fm, unsigned n) { CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC); CHECK_OBJ_NOTNULL(to, HTTP_MAGIC); assert(n < fm->shd); Tcheck(fm->hd[n]); if (to->nhd < to->shd) { to->hd[to->nhd] = fm->hd[n]; to->hdf[to->nhd] = 0; to->nhd++; } else { ...
0
[]
Varnish-Cache
29870c8fe95e4e8a672f6f28c5fbe692bea09e9c
223,984,156,151,735,940,000,000,000,000,000,000,000
17
Check for duplicate Content-Length headers in requests If a duplicate CL header is in the request, we fail the request with a 400 (Bad Request) Fix a test case that was sending duplicate CL by misstake and would not fail because of that.
smb2_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested) { switch (requested) { case Kerberos: case RawNTLMSSP: return requested; case NTLMv2: return RawNTLMSSP; case Unspecified: if (server->sec_ntlmssp && (global_secflags & CIFSSEC_MAY_NTLMSSP)) return RawNTLMSSP; if ((serve...
0
[ "CWE-416", "CWE-200" ]
linux
6a3eb3360667170988f8a6477f6686242061488a
91,655,771,477,699,350,000,000,000,000,000,000,000
20
cifs: Fix use-after-free in SMB2_write There is a KASAN use-after-free: BUG: KASAN: use-after-free in SMB2_write+0x1342/0x1580 Read of size 8 at addr ffff8880b6a8e450 by task ln/4196 Should not release the 'req' because it will use in the trace. Fixes: eccb4422cf97 ("smb3: Add ftrace tracepoints for improved SMB3 de...
static void mb_buddy_mark_free(struct ext4_buddy *e4b, int first, int last) { int max; int order = 1; void *buddy = mb_find_buddy(e4b, order, &max); while (buddy) { void *buddy2; /* Bits in range [first; last] are known to be set since * corresponding blocks were allocated. Bits in range * (first; last)...
0
[ "CWE-416" ]
linux
8844618d8aa7a9973e7b527d038a2a589665002c
27,068,368,970,264,790,000,000,000,000,000,000,000
56
ext4: only look at the bg_flags field if it is valid The bg_flags field in the block group descripts is only valid if the uninit_bg or metadata_csum feature is enabled. We were not consistently looking at this field; fix this. Also block group #0 must never have uninitialized allocation bitmaps, or need to be zeroed...
int connect(int socket, const struct sockaddr *address, socklen_t address_len) { struct sockaddr_in sin; int result, plug, port; test_param_t *test; test = get_test_param(); #ifdef GG_CONFIG_HAVE_GNUTLS /* GnuTLS may want to connect */ if (!gnutls_initialized) return __connect(socket, address, address_len); #...
0
[ "CWE-310" ]
libgadu
d882b15661ee94949919ebbbc43edf0db5f619cb
265,400,183,429,920,030,000,000,000,000,000,000,000
93
Odkąd biblioteka weryfikuje certyfikaty ciężko testować z self-signed.
void oidc_strip_cookies(request_rec *r) { char *cookie, *ctx, *result = NULL; const char *name = NULL; int i; apr_array_header_t *strip = oidc_dir_cfg_strip_cookies(r); char *cookies = apr_pstrdup(r->pool, oidc_util_hdr_in_cookie_get(r)); if ((cookies != NULL) && (strip != NULL)) { oidc_debug(r, "looki...
0
[ "CWE-601" ]
mod_auth_openidc
5c15dfb08106c2451c2c44ce7ace6813c216ba75
189,818,593,347,524,380,000,000,000,000,000,000,000
43
improve validation of the post-logout URL; closes #449 - to avoid an open redirect; thanks AIMOTO Norihito - release 2.4.0.1 Signed-off-by: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
static void dev_addr_discard(struct net_device *dev) { netif_addr_lock_bh(dev); __dev_addr_discard(&dev->mc_list); netdev_mc_count(dev) = 0; netif_addr_unlock_bh(dev); }
0
[ "CWE-399" ]
linux
6ec82562ffc6f297d0de36d65776cff8e5704867
21,204,331,934,771,113,000,000,000,000,000,000,000
9
veth: Dont kfree_skb() after dev_forward_skb() In case of congestion, netif_rx() frees the skb, so we must assume dev_forward_skb() also consume skb. Bug introduced by commit 445409602c092 (veth: move loopback logic to common location) We must change dev_forward_skb() to always consume skb, and veth to not double fr...
process_n_textarea(void) { Str tmp; int i; if (cur_textarea == NULL) return NULL; tmp = Strnew(); Strcat(tmp, Sprintf("<pre_int>[<input_alt hseq=\"%d\" fid=\"%d\" " "type=textarea name=\"%s\" size=%d rows=%d " "top_margin=%d textareanumber=%d", cur_hseq, cur_form_id, html_quote(cur_te...
0
[ "CWE-476" ]
w3m
59b91cd8e30c86f23476fa81ae005cabff49ebb6
186,889,393,297,760,600,000,000,000,000,000,000,000
28
Prevent segfault with malformed input type Bug-Debian: https://github.com/tats/w3m/issues/7
has_type_privilege_id(PG_FUNCTION_ARGS) { Oid typeoid = PG_GETARG_OID(0); text *priv_type_text = PG_GETARG_TEXT_P(1); Oid roleid; AclMode mode; AclResult aclresult; roleid = GetUserId(); mode = convert_type_priv_string(priv_type_text); if (!SearchSysCacheExists1(TYPEOID, ObjectIdGetDatum(typeoid))) ...
0
[ "CWE-264" ]
postgres
fea164a72a7bfd50d77ba5fb418d357f8f2bb7d0
8,495,289,533,576,761,000,000,000,000,000,000,000
18
Shore up ADMIN OPTION restrictions. Granting a role without ADMIN OPTION is supposed to prevent the grantee from adding or removing members from the granted role. Issuing SET ROLE before the GRANT bypassed that, because the role itself had an implicit right to add or remove members. Plug that hole by recognizing tha...
static void init_loopback(struct net_device *dev) { struct inet6_dev *idev; struct net_device *sp_dev; struct inet6_ifaddr *sp_ifa; struct rt6_info *sp_rt; /* ::1 */ ASSERT_RTNL(); idev = ipv6_find_idev(dev); if (idev == NULL) { pr_debug("%s: add_dev failed\n", __func__); return; } add_addr(idev, &in...
0
[ "CWE-20" ]
linux
77751427a1ff25b27d47a4c36b12c3c8667855ac
169,524,853,930,425,690,000,000,000,000,000,000,000
58
ipv6: addrconf: validate new MTU before applying it Currently we don't check if the new MTU is valid or not and this allows one to configure a smaller than minimum allowed by RFCs or even bigger than interface own MTU, which is a problem as it may lead to packet drops. If you have a daemon like NetworkManager running...
ri_LoadConstraintInfo(Oid constraintOid) { RI_ConstraintInfo *riinfo; bool found; HeapTuple tup; Form_pg_constraint conForm; Datum adatum; bool isNull; ArrayType *arr; int numkeys; /* * On the first call initialize the hashtable */ if (!ri_constraint_cache) ri_InitHashTables(); /* * Find or c...
0
[ "CWE-209" ]
postgres
804b6b6db4dcfc590a468e7be390738f9f7755fb
264,760,705,297,677,100,000,000,000,000,000,000,000
136
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...
static void record_recent_object(struct object *obj, struct strbuf *path, const char *last, void *data) { sha1_array_append(&recent_objects, obj->oid.hash); }
1
[ "CWE-119", "CWE-787" ]
git
de1e67d0703894cb6ea782e36abb63976ab07e60
16,143,104,374,512,675,000,000,000,000,000,000,000
7
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 ...
DEFUN(msToggle, MOUSE_TOGGLE, "Toggle mouse support") { if (use_mouse) { use_mouse = FALSE; } else { use_mouse = TRUE; } displayBuffer(Currentbuf, B_FORCE_REDRAW); }
0
[ "CWE-59", "CWE-241" ]
w3m
18dcbadf2771cdb0c18509b14e4e73505b242753
242,341,946,413,710,580,000,000,000,000,000,000,000
10
Make temporary directory safely when ~/.w3m is unwritable
static CImg<T> vector(const T& a0, const T& a1, const T& a2, const T& a3) { CImg<T> r(1,4); r[0] = a0; r[1] = a1; r[2] = a2; r[3] = a3; return r; }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
207,025,940,068,917,750,000,000,000,000,000,000,000
5
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
maybe_start_pending_initial_login (GdmManager *manager, GdmDisplay *greeter_display) { StartUserSessionOperation *operation; char *greeter_seat_id = NULL; char *user_session_seat_id = NULL; /* There may be a user session waiting to be started. ...
0
[]
gdm
ff98b2817014684ae1acec78ff06f0f461a56a9f
187,273,446,771,322,300,000,000,000,000,000,000,000
34
manager: if falling back to X11 retry autologin Right now, we get one shot to autologin. If it fails, we fall back to the greeter. We should give it another go if the reason for the failure was wayland fallback to X. https://bugzilla.gnome.org/show_bug.cgi?id=780520
_XimProtoGetICValues( XIC xic, XIMArg *arg) { Xic ic = (Xic)xic; Xim im = (Xim)ic->core.im; register XIMArg *p; register XIMArg *pp; register int n; CARD8 *buf; CARD16 *buf_s; INT16 len; CARD32 reply32[BUFSIZE/4]; char *reply = (char *)reply32; XPoin...
0
[ "CWE-190" ]
libx11
1a566c9e00e5f35c1f9e7f3d741a02e5170852b2
129,311,402,649,565,240,000,000,000,000,000,000,000
133
Zero out buffers in functions It looks like uninitialized stack or heap memory can leak out via padding bytes. Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu>
static bool virtio_net_load_ebpf(VirtIONet *n) { if (!virtio_net_attach_ebpf_to_backend(n->nic, -1)) { /* backend does't support steering ebpf */ return false; } return ebpf_rss_load(&n->ebpf_rss); }
0
[ "CWE-703" ]
qemu
abe300d9d894f7138e1af7c8e9c88c04bfe98b37
133,088,837,325,697,260,000,000,000,000,000,000,000
9
virtio-net: fix map leaking on error during receive Commit bedd7e93d0196 ("virtio-net: fix use after unmap/free for sg") tries to fix the use after free of the sg by caching the virtqueue elements in an array and unmap them at once after receiving the packets, But it forgot to unmap the cached elements on error which ...
const char* llhttp_get_error_pos(const llhttp_t* parser) { return parser->error_pos; }
0
[ "CWE-444" ]
node
af488f8dc82d69847992ea1cd2f53dc8082b3b91
234,098,595,968,958,800,000,000,000,000,000,000,000
3
deps: update llhttp to 6.0.4 Refs: https://hackerone.com/reports/1238099 Refs: https://hackerone.com/reports/1238709 Refs: https://github.com/nodejs-private/llhttp-private/pull/6 Refs: https://github.com/nodejs-private/llhttp-private/pull/5 CVE-ID: CVE-2021-22959 CVE-ID: CVE-2021-22960 PR-URL: https://github.com/node...
static unsigned char snmp_tag_cls2syntax(unsigned int tag, unsigned int cls, unsigned short *syntax) { const struct snmp_cnv *cnv; cnv = snmp_conv; while (cnv->syntax != -1) { if (cnv->tag == tag && cnv->class == cls) { *syntax = cnv->syntax; return 1; } cnv++; } return 0; }
0
[ "CWE-119" ]
linux-2.6
ddb2c43594f22843e9f3153da151deaba1a834c5
186,289,457,382,620,640,000,000,000,000,000,000,000
17
asn1: additional sanity checking during BER decoding - Don't trust a length which is greater than the working buffer. An invalid length could cause overflow when calculating buffer size for decoding oid. - An oid length of zero is invalid and allows for an off-by-one error when decoding oid because the first su...
void usb_disable_device(struct usb_device *dev, int skip_ep0) { int i; struct usb_hcd *hcd = bus_to_hcd(dev->bus); /* getting rid of interfaces will disconnect * any drivers bound to them (a key side effect) */ if (dev->actconfig) { /* * FIXME: In order to avoid self-deadlock involving the * bandwidth_...
0
[ "CWE-119", "CWE-787" ]
linux
2e1c42391ff2556387b3cb6308b24f6f65619feb
79,356,957,902,550,690,000,000,000,000,000,000,000
67
USB: core: harden cdc_parse_cdc_header Andrey Konovalov reported a possible out-of-bounds problem for the cdc_parse_cdc_header function. He writes: It looks like cdc_parse_cdc_header() doesn't validate buflen before accessing buffer[1], buffer[2] and so on. The only check present is while (buflen > 0). So fix thi...
_outMinMaxExpr(StringInfo str, const MinMaxExpr *node) { WRITE_NODE_TYPE("MINMAX"); WRITE_OID_FIELD(minmaxtype); WRITE_OID_FIELD(minmaxcollid); WRITE_OID_FIELD(inputcollid); WRITE_ENUM_FIELD(op, MinMaxOp); WRITE_NODE_FIELD(args); WRITE_LOCATION_FIELD(location); }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
222,073,997,918,104,040,000,000,000,000,000,000,000
11
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
static void emit_mov_imm64(u8 **pprog, u32 dst_reg, const u32 imm32_hi, const u32 imm32_lo) { u8 *prog = *pprog; int cnt = 0; if (is_uimm32(((u64)imm32_hi << 32) | (u32)imm32_lo)) { /* * For emitting plain u32, where sign bit must not be * propagated LLVM tends to load imm64 over mov32 * directly, ...
0
[ "CWE-77" ]
linux
e4d4d456436bfb2fe412ee2cd489f7658449b098
91,759,470,484,086,260,000,000,000,000,000,000,000
23
bpf, x86: Validate computation of branch displacements for x86-64 The branch displacement logic in the BPF JIT compilers for x86 assumes that, for any generated branch instruction, the distance cannot increase between optimization passes. But this assumption can be violated due to how the distances are computed. Spec...
static u32 guc_ads_blob_size(struct intel_guc *guc) { return guc_ads_private_data_offset(guc) + guc_ads_private_data_size(guc); }
0
[ "CWE-20", "CWE-190" ]
linux
c784e5249e773689e38d2bc1749f08b986621a26
177,251,479,276,386,550,000,000,000,000,000,000,000
5
drm/i915/guc: Update to use firmware v49.0.1 The latest GuC firmware includes a number of interface changes that require driver updates to match. * Starting from Gen11, the ID to be provided to GuC needs to contain the engine class in bits [0..2] and the instance in bits [3..6]. NOTE: this patch breaks pointer d...
TEST_P(ProtocolIntegrationTest, MissingStatus) { initialize(); // HTTP1, uses a defined protocol which doesn't split up messages into raw byte frames codec_client_ = makeHttpConnection(lookupPort("http")); auto response = codec_client_->makeHeaderOnlyRequest(default_request_headers_); if (upstreamProtocol()...
0
[ "CWE-416" ]
envoy
148de954ed3585d8b4298b424aa24916d0de6136
101,507,884,679,045,900,000,000,000,000,000,000,000
38
CVE-2021-43825 Response filter manager crash Signed-off-by: Yan Avlasov <yavlasov@google.com>
fdp_send(struct lldpd *global, struct lldpd_hardware *hardware) { return cdp_send(global, hardware, 0); }
0
[ "CWE-617", "CWE-703" ]
lldpd
793526f8884455f43daecd0a2c46772388417a00
301,567,723,198,484,550,000,000,000,000,000,000,000
5
protocols: don't use assert on paths that can be reached Malformed packets should not make lldpd crash. Ensure we can handle them by not using assert() in this part.
MaxKeyData() { totsize=7; maxkey=MaxKey; name=0; eoo=EOO; }
0
[ "CWE-20" ]
mongo
f9817a6cf64bdba8e1e1cef30a798110df746b58
234,172,918,864,987,120,000,000,000,000,000,000,000
6
SERVER-7769 - turn objcheck on by default and use new fast bson validate
start_agent (ctrl_t ctrl, int for_card) { int rc; (void)ctrl; /* Not yet used. */ /* Fixme: We need a context for each thread or serialize the access to the agent. */ if (agent_ctx) rc = 0; else { rc = start_new_gpg_agent (&agent_ctx, GPG_ERR_SOURCE_DEFAU...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
30,425,731,660,052,040,000,000,000,000,000,000,000
104
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 ...
GF_Box *gf_isom_audio_sample_get_audio_codec_cfg_box(GF_AudioSampleEntryBox *ptr) { GF_MPEGAudioSampleEntryBox *mpga = (GF_MPEGAudioSampleEntryBox *) ptr; switch (ptr->type) { case GF_ISOM_BOX_TYPE_MP4A: return (GF_Box *)mpga->esd; case GF_ISOM_BOX_TYPE_AC3: case GF_ISOM_BOX_TYPE_EC3: return (GF_Box *)mpga->cf...
0
[ "CWE-476", "CWE-401" ]
gpac
328c6d682698fdb9878dbb4f282963d42c538c01
322,488,148,509,198,070,000,000,000,000,000,000,000
19
fixed #1756
int sqlite3Fts3MsrOvfl( Fts3Cursor *pCsr, Fts3MultiSegReader *pMsr, int *pnOvfl ){ Fts3Table *p = (Fts3Table*)pCsr->base.pVtab; int nOvfl = 0; int ii; int rc = SQLITE_OK; int pgsz = p->nPgsz; assert( p->bFts4 ); assert( pgsz>0 ); for(ii=0; rc==SQLITE_OK && ii<pMsr->nSegment; ii++){ Fts3SegR...
0
[ "CWE-787" ]
sqlite
c72f2fb7feff582444b8ffdc6c900c69847ce8a9
265,068,252,942,113,000,000,000,000,000,000,000,000
33
More improvements to shadow table corruption detection in FTS3. FossilOrigin-Name: 51525f9c3235967bc00a090e84c70a6400698c897aa4742e817121c725b8c99d
static int sort_down(const void *p1, const void *p2) { return ((long *)p2)[1] - ((long *)p1)[1]; }
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
120,849,198,248,172,370,000,000,000,000,000,000,000
4
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
void CLASS parseCanonMakernotes(unsigned tag, unsigned type, unsigned len) { if (tag == 0x0001) Canon_CameraSettings(); else if (tag == 0x0002) // focal length { imgdata.lens.makernotes.FocalType = get2(); imgdata.lens.makernotes.CurFocal = get2(); if (imgdata.lens.makernotes.CanonFocalUnits > 1)...
0
[ "CWE-190" ]
LibRaw
4554e24ce24beaef5d0ef48372801cfd91039076
305,173,035,639,072,100,000,000,000,000,000,000,000
399
parse_qt: possible integer overflow
int htp_hdrs_completecb(llhttp_t *htp) { int rv; auto upstream = static_cast<HttpsUpstream *>(htp->data); if (LOG_ENABLED(INFO)) { ULOG(INFO, upstream) << "HTTP request headers completed"; } auto handler = upstream->get_client_handler(); auto downstream = upstream->get_downstream(); auto &req = down...
1
[]
nghttp2
319d5ab1c6d916b6b8a0d85b2ae3f01b3ad04f2c
192,180,912,399,109,130,000,000,000,000,000,000,000
200
nghttpx: Fix request stall Fix request stall if backend connection is reused and buffer is full.
static RList *symbols(RBinFile *bf) { RList *res = r_list_newf ((RListFree)r_bin_symbol_free); r_return_val_if_fail (res && bf->o && bf->o->bin_obj, res); RCoreSymCacheElement *element = bf->o->bin_obj; size_t i; HtUU *hash = ht_uu_new0 (); if (!hash) { return res; } bool found = false; for (i = 0; i < eleme...
1
[ "CWE-476" ]
radare2
515e592b9bea0612bc63d8e93239ff35bcf645c7
198,849,166,368,149,650,000,000,000,000,000,000,000
38
Fix null deref in bin.symbols ##crash * Reported by cnitlrt via huntr.dev
camel_stream_buffer_init (CamelStreamBuffer *stream) { stream->priv = camel_stream_buffer_get_instance_private (stream); stream->priv->size = BUF_SIZE; stream->priv->buf = g_malloc (BUF_SIZE); stream->priv->ptr = stream->priv->buf; stream->priv->end = stream->priv->buf; stream->priv->mode = CAMEL_STREAM_BUFFER_...
0
[ "CWE-74" ]
evolution-data-server
ba82be72cfd427b5d72ff21f929b3a6d8529c4df
135,188,689,536,238,230,000,000,000,000,000,000,000
14
I#226 - CVE-2020-14928: Response Injection via STARTTLS in SMTP and POP3 Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/226
CHARSET_INFO *Item::default_charset() { return current_thd->variables.collation_connection; }
0
[]
server
b000e169562697aa072600695d4f0c0412f94f4f
154,907,117,393,196,600,000,000,000,000,000,000,000
4
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) based on: commit f7316aa0c9a Author: Ajo Robert <ajo.robert@oracle.com> Date: Thu Aug 24 17:03:21 2017 +0530 Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME'...
static BOOL update_send_glyph_index(rdpContext* context, GLYPH_INDEX_ORDER* glyph_index) { wStream* s; size_t offset; int headerLength; int inf; ORDER_INFO orderInfo; rdpUpdate* update = context->update; headerLength = update_prepare_order_info(context, &orderInfo, ORDER_TYPE_GLYPH_INDEX); inf = update_approxim...
0
[ "CWE-125" ]
FreeRDP
f8890a645c221823ac133dbf991f8a65ae50d637
193,809,921,637,002,740,000,000,000,000,000,000,000
27
Fixed #6005: Bounds checks in update_read_bitmap_data
JsVar *jswrap_graphics_createSDL(int width, int height) { if (width<=0 || height<=0 || width>32767 || height>32767) { jsExceptionHere(JSET_ERROR, "Invalid Size"); return 0; } JsVar *parent = jspNewObject(0, "Graphics"); if (!parent) return 0; // low memory JsGraphics gfx; graphicsStructInit(&gfx); ...
0
[ "CWE-125" ]
Espruino
8a44b04b584b3d3ab1cb68fed410f7ecb165e50e
88,976,966,977,730,290,000,000,000,000,000,000,000
19
Add height check for Graphics.createArrayBuffer(...vertical_byte:true) (fix #1421)
g_get_current_dir(char* dirname, int maxlen) { #if defined(_WIN32) GetCurrentDirectoryA(maxlen, dirname); return 0; #else if (getcwd(dirname, maxlen) == 0) { } return 0; #endif }
0
[]
xrdp
d8f9e8310dac362bb9578763d1024178f94f4ecc
109,405,204,162,184,540,000,000,000,000,000,000,000
12
move temp files from /tmp to /tmp/.xrdp
Header::hasPreviewImage () const { return findTypedAttribute <PreviewImageAttribute> ("preview") != 0; }
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
250,977,367,452,260,540,000,000,000,000,000,000,000
4
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
bgp_attr_aspath_check (struct peer *const peer, struct attr *const attr) { /* These checks were part of bgp_attr_aspath, but with * as4 we should to check aspath things when * aspath synthesizing with as4_path has already taken place. * Otherwise we check ASPATH and use the synthesized thing, and that is ...
0
[]
quagga
8794e8d229dc9fe29ea31424883433d4880ef408
152,381,191,919,208,310,000,000,000,000,000,000,000
50
bgpd: Fix regression in args consolidation, total should be inited from args * bgp_attr.c: (bgp_attr_unknown) total should be initialised from the args.
reflected_equal (gconstpointer a, gconstpointer b) { const ReflectedEntry *ea = a; const ReflectedEntry *eb = b; return (ea->item == eb->item) && (ea->refclass == eb->refclass); }
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
206,395,819,982,929,470,000,000,000,000,000,000,000
6
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
static int __init cma_activate_area(struct cma *cma) { int bitmap_size = BITS_TO_LONGS(cma_bitmap_maxno(cma)) * sizeof(long); unsigned long base_pfn = cma->base_pfn, pfn = base_pfn; unsigned i = cma->count >> pageblock_order; struct zone *zone; cma->bitmap = kzalloc(bitmap_size, GFP_KERNEL); if (!cma->bitmap) ...
0
[ "CWE-682" ]
linux
67a2e213e7e937c41c52ab5bc46bf3f4de469f6e
57,661,058,079,827,970,000,000,000,000,000,000,000
47
mm: cma: fix incorrect type conversion for size during dma allocation This was found during userspace fuzzing test when a large size dma cma allocation is made by driver(like ion) through userspace. show_stack+0x10/0x1c dump_stack+0x74/0xc8 kasan_report_error+0x2b0/0x408 kasan_report+0x34/0x40 __asan_storeN...
window_zoom(struct window_pane *wp) { struct window *w = wp->window; struct window_pane *wp1; if (w->flags & WINDOW_ZOOMED) return (-1); if (window_count_panes(w) == 1) return (-1); if (w->active != wp) window_set_active_pane(w, wp); TAILQ_FOREACH(wp1, &w->panes, entry) { wp1->saved_layout_cell = wp1...
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
65,615,946,199,612,570,000,000,000,000,000,000,000
26
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
Mutex_info() { for (unsigned int i = 0; i<32; ++i) pthread_mutex_init(&mutex[i],0); }
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
230,707,644,692,531,650,000,000,000,000,000,000,000
1
Fix other issues in 'CImg<T>::load_bmp()'.
static void floppy_release_irq_and_dma(void) { int fdc; #ifndef __sparc__ int drive; #endif long tmpsize; unsigned long tmpaddr; if (!atomic_dec_and_test(&usage_count)) return; if (irqdma_allocated) { fd_disable_dma(); fd_free_dma(); fd_free_irq(); irqdma_allocated = 0; } set_dor(0, ~0, 8); #if N_FD...
0
[ "CWE-416" ]
linux
233087ca063686964a53c829d547c7571e3f67bf
337,063,040,016,041,670,000,000,000,000,000,000,000
47
floppy: disable FDRAWCMD by default Minh Yuan reported a concurrency use-after-free issue in the floppy code between raw_cmd_ioctl and seek_interrupt. [ It turns out this has been around, and that others have reported the KASAN splats over the years, but Minh Yuan had a reproducer for it and so gets primary credi...
int mailimf_date_time_parse(const char * message, size_t length, size_t * indx, struct mailimf_date_time ** result) { size_t cur_token; int day_of_week; struct mailimf_date_time * date_time; int day; int month; int year; int hour; int min; int sec; int zone; int r; cur_token = * i...
0
[ "CWE-476" ]
libetpan
1fe8fbc032ccda1db9af66d93016b49c16c1f22d
313,474,555,782,245,560,000,000,000,000,000,000,000
65
Fixed crash #274
static Bool scene_dump_vrml_find_route_name(GF_SceneDumper *sdump, u32 ID, const char **outName) { GF_Route *r; u32 i; GF_Command *com; r = gf_sg_route_find(sdump->sg, ID); if (r) { (*outName) = r->name; return 1; } i=0; while ((com = (GF_Command *)gf_list_enum(sdump->inserted_routes, &i))) { if (com->ta...
0
[ "CWE-476" ]
gpac
0102c5d4db7fdbf08b5b591b2a6264de33867a07
33,360,518,320,509,647,000,000,000,000,000,000,000
32
fixed #2232
static void account_event(struct perf_event *event) { if (event->parent) return; if (event->attach_state & PERF_ATTACH_TASK) static_key_slow_inc(&perf_sched_events.key); if (event->attr.mmap || event->attr.mmap_data) atomic_inc(&nr_mmap_events); if (event->attr.comm) atomic_inc(&nr_comm_events); if (event...
0
[ "CWE-284", "CWE-264" ]
linux
f63a8daa5812afef4f06c962351687e1ff9ccb2b
242,026,802,931,254,700,000,000,000,000,000,000,000
24
perf: Fix event->ctx locking There have been a few reported issues wrt. the lack of locking around changing event->ctx. This patch tries to address those. It avoids the whole rwsem thing; and while it appears to work, please give it some thought in review. What I did fail at is sensible runtime checks on the use of ...
long AudioTrack::Parse(Segment* pSegment, const Info& info, long long element_start, long long element_size, AudioTrack*& pResult) { if (pResult) return -1; if (info.type != Track::kAudio) return -1; IMkvReader* const pReader = pSegment->m_pReader; const ...
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
114,263,348,159,293,880,000,000,000,000,000,000,000
80
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
envoy::extensions::transport_sockets::tls::v3::Secret getCvcSecretWithOnlyTrustedCa() { envoy::extensions::transport_sockets::tls::v3::Secret secret; secret.set_name(validation_secret_); auto* validation_context = secret.mutable_validation_context(); validation_context->mutable_trusted_ca()->set_filen...
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
160,995,742,521,977,650,000,000,000,000,000,000,000
8
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...
_XimSetInnerIMAttributes( Xim im, XPointer top, XIMArg *arg, unsigned long mode) { XIMResourceList res; int check; if (!(res = _XimGetResourceListRec(im->private.proto.im_inner_resources, im->private.proto.im_num_inner_resources, arg->name))) return False; check = _XimCh...
0
[ "CWE-190" ]
libx11
1703b9f3435079d3c6021e1ee2ec34fd4978103d
73,276,127,096,620,220,000,000,000,000,000,000,000
21
Change the data_len parameter of _XimAttributeToValue() to CARD16 It's coming from a length in the protocol (unsigned) and passed to functions that expect unsigned int parameters (_XCopyToArg() and memcpy()). Signed-off-by: Matthieu Herrb <matthieu@herrb.eu> Reviewed-by: Todd Carson <toc@daybefore.net>
static int io_unlinkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_unlink *un = &req->unlink; const char __user *fname; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index) return -EINVAL; if (unlikely...
0
[ "CWE-125" ]
linux
89c2b3b74918200e46699338d7bcc19b1ea12110
254,906,006,216,069,840,000,000,000,000,000,000,000
27
io_uring: reexpand under-reexpanded iters [ 74.211232] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x809/0x900 [ 74.212778] Read of size 8 at addr ffff888025dc78b8 by task syz-executor.0/828 [ 74.214756] CPU: 0 PID: 828 Comm: syz-executor.0 Not tainted 5.14.0-rc3-next-20210730 #1 [ 74.216525] Hardware n...
handle_add_command(GraphicsManager *self, const GraphicsCommand *g, const uint8_t *payload, bool *is_dirty, uint32_t iid) { #define ABRT(code, ...) { set_add_response(#code, __VA_ARGS__); self->loading_image = 0; if (img) img->data_loaded = false; return NULL; } #define MAX_DATA_SZ (4u * 100000000u) has_add_respose...
1
[ "CWE-787" ]
kitty
82c137878c2b99100a3cdc1c0f0efea069313901
193,277,586,803,458,100,000,000,000,000,000,000,000
163
Graphics protocol: Dont return filename in the error message when opening file fails, since filenames can contain control characters Fixes #3128
static int SFD_MMDump(FILE *sfd,SplineFont *sf,EncMap *map,EncMap *normal, int todir, char *dirname) { MMSet *mm = sf->mm; int max, i, j; int err = false; fprintf( sfd, "MMCounts: %d %d %d %d\n", mm->instance_count, mm->axis_count, mm->apple, mm->named_instance_count ); fprintf( sfd, "MMAxis:...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
181,814,666,645,922,000,000,000,000,000,000,000,000
61
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
static void module_enable_x(const struct module *mod) { }
0
[ "CWE-362", "CWE-347" ]
linux
0c18f29aae7ce3dadd26d8ee3505d07cc982df75
1,445,362,106,606,054,000,000,000,000,000,000,000
1
module: limit enabling module.sig_enforce Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying "module.sig_enforce=1" on the boot command line sets "sig_enforce". Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured. This patch makes the presence of /sys/module/module/parameters/s...
TEST_P(Security, BuiltinAuthenticationAndCryptoPlugin_user_data) { PubSubReader<HelloWorldType> reader(TEST_TOPIC_NAME); PubSubWriter<HelloWorldType> writer(TEST_TOPIC_NAME); PropertyPolicy pub_part_property_policy, sub_part_property_policy, pub_property_policy, sub_property_policy; pub_pa...
0
[ "CWE-284" ]
Fast-DDS
d2aeab37eb4fad4376b68ea4dfbbf285a2926384
265,021,180,279,607,630,000,000,000,000,000,000,000
74
check remote permissions (#1387) * Refs 5346. Blackbox test Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. one-way string compare Signed-off-by: Iker Luengo <ikerluengo@eprosima.com> * Refs 5346. Do not add partition separator on last partition Signed-off-by: Iker Luengo <ikerluengo@e...
DNSRecordContent::typemap_t& DNSRecordContent::getTypemap() { static DNSRecordContent::typemap_t typemap; return typemap; }
0
[ "CWE-399" ]
pdns
adb10be102ddd4d2baf7a8adbb5673946fe5e555
214,866,382,515,454,050,000,000,000,000,000,000,000
5
fix forward reference-check in getLabelFromContent()
storageVolLookupByKeyCallback(virStoragePoolObj *obj, const void *opaque) { struct storageVolLookupData *data = (struct storageVolLookupData *)opaque; if (virStoragePoolObjIsActive(obj)) data->voldef = virStorageVolDefFindByKey(obj, data->key); return !!data->voldef; ...
0
[]
libvirt
447f69dec47e1b0bd15ecd7cd49a9fd3b050fb87
338,266,457,779,733,400,000,000,000,000,000,000,000
10
storage_driver: Unlock object on ACL fail in storagePoolLookupByTargetPath 'virStoragePoolObjListSearch' returns a locked and refed object, thus we must release it on ACL permission failure. Fixes: 7aa0e8c0cb8 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1984318 Signed-off-by: Peter Krempa <pkrempa@redhat.co...
QHash<QString, QString> ImportEPUB::ParseEncryptionXml() { QString encrpytion_xml_path = m_ExtractedFolderPath + "/META-INF/encryption.xml"; if (!QFileInfo(encrpytion_xml_path).exists()) { return QHash<QString, QString>(); } QXmlStreamReader encryption(Utility::ReadUnicodeTextFile(encrpytion_x...
0
[ "CWE-22" ]
Sigil
04e2f280cc4a0766bedcc7b9eb56449ceecc2ad4
208,035,390,286,819,380,000,000,000,000,000,000,000
36
further harden against malicious epubs and produce error message
Field *Type_handler_year::make_conversion_table_field(TABLE *table, uint metadata, const Field *target) const { return new(table->in_use->mem_root) ...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
45,625,433,196,217,540,000,000,000,000,000,000,000
8
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
irc_server_check_join_manual_cb (void *data, struct t_hashtable *hashtable, const void *key, const void *value) { /* make C compiler happy */ (void) data; if (*((time_t *)value) + (60 * 10) < time (NULL)) weechat_hashtable_remove (ha...
0
[ "CWE-120", "CWE-787" ]
weechat
40ccacb4330a64802b1f1e28ed9a6b6d3ca9197f
179,715,905,633,851,500,000,000,000,000,000,000,000
10
irc: fix crash when a new message 005 is received with longer nick prefixes Thanks to Stuart Nevans Locke for reporting the issue.
openscript( char_u *name, int directly) /* when TRUE execute directly */ { if (curscript + 1 == NSCRIPT) { emsg(_(e_nesting)); return; } #ifdef FEAT_EVAL if (ignore_script) /* Not reading from script, also don't open one. Warning message? */ return; #endif if (scriptin[curscript] != N...
1
[ "CWE-78" ]
vim
53575521406739cf20bbe4e384d88e7dca11f040
334,237,515,162,047,070,000,000,000,000,000,000,000
68
patch 8.1.1365: source command doesn't check for the sandbox Problem: Source command doesn't check for the sandbox. (Armin Razmjou) Solution: Check for the sandbox when sourcing a file.
static void floppy_drive_realize(DeviceState *qdev, Error **errp) { FloppyDrive *dev = FLOPPY_DRIVE(qdev); FloppyBus *bus = FLOPPY_BUS(qdev->parent_bus); FDrive *drive; bool read_only; int ret; if (dev->unit == -1) { for (dev->unit = 0; dev->unit < MAX_FD; dev->unit++) { dri...
0
[ "CWE-787" ]
qemu
defac5e2fbddf8423a354ff0454283a2115e1367
123,833,857,808,770,780,000,000,000,000,000,000,000
90
hw/block/fdc: Prevent end-of-track overrun (CVE-2021-3507) Per the 82078 datasheet, if the end-of-track (EOT byte in the FIFO) is more than the number of sectors per side, the command is terminated unsuccessfully: * 5.2.5 DATA TRANSFER TERMINATION The 82078 supports terminal count explicitly through the TC pin a...
static PCRE2_SPTR SLJIT_FUNC do_extuni_utf(jit_arguments *args, PCRE2_SPTR cc) { PCRE2_SPTR start_subject = args->begin; PCRE2_SPTR end_subject = args->end; int lgb, rgb, ricount; PCRE2_SPTR prevcc, endcc, bptr; BOOL first = TRUE; uint32_t c; prevcc = cc; endcc = NULL; do { GETCHARINC(c, cc); rgb = UCD_GRAPHBREA...
0
[ "CWE-125" ]
pcre2
50a51cb7e67268e6ad417eb07c9de9bfea5cc55a
214,003,650,767,980,300,000,000,000,000,000,000,000
65
Fixed a unicode properrty matching issue in JIT
static MagickBooleanType CLISimpleOperatorImage(MagickCLI *cli_wand, const char *option, const char *arg1n, const char *arg2n, ExceptionInfo *exception) { Image * new_image; GeometryInfo geometry_info; RectangleInfo geometry; MagickStatusType flags; ssize_t parse; const char ...
0
[ "CWE-399", "CWE-401" ]
ImageMagick
4a334bbf5584de37c6f5a47c380a531c8c4b140a
267,437,842,557,021,430,000,000,000,000,000,000,000
2,002
https://github.com/ImageMagick/ImageMagick/issues/1623
EC_Group::EC_Group(const std::vector<uint8_t>& ber) { m_data = BER_decode_EC_group(ber.data(), ber.size()); }
0
[ "CWE-200" ]
botan
48fc8df51d99f9d8ba251219367b3d629cc848e3
207,770,053,098,291,870,000,000,000,000,000,000,000
4
Address DSA/ECDSA side channel
static unsigned long calculate_alignment(unsigned long flags, unsigned long align, unsigned long size) { /* * If the user wants hardware cache aligned objects then follow that * suggestion if the object is sufficiently large. * * The hardware cache alignment cannot override the specified * alignment though...
0
[ "CWE-189" ]
linux
f8bd2258e2d520dff28c855658bd24bdafb5102d
304,454,551,910,823,370,000,000,000,000,000,000,000
22
remove div_long_long_rem x86 is the only arch right now, which provides an optimized for div_long_long_rem and it has the downside that one has to be very careful that the divide doesn't overflow. The API is a little akward, as the arguments for the unsigned divide are signed. The signed version also doesn't handle ...
bgp_capability_orf (struct peer *peer, struct capability_header *hdr) { struct stream *s = BGP_INPUT (peer); size_t end = stream_get_getp (s) + hdr->length; assert (stream_get_getp(s) + sizeof(struct capability_orf_entry) <= end); /* We must have at least one ORF entry, as the caller has already done *...
1
[]
quagga-RE
790d1e263e8800bc49d0038d481591ecb4e37b88
175,928,888,712,587,720,000,000,000,000,000,000,000
20
bgpd: CVE-2012-1820, DoS in bgp_capability_orf() An ORF (code 3) capability TLV is defined to contain exactly one AFI/SAFI block. Function bgp_capability_orf(), which parses ORF capability TLV, uses do-while cycle to call its helper function bgp_capability_orf_entry(), which actually processes the AFI/SAFI data block....
static void fatal_jpeg_error(j_common_ptr cinfo) { jmpbuf_wrapper *jmpbufw; char buffer[JMSG_LENGTH_MAX]; (*cinfo->err->format_message)(cinfo, buffer); gd_error_ex(GD_WARNING, "gd-jpeg: JPEG library reports unrecoverable error: %s", buffer); jmpbufw = (jmpbuf_wrapper *)cinfo->client_data; jpeg_destroy(cinfo); ...
0
[ "CWE-415" ]
libgd
553702980ae89c83f2d6e254d62cf82e204956d0
274,798,986,587,446,140,000,000,000,000,000,000,000
20
Fix #492: Potential double-free in gdImage*Ptr() Whenever `gdImage*Ptr()` calls `gdImage*Ctx()` and the latter fails, we must not call `gdDPExtractData()`; otherwise a double-free would happen. Since `gdImage*Ctx()` are void functions, and we can't change that for BC reasons, we're introducing static helpers which ar...
std::string Box_infe::dump(Indent& indent) const { std::ostringstream sstr; sstr << Box::dump(indent); sstr << indent << "item_ID: " << m_item_ID << "\n" << indent << "item_protection_index: " << m_item_protection_index << "\n" << indent << "item_type: " << m_item_type << "\n" << indent << "...
0
[ "CWE-703" ]
libheif
2710c930918609caaf0a664e9c7bc3dce05d5b58
145,401,098,813,236,190,000,000,000,000,000,000,000
16
force fraction to a limited resolution to finally solve those pesky numerical edge cases
bool Field::can_be_substituted_to_equal_item(const Context &ctx, const Item_equal *item_equal) { DBUG_ASSERT(item_equal->compare_type() != STRING_RESULT); DBUG_ASSERT(cmp_type() != STRING_RESULT); switch (ctx.subst_constraint()) { case ANY_SUBST: /* Disable...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
5,299,764,336,345,094,000,000,000,000,000,000,000
22
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
TfLiteStatus HardSwishPrepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_STATUS(GenericPrepare(context, node)); TfLiteTensor* output = GetOutput(context, node, 0); if (output->type == kTfLiteUInt8 || output->type == kTfLiteInt8) { HardSwishData* data = static_cast<HardSwishData*>(node->user_d...
1
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
150,841,106,732,426,470,000,000,000,000,000,000,000
35
[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...
MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, const MagickBooleanType split,TypeMetric *metrics,char **caption, ExceptionInfo *exception) { MagickBooleanType status; register char *p, *q, *s; register ssize_t i; size_t width; ssize_t n; q=dra...
0
[ "CWE-125" ]
ImageMagick
7c2c5ba5b8e3a0b2b82f56c71dfab74ed4006df7
84,822,434,601,505,820,000,000,000,000,000,000,000
76
https://github.com/ImageMagick/ImageMagick/issues/1588
inline uint tmp_table_max_key_parts() { return MI_MAX_KEY_SEG; }
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
271,346,743,789,732,370,000,000,000,000,000,000,000
1
MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob the bug was that in_vector array in Item_func_in was allocated in the statement arena, not in the table->expr_arena. revert part of the 5acd391e8b2d. Instead, change the arena correctly in fix_all_session_vcol_exprs(). Remove TABLE_ARENA, t...
getFileTypeNoFollowSymlinks(const StaticString &filename) { struct stat buf; int ret; ret = lstat(filename.c_str(), &buf); if (ret == 0) { if (S_ISREG(buf.st_mode)) { return FT_REGULAR; } else if (S_ISDIR(buf.st_mode)) { return FT_DIRECTORY; } else if (S_ISLNK(buf.st_mode)) { return FT_SYMLINK; }...
1
[ "CWE-401" ]
passenger
94428057c602da3d6d34ef75c78091066ecac5c0
279,550,607,402,138,100,000,000,000,000,000,000,000
27
Fix a symlink-related security vulnerability. The fix in commit 34b10878 and contained a small attack time window in between two filesystem operations. This has been fixed.
TEST_P(Http2CodecImplTest, ResponseDataFloodMitigationDisabled) { max_outbound_control_frames_ = 2147483647; initialize(); TestRequestHeaderMapImpl request_headers; HttpTestUtility::addDefaultHeaders(request_headers); EXPECT_CALL(request_decoder_, decodeHeaders_(_, false)); request_encoder_->encodeHeaders(...
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
223,849,181,827,480,970,000,000,000,000,000,000,000
27
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...
FILE *mingw_freopen (const char *filename, const char *otype, FILE *stream) { int hide = needs_hiding(filename); FILE *file; wchar_t wfilename[MAX_PATH], wotype[4]; if (!is_valid_win32_path(filename)) { int create = otype && strchr(otype, 'w'); errno = create ? EINVAL : ENOENT; return NULL; } if (filename &...
0
[ "CWE-706" ]
git
f82a97eb9197c1e3768e72648f37ce0ca3233734
12,611,702,692,307,523,000,000,000,000,000,000,000
24
mingw: handle `subst`-ed "DOS drives" Over a decade ago, in 25fe217b86c (Windows: Treat Windows style path names., 2008-03-05), Git was taught to handle absolute Windows paths, i.e. paths that start with a drive letter and a colon. Unbeknownst to us, while drive letters of physical drives are limited to letters of th...
void readField( apache::thrift::optional_field_ref<bool&> data, FieldType fieldType) { data = fieldType == FieldType::True; }
0
[ "CWE-400", "CWE-522", "CWE-674" ]
mcrouter
97e033b3bb0cb16b61bf49f0dc7f311a3e0edd1b
30,771,575,788,693,454,000,000,000,000,000,000,000
5
Attempt to make CarbonProtocolReader::skip tail recursive Reviewed By: edenzik Differential Revision: D17967570 fbshipit-source-id: fdc32e190a521349c7c8f4d6081902fa18eb0284
static int property_get_oom_score_adjust( sd_bus *bus, const char *path, const char *interface, const char *property, sd_bus_message *reply, void *userdata, sd_bus_error *error) { ExecContext *c = us...
0
[ "CWE-269" ]
systemd
f69567cbe26d09eac9d387c0be0fc32c65a83ada
135,008,619,336,213,030,000,000,000,000,000,000,000
28
core: expose SUID/SGID restriction as new unit setting RestrictSUIDSGID=
static apr_status_t check_suspended(h2_proxy_session *session) { h2_proxy_stream *stream; int i, stream_id; apr_status_t status; for (i = 0; i < session->suspended->nelts; ++i) { stream_id = session->suspended->elts[i]; stream = nghttp2_session_get_stream_user_data(session->ngh2, st...
0
[ "CWE-770" ]
mod_h2
dd05d49abe0f67512ce9ed5ba422d7711effecfb
137,395,946,113,889,280,000,000,000,000,000,000,000
41
* fixes Timeout vs. KeepAliveTimeout behaviour, see PR 63534 (for trunk now, mpm event backport to 2.4.x up for vote). * Fixes stream cleanup when connection throttling is in place. * Counts stream resets by client on streams initiated by client as cause for connection throttling. * Header length checks are no...
PgUser *force_user(PgDatabase *db, const char *name, const char *passwd) { PgUser *user = db->forced_user; if (!user) { user = slab_alloc(user_cache); if (!user) return NULL; list_init(&user->head); list_init(&user->pool_list); } safe_strcpy(user->name, name, sizeof(user->name)); safe_strcpy(user->passw...
0
[]
pgbouncer
4b92112b820830b30cd7bc91bef3dd8f35305525
112,415,435,496,428,680,000,000,000,000,000,000,000
15
add_database: fail gracefully if too long db name Truncating & adding can lead to fatal() later. It was not an issue before, but with audodb (* in [databases] section) the database name can some from network, thus allowing remote shutdown..
int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) { int nsg = __skb_to_sgvec(skb, sg, offset, len); sg_mark_end(&sg[nsg - 1]); return nsg; }
0
[ "CWE-416" ]
net
36d5fe6a000790f56039afe26834265db0a3ad4c
336,266,186,132,498,580,000,000,000,000,000,000,000
8
core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors skb_zerocopy can copy elements of the frags array between skbs, but it doesn't orphan them. Also, it doesn't handle errors, so this patch takes care of that as well, and modify the callers accordingly. skb_tx_error() is also added to the caller...
ffi_closure_alloc (size_t size, void **code) { void *ptr; if (!code) return NULL; ptr = dlmalloc (size); if (ptr) { msegmentptr seg = segment_holding (gm, ptr); *code = add_segment_exec_offset (ptr, seg); } return ptr; }
0
[ "CWE-787" ]
libffi
44a6c28545186d78642487927952844156fc7ab5
317,116,520,456,878,320,000,000,000,000,000,000,000
18
aarch64: Flush code mapping in addition to data mapping (#471) This needs a new function, ffi_data_to_code_pointer, to translate from data pointers to code pointers. Fixes issue #470.
static void dump_backtrace(void) { struct st_connection *conn= cur_con; fprintf(stderr, "read_command_buf (%p): ", read_command_buf); my_safe_print_str(read_command_buf, sizeof(read_command_buf)); if (conn) { fprintf(stderr, "conn->name (%p): ", conn->name); my_safe_print_str(conn->name, conn->name_...
0
[ "CWE-295" ]
mysql-server
b3e9211e48a3fb586e88b0270a175d2348935424
226,889,977,722,098,100,000,000,000,000,000,000,000
19
WL#9072: Backport WL#8785 to 5.5
MaybeLocal<Value> GetSubject( Environment* env, const BIOPointer& bio, X509* cert) { if (X509_NAME_print_ex( bio.get(), X509_get_subject_name(cert), 0, X509_NAME_FLAGS) <= 0) { USE(BIO_reset(bio.get())); return Undefined(env->isolate()); } return ToV8Va...
0
[ "CWE-295" ]
node
466e5415a2b7b3574ab5403acb87e89a94a980d1
113,248,207,476,372,520,000,000,000,000,000,000,000
15
crypto,tls: implement safe x509 GeneralName format This change introduces JSON-compatible escaping rules for strings that include X.509 GeneralName components (see RFC 5280). This non-standard format avoids ambiguities and prevents injection attacks that could previously lead to X.509 certificates being accepted even ...
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, NumInputs(node), 1); TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1); const TfLiteTensor* input = GetInput(context, node, kInputTensor); TfLiteTensor* output = GetOutput(context, node, kOutputTensor); TF_LITE_ENSURE_...
1
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
165,887,036,125,274,430,000,000,000,000,000,000,000
20
[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...
inline char *strellipsize(char *const str, const unsigned int l=64, const bool is_ending=true) { if (!str) return str; const unsigned int nl = l<5?5:l, ls = (unsigned int)std::strlen(str); if (ls<=nl) return str; if (is_ending) std::strcpy(str + nl - 5,"(...)");...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
325,104,430,377,088,250,000,000,000,000,000,000,000
14
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
z_triple(const char *class, const char *inst, const char *recipient) { if (!*recipient) recipient = "*"; snprintf(z_buf, sizeof(z_buf), "<%s,%s,%s>", class, inst, recipient); z_buf[sizeof(z_buf)-1] = '\0'; return z_buf; }
0
[ "CWE-125" ]
tcpdump
d17507ffa3e9742199b02a66aa940e79ababfa30
319,426,126,892,815,960,000,000,000,000,000,000,000
8
CVE-2017-12902/Zephyr: Fix bounds checking. Use ND_TTEST() rather than comparing against ndo->ndo_snapend ourselves; it's easy to get the tests wrong. Check for running out of packet data before checking for running out of captured data, and distinguish between running out of packet data (which might just mean "no mo...
GF_Err cprt_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_CopyrightBox *ptr = (GF_CopyrightBox *) s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_int(bs, 0, 1); if (ptr->packedLanguageCode[0]) { gf_bs_write_int(bs, ptr->packedLanguageCode[0] - 0x60, 5); gf_bs_write_int(bs, ptr->packedL...
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
47,668,938,294,090,760,000,000,000,000,000,000,000
20
prevent dref memleak on invalid input (#1183)
static float flog2(float f) { float result = 0; while(f > 32) { result += 4; f /= 16; } while(f > 2) { result++; f /= 2; } return result + 1.442695f * (f * f * f / 3 - 3 * f * f / 2 + 3 * f - 1.83333f); }
0
[ "CWE-401" ]
FreeRDP
9fee4ae076b1ec97b97efb79ece08d1dab4df29a
329,755,703,869,062,700,000,000,000,000,000,000,000
7
Fixed #5645: realloc return handling