func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void vrend_renderer_check_fences(void) { struct list_head retired_fences; struct vrend_fence *fence, *stor; /* No need to check the fence list, fences are retired directly in * the polling thread in that case. */ if (vrend_state.use_async_fence_cb) return; list_inithead(&retired_fences); ...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
41,492,571,616,533,014,000,000,000,000,000,000,000
65
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 bool mtk3301_rate_switcher(struct gps_device_t *session, double rate) { char buf[78]; /*@i1@*/ unsigned int milliseconds = 1000 * rate; if (rate > 1) milliseconds = 1000; else if (rate < 0.2) milliseconds = 200; (void)snprintf(buf, sizeof(buf), "$PMTK300,%u,0,0,0,0", milliseconds); (v...
0
[]
gpsd
08edc49d8f63c75bfdfb480b083b0d960310f94f
174,798,810,824,813,460,000,000,000,000,000,000,000
14
Address Savannah bug #38511: ais_context->bitlen <= sizeof(ais_context->bits)/8 is not checked
void SSNPSenderState::DebugCheckInFlightPacketMap() const { Assert( !m_mapInFlightPacketsByPktNum.empty() ); bool bFoundNextToTimeout = false; auto it = m_mapInFlightPacketsByPktNum.begin(); Assert( it->first == INT64_MIN ); Assert( m_itNextInFlightPacketToTimeout != it ); int64 prevPktNum = it->first; SteamNetw...
0
[ "CWE-787" ]
GameNetworkingSockets
e0c86dcb9139771db3db0cfdb1fb8bef0af19c43
18,062,418,091,480,948,000,000,000,000,000,000,000
26
Drop unreliable segments with weird offset/size. And be more deliberate about limits of unreliable message/segment sizes.
static void msf2_emac_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = msf2_emac_realize; dc->reset = msf2_emac_reset; dc->vmsd = &vmstate_msf2_emac; device_class_set_props(dc, msf2_emac_properties); }
0
[ "CWE-835" ]
qemu
26194a58f4eb83c5bdf4061a1628508084450ba1
331,634,371,362,647,330,000,000,000,000,000,000,000
9
msf2-mac: switch to use qemu_receive_packet() for loopback This patch switches to use qemu_receive_packet() which can detect reentrancy and return early. This is intended to address CVE-2021-3416. Cc: Prasad J Pandit <ppandit@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.c...
dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { gint64 count; gint32 l...
0
[ "CWE-401" ]
wireshark
f4374967bbf9c12746b8ec3cd54dddada9dd353e
29,056,495,042,119,975,000,000,000,000,000,000,000
25
Kafka: Limit our decompression size. Don't assume that the Internet has our best interests at heart when it gives us the size of our decompression buffer. Assign an arbitrary limit of 50 MB. This fixes #16739 in that it takes care of ** (process:17681): WARNING **: 20:03:07.440: Dissector bug, protocol Kafka, in pac...
directory_fetches_from_authorities(or_options_t *options) { routerinfo_t *me; uint32_t addr; int refuseunknown; if (options->FetchDirInfoEarly) return 1; if (options->BridgeRelay == 1) return 0; if (server_mode(options) && router_pick_published_address(options, &addr)<0) return 1; /* we don't kn...
0
[ "CWE-264" ]
tor
00fffbc1a15e2696a89c721d0c94dc333ff419ef
277,917,940,949,543,950,000,000,000,000,000,000,000
22
Don't give the Guard flag to relays without the CVE-2011-2768 fix
ext4_xattr_delete_inode(handle_t *handle, struct inode *inode) { struct buffer_head *bh = NULL; if (!EXT4_I(inode)->i_file_acl) goto cleanup; bh = sb_bread(inode->i_sb, EXT4_I(inode)->i_file_acl); if (!bh) { EXT4_ERROR_INODE(inode, "block %llu read error", EXT4_I(inode)->i_file_acl); goto cleanup; } i...
0
[ "CWE-241", "CWE-19" ]
linux
82939d7999dfc1f1998c4b1c12e2f19edbdff272
133,427,615,523,084,640,000,000,000,000,000,000,000
24
ext4: convert to mbcache2 The conversion is generally straightforward. The only tricky part is that xattr block corresponding to found mbcache entry can get freed before we get buffer lock for that block. So we have to check whether the entry is still valid after getting buffer lock. Signed-off-by: Jan Kara <jack@sus...
GF_Err name_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_NameBox *ptr = (GF_NameBox *)s; if (ptr == NULL) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; if (ptr->string) { gf_bs_write_data(bs, ptr->string, (u32) strlen(ptr->string) + 1); } return GF_OK; }
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
189,817,742,742,468,550,000,000,000,000,000,000,000
12
fixed #1587
xmlGetBooleanProp(xmlSchemaParserCtxtPtr ctxt, xmlNodePtr node, const char *name, int def) { const xmlChar *val; val = xmlSchemaGetProp(ctxt, node, name); if (val == NULL) return (def); /* * 3.2.2.1 Lexical representation * An instance of a datatype that is defined...
0
[ "CWE-134" ]
libxml2
4472c3a5a5b516aaf59b89be602fbce52756c3e9
72,878,023,859,041,560,000,000,000,000,000,000,000
32
Fix some format string warnings with possible format string vulnerability For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
icmp6_nodeinfo_print(netdissect_options *ndo, u_int icmp6len, const u_char *bp, const u_char *ep) { const struct icmp6_nodeinfo *ni6; const struct icmp6_hdr *dp; const u_char *cp; size_t siz, i; int needcomma; if (ep < bp) return; dp = (const struct icmp6_hdr *)bp; ni6 = (const struct icmp6_nodeinfo *)bp; s...
1
[ "CWE-125" ]
tcpdump
f4b9e24c7384d882a7f434cc7413925bf871d63e
5,192,144,040,594,132,000,000,000,000,000,000,000
246
CVE-2017-13041/ICMP6: Add more bounds checks. This fixes a buffer over-read discovered by Kim Gwan Yeong. Add a test using the capture file supplied by the reporter(s).
static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk) { unsigned int fp, mode; int ok = 1; printk("Backtrace: "); if (!tsk) tsk = current; if (regs) { fp = regs->ARM_fp; mode = processor_mode(regs); } else if (tsk != current) { fp = thread_saved_fp(tsk); mode = 0x10; } else { a...
0
[ "CWE-284", "CWE-264" ]
linux
a4780adeefd042482f624f5e0d577bf9cdcbb760
53,732,551,214,738,410,000,000,000,000,000,000,000
34
ARM: 7735/2: Preserve the user r/w register TPIDRURW on context switch and fork Since commit 6a1c53124aa1 the user writeable TLS register was zeroed to prevent it from being used as a covert channel between two tasks. There are more and more applications coming to Windows RT, Wine could support them, but mostly they ...
init_connection_options(MYSQL *mysql) { my_bool handle_expired= (opt_connect_expired_password || !status.batch) ? TRUE : FALSE; if (opt_init_command) mysql_options(mysql, MYSQL_INIT_COMMAND, opt_init_command); if (opt_connect_timeout) { uint timeout= opt_connect_timeout; mysql_options(mysql, M...
1
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
292,268,536,306,148,720,000,000,000,000,000,000,000
77
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
void CLASS ciff_block_1030() { static const ushort key[] = {0x410, 0x45f3}; int i, bpp, row, col, vbits = 0; unsigned long bitbuf = 0; if ((get2(), get4()) != 0x80008 || !get4()) return; bpp = get2(); if (bpp != 10 && bpp != 12) return; for (i = row = 0; row < 8; row++) for (col = 0; col < 8;...
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
131,408,956,122,753,480,000,000,000,000,000,000,000
22
Secunia SA75000 advisory: several buffer overruns
static __inline USHORT CalculateIpPseudoHeaderChecksum(IPHeader *pIpHeader, tTcpIpPacketParsingResult res, USHORT headerAndPayloadLen) { if (res.ipStatus == ppresIPV4) return CalculateIpv4PseudoHead...
0
[ "CWE-20" ]
kvm-guest-drivers-windows
723416fa4210b7464b28eab89cc76252e6193ac1
58,187,370,543,339,310,000,000,000,000,000,000,000
10
NetKVM: BZ#1169718: Checking the length only on read Signed-off-by: Joseph Hindin <yhindin@rehat.com>
static sector_t rd_get_blocks(struct se_device *dev) { struct rd_dev *rd_dev = RD_DEV(dev); unsigned long long blocks_long = ((rd_dev->rd_page_count * PAGE_SIZE) / dev->dev_attrib.block_size) - 1; return blocks_long; }
0
[ "CWE-200", "CWE-264" ]
linux
4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc
245,737,303,138,425,680,000,000,000,000,000,000,000
9
target/rd: Refactor rd_build_device_space + rd_release_device_space This patch refactors rd_build_device_space() + rd_release_device_space() into rd_allocate_sgl_table() + rd_release_device_space() so that they may be used seperatly for setup + release of protection information scatterlists. Also add explicit memset ...
Item *get_tmp_table_item(THD *thd) { return copy_or_same(thd); }
0
[]
mysql-server
f7316aa0c9a3909fc7498e7b95d5d3af044a7e21
2,691,927,701,135,888,500,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...
PHP_FUNCTION(imagealphablending) { zval *IM; zend_bool blend; gdImagePtr im; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &IM, &blend) == FAILURE) { return; } ZEND_FETCH_RESOURCE(im, gdImagePtr, &IM, -1, "Image", le_gd); gdImageAlphaBlending(im, blend); RETURN_TRUE; }
0
[ "CWE-703", "CWE-189" ]
php-src
2938329ce19cb8c4197dec146c3ec887c6f61d01
192,464,028,889,346,700,000,000,000,000,000,000,000
15
Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop()) And also fixed the bug: arguments are altered after some calls
static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len, char *dst, int dstlen) { char *p = dst; char *end = dst+dstlen-1; int i; for (i = 0; i < len; i++) { uint8_t t, c = avio_r8(pb); if (p >= end) continue; if (c < 0...
0
[ "CWE-399", "CWE-834" ]
FFmpeg
9cb4eb772839c5e1de2855d126bf74ff16d13382
99,603,653,329,190,410,000,000,000,000,000,000,000
21
avformat/mov: Fix DoS in read_tfra() Fixes: Missing EOF check in loop No testcase Found-by: Xiaohei and Wangchu from Alibaba Security Team Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
openpgp_pk_algo_name (pubkey_algo_t algo) { switch (algo) { case PUBKEY_ALGO_RSA: case PUBKEY_ALGO_RSA_E: case PUBKEY_ALGO_RSA_S: return "RSA"; case PUBKEY_ALGO_ELGAMAL: case PUBKEY_ALGO_ELGAMAL_E: return "ELG"; case PUBKEY_ALGO_DSA: return "DSA"; case PUBKEY_ALGO_ECDH: ...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
280,944,041,638,347,100,000,000,000,000,000,000,000
16
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 ...
wgetrc_env_file_name (void) { char *env = getenv ("WGETRC"); if (env && *env) { if (!file_exists_p (env)) { fprintf (stderr, _("%s: WGETRC points to %s, which doesn't exist.\n"), exec_name, env); exit (WGET_EXIT_GENERIC_ERROR); } return xstrdup ...
0
[ "CWE-22" ]
wget
18b0979357ed7dc4e11d4f2b1d7e0f5932d82aa7
21,474,334,053,387,050,000,000,000,000,000,000,000
15
CVE-2014-4877: Arbitrary Symlink Access Wget was susceptible to a symlink attack which could create arbitrary files, directories or symbolic links and set their permissions when retrieving a directory recursively through FTP. This commit changes the default settings in Wget such that Wget no longer creates local symbo...
static int r_preform_key_decryption(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int x5u_flags) { int ret, res; gnutls_datum_t plainkey = {NULL, 0}, cypherkey; gnutls_privkey_t g_priv = NULL; unsigned int bits = 0; unsigned char * cypherkey_dec = NULL, * key = NULL; size_t cypherkey_dec_len = 0, key_len = 0; #if ...
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
296,805,124,565,684,000,000,000,000,000,000,000,000
199
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
TEST(HttpUtility, ValidateStreamErrorsWithHcm) { envoy::config::core::v3::Http2ProtocolOptions http2_options; http2_options.set_stream_error_on_invalid_http_messaging(true); EXPECT_TRUE(Envoy::Http2::Utility::initializeAndValidateOptions(http2_options) .override_stream_error_on_invalid_http_mess...
0
[]
envoy
3b5acb2f43548862dadb243de7cf3994986a8e04
330,404,277,040,828,280,000,000,000,000,000,000,000
35
http, url: Bring back chromium_url and http_parser_parse_url (#198) * Revert GURL as HTTP URL parser utility This reverts: 1. commit c9c4709c844b90b9bb2935d784a428d667c9df7d 2. commit d828958b591a6d79f4b5fa608ece9962b7afbe32 3. commit 2d69e30c51f2418faf267aaa6c1126fce9948c62 Signed-off-by: Dhi Aurrahman <dio@tetrat...
static int sd_resume(struct device *dev) { struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev); int ret = 0; if (!sdkp->device->manage_start_stop) goto done; sd_printk(KERN_NOTICE, sdkp, "Starting disk\n"); ret = sd_start_stop_device(sdkp, 1); done: scsi_disk_put(sdkp); return ret; }
0
[ "CWE-284", "CWE-264" ]
linux
0bfc96cb77224736dfa35c3c555d37b3646ef35e
197,131,879,738,815,720,000,000,000,000,000,000,000
15
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...
AvahiDnsPacket *avahi_recv_dns_packet_ipv4( int fd, AvahiIPv4Address *ret_src_address, uint16_t *ret_src_port, AvahiIPv4Address *ret_dst_address, AvahiIfIndex *ret_iface, uint8_t *ret_ttl) { AvahiDnsPacket *p= NULL; struct msghdr msg; struct iovec io; siz...
0
[ "CWE-399" ]
avahi
46109dfec75534fe270c0ab902576f685d5ab3a6
39,958,948,358,583,933,000,000,000,000,000,000,000
156
socket: Still read corrupt packets from the sockets Else, we end up with an infinite loop with 100% CPU. http://www.avahi.org/ticket/325 https://bugzilla.redhat.com/show_bug.cgi?id=667187
SMB2_close(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid) { struct smb2_close_req *req; struct smb2_close_rsp *rsp; struct TCP_Server_Info *server; struct cifs_ses *ses = tcon->ses; struct kvec iov[1]; int resp_buftype; int rc = 0; cifs_dbg(FYI, "Close\n"); if (ses ...
0
[ "CWE-399" ]
linux
18f39e7be0121317550d03e267e3ebd4dbfbb3ce
65,011,961,859,904,760,000,000,000,000,000,000,000
44
[CIFS] Possible null ptr deref in SMB2_tcon As Raphael Geissert pointed out, tcon_error_exit can dereference tcon and there is one path in which tcon can be null. Signed-off-by: Steve French <smfrench@gmail.com> CC: Stable <stable@vger.kernel.org> # v3.7+ Reported-by: Raphael Geissert <geissert@debian.org>
void kvm_mmu_gfn_allow_lpage(const struct kvm_memory_slot *slot, gfn_t gfn) { update_gfn_disallow_lpage_count(slot, gfn, -1); }
0
[ "CWE-476" ]
linux
9f46c187e2e680ecd9de7983e4d081c3391acc76
39,711,112,953,401,760,000,000,000,000,000,000,000
4
KVM: x86/mmu: fix NULL pointer dereference on guest INVPCID With shadow paging enabled, the INVPCID instruction results in a call to kvm_mmu_invpcid_gva. If INVPCID is executed with CR0.PG=0, the invlpg callback is not set and the result is a NULL pointer dereference. Fix it trivially by checking for mmu->invlpg befo...
static int check_slab(struct kmem_cache *s, struct page *page) { int maxobj; VM_BUG_ON(!irqs_disabled()); if (!PageSlab(page)) { slab_err(s, page, "Not a valid slab page"); return 0; } maxobj = order_objects(compound_order(page), s->size); if (page->objects > maxobj) { slab_err(s, page, "objects %u > max...
0
[]
linux
fd4d9c7d0c71866ec0c2825189ebd2ce35bd95b8
74,578,022,695,515,780,000,000,000,000,000,000,000
26
mm: slub: add missing TID bump in kmem_cache_alloc_bulk() When kmem_cache_alloc_bulk() attempts to allocate N objects from a percpu freelist of length M, and N > M > 0, it will first remove the M elements from the percpu freelist, then call ___slab_alloc() to allocate the next element and repopulate the percpu freelis...
void Emit1Gamma(cmsIOHANDLER* m, cmsToneCurve* Table) { cmsUInt32Number i; cmsFloat64Number gamma; if (Table == NULL) return; // Error if (Table ->nEntries <= 0) return; // Empty table // Suppress whole if identity if (cmsIsToneCurveLinear(Table)) return; // Check if is really an expone...
0
[]
Little-CMS
d1fcbdc6bcdd50432ae95e9c6f83e79338f87690
56,858,746,925,200,310,000,000,000,000,000,000,000
65
Buffer overflow fix. BuildColorantList() concatenates 32 bit data in each iteration. The max value of iteration can be 16. Thus buffer overflow can occur with storage of 128 bytes. It would need 512 bytes in worst case.
int bio_alloc_pages(struct bio *bio, gfp_t gfp_mask) { int i; struct bio_vec *bv; bio_for_each_segment_all(bv, bio, i) { bv->bv_page = alloc_page(gfp_mask); if (!bv->bv_page) { while (--bv >= bio->bi_io_vec) __free_page(bv->bv_page); return -ENOMEM; } } return 0; }
0
[ "CWE-772", "CWE-787" ]
linux
95d78c28b5a85bacbc29b8dba7c04babb9b0d467
86,705,420,705,584,200,000,000,000,000,000,000,000
16
fix unbalanced page refcounting in bio_map_user_iov bio_map_user_iov and bio_unmap_user do unbalanced pages refcounting if IO vector has small consecutive buffers belonging to the same page. bio_add_pc_page merges them into one, but the page reference is never dropped. Cc: stable@vger.kernel.org Signed-off-by: Vitaly...
local void help(void) { int n; if (g.verbosity == 0) return; for (n = 0; n < (int)(sizeof(helptext) / sizeof(char *)); n++) fprintf(stderr, "%s\n", helptext[n]); fflush(stderr); exit(0); }
0
[ "CWE-703", "CWE-22" ]
pigz
fdad1406b3ec809f4954ff7cdf9e99eb18c2458f
265,455,192,432,530,500,000,000,000,000,000,000,000
11
When decompressing with -N or -NT, strip any path from header name. This uses the path of the compressed file combined with the name from the header as the name of the decompressed output file. Any path information in the header name is stripped. This avoids a possible vulnerability where absolute or descending path...
DocumentSource::GetModPathsReturn DocumentSourceGroup::getModifiedPaths() const { // We preserve none of the fields, but any fields referenced as part of the group key are // logically just renamed. StringMap<std::string> renames; for (std::size_t i = 0; i < _idExpressions.size(); ++i) { auto id...
0
[]
mongo
14784757ff5e983ea40b21c14e661aba81dfc083
172,718,679,892,592,200,000,000,000,000,000,000,000
18
SERVER-60218 add initialize helper function for document_source_group (cherry picked from commit 867f52afbb79bc00e35c70f8e0681b7d602f97b2)
ftrace_count_snapshot(unsigned long ip, unsigned long parent_ip, struct trace_array *tr, struct ftrace_probe_ops *ops, void *data) { struct ftrace_func_mapper *mapper = data; long *count = NULL; if (mapper) count = (long *)ftrace_func_mapper_find_ip(mapper, ip); if (count) { if (*count <= 0) ...
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
182,939,313,362,470,900,000,000,000,000,000,000,000
20
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
mirrorImage(uint16 spp, uint16 bps, uint16 mirror, uint32 width, uint32 length, unsigned char *ibuff) { int shift_width; uint32 bytes_per_pixel, bytes_per_sample; uint32 row, rowsize, row_offset; unsigned char *line_buff = NULL; unsigned char *src; unsigned char *dst; src = ibuff; rowsize = ...
0
[ "CWE-125" ]
libtiff
21d39de1002a5e69caa0574b2cc05d795d6fbfad
174,251,910,197,869,500,000,000,000,000,000,000,000
110
* tools/tiffcrop.c: fix multiple uint32 overflows in writeBufferToSeparateStrips(), writeBufferToContigTiles() and writeBufferToSeparateTiles() that could cause heap buffer overflows. Reported by Henri Salo from Nixu Corporation. Fixes http://bugzilla.maptools.org/show_bug.cgi?id=2592
inline int InstanceKlass::quick_search(const Array<Method*>* methods, const Symbol* name) { if (_disable_method_binary_search) { assert(DynamicDumpSharedSpaces, "must be"); // At the final stage of dynamic dumping, the methods array may not be sorted // by ascending addresses of their names, so we can't u...
0
[]
jdk17u
f8eb9abe034f7c6bea4da05a9ea42017b3f80730
201,565,035,378,632,480,000,000,000,000,000,000,000
30
8270386: Better verification of scan methods Reviewed-by: coleenp Backport-of: ac329cef45979bd0159ecd1347e36f7129bb2ce4
int check_directory(struct dir *dir) { int i; struct dir_ent *ent; if(dir->dir_count < 2) return TRUE; for(ent = dir->dirs, i = 0; i < dir->dir_count - 1; ent = ent->next, i++) if(strcmp(ent->name, ent->next->name) >= 0) return FALSE; return TRUE; }
0
[ "CWE-200", "CWE-59", "CWE-22" ]
squashfs-tools
e0485802ec72996c20026da320650d8362f555bd
56,591,214,300,745,820,000,000,000,000,000,000,000
14
Unsquashfs: additional write outside destination directory exploit fix An issue on github (https://github.com/plougher/squashfs-tools/issues/72) showed how some specially crafted Squashfs filesystems containing invalid file names (with '/' and '..') can cause Unsquashfs to write files outside of the destination direct...
ecma_bigint_get_digits_and_sign (ecma_value_t value, /**< BigInt value */ uint64_t *digits_p, /**< [out] buffer for digits */ uint32_t size, /**< buffer size in digits */ bool *sign_p) /**< [out] sign of BigInt */ { JER...
0
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
259,175,461,093,831,000,000,000,000,000,000,000,000
59
Improve parse_identifier (#4691) Ascii string length is no longer computed during string allocation. JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
Curl_conncache_extract_oldest(struct Curl_easy *data) { struct conncache *connc = data->state.conn_cache; struct Curl_hash_iterator iter; struct Curl_llist_element *curr; struct Curl_hash_element *he; timediff_t highscore =- 1; timediff_t score; struct curltime now; struct connectdata *conn_candidate = ...
0
[]
curl
058f98dc3fe595f21dc26a5b9b1699e519ba5705
234,757,925,850,339,200,000,000,000,000,000,000,000
55
conncache: include the zone id in the "bundle" hashkey Make connections to two separate IPv6 zone ids create separate connections. Reported-by: Harry Sintonen Bug: https://curl.se/docs/CVE-2022-27775.html Closes #8747
bool ex_handler_fault(const struct exception_table_entry *fixup, struct pt_regs *regs, int trapnr) { regs->ip = ex_fixup_addr(fixup); regs->ax = trapnr; return true; }
0
[ "CWE-264" ]
linux
548acf19234dbda5a52d5a8e7e205af46e9da840
55,199,932,343,249,570,000,000,000,000,000,000,000
7
x86/mm: Expand the exception table logic to allow new handling options Huge amounts of help from Andy Lutomirski and Borislav Petkov to produce this. Andy provided the inspiration to add classes to the exception table with a clever bit-squeezing trick, Boris pointed out how much cleaner it would all be if we just had...
static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) { DECLARE_WAITQUEUE(wait, current); int err = 0; pr_debug("sk %p", sk); add_wait_queue(sk_sleep(sk), &wait); set_current_state(TASK_INTERRUPTIBLE); while (sk->sk_state != state) { if (!timeo) { err = -EINPROGRESS; break; } ...
0
[ "CWE-276" ]
linux
3a359798b176183ef09efb7a3dc59abad1cc7104
279,204,924,027,867,470,000,000,000,000,000,000,000
35
nfc: enforce CAP_NET_RAW for raw sockets When creating a raw AF_NFC socket, CAP_NET_RAW needs to be checked first. Signed-off-by: Ori Nimron <orinimron123@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Statement::Statement(const Napi::CallbackInfo& info) : Napi::ObjectWrap<Statement>(info) { Napi::Env env = info.Env(); int length = info.Length(); if (length <= 0 || !Database::HasInstance(info[0])) { Napi::TypeError::New(env, "Database object expected").ThrowAsJavaScriptException(); return...
0
[]
node-sqlite3
593c9d498be2510d286349134537e3bf89401c4a
58,170,009,830,865,690,000,000,000,000,000,000,000
29
bug: fix segfault of invalid toString() object (#1450) * bug: verify toString() returns valid data * test: faulty toString test
GF_Err tssy_box_read(GF_Box *s, GF_BitStream *bs) { GF_TimeStampSynchronyBox *ptr = (GF_TimeStampSynchronyBox *)s; ISOM_DECREASE_SIZE(ptr, 1) gf_bs_read_int(bs, 6); ptr->timestamp_sync = gf_bs_read_int(bs, 2); return GF_OK; }
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
31,239,885,455,540,590,000,000,000,000,000,000,000
8
fixed #1587
pg_open_tzfile(const char *name, char *canonname) { char fullname[MAXPGPATH]; if (canonname) strlcpy(canonname, name, TZ_STRLEN_MAX + 1); strcpy(fullname, pg_TZDIR()); if (strlen(fullname) + 1 + strlen(name) >= MAXPGPATH) return -1; /* not gonna fit */ strcat(fullname, "/"); strcat(fullname, name); re...
1
[ "CWE-119" ]
postgres
01824385aead50e557ca1af28640460fa9877d51
259,356,626,993,244,600,000,000,000,000,000,000,000
15
Prevent potential overruns of fixed-size buffers. Coverity identified a number of places in which it couldn't prove that a string being copied into a fixed-size buffer would fit. We believe that most, perhaps all of these are in fact safe, or are copying data that is coming from a trusted source so that any overrun i...
int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, struct xfrm_migrate *m, int num_migrate, struct xfrm_kmaddress *k, struct net *net, struct xfrm_encap_tmpl *encap) { int i, err, nx_cur = 0, nx_new = 0; struct xfrm_policy *pol = NULL; struct xfrm_state *x, *xc; struct xfrm_state *x_cur[XFR...
1
[ "CWE-125" ]
ipsec
7bab09631c2a303f87a7eb7e3d69e888673b9b7e
251,209,948,525,286,260,000,000,000,000,000,000,000
66
xfrm: policy: check policy direction value The 'dir' parameter in xfrm_migrate() is a user-controlled byte which is used as an array index. This can lead to an out-of-bound access, kernel lockup and DoS. Add a check for the 'dir' value. This fixes CVE-2017-11600. References: https://bugzilla.redhat.com/show_bug.cgi?...
virtual GBool useShadedFills(int type) { return type < 4; }
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
23,283,696,384,182,170,000,000,000,000,000,000,000
1
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
TfLiteStatus Prepare(TfLiteContext* context, TfLiteNode* node) { TF_LITE_ENSURE_EQ(context, NumInputs(node), 2); TF_LITE_ENSURE_EQ(context, NumOutputs(node), 1); const TfLiteTensor* input = GetInput(context, node, kInput); const TfLiteTensor* axis = GetInput(context, node, kAxis); TfLiteTensor* output = GetOu...
1
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
171,708,667,419,173,030,000,000,000,000,000,000,000
16
[tflite]: Insert `nullptr` checks when obtaining tensors. As part of ongoing refactoring, `tflite::GetInput`, `tflite::GetOutput`, `tflite::GetTemporary` and `tflite::GetIntermediates` will return `nullptr` in some cases. Hence, we insert the `nullptr` checks on all usages. We also insert `nullptr` checks on usages o...
*/ void php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name) { HashTable *ht; if (name) { char *tmp_buf; zend_string *name_esc = php_escape_html_entities((unsigned char *) ZSTR_VAL(name), ZSTR_LEN(name), 0, ENT_QUOTES, NULL); tmp_buf = emalloc(ZSTR_LEN(name_esc) + sizeof(WDDX_VAR_S)); s...
0
[]
php-src
366f9505a4aae98ef2f4ca39a838f628a324b746
320,034,330,718,095,500,000,000,000,000,000,000,000
68
Fixed bug #70661 (Use After Free Vulnerability in WDDX Packet Deserialization) Conflicts: ext/wddx/wddx.c
static void ok_jpg_decode_block_subsequent_scan(ok_jpg_decoder *decoder, ok_jpg_component *c, int16_t *block) { int k = decoder->scan_start; const int k_end = decoder->scan_end; const int16_t lsb = (int16_t)(1 << decoder->scan_scale); // Decode DC coeffic...
0
[ "CWE-787" ]
ok-file-formats
a9cc1711dd4ed6a215038f1c5c03af0ef52c3211
192,216,360,378,412,550,000,000,000,000,000,000,000
54
ok_jpg: Fix invalid DHT (#11)
void broadcast_packet(const node_t *from, vpn_packet_t *packet) { avl_node_t *node; connection_t *c; node_t *n; // Always give ourself a copy of the packet. if(from != myself) send_packet(myself, packet); // In TunnelServer mode, do not forward broadcast packets. // The MST might not be valid and crea...
0
[ "CWE-200", "CWE-119" ]
tinc
17a33dfd95b1a29e90db76414eb9622df9632320
142,657,051,845,175,520,000,000,000,000,000,000,000
49
Drop packets forwarded via TCP if they are too big (CVE-2013-1428). Normally all requests sent via the meta connections are checked so that they cannot be larger than the input buffer. However, when packets are forwarded via meta connections, they are copied into a packet buffer without checking whether it fits into i...
CURLcode Curl_unencode_write(struct Curl_easy *data, struct contenc_writer *writer, const char *buf, size_t nbytes) { (void) data; (void) writer; (void) buf; (void) nbytes; return CURLE_NOT_BUILT_IN; }
0
[]
curl
3a09fbb7f264c67c438d01a30669ce325aa508e2
179,725,519,134,925,380,000,000,000,000,000,000,000
10
content_encoding: return error on too many compression steps The max allowed steps is arbitrarily set to 5. Bug: https://curl.se/docs/CVE-2022-32206.html CVE-2022-32206 Reported-by: Harry Sintonen Closes #9049
R_API void r_core_anal_hint_print(RAnal* a, ut64 addr, int mode) { RBTree tree = NULL; ut64 hint_addr = UT64_MAX; const char *arch = r_anal_hint_arch_at(a, addr, &hint_addr); if (hint_addr != UT64_MAX) { print_arch_hint_cb (hint_addr, arch, &tree); } int bits = r_anal_hint_bits_at (a, addr, &hint_addr); if (hi...
0
[ "CWE-416" ]
radare2
10517e3ff0e609697eb8cde60ec8dc999ee5ea24
158,600,949,530,741,060,000,000,000,000,000,000,000
18
aaef on arm/thumb switches causes uaf ##crash * Reported by peacock-doris via huntr.dev * Reproducer: poc_uaf_r_reg_get
vncProperties::LoadPassword2(HKEY key, char *buffer) //PGM { //PGM DWORD type = REG_BINARY; //PGM int slen=MAXPWLEN; //PGM char inouttext[MAXPWLEN]; //PGM // Retrieve the encrypted password //PGM if (RegQueryValueEx(key, //PGM "Password2", //PGM NULL, //PGM &type, //PGM (LPBYTE) &inouttext, //P...
0
[ "CWE-787" ]
UltraVNC
36a31b37b98f70c1db0428f5ad83170d604fb352
290,467,872,213,677,040,000,000,000,000,000,000,000
20
security fix
static bool mysql_rename_partitions(ALTER_PARTITION_PARAM_TYPE *lpt) { char path[FN_REFLEN+1]; int error; DBUG_ENTER("mysql_rename_partitions"); build_table_filename(path, sizeof(path) - 1, lpt->db, lpt->table_name, "", 0); if ((error= lpt->table->file->ha_rename_partitions(path))) { if (error != 1) ...
0
[]
mysql-server
be901b60ae59c93848c829d1b0b2cb523ab8692e
91,004,193,124,157,380,000,000,000,000,000,000,000
15
Bug#26390632: CREATE TABLE CAN CAUSE MYSQL TO EXIT. Analysis ======== CREATE TABLE of InnoDB table with a partition name which exceeds the path limit can cause the server to exit. During the preparation of the partition name, there was no check to identify whether the complete path name for partition exceeds the max ...
sdp_list_t *btd_adapter_get_services(struct btd_adapter *adapter) { return adapter->services; }
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
133,074,523,347,241,480,000,000,000,000,000,000,000
4
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
TEST_F(QueryPlannerTest, IntersectBasicTwoPred) { params.options = QueryPlannerParams::NO_TABLE_SCAN | QueryPlannerParams::INDEX_INTERSECTION; addIndex(BSON("a" << 1)); addIndex(BSON("b" << 1)); runQuery(fromjson("{a:1, b:{$gt: 1}}")); assertSolutionExists( "{fetch: {filter: null, node: {an...
0
[]
mongo
64095239f41e9f3841d8be9088347db56d35c891
23,026,182,779,594,714,000,000,000,000,000,000,000
11
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
cupsdGetPrinterJobCount( const char *dest) /* I - Printer or class name */ { int count; /* Job count */ cupsd_job_t *job; /* Current job */ for (job = (cupsd_job_t *)cupsArrayFirst(ActiveJobs), count = 0; job; job = (cupsd_job_t *)cupsArrayNext(ActiveJobs)) if (job->dest && !_cups_s...
0
[]
cups
d47f6aec436e0e9df6554436e391471097686ecc
99,273,739,390,842,140,000,000,000,000,000,000,000
15
Fix local privilege escalation to root and sandbox bypasses in scheduler (rdar://37836779, rdar://37836995, rdar://37837252, rdar://37837581)
bool IsSupported(const NodeDef* node) const override { return IsAnyMatMul(*node) && !IsInPreserveSet(*node); }
0
[ "CWE-476" ]
tensorflow
e6340f0665d53716ef3197ada88936c2a5f7a2d3
74,618,702,808,205,440,000,000,000,000,000,000,000
3
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 inline int sctp_ep_hashfn(struct net *net, __u16 lport) { return (net_hash_mix(net) + lport) & (sctp_ep_hashsize - 1); }
0
[]
linux
196d67593439b03088913227093e374235596e33
66,328,138,601,477,270,000,000,000,000,000,000,000
4
sctp: Add support to per-association statistics via a new SCTP_GET_ASSOC_STATS call The current SCTP stack is lacking a mechanism to have per association statistics. This is an implementation modeled after OpenSolaris' SCTP_GET_ASSOC_STATS. Userspace part will follow on lksctp if/when there is a general ACK on this. ...
init_typebuf(void) { if (typebuf.tb_buf == NULL) { typebuf.tb_buf = typebuf_init; typebuf.tb_noremap = noremapbuf_init; typebuf.tb_buflen = TYPELEN_INIT; typebuf.tb_len = 0; typebuf.tb_off = MAXMAPLEN + 4; typebuf.tb_change_cnt = 1; } }
0
[ "CWE-78" ]
vim
53575521406739cf20bbe4e384d88e7dca11f040
188,915,284,415,724,730,000,000,000,000,000,000,000
12
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.
virtual int retarget(RGWOp* op, RGWOp** new_op) { *new_op = op; return 0; }
0
[ "CWE-770" ]
ceph
ab29bed2fc9f961fe895de1086a8208e21ddaddc
6,360,972,348,429,707,000,000,000,000,000,000,000
4
rgw: fix issues with 'enforce bounds' patch The patch to enforce bounds on max-keys/max-uploads/max-parts had a few issues that would prevent us from compiling it. Instead of changing the code provided by the submitter, we're addressing them in a separate commit to maintain the DCO. Signed-off-by: Joao Eduardo Luis <...
int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) { struct udp_sock *up = udp_sk(sk); int rc; int is_udplite = IS_UDPLITE(sk); /* * Charge it to the socket, dropping if the queue is full. */ if (!xfrm4_policy_check(sk, XFRM_POLICY_IN, skb)) goto drop; nf_reset(skb); if (up->encap_type) { /* ...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
54,780,917,340,741,230,000,000,000,000,000,000,000
106
inet: add RCU protection to inet->opt We lack proper synchronization to manipulate inet->opt ip_options Problem is ip_make_skb() calls ip_setup_cork() and ip_setup_cork() possibly makes a copy of ipc->opt (struct ip_options), without any protection against another thread manipulating inet->opt. Another thread can ch...
void AuthorizationSession::grantInternalAuthorization(OperationContext* opCtx) { grantInternalAuthorization(opCtx->getClient()); }
0
[ "CWE-613" ]
mongo
db19e7ce84cfd702a4ba9983ee2ea5019f470f82
317,599,289,894,387,120,000,000,000,000,000,000,000
3
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
scanner_set_location (parser_context_t *context_p, /**< context */ scanner_location_t *location_p) /**< location */ { context_p->source_p = location_p->source_p; context_p->line = location_p->line; context_p->column = location_p->column; } /* scanner_set_location */
0
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
123,077,037,103,418,720,000,000,000,000,000,000,000
7
Improve parse_identifier (#4691) Ascii string length is no longer computed during string allocation. JerryScript-DCO-1.0-Signed-off-by: Daniel Batiz batizjob@gmail.com
static int mov_write_tcmi_tag(AVIOContext *pb, MOVTrack *track) { int64_t pos = avio_tell(pb); const char *font = "Lucida Grande"; avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "tcmi"); /* timecode media information atom */ avio_wb32(pb, 0); /* version &...
0
[ "CWE-369" ]
FFmpeg
2c0e98a0b478284bdff6d7a4062522605a8beae5
230,546,732,893,941,570,000,000,000,000,000,000,000
21
avformat/movenc: Write version 2 of audio atom if channels is not known The version 1 needs the channel count and would divide by 0 Fixes: division by 0 Fixes: fpe_movenc.c_1108_1.ogg Fixes: fpe_movenc.c_1108_2.ogg Fixes: fpe_movenc.c_1108_3.wav Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.sg> Signed-off-by: Michael N...
Abort_on_warning_instant_set(THD *thd, bool temporary_value) :m_thd(thd), m_save_abort_on_warning(thd->abort_on_warning) { thd->abort_on_warning= temporary_value; }
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
254,216,232,829,896,030,000,000,000,000,000,000,000
5
MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob the bug was that in_vector array in Item_func_in was allocated in the statement arena, not in the table->expr_arena. revert part of the 5acd391e8b2d. Instead, change the arena correctly in fix_all_session_vcol_exprs(). Remove TABLE_ARENA, t...
bool TABLE::mark_virtual_columns_for_write(bool insert_fl __attribute__((unused))) { Field **vfield_ptr, *tmp_vfield; bool bitmap_updated= false; DBUG_ENTER("mark_virtual_columns_for_write"); for (vfield_ptr= vfield; *vfield_ptr; vfield_ptr++) { tmp_vfield= *vfi...
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
47,983,503,590,934,140,000,000,000,000,000,000,000
25
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
static size_t net_tx_pkt_fetch_fragment(struct NetTxPkt *pkt, int *src_idx, size_t *src_offset, struct iovec *dst, int *dst_idx) { size_t fetched = 0; struct iovec *src = pkt->vec; *dst_idx = NET_TX_PKT_FRAGMENT_HEADER_NUM; while (fetched < IP_FRAG_ALIGN_SIZE(pkt->virt_hdr.gso_size)) { /*...
0
[ "CWE-399", "CWE-120" ]
qemu
ead315e43ea0c2ca3491209c6c8db8ce3f2bbe05
131,890,119,254,775,150,000,000,000,000,000,000,000
38
net: check fragment length during fragmentation Network transport abstraction layer supports packet fragmentation. While fragmenting a packet, it checks for more fragments from packet length and current fragment length. It is susceptible to an infinite loop, if the current fragment length is zero. Add check to avoid i...
lldp_extract_latlon(const u_char *tptr) { uint64_t latlon; latlon = *tptr & 0x3; latlon = (latlon << 32) | EXTRACT_32BITS(tptr+1); return latlon; }
0
[ "CWE-399", "CWE-835" ]
tcpdump
34cec721d39c76be1e0a600829a7b17bdfb832b6
339,222,772,124,113,900,000,000,000,000,000,000,000
9
CVE-2017-12997/LLDP: Don't use an 8-bit loop counter. If you have a for (i = 0; i < N; i++) loop, you'd better make sure that i is big enough to hold N - not N-1, N. The TLV length here is 9 bits long, not 8 bits long, so an 8-bit loop counter will overflow and you can loop infinitely. This fixes an infinite loop...
g_tls_connection_base_read (GTlsConnectionBase *tls, void *buffer, gsize count, gint64 timeout, GCancellable *cancellable, GErro...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
34,813,732,335,806,593,000,000,000,000,000,000,000
45
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
md_is_link_destination_B(MD_CTX* ctx, OFF beg, OFF max_end, OFF* p_end, OFF* p_contents_beg, OFF* p_contents_end) { OFF off = beg; int parenthesis_level = 0; while(off < max_end) { if(CH(off) == _T('\\') && off+1 < max_end && ISPUNCT(off+1)) { off += 2; ...
0
[ "CWE-125", "CWE-908" ]
md4c
4fc808d8fe8d8904f8525bb4231d854f45e23a19
159,855,879,032,234,850,000,000,000,000,000,000,000
40
md_analyze_line: Avoid reading 1 byte beyond the input size. Fixes #155.
atusb_set_frame_retries(struct ieee802154_hw *hw, s8 retries) { struct atusb *atusb = hw->priv; struct device *dev = &atusb->usb_dev->dev; if (atusb->fw_ver_maj == 0 && atusb->fw_ver_min < 3) { dev_info(dev, "Automatic frame retransmission is only available from " "firmware version 0.3. Please update if you wa...
0
[ "CWE-399", "CWE-119" ]
linux
05a974efa4bdf6e2a150e3f27dc6fcf0a9ad5655
201,950,859,184,192,470,000,000,000,000,000,000,000
13
ieee802154: atusb: do not use the stack for buffers to make them DMA able From 4.9 we should really avoid using the stack here as this will not be DMA able on various platforms. This changes the buffers already being present in time of 4.9 being released. This should go into stable as well. Reported-by: Dan Carpenter...
ews_client_autodiscover_response_cb (SoupSession *session, SoupMessage *msg, gpointer user_data) { GError *error; AutodiscoverData *data = user_data; GTlsCertificateFlags cert_flags; gboolean op_res; gboolean using_https; guint status; gint idx; gsize size; xmlDoc *doc; xmlNode *node; status = ms...
0
[ "CWE-310" ]
gnome-online-accounts
ecad8142e9ac519b9fc74b96dcb5531052bbffe1
173,734,402,482,789,000,000,000,000,000,000,000,000
156
Guard against invalid SSL certificates None of the branded providers (eg., Google, Facebook and Windows Live) should ever have an invalid certificate. So set "ssl-strict" on the SoupSession object being used by GoaWebView. Providers like ownCloud and Exchange might have to deal with certificates that are not up to th...
static void fs_remount_simple(const char *path, OPERATION op) { EUID_ASSERT(); assert(path); // open path without following symbolic links int fd = safer_openat(-1, path, O_PATH|O_NOFOLLOW|O_CLOEXEC); if (fd < 0) goto out; struct stat s; if (fstat(fd, &s) < 0) { // fstat can fail with EACCES if path is a F...
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
243,974,225,165,970,470,000,000,000,000,000,000,000
112
fixing CVE-2022-31214
void ion_device_destroy(struct ion_device *dev) { misc_deregister(&dev->dev); debugfs_remove_recursive(dev->debug_root); /* XXX need to free the heaps and clients ? */ kfree(dev); }
0
[ "CWE-416", "CWE-284" ]
linux
9590232bb4f4cc824f3425a6e1349afbe6d6d2b7
134,543,533,975,820,880,000,000,000,000,000,000,000
7
staging/android/ion : fix a race condition in the ion driver There is a use-after-free problem in the ion driver. This is caused by a race condition in the ion_ioctl() function. A handle has ref count of 1 and two tasks on different cpus calls ION_IOC_FREE simultaneously. cpu 0 cpu ...
static __init int user_namespace_sysctl_init(void) { #ifdef CONFIG_SYSCTL static struct ctl_table_header *user_header; static struct ctl_table empty[1]; /* * It is necessary to register the user directory in the * default set so that registrations in the child sets work * properly. */ user_header = register...
0
[ "CWE-416" ]
linux
f9d87929d451d3e649699d0f1d74f71f77ad38f5
48,052,862,263,336,420,000,000,000,000,000,000,000
19
ucount: Make get_ucount a safe get_user replacement When the ucount code was refactored to create get_ucount it was missed that some of the contexts in which a rlimit is kept elevated can be the only reference to the user/ucount in the system. Ordinary ucount references exist in places that also have a reference to ...
void sc_call_snap_update_ns(int snap_update_ns_fd, const char *snap_name, struct sc_apparmor *apparmor) { char *snap_name_copy SC_CLEANUP(sc_cleanup_string) = NULL; snap_name_copy = sc_strdup(snap_name); char aa_profile[PATH_MAX] = { 0 }; sc_must_snprintf(aa_profile, sizeof aa_profile, "snap-update-ns.%s", ...
0
[ "CWE-94" ]
snapd
54e71e7750f73a28f5a47fe04dd058360e24c0e9
166,825,539,458,743,020,000,000,000,000,000,000,000
26
cmd/libsnap-confine-private: Defend against hardlink attacks When snap-confine goes to execute other helper binaries (snap-update-ns etc) via sc_open_snapd_tool(), these other binaries are located relative to the currently executing snap-confine process via /proc/self/exe. Since it is possible for regular users to har...
static int expandrow2(UINT8* dest, const UINT8* src, int n, int z, int xsize) { UINT8 pixel, count; for (;n > 0; n--) { pixel = src[1]; src+=2; if (n == 1 && pixel != 0) return n; count = pixel & RLE_MAX_RUN; if (!count) return count; ...
0
[ "CWE-120", "CWE-787" ]
Pillow
a79b65c47c7dc6fe623aadf09aa6192fc54548f3
2,876,516,475,341,360,000,000,000,000,000,000,000
34
Catch SGI buffer overruns
int is_regular_file(struct dirent *dent, const char *dirname) { int dir_fd = open(dirname, O_DIRECTORY); if (dir_fd < 0) return 0; int r = is_regular_file_at(dent, dir_fd); close(dir_fd); return r; }
0
[ "CWE-20" ]
libreport
1951e7282043dfe1268d492aea056b554baedb75
173,590,788,256,494,860,000,000,000,000,000,000,000
9
lib: fix races in dump directory handling code Florian Weimer <fweimer@redhat.com>: dd_opendir() should keep a file handle (opened with O_DIRECTORY) and use openat() and similar functions to access files in it. ... The file system manipulation functions should guard against hard links (check tha...
GF_Err stbl_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_SampleTableBox *ptr = (GF_SampleTableBox *)s; if (!s) return GF_BAD_PARAM; e = gf_isom_box_write_header(s, bs); if (e) return e; if (ptr->SampleDescription) { e = gf_isom_box_write((GF_Box *) ptr->SampleDescription, bs); if (e) return e; } if (p...
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
158,090,744,000,567,350,000,000,000,000,000,000,000
78
prevent dref memleak on invalid input (#1183)
xmlFARegDebugExec(xmlRegExecCtxtPtr exec) { printf("state: %d:%d:idx %d", exec->state->no, exec->transno, exec->index); if (exec->inputStack != NULL) { int i; printf(": "); for (i = 0;(i < 3) && (i < exec->inputStackNr);i++) printf("%s ", (const char *) exec->inputStack[exec->inputStackNr - ...
0
[ "CWE-119" ]
libxml2
cbb271655cadeb8dbb258a64701d9a3a0c4835b4
336,937,293,856,390,020,000,000,000,000,000,000,000
13
Bug 757711: heap-buffer-overflow in xmlFAParsePosCharGroup <https://bugzilla.gnome.org/show_bug.cgi?id=757711> * xmlregexp.c: (xmlFAParseCharRange): Only advance to the next character if there is no error. Advancing to the next character in case of an error while parsing regexp leads to an out of bounds access.
link_task_thread_func (GTask *task, gpointer source_object, gpointer task_data, GCancellable *cancellable) { CopyMoveJob *job; CommonJob *common; GFile *src; GdkPoint *point; char *dest_fs_type; int total, left...
0
[ "CWE-20" ]
nautilus
1630f53481f445ada0a455e9979236d31a8d3bb0
214,525,787,875,205,440,000,000,000,000,000,000,000
61
mime-actions: use file metadata for trusting desktop files Currently we only trust desktop files that have the executable bit set, and don't replace the displayed icon or the displayed name until it's trusted, which prevents for running random programs by a malicious desktop file. However, the executable permission i...
rfbSendLastRectMarker(rfbClientPtr cl) { rfbFramebufferUpdateRectHeader rect; if (cl->ublen + sz_rfbFramebufferUpdateRectHeader > UPDATE_BUF_SIZE) { if (!rfbSendUpdateBuf(cl)) return FALSE; } rect.encoding = Swap32IfLE(rfbEncodingLastRect); rect.r.x = 0; rect.r.y = 0; rect.r.w = 0; ...
0
[]
libvncserver
804335f9d296440bb708ca844f5d89b58b50b0c6
66,291,663,957,180,300,000,000,000,000,000,000,000
23
Thread safety for zrle, zlib, tight. Proposed tight security type fix for debian bug 517422.
bool readNumber( N* out ) { if ( ( _position + sizeof(N) ) > _maxLength ) return false; if ( out ) { *out = ConstDataView(_buffer).readLE<N>(_position); } _position += sizeof(N); return tr...
0
[ "CWE-20" ]
mongo
5285225e71c5c0652520ef99d0ae4ca24655f72f
79,185,159,262,074,130,000,000,000,000,000,000,000
9
SERVER-17264: improve bson validation for utf-8 strings (cherry picked from commit 394a8569ff14a215c0691aa34440227b2e62a4de)
static int mailimf_ignore_unstructured_parse(const char * message, size_t length, size_t * indx) { size_t cur_token; int state; size_t terminal; cur_token = * indx; state = UNSTRUCTURED_START; terminal = cur_token; while (state != UNSTRUCTURED_OUT) { switch(state) { case UNSTRUCTURED...
0
[ "CWE-476" ]
libetpan
1fe8fbc032ccda1db9af66d93016b49c16c1f22d
136,781,987,155,542,720,000,000,000,000,000,000,000
82
Fixed crash #274
llsec_lookup_key(struct mac802154_llsec *sec, const struct ieee802154_hdr *hdr, const struct ieee802154_addr *addr, struct ieee802154_llsec_key_id *key_id) { struct ieee802154_addr devaddr = *addr; u8 key_id_mode = hdr->sec.key_id_mode; struct ieee802154_llsec_key_entry *key_entry; struct mac802154_llsec_k...
0
[ "CWE-416" ]
linux
1165affd484889d4986cf3b724318935a0b120d8
80,839,601,749,745,150,000,000,000,000,000,000,000
53
net: mac802154: Fix general protection fault syzbot found general protection fault in crypto_destroy_tfm()[1]. It was caused by wrong clean up loop in llsec_key_alloc(). If one of the tfm array members is in IS_ERR() range it will cause general protection fault in clean up function [1]. Call Trace: crypto_free_aead ...
void rsi_inform_bss_status(struct rsi_common *common, enum opmode opmode, u8 status, const u8 *addr, u8 qos_enable, u16 aid, struct ieee80211_sta *sta, u16 sta_id, u16 assoc_cap, struct ieee80211_vif *vif) { if (status) { if (opmode == RSI_OPMODE_STA) common->...
0
[ "CWE-400", "CWE-401" ]
linux
d563131ef23cbc756026f839a82598c8445bc45f
299,632,578,234,741,700,000,000,000,000,000,000,000
40
rsi: release skb if rsi_prepare_beacon fails In rsi_send_beacon, if rsi_prepare_beacon fails the allocated skb should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
R_API void r_cmd_set_data(RCmd *cmd, void *data) { cmd->data = data; }
0
[ "CWE-125", "CWE-787" ]
radare2
0052500c1ed5bf8263b26b9fd7773dbdc6f170c4
237,417,394,720,819,500,000,000,000,000,000,000,000
3
Fix heap OOB read in macho.iterate_chained_fixups ##crash * Reported by peacock-doris via huntr.dev * Reproducer 'tests_65305' mrmacete: * Return early if segs_count is 0 * Initialize segs_count also for reconstructed fixups Co-authored-by: pancake <pancake@nopcode.org> Co-authored-by: Francesco Tamagni <mrm...
daemon_msg_startcap_req(uint8 ver, struct daemon_slpars *pars, uint32 plen, char *source, struct session **sessionp, struct rpcap_sampling *samp_param _U_) { char errbuf[PCAP_ERRBUF_SIZE]; // buffer for network errors char errmsgbuf[PCAP_ERRBUF_SIZE]; // buffer for errors to send to the client char portdata...
0
[ "CWE-703", "CWE-918" ]
libpcap
33834cb2a4d035b52aa2a26742f832a112e90a0a
5,254,836,845,092,733,000,000,000,000,000,000,000
303
In the open request, reject capture sources that are URLs. You shouldn't be able to ask a server to open a remote device on some *other* server; just open it yourself. This addresses Include Security issue F13: [libpcap] Remote Packet Capture Daemon Allows Opening Capture URLs.
static void FixLogical(unsigned char *Buff,int ldblk) { unsigned char mask=128; unsigned char *BuffL = Buff; unsigned char val = 0; while(ldblk-->0) { if(*Buff++ != 0) val |= mask; mask >>= 1; if(mask==0) { *BuffL++ = val; val = 0; mask = 128; } } *BuffL = val; }
0
[ "CWE-772" ]
ImageMagick
cdafbc753cf794160eb53b320d4bc0b36ba6ed1d
301,137,438,937,091,880,000,000,000,000,000,000,000
22
Fix moment when quantum info is acquired to fix issue reported in #469.
int svm_mem_enc_op(struct kvm *kvm, void __user *argp) { struct kvm_sev_cmd sev_cmd; int r; if (!svm_sev_enabled()) return -ENOTTY; if (!argp) return 0; if (copy_from_user(&sev_cmd, argp, sizeof(struct kvm_sev_cmd))) return -EFAULT; mutex_lock(&kvm->lock); switch (sev_cmd.id) { case KVM_SEV_INIT: r...
0
[]
linux
7be74942f184fdfba34ddd19a0d995deb34d4a03
252,759,964,062,877,020,000,000,000,000,000,000,000
56
KVM: SVM: Periodically schedule when unregistering regions on destroy There may be many encrypted regions that need to be unregistered when a SEV VM is destroyed. This can lead to soft lockups. For example, on a host running 4.15: watchdog: BUG: soft lockup - CPU#206 stuck for 11s! [t_virtual_machi:194348] CPU: 206...
static int bnx2x_fill_accept_flags(struct bnx2x *bp, u32 rx_mode, unsigned long *rx_accept_flags, unsigned long *tx_accept_flags) { /* Clear the flags first */ *rx_accept_flags = 0; *tx_accept_flags = 0; switch (rx_mode) { case BNX2X_RX_MODE_NONE: /* * 'drop all' supersedes any accept flags tha...
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
313,688,357,169,002,260,000,000,000,000,000,000,000
77
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
static void macsec_free_netdev(struct net_device *dev) { struct macsec_dev *macsec = macsec_priv(dev); struct net_device *real_dev = macsec->real_dev; free_percpu(macsec->stats); free_percpu(macsec->secy.tx_sc.stats); dev_put(real_dev); free_netdev(dev); }
0
[ "CWE-119" ]
net
5294b83086cc1c35b4efeca03644cf9d12282e5b
339,030,270,519,824,330,000,000,000,000,000,000,000
11
macsec: dynamically allocate space for sglist We call skb_cow_data, which is good anyway to ensure we can actually modify the skb as such (another error from prior). Now that we have the number of fragments required, we can safely allocate exactly that amount of memory. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 80...
sprint_message_value( json_value_t *value) { char *result = NULL; switch (value->type) { case MESSAGE_TRUE : result = g_strdup("true"); break; case MESSAGE_FALSE : result = g_strdup("false"); break; case MESSAGE_NULL : result = g_strdup("null"); break; case MESSAGE_STRING : { ch...
0
[ "CWE-77" ]
amanda
29bae2e271093cd8d06ea98f73a474c685c5a314
336,220,437,737,542,000,000,000,000,000,000,000,000
62
* application-src/ambsdtar.c, application-src/amgtar.c, application-src/amstar.c: Filter option from COMMAND-OPTIONS * common-src/ammessage.c: Add message. git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/trunk@6483 a8d146d6-cc15-0410-8900-af154a0219e0
htmlNodeStatus(const htmlNodePtr node, int legacy) { if ( ! node ) return HTML_INVALID ; switch ( node->type ) { case XML_ELEMENT_NODE: return legacy ? ( htmlElementAllowedHere ( htmlTagLookup(node->parent->name) , node->name ) ? HTML_VALID : HTML_INVALID ) : htmlElementStatusHere( htmlTagLoo...
0
[ "CWE-399" ]
libxml2
de0cc20c29cb3f056062925395e0f68d2250a46f
11,956,920,010,509,024,000,000,000,000,000,000,000
20
Fix some buffer conversion issues https://bugzilla.gnome.org/show_bug.cgi?id=690202 Buffer overflow errors originating from xmlBufGetInputBase in 2.9.0 The pointers from the context input were not properly reset after that call which can do reallocations.
void erase(TFE_Py_ForwardAccumulator* element) { MapType::iterator existing = map_.find(element); if (existing == map_.end()) { return; } ListType::iterator list_position = existing->second; map_.erase(existing); ordered_.erase(list_position); }
0
[ "CWE-476", "CWE-908" ]
tensorflow
237822b59fc504dda2c564787f5d3ad9c4aa62d9
327,697,319,923,452,000,000,000,000,000,000,000,000
9
Fix tf.compat.v1.placeholder_with_default vulnerability with quantized types. When iterating through the tensor to extract shape values, an underlying missing kernel (`StridedSlice` for quantized types) causes an error, which then results in a `nullptr` being passed to `ParseDimensionValue()`, causing a segfault. The...
mono_special_static_data_free_slot (guint32 offset, guint32 size) { mono_threads_lock (); do_free_special_slot (offset, size); mono_threads_unlock (); }
0
[ "CWE-399", "CWE-264" ]
mono
722f9890f09aadfc37ae479e7d946d5fc5ef7b91
95,656,017,700,625,000,000,000,000,000,000,000,000
6
Fix access to freed members of a dead thread * threads.c: Fix access to freed members of a dead thread. Found and fixed by Rodrigo Kumpera <rkumpera@novell.com> Ref: CVE-2011-0992
void CLASS linear_table(unsigned len) { int i; if (len > 0x10000) len = 0x10000; read_shorts(curve, len); for (i = len; i < 0x10000; i++) curve[i] = curve[i - 1]; maximum = curve[len < 0x1000 ? 0xfff : len - 1]; }
0
[ "CWE-476", "CWE-119" ]
LibRaw
d7c3d2cb460be10a3ea7b32e9443a83c243b2251
315,842,138,086,884,830,000,000,000,000,000,000,000
10
Secunia SA75000 advisory: several buffer overruns
SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags) { return ksys_unshare(unshare_flags); }
0
[ "CWE-362" ]
linux
7b55851367136b1efd84d98fea81ba57a98304cf
37,817,809,252,192,003,000,000,000,000,000,000,000
4
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 int isdn_net_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned plen) { isdn_net_local *lp = dev->priv; unsigned char *p; ushort len = 0; switch (lp->p_encap) { case ISDN_NET_ENCAP_ETHER: len = eth_header(skb, dev, type, d...
0
[ "CWE-119" ]
linux-2.6
0f13864e5b24d9cbe18d125d41bfa4b726a82e40
61,556,903,581,590,660,000,000,000,000,000,000,000
54
isdn: avoid copying overly-long strings Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9416 Signed-off-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
e_ews_backend_ref_connection_sync (EEwsBackend *backend, ESourceAuthenticationResult *result, gchar **out_certificate_pem, GTlsCertificateFlags *out_certificate_errors, GCancellable *cancellable, GError **error) { EEwsConnection...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
161,023,477,400,620,100,000,000,000,000,000,000,000
55
I#27 - SSL Certificates are not validated This depends on https://gitlab.gnome.org/GNOME/evolution-data-server/commit/6672b8236139bd6ef41ecb915f4c72e2a052dba5 too. Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
void sqlite3VdbeSetLineNumber(Vdbe *v, int iLine){ sqlite3VdbeGetOp(v,-1)->iSrcLine = iLine; }
0
[ "CWE-755" ]
sqlite
8654186b0236d556aa85528c2573ee0b6ab71be3
82,516,138,955,618,060,000,000,000,000,000,000,000
3
When an error occurs while rewriting the parser tree for window functions in the sqlite3WindowRewrite() routine, make sure that pParse->nErr is set, and make sure that this shuts down any subsequent code generation that might depend on the transformations that were implemented. This fixes a problem discovered by the Y...