func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
RedStreamSslStatus red_stream_enable_ssl(RedStream *stream, SSL_CTX *ctx) { BIO *sbio; // Handle SSL handshaking if (!(sbio = BIO_new_socket(stream->socket, BIO_NOCLOSE))) { spice_warning("could not allocate ssl bio socket"); return RED_STREAM_SSL_STATUS_ERROR; } stream->priv->ssl ...
0
[]
spice
95a0cfac8a1c8eff50f05e65df945da3bb501fc9
294,195,136,158,357,150,000,000,000,000,000,000,000
25
With OpenSSL 1.0.2 and earlier: disable client-side renegotiation. Fixed issue #49 Fixes BZ#1904459 Signed-off-by: Julien Ropé <jrope@redhat.com> Reported-by: BlackKD Acked-by: Frediano Ziglio <fziglio@redhat.com>
static void airo_networks_free(struct airo_info *ai) { kfree(ai->networks); ai->networks = NULL; }
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
226,850,410,474,891,440,000,000,000,000,000,000,000
5
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
void SFD_GetFontMetaDataVoid( FILE *sfd, char *tok, SplineFont *sf, void* d ) { SFD_GetFontMetaData(sfd, tok, sf, d); }
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
113,403,746,064,016,820,000,000,000,000,000,000,000
6
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 (...
evdev_need_mtdev(struct evdev_device *device) { struct libevdev *evdev = device->evdev; return (libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_X) && libevdev_has_event_code(evdev, EV_ABS, ABS_MT_POSITION_Y) && !libevdev_has_event_code(evdev, EV_ABS, ABS_MT_SLOT)); }
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
142,664,225,109,857,400,000,000,000,000,000,000,000
8
evdev: strip the device name of format directives This fixes a format string vulnerabilty. evdev_log_message() composes a format string consisting of a fixed prefix (including the rendered device name) and the passed-in format buffer. This format string is then passed with the arguments to the actual log handler, whi...
static inline void ext4_show_quota_options(struct seq_file *seq, struct super_block *sb) { #if defined(CONFIG_QUOTA) struct ext4_sb_info *sbi = EXT4_SB(sb); if (sbi->s_jquota_fmt) seq_printf(seq, ",jqfmt=%s", (sbi->s_jquota_fmt == QFMT_VFS_OLD) ? "vfsold" : "vfsv0"); if (sbi->s_qf_names[USRQUOTA]) se...
0
[ "CWE-20" ]
linux-2.6
4ec110281379826c5cf6ed14735e47027c3c5765
161,388,895,372,675,170,000,000,000,000,000,000,000
23
ext4: Add sanity checks for the superblock before mounting the filesystem This avoids insane superblock configurations that could lead to kernel oops due to null pointer derefences. http://bugzilla.kernel.org/show_bug.cgi?id=12371 Thanks to David Maciejak at Fortinet's FortiGuard Global Security Research Team who di...
if (!(Sha256Final(sha256ctx, sha256hash)) || !(Sha1Final(sha1ctx, sha1hash))) { perror(L"Unable to finalise hash\n"); efi_status = EFI_OUT_OF_RESOURCES; goto done; }
0
[ "CWE-787" ]
shim
159151b6649008793d6204a34d7b9c41221fb4b0
111,193,054,349,383,570,000,000,000,000,000,000,000
6
Also avoid CVE-2022-28737 in verify_image() PR 446 ("Add verify_image") duplicates some of the code affected by Chris Coulson's defense in depth patch against CVE-2022-28737 ("pe: Perform image verification earlier when loading grub"). This patch makes the same change to the new function. Signed-off-by: Peter Jones ...
static void update_canvas_size(AVCodecContext *avctx, int w, int h) { WebPContext *s = avctx->priv_data; if (s->width && s->width != w) { av_log(avctx, AV_LOG_WARNING, "Width mismatch. %d != %d\n", s->width, w); } s->width = w; if (s->height && s->height != h) { av_log...
0
[ "CWE-119", "CWE-787" ]
FFmpeg
6b5d3fb26fb4be48e4966e4b1d97c2165538d4ef
294,368,452,854,820,760,000,000,000,000,000,000,000
14
avcodec/webp: Always set pix_fmt Fixes: out of array access Fixes: 1434/clusterfuzz-testcase-minimized-6314998085189632 Fixes: 1435/clusterfuzz-testcase-minimized-6483783723253760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Reviewed-by: "Ronald S. Bultje" <rsbult...
static void lsr_translate_anim_values(GF_LASeRCodec *lsr, SMIL_AnimateValues *val, u32 coded_type) { u32 i, count; Bool handled = GF_FALSE; GF_List *list, *new_list; list = val->values; switch (val->type) { case SVG_StrokeDashArray_datatype: if (coded_type == 8) handled = GF_TRUE; break; case SVG_ViewBox_da...
0
[ "CWE-190" ]
gpac
faa75edde3dfeba1e2cf6ffa48e45a50f1042096
99,235,573,551,977,650,000,000,000,000,000,000,000
145
fixed #2213
pax_dump_header_1 (struct tar_sparse_file *file) { off_t block_ordinal = current_block_ordinal (); union block *blk; char *p, *q; size_t i; char nbuf[UINTMAX_STRSIZE_BOUND]; off_t size = 0; struct sp_array *map = file->stat_info->sparse_map; char *save_file_name = file->stat_info->file_name; #define CO...
0
[]
tar
c15c42ccd1e2377945fd0414eca1a49294bff454
323,128,227,387,786,000,000,000,000,000,000,000,000
77
Fix CVE-2018-20482 * NEWS: Update. * src/sparse.c (sparse_dump_region): Handle short read condition. (sparse_extract_region,check_data_region): Fix dumped_size calculation. Handle short read condition. (pax_decode_header): Fix dumped_size calculation. * tests/Makefile.am: Add new testcases. * tests/testsuite.at: Likew...
DLLEXPORT int tjTransform(tjhandle handle, const unsigned char *jpegBuf, unsigned long jpegSize, int n, unsigned char **dstBufs, unsigned long *dstSizes, tjtransform *t, int flags) { jpeg_transform_info *xinfo = NULL; jvirt_barray_ptr *sr...
0
[ "CWE-787" ]
libjpeg-turbo
3d9c64e9f8aa1ee954d1d0bb3390fc894bb84da3
22,410,578,623,936,623,000,000,000,000,000,000,000
150
tjLoadImage(): Fix int overflow/segfault w/big BMP Fixes #304
ebb_ews_convert_contact_to_updatexml_cb (ESoapMessage *msg, gpointer user_data, GError **error) { ConvertData *cd = user_data; EContact *old_contact = cd->old_contact; EContact *new_contact = cd->new_contact; gchar *value = NULL, *old_value = NULL; gchar *change_key = NULL; gint i, element_type; /* ...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
56,462,438,822,537,310,000,000,000,000,000,000,000
75
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 piff_psec_box_del(GF_Box *s) { GF_SampleEncryptionBox *ptr = (GF_SampleEncryptionBox *)s; while (gf_list_count(ptr->samp_aux_info)) { GF_CENCSampleAuxInfo *sai = (GF_CENCSampleAuxInfo *)gf_list_get(ptr->samp_aux_info, 0); if (sai) gf_isom_cenc_samp_aux_info_del(sai); gf_list_rem(ptr->samp_aux_info, 0); } ...
0
[ "CWE-703" ]
gpac
f19668964bf422cf5a63e4dbe1d3c6c75edadcbb
254,626,818,455,988,700,000,000,000,000,000,000,000
11
fixed #1879
static void clear_node_page_dirty(struct page *page) { struct address_space *mapping = page->mapping; unsigned int long flags; if (PageDirty(page)) { spin_lock_irqsave(&mapping->tree_lock, flags); radix_tree_tag_clear(&mapping->page_tree, page_index(page), PAGECACHE_TAG_DIRTY); spin_unlock_irqrestore(...
0
[ "CWE-200", "CWE-362" ]
linux
30a61ddf8117c26ac5b295e1233eaa9629a94ca3
177,957,995,940,923,050,000,000,000,000,000,000,000
17
f2fs: fix race condition in between free nid allocator/initializer In below concurrent case, allocated nid can be loaded into free nid cache and be allocated again. Thread A Thread B - f2fs_create - f2fs_new_inode - alloc_nid - __insert_nid_to_list(ALLOC_NID_LIST) - f2fs_balance_fs_bg - build_free...
static int eaptls_attach(CONF_SECTION *cs, void **instance) { EAP_TLS_CONF *conf; eap_tls_t *inst; /* Store all these values in the data structure for later references */ inst = (eap_tls_t *)malloc(sizeof(*inst)); if (!inst) { radlog(L_ERR, "rlm_eap_tls: out of memory"); return -1; } memset(inst, 0, size...
0
[ "CWE-119" ]
freeradius-server
78e5aed56c36a9231bc91ea5f55b3edf88a9d2a4
84,484,567,086,030,670,000,000,000,000,000,000,000
130
Fix CVE-2012-3547. Found by Timo Warns
int scsi_cmd_ioctl(struct request_queue *q, struct gendisk *bd_disk, fmode_t mode, unsigned int cmd, void __user *arg) { int err; if (!q) return -ENXIO; switch (cmd) { /* * new sgv3 interface */ case SG_GET_VERSION_NUM: err = sg_get_version(arg); break; case SCSI_IOCTL_GET_IDLUN: err = ...
0
[ "CWE-284", "CWE-264" ]
linux
0bfc96cb77224736dfa35c3c555d37b3646ef35e
67,487,020,225,467,500,000,000,000,000,000,000,000
128
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...
SSL_SESSION *d2i_SSL_SESSION(SSL_SESSION **a, const unsigned char **pp, long length) { int version,ssl_version=0,i; long id; ASN1_INTEGER ai,*aip; ASN1_OCTET_STRING os,*osp; M_ASN1_D2I_vars(a,SSL_SESSION *,SSL_SESSION_new); aip= &ai; osp= &os; M_ASN1_D2I_Init(); M_ASN1_D2I_start_sequence(); ai.data=...
0
[]
openssl
36ca4ba63d083da6f9d4598f18f17a8c32c8eca2
82,975,720,121,793,840,000,000,000,000,000,000,000
240
Implement the Supported Point Formats Extension for ECC ciphersuites Submitted by: Douglas Stebila
static int i40e_configure_rx_ring(struct i40e_ring *ring) { struct i40e_vsi *vsi = ring->vsi; u32 chain_len = vsi->back->hw.func_caps.rx_buf_chain_len; u16 pf_q = vsi->base_queue + ring->queue_index; struct i40e_hw *hw = &vsi->back->hw; struct i40e_hmc_obj_rxq rx_ctx; i40e_status err = 0; bool ok; int ret; bi...
0
[ "CWE-400", "CWE-401" ]
linux
27d461333459d282ffa4a2bdb6b215a59d493a8f
55,701,429,191,861,590,000,000,000,000,000,000,000
118
i40e: prevent memory leak in i40e_setup_macvlans In i40e_setup_macvlans if i40e_setup_channel fails the allocated memory for ch should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
static int delete_from_lru_cache(struct page *p) { if (!isolate_lru_page(p)) { /* * Clear sensible page flags, so that the buddy system won't * complain when the page is unpoison-and-freed. */ ClearPageActive(p); ClearPageUnevictable(p); /* * drop the page count elevated by isolate_lru_page() */...
0
[]
linux
c3901e722b2975666f42748340df798114742d6d
247,765,454,475,402,860,000,000,000,000,000,000,000
17
mm: hwpoison: fix thp split handling in memory_failure() When memory_failure() runs on a thp tail page after pmd is split, we trigger the following VM_BUG_ON_PAGE(): page:ffffd7cd819b0040 count:0 mapcount:0 mapping: (null) index:0x1 flags: 0x1fffc000400000(hwpoison) page dumped because: VM_BUG_ON_PAG...
static int decode_drc_channel_exclusions(DynamicRangeControl *che_drc, GetBitContext *gb) { int i; int num_excl_chan = 0; do { for (i = 0; i < 7; i++) che_drc->exclude_mask[num_excl_chan++] = get_bits1(gb); } while (num_excl_chan < MAX_CHANNE...
0
[ "CWE-703" ]
FFmpeg
6e42ccb9dbc13836cd52cda594f819d17af9afa2
91,811,904,309,187,550,000,000,000,000,000,000,000
13
avcodec/aacdec: Fix pulse position checks in decode_pulses() Fixes out of array read Fixes: asan_static-oob_1efed25_1887_cov_2013541199_HeyYa_RA10_AAC_192K_30s.rm Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU) { struct ieee80211_local *local = sta->local; struct ieee80211_sub_if_data *sdata = sta->sdata; struct station_info *sinfo = NULL; int err = 0; lockdep_assert_held(&local->sta_mtx); /* check if STA exists already */ if (sta_info_get_bss(sd...
0
[ "CWE-287" ]
linux
3e493173b7841259a08c5c8e5cbe90adb349da7e
23,332,820,860,586,694,000,000,000,000,000,000,000
81
mac80211: Do not send Layer 2 Update frame before authorization The Layer 2 Update frame is used to update bridges when a station roams to another AP even if that STA does not transmit any frames after the reassociation. This behavior was described in IEEE Std 802.11F-2003 as something that would happen based on MLME-...
void n_tty_inherit_ops(struct tty_ldisc_ops *ops) { *ops = tty_ldisc_N_TTY; ops->owner = NULL; ops->refcount = ops->flags = 0; }
0
[ "CWE-362" ]
tty
4291086b1f081b869c6d79e5b7441633dc3ace00
52,533,516,687,063,000,000,000,000,000,000,000,000
6
n_tty: Fix n_tty_write crash when echoing in raw mode The tty atomic_write_lock does not provide an exclusion guarantee for the tty driver if the termios settings are LECHO & !OPOST. And since it is unexpected and not allowed to call TTY buffer helpers like tty_insert_flip_string concurrently, this may lead to crashe...
int html_include(const char *filename) { FILE *f; char buf[4096]; size_t len; if (!(f = fopen(filename, "r"))) { fprintf(stderr, "[cgit] Failed to include file %s: %s (%d).\n", filename, strerror(errno), errno); return -1; } while ((len = fread(buf, 1, 4096, f)) > 0) html_raw(buf, len); fclose(f); ret...
0
[]
cgit
513b3863d999f91b47d7e9f26710390db55f9463
210,733,196,675,056,670,000,000,000,000,000,000,000
16
ui-shared: prevent malicious filename from injecting headers
mwifiex_set_uap_rates(struct mwifiex_uap_bss_param *bss_cfg, struct cfg80211_ap_settings *params) { struct ieee_types_header *rate_ie; int var_offset = offsetof(struct ieee80211_mgmt, u.beacon.variable); const u8 *var_pos = params->beacon.head + var_offset; int len = params->beacon.head_len - var_offset; u...
0
[ "CWE-120", "CWE-787" ]
linux
7caac62ed598a196d6ddf8d9c121e12e082cac3a
206,039,531,664,286,260,000,000,000,000,000,000,000
28
mwifiex: Fix three heap overflow at parsing element in cfg80211_ap_settings mwifiex_update_vs_ie(),mwifiex_set_uap_rates() and mwifiex_set_wmm_params() call memcpy() without checking the destination size.Since the source is given from user-space, this may trigger a heap buffer overflow. Fix them by putting the length...
static inline bool ptlock_init(struct page *page) { return true; }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
267,884,873,219,135,460,000,000,000,000,000,000,000
1
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
int main(int argc,char *argv[]) { char buff[80]; MY_INIT(argv[0]); DBUG_ENTER("main"); DBUG_PROCESS(argv[0]); charset_index= get_command_index('C'); delimiter_index= get_command_index('d'); delimiter_str= delimiter; default_prompt = my_strdup(getenv("MYSQL_PS1") ? getenv("MYSQL_PS1") : ...
0
[]
server
383007c75d6ef5043fa5781956a6a02b24e2b79e
192,613,583,985,291,170,000,000,000,000,000,000,000
173
mysql cli: fix USE command quoting * use proper sql quoting rules for USE, while preserving as much of historical behavior as possible * short commands (\u) behave as before
HeaderMapImplUtility::HeaderMapImplInfo makeHeaderMapImplInfo(absl::string_view name) { // Constructing a header map implementation will force the custom headers and sizing to be // finalized, so do that first. auto header_map = T::create(); HeaderMapImplUtility::HeaderMapImplInfo info; info.name_ = std::str...
0
[]
envoy
2c60632d41555ec8b3d9ef5246242be637a2db0f
264,729,807,366,059,320,000,000,000,000,000,000,000
13
http: header map security fixes for duplicate headers (#197) Previously header matching did not match on all headers for non-inline headers. This patch changes the default behavior to always logically match on all headers. Multiple individual headers will be logically concatenated with ',' similar to what is done with...
void ndpi_finalize_initalization(struct ndpi_detection_module_struct *ndpi_str) { u_int i; for (i = 0; i < 4; i++) { ndpi_automa *automa; switch (i) { case 0: automa = &ndpi_str->host_automa; break; case 1: automa = &ndpi_str->content_automa; break; case 2: auto...
0
[ "CWE-416", "CWE-787" ]
nDPI
6a9f5e4f7c3fd5ddab3e6727b071904d76773952
328,971,513,898,738,700,000,000,000,000,000,000,000
34
Fixed use after free caused by dangling pointer * This fix also improved RCE Injection detection Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
amqp_connection_state_t amqp_new_connection(void) { int res; amqp_connection_state_t state = (amqp_connection_state_t)calloc( 1, sizeof(struct amqp_connection_state_t_)); if (state == NULL) { return NULL; } res = amqp_tune_connection(state, 0, AMQP_INITIAL_FRAME_POOL_PAGE_SIZE, 0); if (0 != res)...
0
[ "CWE-20", "CWE-190", "CWE-787" ]
rabbitmq-c
fc85be7123050b91b054e45b91c78d3241a5047a
70,934,652,004,819,440,000,000,000,000,000,000,000
43
lib: check frame_size is >= INT32_MAX When parsing a frame header, validate that the frame_size is less than or equal to INT32_MAX. Given frame_max is limited between 0 and INT32_MAX in amqp_login and friends, this does not change the API. This prevents a potential buffer overflow when a malicious client sends a fram...
p11_rpc_message_write_byte (p11_rpc_message *msg, CK_BYTE val) { assert (msg != NULL); assert (msg->output != NULL); /* Make sure this is in the right order */ assert (!msg->signature || p11_rpc_message_verify_part (msg, "y")); p11_rpc_buffer_add_byte (msg->output, val); return !p11_b...
0
[ "CWE-787" ]
p11-kit
2617f3ef888e103324a28811886b99ed0a56346d
157,538,501,611,187,190,000,000,000,000,000,000,000
11
Check attribute length against buffer size If an attribute's length does not match the length of the byte array inside it, one length was used for allocation, and the other was used for memcpy. This additional check will instead return an error on malformed messages.
static VALUE cState_configure(VALUE self, VALUE opts) { VALUE tmp; GET_STATE(self); tmp = rb_check_convert_type(opts, T_HASH, "Hash", "to_hash"); if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h"); opts = tmp; tmp = rb_hash_aref(opts, ID2SYM(i_indent)); if (RTEST(tmp)) { ...
0
[ "CWE-119", "CWE-787" ]
json
8f782fd8e181d9cfe9387ded43a5ca9692266b85
104,377,884,767,464,490,000,000,000,000,000,000,000
85
Fix arbitrary heap exposure problem
static void init_reap_node(int cpu) { per_cpu(slab_reap_node, cpu) = next_node_in(cpu_to_mem(cpu), node_online_map); }
0
[ "CWE-703" ]
linux
c4e490cf148e85ead0d1b1c2caaba833f1d5b29f
278,427,962,090,637,380,000,000,000,000,000,000,000
5
mm/slab.c: fix SLAB freelist randomization duplicate entries This patch fixes a bug in the freelist randomization code. When a high random number is used, the freelist will contain duplicate entries. It will result in different allocations sharing the same chunk. It will result in odd behaviours and crashes. It sh...
gdm_session_cancel (GdmSession *self) { g_return_if_fail (GDM_IS_SESSION (self)); g_signal_emit (G_OBJECT (self), signals [CANCELLED], 0); }
0
[]
gdm
5ac224602f1d603aac5eaa72e1760d3e33a26f0a
71,936,241,890,957,810,000,000,000,000,000,000,000
6
session: disconnect signals from worker proxy when conversation is freed We don't want an outstanding reference on the worker proxy to lead to signal handlers getting dispatched after the conversation is freed. https://bugzilla.gnome.org/show_bug.cgi?id=758032
STATIC bool S_to_byte_substr(pTHX_ regexp *prog) { /* Converts substr fields in prog from UTF-8 to bytes, calling fbm_compile * on the converted value; returns FALSE if can't be converted. */ int i = 1; PERL_ARGS_ASSERT_TO_BYTE_SUBSTR; do { if (prog->substrs->data[i].utf8_substr && !prog->...
0
[ "CWE-416" ]
perl5
22b433eff9a1ffa2454e18405a56650f07b385b5
61,245,732,547,168,500,000,000,000,000,000,000,000
33
PATCH [perl #123562] Regexp-matching "hangs" The regex engine got into an infinite loop because of the malformation. It is trying to back-up over a sequence of UTF-8 continuation bytes. But the character just before the sequence should be a start byte. If not, there is a malformation. I added a test to croak if that...
QStandardItem* PeerListWidget::addPeer(const QString& ip, BitTorrent::TorrentHandle *const torrent, const BitTorrent::PeerInfo &peer) { int row = m_listModel->rowCount(); // Adding Peer to peer list m_listModel->insertRow(row); m_listModel->setData(m_listModel->index(row, PeerListDelegate::IP), ip); ...
0
[ "CWE-20", "CWE-79" ]
qBittorrent
6ca3e4f094da0a0017cb2d483ec1db6176bb0b16
294,827,583,633,626,380,000,000,000,000,000,000,000
36
Add Utils::String::toHtmlEscaped
int reuse_partial_packfile_from_bitmap(struct packed_git **packfile, uint32_t *entries, off_t *up_to) { /* * Reuse the packfile content if we need more than * 90% of its objects */ static const double REUSE_PERCENT = 0.9; struct bitmap *result = bitmap_git.result; uint32_t reuse_thresho...
0
[ "CWE-119", "CWE-787" ]
git
de1e67d0703894cb6ea782e36abb63976ab07e60
218,135,047,691,114,130,000,000,000,000,000,000,000
60
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 ...
pk_transaction_eula_required_cb (PkBackend *backend, PkEulaRequired *item, PkTransaction *transaction) { _cleanup_free_ gchar *eula_id = NULL; _cleanup_free_ gchar *package_id = NULL; _cleanup_free_ gchar *vendor_name = NULL; _cleanup_free_ gchar *license_agreement = NULL; g_return_if_fail (PK_IS_TRANSA...
0
[ "CWE-287" ]
PackageKit
f176976e24e8c17b80eff222572275517c16bdad
211,196,103,660,276,350,000,000,000,000,000,000,000
41
Reinstallation and downgrade require authorization Added new policy actions: * org.freedesktop.packagekit.package-reinstall * org.freedesktop.packagekit.package-downgrade The first does not depend or require any other actions to be authorized except for org.freedesktop.packagekit.package-install-untrusted in case o...
bytes_strip(PyBytesObject *self, PyObject *args) { if (PyTuple_GET_SIZE(args) == 0) return do_strip(self, BOTHSTRIP); /* Common case */ else return do_argstrip(self, BOTHSTRIP, args); }
0
[ "CWE-190" ]
cpython
6c004b40f9d51872d848981ef1a18bb08c2dfc42
133,210,689,339,435,000,000,000,000,000,000,000,000
7
bpo-30657: Fix CVE-2017-1000158 (#4758) Fixes possible integer overflow in PyBytes_DecodeEscape. Co-Authored-By: Jay Bosamiya <jaybosamiya@gmail.com>
cdf_check_stream_offset(const cdf_stream_t *sst, const cdf_header_t *h, const void *p, size_t tail, int line) { const char *b = RCAST(const char *, sst->sst_tab); const char *e = RCAST(const char *, p) + tail; size_t ss = cdf_check_stream(sst, h); /*LINTED*/(void)&line; if (e >= b && CAST(size_t, e - b) <= ss ...
0
[ "CWE-787" ]
file
46a8443f76cec4b41ec736eca396984c74664f84
204,454,981,683,520,450,000,000,000,000,000,000,000
16
Limit the number of elements in a vector (found by oss-fuzz)
XML_SetEndDoctypeDeclHandler(XML_Parser parser, XML_EndDoctypeDeclHandler end) { endDoctypeDeclHandler = end; }
0
[ "CWE-119" ]
libexpat
ba0f9c3b40c264b8dd392e02a7a060a8fa54f032
221,751,822,465,212,880,000,000,000,000,000,000,000
4
CVE-2015-1283 Sanity check size calculations. r=peterv, a=abillings https://sourceforge.net/p/expat/bugs/528/
rrset_equal(struct ub_packed_rrset_key* k1, struct ub_packed_rrset_key* k2) { struct packed_rrset_data* d1 = (struct packed_rrset_data*) k1->entry.data; struct packed_rrset_data* d2 = (struct packed_rrset_data*) k2->entry.data; size_t i, t; if(k1->rk.dname_len != k2->rk.dname_len || k1->rk.flags != k2->rk.fla...
0
[ "CWE-613", "CWE-703" ]
unbound
f6753a0f1018133df552347a199e0362fc1dac68
182,058,321,364,352,270,000,000,000,000,000,000,000
29
- Fix the novel ghost domain issues CVE-2022-30698 and CVE-2022-30699.
static void swiotlb_init_io_tlb_mem(struct io_tlb_mem *mem, phys_addr_t start, unsigned long nslabs, bool late_alloc) { void *vaddr = phys_to_virt(start); unsigned long bytes = nslabs << IO_TLB_SHIFT, i; mem->nslabs = nslabs; mem->start = start; mem->end = mem->start + bytes; mem->index = 0; mem->late_a...
0
[ "CWE-200", "CWE-401" ]
linux
aa6f8dcbab473f3a3c7454b74caa46d36cdc5d13
310,973,028,758,456,350,000,000,000,000,000,000,000
33
swiotlb: rework "fix info leak with DMA_FROM_DEVICE" Unfortunately, we ended up merging an old version of the patch "fix info leak with DMA_FROM_DEVICE" instead of merging the latest one. Christoph (the swiotlb maintainer), he asked me to create an incremental fix (after I have pointed this out the mix up, and asked h...
static int vbg_create_input_device(struct vbg_dev *gdev) { struct input_dev *input; input = devm_input_allocate_device(gdev->dev); if (!input) return -ENOMEM; input->id.bustype = BUS_PCI; input->id.vendor = VBOX_VENDORID; input->id.product = VMMDEV_DEVICEID; input->open = vbg_input_open; input->close = vbg_...
0
[ "CWE-362" ]
linux
bd23a7269834dc7c1f93e83535d16ebc44b75eba
211,046,699,773,588,140,000,000,000,000,000,000,000
27
virt: vbox: Only copy_from_user the request-header once In vbg_misc_device_ioctl(), the header of the ioctl argument is copied from the userspace pointer 'arg' and saved to the kernel object 'hdr'. Then the 'version', 'size_in', and 'size_out' fields of 'hdr' are verified. Before this commit, after the checks a buffe...
static int client_command_execute(struct imap_client *client, const char *cmd, const struct imap_arg *args) { struct imap_login_command *login_cmd; login_cmd = imap_login_command_lookup(cmd); if (login_cmd == NULL) return -2; return login_cmd->func(client, args); }
0
[]
core
62061e8cf68f506c0ccaaba21fd4174764ca875f
66,219,541,780,683,630,000,000,000,000,000,000,000
10
imap-login: Split off client_invalid_command()
_decodeStrip(Imaging im, ImagingCodecState state, TIFF *tiff) { INT32 strip_row; UINT8 *new_data; UINT32 rows_per_strip, row_byte_size; int ret; ret = TIFFGetField(tiff, TIFFTAG_ROWSPERSTRIP, &rows_per_strip); if (ret != 1) { rows_per_strip = state->ysize; } TRACE(("RowsPerStrip...
0
[ "CWE-787" ]
Pillow
3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c
221,087,049,305,276,820,000,000,000,000,000,000,000
77
Incorrect error code checking in TiffDecode.c * since Pillow 8.1.0 * CVE-2021-25289
PJ_DEF(pj_status_t) pjsip_endpt_send_raw_to_uri(pjsip_endpoint *endpt, const pj_str_t *p_dst_uri, const pjsip_tpselector *sel, const void *raw_data, pj_size_t data_len, void *token, pjsip_tp_send_callback cb) { pjsip_tx_data *tdata; struct send_raw_data *sraw_data; pj_str...
0
[ "CWE-297", "CWE-295" ]
pjproject
67e46c1ac45ad784db5b9080f5ed8b133c122872
166,017,693,926,000,050,000,000,000,000,000,000,000
69
Merge pull request from GHSA-8hcp-hm38-mfph * Check hostname during TLS transport selection * revision based on feedback * remove the code in create_request that has been moved
void* SelectInit(TfLiteContext* context, const char* buffer, size_t length) { auto* data = new OpData; data->requires_broadcast = false; data->has_low_rank_input_condition = false; return data; }
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
332,951,358,771,250,200,000,000,000,000,000,000,000
6
[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...
static int am_handle_probe_discovery(request_rec *r) { am_dir_cfg_rec *cfg = am_get_dir_cfg(r); LassoServer *server; const char *disco_idp = NULL; int timeout; char *return_to; char *idp_param; char *redirect_url; int ret; server = am_get_lasso_server(r); if(server == NULL) { ...
1
[ "CWE-601" ]
mod_auth_mellon
9d28908e28ef70a12196c215503fb0075e1fd7f3
278,921,123,124,534,850,000,000,000,000,000,000,000
131
Add MellonRedirectDomains option. Limit the domains that we will redirect to after login / logout to a set of trusted domains. By default we only allow redirects to the current domain. This change breaks backwards compatibility with any site that relies on redirects to separate domains. Fixes #35
static int vrend_renderer_transfer_write_iov(struct vrend_context *ctx, struct vrend_resource *res, const struct iovec *iov, int num_iovs, const struct vrend_transfer_info *info) { v...
0
[ "CWE-787" ]
virglrenderer
95e581fd181b213c2ed7cdc63f2abc03eaaa77ec
186,550,696,297,414,120,000,000,000,000,000,000,000
269
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 inline unsigned int leaf_data_end(struct btrfs_root *root, struct extent_buffer *leaf) { u32 nr = btrfs_header_nritems(leaf); if (nr == 0) return BTRFS_LEAF_DATA_SIZE(root); return btrfs_item_offset_nr(leaf, nr - 1); }
0
[ "CWE-416", "CWE-362" ]
linux
5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339
124,366,607,184,653,440,000,000,000,000,000,000,000
8
Btrfs: make xattr replace operations atomic Replacing a xattr consists of doing a lookup for its existing value, delete the current value from the respective leaf, release the search path and then finally insert the new value. This leaves a time window where readers (getxattr, listxattrs) won't see any value for the x...
const struct ldb_val *ldb_dn_get_rdn_val(struct ldb_dn *dn) { if ( ! ldb_dn_validate(dn)) { return NULL; } if (dn->comp_num == 0) return NULL; return &dn->components[0].value; }
0
[ "CWE-200" ]
samba
7f51ec8c4ed9ba1f53d722e44fb6fb3cde933b72
172,813,640,908,090,940,000,000,000,000,000,000,000
8
CVE-2015-5330: ldb_dn: simplify and fix ldb_dn_escape_internal() Previously we relied on NUL terminated strings and jumped back and forth between copying escaped bytes and memcpy()ing un-escaped chunks. This simple version is easier to reason about and works with unterminated strings. It may also be faster as it avoid...
ews_connection_schedule_cancel_message (EEwsConnection *cnc, SoupMessage *message) { EwsScheduleData *sd; GSource *source; g_return_if_fail (E_IS_EWS_CONNECTION (cnc)); g_return_if_fail (SOUP_IS_MESSAGE (message)); sd = g_new0 (EwsScheduleData, 1); sd->cnc = g_object_ref ...
0
[ "CWE-295" ]
evolution-ews
915226eca9454b8b3e5adb6f2fff9698451778de
90,834,033,429,280,310,000,000,000,000,000,000,000
20
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
SPL_METHOD(SplDoublyLinkedList, bottom) { zval *value; spl_dllist_object *intern; if (zend_parse_parameters_none() == FAILURE) { return; } intern = Z_SPLDLLIST_P(getThis()); value = spl_ptr_llist_first(intern->llist); if (value == NULL || Z_ISUNDEF_P(value)) { zend_throw_exception(spl_ce_RuntimeException...
0
[ "CWE-415" ]
php-src
28a6ed9f9a36b9c517e4a8a429baf4dd382fc5d5
137,617,118,937,310,000,000,000,000,000,000,000,000
20
Fix bug #71735: Double-free in SplDoublyLinkedList::offsetSet
void clear() { key_value_pairs_.clear(); url_.clear(); }
0
[ "CWE-703" ]
Crow
79eec91f00b5fb7df890d4e84b2f048b0841e044
79,030,878,802,117,400,000,000,000,000,000,000,000
5
Fixed issue where an index in qs_parse is incorrectly incremented beyond the maximum possible value
intrusive_ptr<Expression> ExpressionAnd::optimize() { /* optimize the conjunction as much as possible */ intrusive_ptr<Expression> pE(ExpressionNary::optimize()); /* if the result isn't a conjunction, we can't do anything */ ExpressionAnd* pAnd = dynamic_cast<ExpressionAnd*>(pE.get()); if (!pAnd) ...
0
[]
mongo
1772b9a0393b55e6a280a35e8f0a1f75c014f301
311,225,750,459,008,300,000,000,000,000,000,000,000
55
SERVER-49404 Enforce additional checks in $arrayToObject
static inline GCC_FMT_ATTR(1, 2) int DPRINTF(const char *fmt, ...) { return 0; }
0
[ "CWE-835" ]
qemu
5311fb805a4403bba024e83886fa0e7572265de4
74,275,532,650,995,630,000,000,000,000,000,000,000
4
rtl8139: 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 Buglink: https://bugs.launchpad.net/qemu/+bug/1910826...
void Uint32Analysis::UnmarkPhi(HPhi* phi, ZoneList<HPhi*>* worklist) { phi->ClearFlag(HInstruction::kUint32); for (int j = 0; j < phi->OperandCount(); j++) { HValue* operand = phi->OperandAt(j); if (operand->CheckFlag(HInstruction::kUint32)) { operand->ClearFlag(HInstruction::kUint32); if (opera...
0
[]
node
fd80a31e0697d6317ce8c2d289575399f4e06d21
317,987,732,968,142,800,000,000,000,000,000,000,000
12
deps: backport 5f836c from v8 upstream Original commit message: Fix Hydrogen bounds check elimination When combining bounds checks, they must all be moved before the first load/store that they are guarding. BUG=chromium:344186 LOG=y R=svenpanne@chromium.org Review URL: https://coderevie...
fatal_error(const char *message, ...) { va_list val; va_start(val, message); fprintf(stderr, "%s: ", program_name); vfprintf(stderr, message, val); fputc('\n', stderr); va_end(val); exit(1); }
0
[ "CWE-119", "CWE-787" ]
t1utils
6b9d1aafcb61a3663c883663eb19ccdbfcde8d33
210,893,064,935,227,700,000,000,000,000,000,000,000
10
Security fixes. - Don't overflow the small cs_start buffer (reported by Niels Thykier via the debian tracker (Jakub Wilk), found with a fuzzer ("American fuzzy lop")). - Cast arguments to <ctype.h> functions to unsigned char.
DECLAREContigPutFunc(put1bitbwtile) { uint32** BWmap = img->BWmap; (void) x; (void) y; fromskew /= 8; while (h-- > 0) { uint32* bw; UNROLL8(w, bw = BWmap[*pp++], *cp++ = *bw++); cp += toskew; pp += fromskew; } }
0
[ "CWE-119" ]
libtiff
40a5955cbf0df62b1f9e9bd7d9657b0070725d19
115,751,059,085,567,600,000,000,000,000,000,000,000
13
* libtiff/tif_next.c: add new tests to check that we don't read outside of the compressed input stream buffer. * libtiff/tif_getimage.c: in OJPEG case, fix checks on strile width/height
lseg_send(PG_FUNCTION_ARGS) { LSEG *ls = PG_GETARG_LSEG_P(0); StringInfoData buf; pq_begintypsend(&buf); pq_sendfloat8(&buf, ls->p[0].x); pq_sendfloat8(&buf, ls->p[0].y); pq_sendfloat8(&buf, ls->p[1].x); pq_sendfloat8(&buf, ls->p[1].y); PG_RETURN_BYTEA_P(pq_endtypsend(&buf)); }
0
[ "CWE-703", "CWE-189" ]
postgres
31400a673325147e1205326008e32135a78b4d8a
160,460,139,621,932,250,000,000,000,000,000,000,000
12
Predict integer overflow to avoid buffer overruns. Several functions, mostly type input functions, calculated an allocation size such that the calculation wrapped to a small positive value when arguments implied a sufficiently-large requirement. Writes past the end of the inadvertent small allocation followed shortly...
int blk_mq_tag_update_depth(struct blk_mq_tags *tags, unsigned int tdepth) { tdepth -= tags->nr_reserved_tags; if (tdepth > tags->nr_tags) return -EINVAL; /* * Don't need (or can't) update reserved tags here, they remain * static and should never need resizing. */ bt_update_count(&tags->bitmap_tags, tdepth...
0
[ "CWE-362", "CWE-264" ]
linux
0048b4837affd153897ed1222283492070027aa9
312,155,693,677,939,200,000,000,000,000,000,000,000
14
blk-mq: fix race between timeout and freeing request Inside timeout handler, blk_mq_tag_to_rq() is called to retrieve the request from one tag. This way is obviously wrong because the request can be freed any time and some fiedds of the request can't be trusted, then kernel oops might be triggered[1]. Currently wrt. ...
static UINT drdynvc_virtual_channel_event_terminated(drdynvcPlugin* drdynvc) { if (!drdynvc) return CHANNEL_RC_BAD_CHANNEL_HANDLE; drdynvc->InitHandle = 0; free(drdynvc->context); free(drdynvc); return CHANNEL_RC_OK; }
0
[ "CWE-125" ]
FreeRDP
baee520e3dd9be6511c45a14c5f5e77784de1471
48,746,020,095,675,840,000,000,000,000,000,000,000
10
Fix for #4866: Added additional length checks
static bool fix_slave_skip_counter(sys_var *self, THD *thd, enum_var_type type) { mysql_mutex_lock(&LOCK_active_mi); mysql_mutex_lock(&active_mi->rli.run_lock); /* The following test should normally never be true as we test this in the check function; To be safe against multiple SQL_SLAVE_SKIP_COUNTE...
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
317,208,315,354,963,960,000,000,000,000,000,000,000
19
Bug#24388753: PRIVILEGE ESCALATION USING MYSQLD_SAFE [This is the 5.5/5.6 version of the bugfix]. The problem was that it was possible to write log files ending in .ini/.cnf that later could be parsed as an options file. This made it possible for users to specify startup options without the permissions to do so. Thi...
static void ev_no_io(h2_proxy_session *session, int arg, const char *msg) { switch (session->state) { case H2_PROXYS_ST_BUSY: case H2_PROXYS_ST_LOCAL_SHUTDOWN: case H2_PROXYS_ST_REMOTE_SHUTDOWN: /* nothing for input and output to do. If we remain * in this state, we ...
0
[ "CWE-770" ]
mod_h2
dd05d49abe0f67512ce9ed5ba422d7711effecfb
267,293,519,338,427,900,000,000,000,000,000,000,000
36
* 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...
char *generate_partition_syntax(partition_info *part_info, uint *buf_length, bool use_sql_alloc, bool show_partition_options, HA_CREATE_INFO *create_info, Alter...
0
[]
mysql-server
be901b60ae59c93848c829d1b0b2cb523ab8692e
208,622,207,573,330,200,000,000,000,000,000,000,000
194
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 ...
struct vm_area_struct *get_gate_vma(struct task_struct *tsk) { #ifdef AT_SYSINFO_EHDR return &gate_vma; #else return NULL; #endif }
0
[ "CWE-20" ]
linux-2.6
89f5b7da2a6bad2e84670422ab8192382a5aeb9f
120,175,117,455,913,580,000,000,000,000,000,000,000
8
Reinstate ZERO_PAGE optimization in 'get_user_pages()' and fix XIP KAMEZAWA Hiroyuki and Oleg Nesterov point out that since the commit 557ed1fa2620dc119adb86b34c614e152a629a80 ("remove ZERO_PAGE") removed the ZERO_PAGE from the VM mappings, any users of get_user_pages() will generally now populate the VM with real emp...
static void etm_event_stop(struct perf_event *event, int mode) { bool lost; int cpu = smp_processor_id(); unsigned long size; struct coresight_device *sink, *csdev = per_cpu(csdev_src, cpu); struct perf_output_handle *handle = this_cpu_ptr(&ctx_handle); struct etm_event_data *event_data = perf_get_aux(handle); ...
0
[ "CWE-20", "CWE-476" ]
linux
f09444639099584bc4784dfcd85ada67c6f33e0f
214,633,179,843,584,600,000,000,000,000,000,000,000
49
coresight: fix kernel panic caused by invalid CPU Commit d52c9750f150 ("coresight: reset "enable_sink" flag when need be") caused a kernel panic because of the using of an invalid value: after 'for_each_cpu(cpu, mask)', value of local variable 'cpu' become invalid, causes following 'cpu_to_node' access invalid memory ...
static void dissect_DATA_v2(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint8 flags, const guint encoding, int octets_to_next_header, proto_tree *tree, guint16 vendor_id, endpoint_guid *guid) { /* * * 0...2...........7...............15.............23....
0
[ "CWE-401" ]
wireshark
33e63d19e5496c151bad69f65cdbc7cba2b4c211
78,619,051,395,756,775,000,000,000,000,000,000,000
117
RTPS: Fixup our coherent set map. coherent_set_tracking.coherent_set_registry_map uses a struct as a key, but the hash and comparison routines treat keys as a sequence of bytes. Make sure every key byte is initialized. Fixes #16994. Call wmem_strong_hash on our key in coherent_set_key_hash_by_key instead of creating ...
TEST_P(JSITest, HostFunctionTest) { auto one = std::make_shared<int>(1); Function plusOne = Function::createFromHostFunction( rt, PropNameID::forAscii(rt, "plusOne"), 2, [one, savedRt = &rt]( Runtime& rt, const Value& thisVal, const Value* args, size_t count) { EXPECT_EQ(sa...
0
[ "CWE-843", "CWE-125" ]
hermes
fe52854cdf6725c2eaa9e125995da76e6ceb27da
293,967,594,471,085,150,000,000,000,000,000,000,000
151
[CVE-2020-1911] Look up HostObject computed properties on the right object in the prototype chain. Summary: The change in the hermes repository fixes the security vulnerability CVE-2020-1911. This vulnerability only affects applications which allow evaluation of uncontrolled, untrusted JavaScript code not shipped wit...
void IDLParserErrorContext::throwBadEnumValue(StringData enumValue) const { std::string path = getElementPath(StringData()); uasserted(ErrorCodes::BadValue, str::stream() << "Enumeration value '" << enumValue << "' for field '" << path << "' is not a valid value."); }
0
[ "CWE-20" ]
mongo
722f06f3217c029ef9c50062c8cc775966fd7ead
266,529,561,610,181,020,000,000,000,000,000,000,000
6
SERVER-38275 ban find explain with UUID
static int utf8_encoded_to_unichar(const char *str) { int unichar; int len; int i; len = utf8_encoded_expected_len(str); switch (len) { case 1: return (int)str[0]; case 2: unichar = str[0] & 0x1f; break; case 3: unichar = (int)str[0] & 0x0f; break; case 4: unichar = (int)str[0] & 0x07; break; c...
0
[ "CWE-120" ]
udev
662c3110803bd8c1aedacc36788e6fd028944314
206,051,964,674,283,900,000,000,000,000,000,000,000
38
path_encode: fix max length calculation Sebastian Krahmer wrote: > it should reserve 4 times not 3 times len :)
static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) { struct fib6_rule *r = (struct fib6_rule *) rule; struct flowi6 *fl6 = &fl->u.ip6; if (r->dst.plen && !ipv6_prefix_equal(&fl6->daddr, &r->dst.addr, r->dst.plen)) return 0; /* * If FIB_RULE_FIND_SADDR is set and we do not have...
0
[ "CWE-772", "CWE-401" ]
linux
ca7a03c4175366a92cee0ccc4fec0038c3266e26
38,333,218,905,726,800,000,000,000,000,000,000,000
39
ipv6: do not free rt if FIB_LOOKUP_NOREF is set on suppress rule Commit 7d9e5f422150 removed references from certain dsts, but accounting for this never translated down into the fib6 suppression code. This bug was triggered by WireGuard users who use wg-quick(8), which uses the "suppress-prefix" directive to ip-rule(8...
int imagetobmp(opj_image_t * image, const char *outfile) { int w, h; int i, pad; FILE *fdest = NULL; int adjustR, adjustG, adjustB; if (image->comps[0].prec < 8) { fprintf(stderr, "Unsupported number of components: %d\n", image->comps[0].prec); return 1; } if (image->numcomp...
1
[ "CWE-703", "CWE-125" ]
openjpeg
15f081c89650dccee4aa4ae66f614c3fdb268767
44,282,023,492,320,785,000,000,000,000,000,000,000
194
Fix Out-Of-Bounds Read in sycc42x_to_rgb function (#745) 42x Images with an odd x0/y0 lead to subsampled component starting at the 2nd column/line. That is offset = comp->dx * comp->x0 - image->x0 = 1 Fix #726
bad_group_cmd(enum ofp15_group_mod_command cmd) { const char *opt_version; const char *version; const char *cmd_str; switch (cmd) { case OFPGC15_ADD: case OFPGC15_MODIFY: case OFPGC15_ADD_OR_MOD: case OFPGC15_DELETE: version = "1.1"; opt_version = "11"; break; ...
0
[ "CWE-772" ]
ovs
77ad4225d125030420d897c873e4734ac708c66b
5,014,981,129,616,052,000,000,000,000,000,000,000
55
ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod(). Found by libFuzzer. Reported-by: Bhargava Shastry <bshastry@sec.t-labs.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
GF_Err st3d_box_write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_Stereo3DBox *ptr = (GF_Stereo3DBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u8(bs, ptr->stereo_type); return GF_OK;
0
[ "CWE-476", "CWE-787" ]
gpac
b8f8b202d4fc23eb0ab4ce71ae96536ca6f5d3f8
312,936,774,061,290,980,000,000,000,000,000,000,000
10
fixed #1757
R_API RCoreAutocomplete *r_core_autocomplete_find(RCoreAutocomplete *parent, const char* cmd, bool exact) { if (!parent || !cmd) { return false; } int len = strlen (cmd); int i; for (i = 0; i < parent->n_subcmds; i++) { if (exact && len == parent->subcmds[i]->length && !strncmp (cmd, parent->subcmds[i]->cmd, l...
0
[ "CWE-415", "CWE-703" ]
radare2
cb8b683758edddae2d2f62e8e63a738c39f92683
103,034,357,421,375,190,000,000,000,000,000,000,000
15
Fix #16303 - c->table_query double free (#16318)
int ib_send_cm_apr(struct ib_cm_id *cm_id, enum ib_cm_apr_status status, void *info, u8 info_length, const void *private_data, u8 private_data_len) { struct cm_id_private *cm_id_priv; struct ib_mad_send_buf *msg; unsigned long flags; int ret; if ((private_data && private_data_len > IB_CM_...
0
[ "CWE-20" ]
linux
b2853fd6c2d0f383dbdf7427e263eb576a633867
219,785,608,683,893,350,000,000,000,000,000,000,000
42
IB/core: Don't resolve passive side RoCE L2 address in CMA REQ handler The code that resolves the passive side source MAC within the rdma_cm connection request handler was both redundant and buggy, so remove it. It was redundant since later, when an RC QP is modified to RTR state, the resolution will take place in th...
pixBlockconvGrayTile(PIX *pixs, PIX *pixacc, l_int32 wc, l_int32 hc) { l_int32 w, h, d, wd, hd, i, j, imin, imax, jmin, jmax, wplt, wpld; l_float32 norm; l_uint32 val; l_uint32 *datat, *datad, *lined, *linemint, *linemaxt; PIX *pixt, ...
0
[]
leptonica
480f5e74c24fdc2003c42a4e15d1f24c9e6ea469
173,626,707,549,341,870,000,000,000,000,000,000,000
82
Fixed issue 21972 (oss-fuzz) Divide by zero in pixBlockconvGray().
vhost_check_queue_inflights_packed(struct virtio_net *dev, struct vhost_virtqueue *vq) { uint16_t i; uint16_t resubmit_num = 0, old_used_idx, num; struct rte_vhost_resubmit_info *resubmit; struct rte_vhost_inflight_info_packed *inflight_packed; if (!(dev->protocol_features & (1ULL << VHOST_USER_PROTOC...
0
[]
dpdk
612e17cf6d7b2bf05a687d8a9ba7be582a744e50
325,487,459,700,154,700,000,000,000,000,000,000,000
89
vhost: fix possible denial of service on SET_VRING_NUM vhost_user_set_vring_num() performs multiple allocations without checking whether data were previously allocated. It may cause a denial of service because of the memory leaks that happen if a malicious vhost-user master keeps sending VHOST_USER_SET_VRING_NUM requ...
snd_usb_find_input_terminal_descriptor(struct usb_host_interface *ctrl_iface, int terminal_id) { struct uac2_input_terminal_descriptor *term = NULL; while ((term = snd_usb_find_csint_desc(ctrl_iface->extra, ctrl_iface->extralen, term, UAC_INPUT_TERMINAL))) { if (term->bTerminalI...
0
[]
linux
836b34a935abc91e13e63053d0a83b24dfb5ea78
27,049,465,888,841,294,000,000,000,000,000,000,000
14
ALSA: usb-audio: Fix double-free in error paths after snd_usb_add_audio_stream() call create_fixed_stream_quirk(), snd_usb_parse_audio_interface() and create_uaxx_quirk() functions allocate the audioformat object by themselves and free it upon error before returning. However, once the object is linked to a stream, it'...
static int autoview_handler (BODY *a, STATE *s) { rfc1524_entry *entry = rfc1524_new_entry (); char buffer[LONG_STRING]; char type[STRING]; BUFFER *command = NULL; BUFFER *tempfile = NULL; char *fname; FILE *fpin = NULL; FILE *fpout = NULL; FILE *fperr = NULL; int piped = FALSE; pid_t thepid; in...
0
[ "CWE-120" ]
mutt
e5ed080c00e59701ca62ef9b2a6d2612ebf765a5
205,276,869,316,274,300,000,000,000,000,000,000,000
145
Fix uudecode buffer overflow. mutt_decode_uuencoded() used each line's initial "length character" without any validation. It would happily read past the end of the input line, and with a suitable value even past the length of the input buffer. As I noted in ticket 404, there are several other changes that could be a...
CImg<T>& load_other(const char *const filename) { if (!filename) throw CImgArgumentException(_cimg_instance "load_other(): Specified filename is (null).", cimg_instance); const unsigned int omode = cimg::exception_mode(); ...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
103,373,306,165,461,600,000,000,000,000,000,000,000
37
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static void io_async_find_and_cancel(struct io_ring_ctx *ctx, struct io_kiocb *req, __u64 sqe_addr, struct io_kiocb **nxt, int success_ret) { unsigned long flags; int ret; ret = io_async_cancel_one(ctx, (void *) (unsigned long) sqe_addr); if (ret != -ENOENT) { spin_lock_irqsave(&ctx->completion...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
172,893,749,827,468,500,000,000,000,000,000,000,000
30
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
coolkey_get_object_type(unsigned long object_id) { return ((object_id >> 24 ) & 0xff); }
0
[]
OpenSC
7114fb71b54ddfe06ce5dfdab013f4c38f129d14
290,150,834,407,655,000,000,000,000,000,000,000,000
1
coolkey: Initialize potentially uninitialized memory Thanks oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28855
Mgr::QueryParams::unpack(const Ipc::TypedMsgHdr& msg) { int count = msg.getInt(); Must(count >= 0); params.clear(); for ( ; count > 0; --count) { String name; msg.getString(name); Must(name.size() != 0); QueryParam::Type type; msg.getPod(type); QueryParam:...
0
[ "CWE-401" ]
squid
26e65059bc06ebce508737b5cd0866478691566a
326,243,807,229,938,230,000,000,000,000,000,000,000
16
Bug 5106: Broken cache manager URL parsing (#788) Use already parsed request-target URL in cache manager and update CacheManager to Tokanizer based URL parse Removing use of sscan() and regex string processing which have proven to be problematic on many levels. Most particularly with regards to tolerance of normally ...
int Http2Handler::submit_response(const StringRef &status, int32_t stream_id, const HeaderRefs &headers, nghttp2_data_provider *data_prd) { auto nva = std::vector<nghttp2_nv>(); nva.reserve(4 + headers.size()); nva.push_back(http2::make_nv_ls_noc...
0
[]
nghttp2
95efb3e19d174354ca50c65d5d7227d92bcd60e1
300,055,717,987,136,540,000,000,000,000,000,000,000
23
Don't read too greedily
TfLiteStatus CreateLedgerTensor(const TfLiteSparsity* sparsity, TfLiteContext* context, TfLiteTensor* ledger) { TF_LITE_ENSURE(context, sparsity != nullptr); ledger->type = kTfLiteUInt8; ledger->allocation_type = kTfLiteArenaRwPersistent; TfLiteIntArray* ledger_size = TfLiteIntAr...
0
[ "CWE-369" ]
tensorflow
718721986aa137691ee23f03638867151f74935f
33,569,040,372,662,833,000,000,000,000,000,000,000
10
Prevent division by 0 in `fully_connected.cc` PiperOrigin-RevId: 385137282 Change-Id: If201e69b6e0048f0be001330b4b977e2b46db2cb
static int alarm_timer_nsleep(const clockid_t which_clock, int flags, const struct timespec64 *tsreq) { enum alarmtimer_type type = clock2alarm(which_clock); struct restart_block *restart = &current->restart_block; struct alarm alarm; ktime_t exp; int ret = 0; if (!alarmtimer_get_rtcdev()) return -EN...
1
[ "CWE-190" ]
linux
5f936e19cc0ef97dbe3a56e9498922ad5ba1edef
2,788,706,287,903,203,700,000,000,000,000,000,000
40
alarmtimer: Prevent overflow for relative nanosleep Air Icy reported: UBSAN: Undefined behaviour in kernel/time/alarmtimer.c:811:7 signed integer overflow: 1529859276030040771 + 9223372036854775807 cannot be represented in type 'long long int' Call Trace: alarm_timer_nsleep+0x44c/0x510 kernel/time/alarmtim...
int kvm_register_device_ops(const struct kvm_device_ops *ops, u32 type) { if (type >= ARRAY_SIZE(kvm_device_ops_table)) return -ENOSPC; if (kvm_device_ops_table[type] != NULL) return -EEXIST; kvm_device_ops_table[type] = ops; return 0;
0
[ "CWE-459" ]
linux
683412ccf61294d727ead4a73d97397396e69a6b
285,040,388,756,628,260,000,000,000,000,000,000,000
11
KVM: SEV: add cache flush to solve SEV cache incoherency issues Flush the CPU caches when memory is reclaimed from an SEV guest (where reclaim also includes it being unmapped from KVM's memslots). Due to lack of coherency for SEV encrypted memory, failure to flush results in silent data corruption if userspace is mal...
static int kvm_s390_handle_pv(struct kvm *kvm, struct kvm_pv_cmd *cmd) { int r = 0; u16 dummy; void __user *argp = (void __user *)cmd->data; switch (cmd->cmd) { case KVM_PV_ENABLE: { r = -EINVAL; if (kvm_s390_pv_is_protected(kvm)) break; /* * FMT 4 SIE needs esca. As we never switch back to bsca fro...
0
[ "CWE-416" ]
linux
0774a964ef561b7170d8d1b1bfe6f88002b6d219
56,379,133,803,043,650,000,000,000,000,000,000,000
141
KVM: Fix out of range accesses to memslots Reset the LRU slot if it becomes invalid when deleting a memslot to fix an out-of-bounds/use-after-free access when searching through memslots. Explicitly check for there being no used slots in search_memslots(), and in the caller of s390's approximation variant. Fixes: 369...
circuit_consider_stop_edge_reading(circuit_t *circ, crypt_path_t *layer_hint) { edge_connection_t *conn = NULL; unsigned domain = layer_hint ? LD_APP : LD_EXIT; if (!layer_hint) { or_circuit_t *or_circ = TO_OR_CIRCUIT(circ); log_debug(domain,"considering circ->package_window %d", circ->pack...
0
[ "CWE-200", "CWE-617" ]
tor
56a7c5bc15e0447203a491c1ee37de9939ad1dcd
152,059,752,395,327,750,000,000,000,000,000,000,000
31
TROVE-2017-005: Fix assertion failure in connection_edge_process_relay_cell On an hidden service rendezvous circuit, a BEGIN_DIR could be sent (maliciously) which would trigger a tor_assert() because connection_edge_process_relay_cell() thought that the circuit is an or_circuit_t but is an origin circuit in reality. ...
void FLTDoAxisSwappingIfNecessary(FilterEncodingNode *psFilterNode, int bDefaultSRSNeedsAxisSwapping) { if( psFilterNode == NULL ) return; if( psFilterNode->eType == FILTER_NODE_TYPE_SPATIAL && psFilterNode->psRightNode->eType == FILTER_NODE_TYPE_BBOX ) { ...
0
[ "CWE-200", "CWE-119" ]
mapserver
e52a436c0e1c5e9f7ef13428dba83194a800f4df
338,492,059,643,713,720,000,000,000,000,000,000,000
42
security fix (patch by EvenR)
static void skb_headers_offset_update(struct sk_buff *skb, int off) { /* Only adjust this if it actually is csum_start rather than csum */ if (skb->ip_summed == CHECKSUM_PARTIAL) skb->csum_start += off; /* {transport,network,mac}_header and tail are relative to skb->head */ skb->transport_header += off; skb->ne...
0
[ "CWE-703", "CWE-125" ]
linux
8605330aac5a5785630aec8f64378a54891937cc
236,387,846,487,094,700,000,000,000,000,000,000,000
14
tcp: fix SCM_TIMESTAMPING_OPT_STATS for normal skbs __sock_recv_timestamp can be called for both normal skbs (for receive timestamps) and for skbs on the error queue (for transmit timestamps). Commit 1c885808e456 (tcp: SOF_TIMESTAMPING_OPT_STATS option for SO_TIMESTAMPING) assumes any skb passed to __sock_recv_timest...
getHighestFileDescriptor() { #if defined(F_MAXFD) int ret; do { ret = fcntl(0, F_MAXFD); } while (ret == -1 && errno == EINTR); if (ret == -1) { ret = getFileDescriptorLimit(); } return ret; #else int p[2], ret, flags; pid_t pid = -1; int result = -1; /* Since opendir() may not be async signal safe ...
0
[ "CWE-401" ]
passenger
94428057c602da3d6d34ef75c78091066ecac5c0
38,930,000,964,630,870,000,000,000,000,000,000,000
187
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.
sph_bswap32(sph_u32 x) { __asm__ __volatile__ ("bswapl %0" : "=r" (x) : "0" (x)); return x; }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
146,088,056,282,023,680,000,000,000,000,000,000,000
5
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
PLIST_API void plist_from_bin(const char *plist_bin, uint32_t length, plist_t * plist) { bplist_trailer_t *trailer = NULL; uint8_t offset_size = 0; uint8_t ref_size = 0; uint64_t num_objects = 0; uint64_t root_object = 0; const char *offset_table = NULL; const char *start_data = NULL; co...
0
[ "CWE-119", "CWE-787" ]
libplist
fbd8494d5e4e46bf2e90cb6116903e404374fb56
185,748,287,794,987,800,000,000,000,000,000,000,000
88
bplist: Make sure to bail out if malloc() fails in parse_string_node() Credit to Wang Junjie <zhunkibatu@gmail.com> (#93)
display_debug_macinfo (struct dwarf_section *section, void *file ATTRIBUTE_UNUSED) { unsigned char *start = section->start; unsigned char *end = start + section->size; unsigned char *curr = start; enum dwarf_macinfo_record_type op; introduce (section, false); while (curr < end) { unsign...
0
[ "CWE-703" ]
binutils-gdb
695c6dfe7e85006b98c8b746f3fd5f913c94ebff
81,113,651,609,666,520,000,000,000,000,000,000,000
73
PR29370, infinite loop in display_debug_abbrev The PR29370 testcase is a fuzzed object file with multiple .trace_abbrev sections. Multiple .trace_abbrev or .debug_abbrev sections are not a violation of the DWARF standard. The DWARF5 standard even gives an example of multiple .debug_abbrev sections contained in group...
int ec_wNAF_have_precompute_mult(const EC_GROUP *group) { if (EC_EX_DATA_get_data (group->extra_data, ec_pre_comp_dup, ec_pre_comp_free, ec_pre_comp_clear_free) != NULL) return 1; else return 0; }
0
[]
openssl
b18162a7c9bbfb57112459a4d6631fa258fd8c0c
16,044,270,794,439,717,000,000,000,000,000,000,000
9
CVE-2018-5407 fix: ECC ladder Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/7593)
static int handle_bus_lock_vmexit(struct kvm_vcpu *vcpu) { vcpu->run->exit_reason = KVM_EXIT_X86_BUS_LOCK; vcpu->run->flags |= KVM_RUN_X86_BUS_LOCK; return 0; }
0
[ "CWE-787" ]
linux
04c4f2ee3f68c9a4bf1653d15f1a9a435ae33f7a
48,388,205,088,633,320,000,000,000,000,000,000,000
6
KVM: VMX: Don't use vcpu->run->internal.ndata as an array index __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for an array access. Since vcpu->run is (can be) mapped to a user address space with a writer permission, the 'ndata' could be updated by the user process at anytime (the user process can set...
uuid_make(char *str) { uint16_t uuid[8]; time_t now; int i; now = time(NULL); srand((unsigned int)now); for (i = 0; i < ARRAY_SIZE(uuid); i++) { uuid[i] = (uint16_t)rand(); // time_hi_and_version, set version to 4 (=random) if (i == 3) uuid[i] = (uuid[i] & 0x0FFF) | 0x4000; ...
0
[ "CWE-416" ]
owntone-server
246d8ae0cef27377e5dfe9ee3ad87e864d6b6266
115,896,936,126,077,440,000,000,000,000,000,000,000
28
[misc] Fix use-after-free in net_bind() Thanks to Ba Jinsheng for reporting this bug
thunar_transfer_node_free (ThunarTransferNode *node) { ThunarTransferNode *next; /* free all nodes in a row */ while (node != NULL) { /* free all children of this node */ thunar_transfer_node_free (node->children); /* determine the next node */ next = node->next; /* drop the s...
0
[ "CWE-399", "CWE-134" ]
thunar
03dd312e157d4fa8a11d5fa402706ae5b05806fa
61,927,927,034,568,340,000,000,000,000,000,000,000
23
Don't interpret file display names as format strings This avoids a segfault when copying/moving files containing "%" formatters in their name. Signed-off-by: Jannis Pohlmann <jannis@xfce.org>