func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static int ext4_iomap_end(struct inode *inode, loff_t offset, loff_t length, ssize_t written, unsigned flags, struct iomap *iomap) { int ret = 0; handle_t *handle; int blkbits = inode->i_blkbits; bool truncate = false; if (!(flags & IOMAP_WRITE) || (flags & IOMAP_FAULT)) return 0; handle = ext4_journal_s...
0
[]
linux
8e4b5eae5decd9dfe5a4ee369c22028f90ab4c44
243,551,509,633,477,340,000,000,000,000,000,000,000
51
ext4: fail ext4_iget for root directory if unallocated If the root directory has an i_links_count of zero, then when the file system is mounted, then when ext4_fill_super() notices the problem and tries to call iput() the root directory in the error return path, ext4_evict_inode() will try to free the inode on disk, b...
ecc_ecdsa_sign (const struct ecc_curve *ecc, const mp_limb_t *zp, /* Random nonce, must be invertible mod ecc group order. */ const mp_limb_t *kp, size_t length, const uint8_t *digest, mp_limb_t *rp, mp_limb_t *sp, mp_limb_t *scratch) { #define P scratch #define kinv scratch #define hp (scr...
0
[ "CWE-787" ]
nettle
51f643eee00e2caa65c8a2f5857f49acdf3ef1ce
130,394,306,273,648,720,000,000,000,000,000,000,000
44
Ensure ecdsa_sign output is canonically reduced. * ecc-ecdsa-sign.c (ecc_ecdsa_sign): Ensure s output is reduced to canonical range. (cherry picked from commit c24b36160dc5303f7541dd9da1429c4046f27398)
read_literal_length (BITCODE_RC *restrict *src, unsigned char opcode) { uint32_t length = opcode + 8; if (length == 0x17) { int n = *(*src)++; length += n; if (n == 0xff) { do { n = *(*src)++; n |= (*(*src)++ << 8); le...
0
[ "CWE-787" ]
libredwg
45d2a290c65ed691be0901ba2b2ef51044e07a16
298,212,389,346,975,250,000,000,000,000,000,000,000
25
decode_r2007: fix for invalid section size See GH #350. With fuzzing section->data_size might not fit section_page->uncomp_size.
double yr_object_get_float( YR_OBJECT* object, const char* field, ...) { YR_OBJECT* double_obj; va_list args; va_start(args, field); if (field != NULL) double_obj = _yr_object_lookup(object, 0, field, args); else double_obj = object; va_end(args); if (double_obj == NULL) return...
0
[ "CWE-119", "CWE-787" ]
yara
4a342f01e5439b9bb901aff1c6c23c536baeeb3f
61,840,050,335,966,080,000,000,000,000,000,000,000
25
Fix heap overflow (reported by Jurriaan Bremer) When setting a new array item with yr_object_array_set_item() the array size is doubled if the index for the new item is larger than the already allocated ones. No further checks were made to ensure that the index fits into the array after doubling its capacity. If the a...
ecma_date_value_to_iso_string (ecma_number_t datetime_number) /**<datetime */ { return ecma_date_to_string_format (datetime_number, "$y-$O-$DT$h:$m:$s.$iZ"); } /* ecma_date_value_to_iso_string */
0
[ "CWE-416" ]
jerryscript
3bcd48f72d4af01d1304b754ef19fe1a02c96049
96,984,861,509,608,930,000,000,000,000,000,000,000
4
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 ZSTD_shouldAttachDict(const ZSTD_CDict* cdict, ZSTD_CCtx_params params, U64 pledgedSrcSize) { size_t cutoff = attachDictSizeCutoffs[cdict->matchState.cParams.strategy]; return ( pledgedSrcSize <= cutoff || pledgedSrcSize == Z...
0
[ "CWE-362" ]
zstd
3e5cdf1b6a85843e991d7d10f6a2567c15580da0
121,254,719,797,856,780,000,000,000,000,000,000,000
12
fixed T36302429
blkid_parttable blkid_partlist_get_table(blkid_partlist ls) { if (list_empty(&ls->l_tabs)) return NULL; return list_entry(ls->l_tabs.next, struct blkid_struct_parttable, t_tabs); }
0
[]
util-linux
50d1594c2e6142a3b51d2143c74027480df082e0
221,664,263,427,590,100,000,000,000,000,000,000,000
8
libblkid: avoid non-empty recursion in EBR This is extension to the patch 7164a1c34d18831ac61c6744ad14ce916d389b3f. We also need to detect non-empty recursion in the EBR chain. It's possible to create standard valid logical partitions and in the last one points back to the EBR chain. In this case all offsets will be ...
ptaEmpty(PTA *pta) { PROCNAME("ptaEmpty"); if (!pta) return ERROR_INT("ptad not defined", procName, 1); pta->n = 0; return 0; }
0
[ "CWE-119", "CWE-787" ]
leptonica
ee301cb2029db8a6289c5295daa42bba7715e99a
208,207,227,975,206,500,000,000,000,000,000,000,000
9
Security fixes: expect final changes for release 1.75.3. * Fixed a debian security issue with fscanf() reading a string with possible buffer overflow. * There were also a few similar situations with sscanf().
input_end_bel(struct input_ctx *ictx) { log_debug("%s", __func__); ictx->input_end = INPUT_END_BEL; return (0); }
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
93,827,897,481,926,440,000,000,000,000,000,000,000
8
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
void ap_lua_load_request_lmodule(lua_State *L, apr_pool_t *p) { apr_hash_t *dispatch = apr_hash_make(p); apr_hash_set(dispatch, "puts", APR_HASH_KEY_STRING, makefun(&req_puts, APL_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "write", APR_HASH_KEY_STRING, makefun(&req_...
0
[ "CWE-20" ]
httpd
78eb3b9235515652ed141353d98c239237030410
207,897,794,272,874,100,000,000,000,000,000,000,000
277
*) SECURITY: CVE-2015-0228 (cve.mitre.org) mod_lua: A maliciously crafted websockets PING after a script calls r:wsupgrade() can cause a child process crash. [Edward Lu <Chaosed0 gmail.com>] Discovered by Guido Vranken <guidovranken gmail.com> Submitted by: Edward Lu Committed by: covener git-svn-id...
void gf_fs_remove_filter_register(GF_FilterSession *session, GF_FilterRegister *freg) { gf_list_del_item(session->registry, freg); gf_filter_sess_reset_graph(session, freg); }
0
[ "CWE-787" ]
gpac
da37ec8582266983d0ec4b7550ec907401ec441e
123,278,676,834,777,660,000,000,000,000,000,000,000
5
fixed crashes for very long path - cf #1908
static char *lxc_cgroup_get_hierarchy_path_data(const char *subsystem, struct cgfs_data *d) { struct cgroup_process_info *info = d->info; info = find_info_for_subsystem(info, subsystem); if (!info) return NULL; return info->cgroup_path; }
0
[ "CWE-59", "CWE-61" ]
lxc
592fd47a6245508b79fe6ac819fe6d3b2c1289be
87,068,706,095,106,730,000,000,000,000,000,000,000
8
CVE-2015-1335: Protect container mounts against symlinks When a container starts up, lxc sets up the container's inital fstree by doing a bunch of mounting, guided by the container configuration file. The container config is owned by the admin or user on the host, so we do not try to guard against bad entries. Howev...
static int test_x509_cmp_time(int idx) { ASN1_TIME t; int result; memset(&t, 0, sizeof(t)); t.type = x509_cmp_tests[idx].type; t.data = (unsigned char*)(x509_cmp_tests[idx].data); t.length = strlen(x509_cmp_tests[idx].data); t.flags = 0; result = X509_cmp_time(&t, &x509_cmp_tests[idx]....
0
[ "CWE-125" ]
openssl
4de66925203ca99189c842136ec4a623137ea447
105,429,592,620,859,560,000,000,000,000,000,000,000
19
Fix test code to not assume NUL terminated strings ASN.1 strings may not be NUL terminated. Don't assume they are. CVE-2021-3712 Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org>
int set_peername(int net, CLIENT *client) { struct sockaddr_storage addrin; struct sockaddr_storage netaddr; struct sockaddr_in *netaddr4 = NULL; struct sockaddr_in6 *netaddr6 = NULL; socklen_t addrinlen = sizeof( addrin ); struct addrinfo hints; struct addrinfo *ai = NULL; char peername[NI_MAXHOST]; char net...
0
[ "CWE-399", "CWE-310" ]
nbd
741495cb08503fd32a9d22648e63b64390c601f4
90,757,063,867,189,650,000,000,000,000,000,000,000
93
nbd-server: handle modern-style negotiation in a child process Previously, the modern style negotiation was carried out in the root server (listener) process before forking the actual client handler. This made it possible for a malfunctioning or evil client to terminate the root process simply by querying a non-existe...
dane_tlsa_load(SSL * ssl, host_item * host, dns_answer * dnsa) { dns_record * rr; dns_scan dnss; const char * hostnames[2] = { CS host->name, NULL }; int found = 0; if (DANESSL_init(ssl, NULL, hostnames) != 1) return tls_error(US"hostnames load", host, NULL); for (rr = dns_next_rr(dnsa, &dnss, RESET_ANSWERS); ...
0
[ "CWE-264" ]
exim
43ba2742c700d625dcdcdaf7bbadc2f72776854a
140,562,810,008,898,220,000,000,000,000,000,000,000
53
Fix CVE-2016-1531 Add keep_environment, add_environment. Change the working directory to "/" during the early startup phase. (cherry picked from commit bc3c7bb7d4aba3e563434e5627fe1f2176aa18c0) (cherry picked from commit 2b92b67bfc33efe05e6ff2ea3852731ac2273832) (cherry picked from commit 14b82c8b736c8ed24eda...
static void do_thread_regset_writeback(struct task_struct *task, const struct user_regset *regset) { if (regset->writeback) regset->writeback(task, regset, 1); }
0
[ "CWE-284", "CWE-264" ]
linux
4e7c22d447bb6d7e37bfe39ff658486ae78e8d77
38,156,175,474,504,436,000,000,000,000,000,000,000
6
x86, mm/ASLR: Fix stack randomization on 64-bit systems The issue is that the stack for processes is not properly randomized on 64 bit architectures due to an integer overflow. The affected function is randomize_stack_top() in file "fs/binfmt_elf.c": static unsigned long randomize_stack_top(unsigned long stack_top...
Status CopyVariable(int output_idx, OpKernelContext* ctx, const Tensor* t) { Tensor* output; Notification n; Status status; AllocatorAttributes attr; if (t->dtype() == DT_VARIANT) { attr.set_on_host(true); } TF_RETURN_IF_ERROR( ctx->allocate_output(output_idx, t->shape(), &output, attr)); if (...
0
[ "CWE-369" ]
tensorflow
ac117ee8a8ea57b73d34665cdf00ef3303bc0b11
119,029,566,248,513,250,000,000,000,000,000,000,000
37
Prevent division by 0 in `resource_variable_ops.cc` PiperOrigin-RevId: 387939939 Change-Id: Ib04902d63756633999959a70613f2eaa30c2c151
int get_user_page_nowait(struct task_struct *tsk, struct mm_struct *mm, unsigned long start, int write, struct page **page) { int flags = FOLL_TOUCH | FOLL_NOWAIT | FOLL_HWPOISON | FOLL_GET; if (write) flags |= FOLL_WRITE; return __get_user_pages(tsk, mm, start, 1, flags, page, NULL, NULL); }
0
[ "CWE-399" ]
kvm
5b40572ed5f0344b9dbee486a17c589ce1abe1a3
284,155,031,380,277,300,000,000,000,000,000,000,000
10
KVM: Ensure all vcpus are consistent with in-kernel irqchip settings If some vcpus are created before KVM_CREATE_IRQCHIP, then irqchip_in_kernel() and vcpu->arch.apic will be inconsistent, leading to potential NULL pointer dereferences. Fix by: - ensuring that no vcpus are installed when KVM_CREATE_IRQCHIP is called ...
bytes_rpartition_impl(PyBytesObject *self, Py_buffer *sep) /*[clinic end generated code: output=191b114cbb028e50 input=6588fff262a9170e]*/ { return stringlib_rpartition( (PyObject*) self, PyBytes_AS_STRING(self), PyBytes_GET_SIZE(self), sep->obj, (const char *)sep->buf, sep->len ); }
0
[ "CWE-190" ]
cpython
fd8614c5c5466a14a945db5b059c10c0fb8f76d9
222,732,766,968,659,800,000,000,000,000,000,000,000
9
bpo-30657: Fix CVE-2017-1000158 (#4664) Fixes possible integer overflow in PyBytes_DecodeEscape. Co-Authored-By: Jay Bosamiya <jaybosamiya@gmail.com>
bool Database::setShortcuts(const QByteArray &digest, QList<Shortcut> &shortcuts) { QSqlQuery query; bool updated = false; query.prepare(QLatin1String("DELETE FROM `shortcut` WHERE `digest` = ?")); query.addBindValue(digest); query.exec(); const QList<Shortcut> scs = shortcuts; query.prepare(QLatin1String("IN...
0
[ "CWE-310" ]
mumble
5632c35d6759f5e13a7dfe78e4ee6403ff6a8e3e
8,072,871,229,271,450,000,000,000,000,000,000,000
40
Explicitly remove file permissions for settings and DB
static unsigned long mmap_legacy_base(void) { return TASK_UNMAPPED_BASE + mmap_rnd(); }
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
340,008,185,246,359,200,000,000,000,000,000,000,000
4
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 ecall_take_snapshot(char **output, uint64_t *output_len) { int result = 0; size_t tmp_output_len; try { result = asylo::TakeSnapshot(output, &tmp_output_len); } catch (...) { LOG(FATAL) << "Uncaught exception in enclave"; } if (output_len) { *output_len = static_cast<uint64_t>(tmp_output_le...
0
[ "CWE-119", "CWE-787" ]
asylo
e582f36ac49ee11a21d23ad6a30c333092e0a94e
13,506,580,297,601,302,000,000,000,000,000,000,000
14
Check for output_len range in ecall_restore This may cause vulnerablity if pointing to trusted memory. This issue was reported by Qinkun Bao, Zhaofeng Chen, Mingshen Sun, and Kang Li from Baidu Security. PiperOrigin-RevId: 322476223 Change-Id: I8a6406e9f07a20582d4387bd9a3469dfa9cbcb12
Value ExpressionSetDifference::evaluate(const Document& root) const { const Value lhs = vpOperand[0]->evaluate(root); const Value rhs = vpOperand[1]->evaluate(root); if (lhs.nullish() || rhs.nullish()) { return Value(BSONNULL); } uassert(17048, str::stream() << "both operands o...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
272,900,182,035,229,470,000,000,000,000,000,000,000
32
SERVER-38070 fix infinite loop in agg expression
node_new_anychar_with_fixed_option(OnigOptionType option) { CtypeNode* ct; Node* node; node = node_new_anychar(); ct = CTYPE_(node); ct->options = option; NODE_STATUS_ADD(node, NST_FIXED_OPTION); return node; }
0
[ "CWE-476" ]
oniguruma
850bd9b0d8186eb1637722b46b12656814ab4ad2
336,645,361,866,479,660,000,000,000,000,000,000,000
11
fix #87: Read unknown address in onig_error_code_to_str()
nlist(const char *name, struct nlist *list) { int fd, n; if (list == NULL) { errno = EINVAL; return (-1); } fd = open(name, O_RDONLY, 0); if (fd < 0) return (-1); n = __fdnlist(fd, list); (void)close(fd); return (n); }
0
[ "CWE-125" ]
libbsd
9d917aad37778a9f4a96ba358415f077f3f36f3b
314,710,257,142,947,220,000,000,000,000,000,000,000
15
nlist: Fix out-of-bounds read on strtab When doing a string comparison for a symbol name from the string table, we should make sure we do a bounded comparison, otherwise a non-NUL terminated string might make the code read out-of-bounds. Warned-by: coverity
int unit_reload(Unit *u) { UnitActiveState state; Unit *following; assert(u); if (u->load_state != UNIT_LOADED) return -EINVAL; if (!unit_can_reload(u)) return -EBADR; state = unit_active_state(u); if (state == UNIT_RELOADING) ...
0
[ "CWE-269" ]
systemd
bf65b7e0c9fc215897b676ab9a7c9d1c688143ba
75,049,927,609,914,020,000,000,000,000,000,000,000
37
core: imply NNP and SUID/SGID restriction for DynamicUser=yes service Let's be safe, rather than sorry. This way DynamicUser=yes services can neither take benefit of, nor create SUID/SGID binaries. Given that DynamicUser= is a recent addition only we should be able to get away with turning this on, even though this i...
void blosc_cbuffer_versions(const void* cbuffer, int* version, int* versionlz) { uint8_t* _src = (uint8_t*)(cbuffer); /* current pos for source buffer */ /* Read the version info */ *version = (int)_src[0]; /* blosc format version */ *versionlz = (int)_src[1]; /* Lemp...
0
[ "CWE-787" ]
c-blosc2
c4c6470e88210afc95262c8b9fcc27e30ca043ee
143,461,517,973,440,100,000,000,000,000,000,000,000
8
Fixed asan heap buffer overflow when not enough space to write compressed block size.
static int only_spaces_and_periods(const char *path, size_t len, size_t skip) { if (len < skip) return 0; len -= skip; path += skip; while (len-- > 0) { char c = *(path++); if (c != ' ' && c != '.') return 0; } return 1; }
0
[ "CWE-125" ]
git
11a9f4d807a0d71dc6eff51bb87baf4ca2cccf1d
322,838,681,804,648,900,000,000,000,000,000,000,000
13
is_ntfs_dotgit: use a size_t for traversing string We walk through the "name" string using an int, which can wrap to a negative value and cause us to read random memory before our array (e.g., by creating a tree with a name >2GB, since "int" is still 32 bits even on most 64-bit platforms). Worse, this is easy to trigg...
int huge_pmd_unshare(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long *addr, pte_t *ptep) { pgd_t *pgd = pgd_offset(mm, *addr); p4d_t *p4d = p4d_offset(pgd, *addr); pud_t *pud = pud_offset(p4d, *addr); i_mmap_assert_write_locked(vma->vm_file->f_mapping); BUG_ON(page_count(virt_to_page(ptep)) =...
0
[ "CWE-362" ]
linux
17743798d81238ab13050e8e2833699b54e15467
18,606,624,542,845,735,000,000,000,000,000,000,000
18
mm/hugetlb: fix a race between hugetlb sysctl handlers There is a race between the assignment of `table->data` and write value to the pointer of `table->data` in the __do_proc_doulongvec_minmax() on the other thread. CPU0: CPU1: proc_sys_write ...
add_enc_ts_padata(krb5_context context, METHOD_DATA *md, krb5_principal client, krb5_s2k_proc keyproc, krb5_const_pointer keyseed, krb5_enctype *enctypes, unsigned netypes, krb5_salt *salt, krb5_data *s2kparams) { krb5_error_code ret; krb5_salt salt2; krb5_enctype *ep; si...
0
[ "CWE-320" ]
heimdal
2f7f3d9960aa6ea21358bdf3687cee5149aa35cf
34,753,111,467,666,690,000,000,000,000,000,000,000
47
CVE-2019-12098: krb5: always confirm PA-PKINIT-KX for anon PKINIT RFC8062 Section 7 requires verification of the PA-PKINIT-KX key excahnge when anonymous PKINIT is used. Failure to do so can permit an active attacker to become a man-in-the-middle. Introduced by a1ef548600c5bb51cf52a9a9ea12676506ede19f. First tagged...
static int loop_set_capacity(struct loop_device *lo) { if (unlikely(lo->lo_state != Lo_bound)) return -ENXIO; return figure_loop_size(lo, lo->lo_offset, lo->lo_sizelimit); }
0
[ "CWE-416", "CWE-362" ]
linux
ae6650163c66a7eff1acd6eb8b0f752dcfa8eba5
205,147,434,562,982,300,000,000,000,000,000,000,000
7
loop: fix concurrent lo_open/lo_release 范龙飞 reports that KASAN can report a use-after-free in __lock_acquire. The reason is due to insufficient serialization in lo_release(), which will continue to use the loop device even after it has decremented the lo_refcnt to zero. In the meantime, another process can come in, o...
int gnutls_x509_crt_verify_data(gnutls_x509_crt_t crt, unsigned int flags, const gnutls_datum_t * data, const gnutls_datum_t * signature) { int result; if (crt == NULL) { gnutls_assert(); return GNUTLS_E_INVALID_REQUEST; } result = _gnutls_x509_verify_signature(data, signature, crt); if ...
0
[]
gnutls
112d537da5f3500f14316db26d18c37d678a5e0e
280,690,931,014,865,200,000,000,000,000,000,000,000
19
some changes for 64bit machines.
JsVarInt jswrap_graphics_stringWidth(JsVar *parent, JsVar *var) { JsGraphics gfx; if (!graphicsGetFromVar(&gfx, parent)) return 0; JsVar *customWidth = 0; int customFirstChar = 0; if (gfx.data.fontSize == JSGRAPHICS_FONTSIZE_CUSTOM) { customWidth = jsvObjectGetChild(parent, JSGRAPHICS_CUSTOMFONT_WIDTH, 0);...
0
[ "CWE-125" ]
Espruino
8a44b04b584b3d3ab1cb68fed410f7ecb165e50e
126,191,715,922,365,750,000,000,000,000,000,000,000
35
Add height check for Graphics.createArrayBuffer(...vertical_byte:true) (fix #1421)
lyd_insert_sibling(struct lyd_node **sibling, struct lyd_node *node) { if (!sibling || !node) { LOGARG; return EXIT_FAILURE; } return lyd_insert_common((*sibling) ? (*sibling)->parent : NULL, sibling, node, 1); }
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
163,384,117,507,276,760,000,000,000,000,000,000,000
10
schema tree BUGFIX do not check features while still resolving schema Fixes #723
void get_window_functions_required_cursors( THD *thd, List<Item_window_func>& window_functions, List<Cursor_manager> *cursor_managers) { List_iterator_fast<Item_window_func> it(window_functions); Item_window_func* item_win_func; Item_sum *sum_func; while ((item_win_func= it++)) { Cursor_manage...
0
[]
server
ba4927e520190bbad763bb5260ae154f29a61231
35,724,521,267,086,554,000,000,000,000,000,000,000
77
MDEV-19398: Assertion `item1->type() == Item::FIELD_ITEM ... Window Functions code tries to minimize the number of times it needs to sort the select's resultset by finding "compatible" OVER (PARTITION BY ... ORDER BY ...) clauses. This employs compare_order_elements(). That function assumed that the order expressions...
static inline int snd_pcm_stream_proc_done(struct snd_pcm_str *pstr) { return 0; }
0
[ "CWE-416" ]
linux
362bca57f5d78220f8b5907b875961af9436e229
80,936,447,491,043,140,000,000,000,000,000,000,000
1
ALSA: pcm: prevent UAF in snd_pcm_info When the device descriptor is closed, the `substream->runtime` pointer is freed. But another thread may be in the ioctl handler, case SNDRV_CTL_IOCTL_PCM_INFO. This case calls snd_pcm_info_user() which calls snd_pcm_info() which accesses the now freed `substream->runtime`. Note:...
resolve_json_data_node_hash(struct lyd_node *siblings, struct parsed_pred pp) { struct lyd_node *ret = NULL; char *key_or_value = NULL; if (pp.schema->nodetype == LYS_LEAFLIST) { assert((pp.len == 1) && (pp.pred[0].name[0] == '.') && (pp.pred[0].nam_len == 1)); key_or_value = strndup(pp.pr...
0
[ "CWE-617" ]
libyang
5ce30801f9ccc372bbe9b7c98bb5324b15fb010a
296,516,812,570,734,020,000,000,000,000,000,000,000
19
schema tree BUGFIX freeing nodes with no module set Context must be passed explicitly for these cases. Fixes #1452
shutdownSrv(ptcpsrv_t *pSrv) { ptcplstn_t *pLstn, *lstnDel; ptcpsess_t *pSess, *sessDel; /* listeners */ pLstn = pSrv->pLstn; while(pLstn != NULL) { close(pLstn->sock); statsobj.Destruct(&(pLstn->stats)); /* now unlink listner */ lstnDel = pLstn; pLstn = pLstn->next; DBGPRINTF("imptcp shutdown listen ...
0
[ "CWE-190" ]
rsyslog
0381a0de64a5a048c3d48b79055bd9848d0c7fc2
82,630,840,307,677,990,000,000,000,000,000,000,000
34
imptcp: fix Segmentation Fault when octet count is to high
static void nfs4_xdr_enc_secinfo_no_name(struct rpc_rqst *req, struct xdr_stream *xdr, const void *data) { const struct nfs41_secinfo_no_name_args *args = data; struct compound_hdr hdr = { .minorversion = nfs4_xdr_minorversion(&args->seq_args), }; encode_compound_hdr(xdr, req, &hdr); encode_sequence(x...
0
[ "CWE-787" ]
linux
b4487b93545214a9db8cbf32e86411677b0cca21
55,374,748,132,631,750,000,000,000,000,000,000,000
15
nfs: Fix getxattr kernel panic and memory overflow Move the buffer size check to decode_attr_security_label() before memcpy() Only call memcpy() if the buffer is large enough Fixes: aa9c2669626c ("NFS: Client implementation of Labeled-NFS") Signed-off-by: Jeffrey Mitchell <jeffrey.mitchell@starlab.io> [Trond: clean u...
static void sctp_generate_sack_event(unsigned long data) { struct sctp_association *asoc = (struct sctp_association *) data; sctp_generate_timeout_event(asoc, SCTP_EVENT_TIMEOUT_SACK); }
0
[]
linux
196d67593439b03088913227093e374235596e33
320,548,224,836,182,860,000,000,000,000,000,000,000
5
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. ...
static void tls1_get_curvelist(SSL *s, int sess, const unsigned char **pcurves, size_t *pcurveslen) { if (sess) { *pcurves = s->session->tlsext_ellipticcurvelist; *pcurveslen = s->session->tlsext_ellipticcurvelist_length; return; } /* For Suite B mode only include P-256, P-384 */ switch (tls1_su...
0
[]
openssl
80bd7b41b30af6ee96f519e629463583318de3b0
218,436,018,364,798,100,000,000,000,000,000,000,000
37
Fix SRP ciphersuite DoS vulnerability. If a client attempted to use an SRP ciphersuite and it had not been set up correctly it would crash with a null pointer read. A malicious server could exploit this in a DoS attack. Thanks to Joonas Kuorilehto and Riku Hietamäki from Codenomicon for reporting this issue. CVE-201...
CImgList<T>& operator,(const CImg<t>& img) { return insert(img); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
119,079,223,897,391,000,000,000,000,000,000,000,000
3
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
Read an overview of the information in the headers of the given message sequence */ PHP_FUNCTION(imap_fetch_overview) { zval *streamind; zend_string *sequence; pils *imap_le_struct; zval myoverview; zend_string *address; zend_long status, flags = 0L; int argc = ZEND_NUM_ARGS(); if (zend_parse_parameters(arg...
0
[ "CWE-88" ]
php-src
336d2086a9189006909ae06c7e95902d7d5ff77e
179,129,731,120,768,470,000,000,000,000,000,000,000
82
Disable rsh/ssh functionality in imap by default (bug #77153)
save_file_ff(buf_T *buf) { buf->b_start_ffc = *buf->b_p_ff; buf->b_start_eol = buf->b_p_eol; buf->b_start_bomb = buf->b_p_bomb; // Only use free/alloc when necessary, they take time. if (buf->b_start_fenc == NULL || STRCMP(buf->b_start_fenc, buf->b_p_fenc) != 0) { vim_free(buf->b_start...
0
[ "CWE-120" ]
vim
7ce5b2b590256ce53d6af28c1d203fb3bc1d2d97
264,700,663,602,975,900,000,000,000,000,000,000,000
14
patch 8.2.4969: changing text in Visual mode may cause invalid memory access Problem: Changing text in Visual mode may cause invalid memory access. Solution: Check the Visual position after making a change.
virtual bool validate_value_in_record(THD *thd, const uchar *record) const { return false; }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
42,371,315,312,611,513,000,000,000,000,000,000,000
2
MDEV-24176 Server crashes after insert in the table with virtual column generated using date_format() and if() vcol_info->expr is allocated on expr_arena at parsing stage. Since expr item is allocated on expr_arena all its containee items must be allocated on expr_arena too. Otherwise fix_session_expr() will encounter...
HttpHeader::getListMember(Http::HdrType id, const char *member, const char separator) const { String header; const char *pos = NULL; const char *item; int ilen; int mlen = strlen(member); assert(any_registered_header(id)); header = getStrOrList(id); String result; while (strListGe...
0
[ "CWE-444" ]
squid
9c8e2a71aa1d3c159a319d9365c346c48dc783a5
87,870,304,999,249,040,000,000,000,000,000,000,000
23
Enforce token characters for field-name (#700) RFC 7230 defines field-name as a token. Request splitting and cache poisoning attacks have used non-token characters to fool broken HTTP agents behind or in front of Squid for years. This change should significantly reduce that abuse. If we discover exceptional situatio...
int kvm_emulate_halt(struct kvm_vcpu *vcpu) { ktime_t kt; long itc_diff; unsigned long vcpu_now_itc; unsigned long expires; struct hrtimer *p_ht = &vcpu->arch.hlt_timer; unsigned long cyc_per_usec = local_cpu_data->cyc_per_usec; struct vpd *vpd = to_host(vcpu->kvm, vcpu->arch.vpd); if (irqchip_in_kernel(vcpu-...
0
[ "CWE-399" ]
kvm
5b40572ed5f0344b9dbee486a17c589ce1abe1a3
18,083,751,241,207,461,000,000,000,000,000,000,000
47
KVM: Ensure all vcpus are consistent with in-kernel irqchip settings If some vcpus are created before KVM_CREATE_IRQCHIP, then irqchip_in_kernel() and vcpu->arch.apic will be inconsistent, leading to potential NULL pointer dereferences. Fix by: - ensuring that no vcpus are installed when KVM_CREATE_IRQCHIP is called ...
kadm5_delete_principal(void *server_handle, krb5_principal principal) { unsigned int ret; krb5_db_entry *kdb; osa_princ_ent_rec adb; kadm5_server_handle_t handle = server_handle; CHECK_HANDLE(server_handle); krb5_clear_error_message(handle->context); ...
0
[ "CWE-522", "CWE-255" ]
krb5
af0ed4df4dfae762ab5fb605f5a0c8f59cb4f6ca
140,793,762,716,142,960,000,000,000,000,000,000,000
34
Return only new keys in randkey [CVE-2014-5351] In kadmind's randkey operation, if a client specifies the keepold flag, do not include the preserved old keys in the response. CVE-2014-5351: An authenticated remote attacker can retrieve the current keys for a service principal when generating a new set of keys for th...
static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) { unsigned long val; void *ptr = NULL; if (!atomic_pool) { WARN(1, "coherent pool not initialised!\n"); return NULL; } val = gen_pool_alloc(atomic_pool, size); if (val) { phys_addr_t phys = gen_pool_virt_to_phys(atomic_pool, ...
0
[ "CWE-200" ]
linux
6829e274a623187c24f7cfc0e3d35f25d087fcc5
760,503,387,904,023,100,000,000,000,000,000,000
21
arm64: dma-mapping: always clear allocated buffers Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha, ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures. It turned out that some drivers rely on this 'feature'. Allocated buffer might be also exposed to userspace with dma_mmap() c...
static void ok_jpg_convert_data_unit(ok_jpg_decoder *decoder, int data_unit_x, int data_unit_y) { ok_jpg *jpg = decoder->jpg; ok_jpg_component *c = decoder->components; int x = data_unit_x * c->H * 8; int y = data_unit_y * c->V * 8; const int width = min(c->H * 8, decoder->in_width - x); const i...
0
[ "CWE-787" ]
ok-file-formats
a9cc1711dd4ed6a215038f1c5c03af0ef52c3211
213,611,971,077,643,650,000,000,000,000,000,000,000
41
ok_jpg: Fix invalid DHT (#11)
void l2cap_chan_del(struct l2cap_chan *chan, int err) { struct l2cap_conn *conn = chan->conn; __clear_chan_timer(chan); BT_DBG("chan %p, conn %p, err %d, state %s", chan, conn, err, state_to_string(chan->state)); chan->ops->teardown(chan, err); if (conn) { struct amp_mgr *mgr = conn->hcon->amp_mgr; ...
0
[ "CWE-787" ]
linux
e860d2c904d1a9f38a24eb44c9f34b8f915a6ea3
50,634,650,720,666,920,000,000,000,000,000,000,000
69
Bluetooth: Properly check L2CAP config option output buffer length Validate the output buffer length for L2CAP config requests and responses to avoid overflowing the stack buffer used for building the option blocks. Cc: stable@vger.kernel.org Signed-off-by: Ben Seri <ben@armis.com> Signed-off-by: Marcel Holtmann <mar...
int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf) { struct printf_spec spec = {0}; char *str, *end; const char *args = (const char *)bin_buf; if (WARN_ON_ONCE(size > INT_MAX)) return 0; str = buf; end = buf + size; #define get_arg(type) \ ({ \ typeof(type) value; ...
0
[ "CWE-200" ]
linux
91efafb1dd8f471177a3dddb4841d75d3df1cc46
57,066,717,968,506,380,000,000,000,000,000,000,000
186
lib/vsprintf: Replace space with '_' before crng is ready Before crng is ready, output of "%p" composes of "(ptrval)" and left padding spaces for alignment as no random address can be generated. This seems a little strange when default string width is larger than strlen("(ptrval)"). For example, when irq domain names...
nfp_flower_spawn_vnic_reprs(struct nfp_app *app, enum nfp_flower_cmsg_port_vnic_type vnic_type, enum nfp_repr_type repr_type, unsigned int cnt) { u8 nfp_pcie = nfp_cppcore_pcie_unit(app->pf->cpp); struct nfp_flower_priv *priv = app->priv; atomic_t *replies = &priv->reify_replies; struct nfp_flower_rep...
1
[ "CWE-400", "CWE-401" ]
linux
8ce39eb5a67aee25d9f05b40b673c95b23502e3e
217,251,661,972,250,980,000,000,000,000,000,000,000
100
nfp: flower: fix memory leak in nfp_flower_spawn_vnic_reprs In nfp_flower_spawn_vnic_reprs in the loop if initialization or the allocations fail memory is leaked. Appropriate releases are added. Fixes: b94524529741 ("nfp: flower: add per repr private data for LAG offload") Signed-off-by: Navid Emamdoost <navid.emamdo...
snprint_variable(char *buf, size_t buf_len, const oid * objid, size_t objidlen, const netsnmp_variable_list * variable) { size_t out_len = 0; if (sprint_realloc_variable((u_char **) & buf, &buf_len, &out_len, 0, objid, objidlen, variabl...
0
[ "CWE-59", "CWE-61" ]
net-snmp
4fd9a450444a434a993bc72f7c3486ccce41f602
286,764,882,420,374,100,000,000,000,000,000,000,000
13
CHANGES: snmpd: Stop reading and writing the mib_indexes/* files Caching directory contents is something the operating system should do and is not something Net-SNMP should do. Instead of storing a copy of the directory contents in ${tmp_dir}/mib_indexes/${n}, always scan a MIB directory.
get_n_bytes_readable_on_socket(evutil_socket_t fd) { #if defined(FIONREAD) && defined(_WIN32) unsigned long lng = EVBUFFER_MAX_READ; if (ioctlsocket(fd, FIONREAD, &lng) < 0) return -1; return (int)lng; #elif defined(FIONREAD) int n = EVBUFFER_MAX_READ; if (ioctl(fd, FIONREAD, &n) < 0) return -1; return n; #el...
1
[ "CWE-189" ]
libevent
841ecbd96105c84ac2e7c9594aeadbcc6fb38bc4
111,356,666,063,029,180,000,000,000,000,000,000,000
16
Fix CVE-2014-6272 in Libevent 2.1 For this fix, we need to make sure that passing too-large inputs to the evbuffer functions can't make us do bad things with the heap. Also, lower the maximum chunk size to the lower of off_t, size_t maximum. This is necessary since otherwise we could get into an infinite loop if we ...
int DecodeToKey(DecodedCert* cert, int verify) { int badDate = 0; int ret; if ( (ret = wc_GetPubX509(cert, verify, &badDate)) < 0) return ret; /* Determine if self signed */ cert->selfSigned = XMEMCMP(cert->issuerHash, cert->subjectHash, ...
0
[ "CWE-125", "CWE-345" ]
wolfssl
f93083be72a3b3d956b52a7ec13f307a27b6e093
19,883,184,113,893,437,000,000,000,000,000,000,000
23
OCSP: improve handling of OCSP no check extension
static MagickBooleanType IsDDS(const unsigned char *magick, const size_t length) { if (length < 4) return(MagickFalse); if (LocaleNCompare((char *) magick,"DDS ", 4) == 0) return(MagickTrue); return(MagickFalse); }
0
[ "CWE-20", "CWE-617" ]
ImageMagick
0c5b1e430a83ef793a7334bbbee408cf3c628699
5,174,008,433,254,709,500,000,000,000,000,000,000
8
Added check to prevent image being 0x0 (reported in #489).
static void sun4u_register_types(void) { type_register_static(&power_info); type_register_static(&ebus_info); type_register_static(&prom_info); type_register_static(&ram_info); type_register_static(&sun4u_type); type_register_static(&sun4v_type); }
0
[ "CWE-476" ]
qemu
ad280559c68360c9f1cd7be063857853759e6a73
103,347,454,574,681,750,000,000,000,000,000,000,000
10
sun4u: add power_mem_read routine Define skeleton 'power_mem_read' routine. Avoid NULL dereference. Reported-by: Fakhri Zulkifli <mohdfakhrizulkifli@gmail.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
GF_Err gf_seng_encode_context(GF_SceneEngine *seng, gf_seng_callback callback) { if (!seng) { GF_LOG(GF_LOG_ERROR, GF_LOG_SCENE, ("[SceneEngine] Cannot encode context. No seng provided\n")); return GF_BAD_PARAM; } return gf_sm_live_encode_scene_au(seng, callback, 1); }
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
260,624,821,075,785,000,000,000,000,000,000,000,000
8
fixed #2138
static int do_setlink(const struct sk_buff *skb, struct net_device *dev, struct ifinfomsg *ifm, struct netlink_ext_ack *extack, struct nlattr **tb, char *ifname, int status) { const struct net_device_ops *ops = dev->netdev_ops; int err; if (tb[IFLA_NET_NS_PID] || tb[IFLA_NET_NS_FD]) { stru...
0
[ "CWE-476" ]
linux
f428fe4a04cc339166c8bbd489789760de3a0cee
173,913,885,731,608,100,000,000,000,000,000,000,000
315
rtnetlink: give a user socket to get_target_net() This function is used from two places: rtnl_dump_ifinfo and rtnl_getlink. In rtnl_getlink(), we give a request skb into get_target_net(), but in rtnl_dump_ifinfo, we give a response skb into get_target_net(). The problem here is that NETLINK_CB() isn't initialized for ...
enumerate_providers_fn (const char * const name, const char * const desc, const char * const file, void * ud) /* {{{ */ { zval *zdesc = (zval *) ud; zval *tmp_array; MAKE_STD_ZVAL(tmp_array); array_init(tmp_array); add_assoc_string(tmp_array...
0
[ "CWE-119" ]
php-src
bdfe457a2c1b47209e32783b3a6447e81baf179a
320,621,141,410,246,860,000,000,000,000,000,000,000
21
Port for for bug #68552
static int sctp_getsockopt_assoc_ids(struct sock *sk, int len, char __user *optval, int __user *optlen) { struct sctp_sock *sp = sctp_sk(sk); struct sctp_association *asoc; struct sctp_assoc_ids *ids; u32 num = 0; if (sctp_style(sk, TCP)) return -EOPNOTSUPP; if (len < sizeof(struct sctp_assoc_ids)) ...
0
[ "CWE-20" ]
linux
726bc6b092da4c093eb74d13c07184b18c1af0f1
267,894,764,294,458,240,000,000,000,000,000,000,000
41
net/sctp: Validate parameter size for SCTP_GET_ASSOC_STATS Building sctp may fail with: In function ‘copy_from_user’, inlined from ‘sctp_getsockopt_assoc_stats’ at net/sctp/socket.c:5656:20: arch/x86/include/asm/uaccess_32.h:211:26: error: call to ‘copy_from_user_overflow’ declared with attribute error: c...
QPDFObjectHandle::replaceStreamData(PointerHolder<StreamDataProvider> provider, QPDFObjectHandle const& filter, QPDFObjectHandle const& decode_parms) { assertStream(); dynamic_cast<QPDF_Stream*>(m->obj.getPointer())->replaceStreamData( provider, filter, decode_parms); }
0
[ "CWE-399", "CWE-674" ]
qpdf
b4d6cf6836ce025ba1811b7bbec52680c7204223
176,036,157,994,398,550,000,000,000,000,000,000,000
8
Limit depth of nesting in direct objects (fixes #202) This fixes CVE-2018-9918.
static void test21(char const* infile, char const* password, char const* outfile, char const* outfile2) { qpdf_read(qpdf, infile, password); qpdf_init_write(qpdf, outfile); qpdf_set_static_ID(qpdf, QPDF_TRUE); qpdf_set_static_aes_IV(qpdf, QPDF_TRUE); qpdf_set_preserve_unreferenced_obj...
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
45,639,673,198,762,180,000,000,000,000,000,000,000
13
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 ...
static void vnc_write_pixels_copy(VncState *vs, struct PixelFormat *pf, void *pixels, int size) { vnc_write(vs, pixels, size); }
1
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
285,499,063,674,577,920,000,000,000,000,000,000,000
5
pixman/vnc: use pixman images in vnc. The vnc code uses *three* DisplaySurfaces: First is the surface of the actual QemuConsole, usually the guest screen, but could also be a text console (monitor/serial reachable via Ctrl-Alt-<nr> keys). This is left as-is. Second is the current server's view of the screen content...
quantify_node(Node **np, int lower, int upper) { Node* tmp = node_new_quantifier(lower, upper, 0); if (IS_NULL(tmp)) return ONIGERR_MEMORY; NQTFR(tmp)->target = *np; *np = tmp; return 0; }
0
[ "CWE-476" ]
Onigmo
00cc7e28a3ed54b3b512ef3b58ea737a57acf1f9
114,967,800,146,038,680,000,000,000,000,000,000,000
8
Fix SEGV in onig_error_code_to_str() (Fix #132) When onig_new(ONIG_SYNTAX_PERL) fails with ONIGERR_INVALID_GROUP_NAME, onig_error_code_to_str() crashes. onig_scan_env_set_error_string() should have been used when returning ONIGERR_INVALID_GROUP_NAME.
flatpak_dir_find_local_related (FlatpakDir *self, FlatpakDecomposed *ref, const char *remote_name, gboolean deployed, GCancellable *cancellable, ...
0
[ "CWE-74" ]
flatpak
fb473cad801c6b61706353256cab32330557374a
6,145,602,911,404,818,000,000,000,000,000,000,000
59
dir: Pass environment via bwrap --setenv when running apply_extra This means we can systematically pass the environment variables through bwrap(1), even if it is setuid and thus is filtering out security-sensitive environment variables. bwrap ends up being run with an empty environment instead. As with the previous c...
static void srpt_release_channel_work(struct work_struct *w) { struct srpt_rdma_ch *ch; struct srpt_device *sdev; struct se_session *se_sess; ch = container_of(w, struct srpt_rdma_ch, release_work); pr_debug("ch = %p; ch->sess = %p; release_done = %p\n", ch, ch->sess, ch->release_done); sdev = ch->sport->sde...
0
[ "CWE-200", "CWE-476" ]
linux
51093254bf879bc9ce96590400a87897c7498463
7,859,207,060,899,916,000,000,000,000,000,000,000
41
IB/srpt: Simplify srpt_handle_tsk_mgmt() Let the target core check task existence instead of the SRP target driver. Additionally, let the target core check the validity of the task management request instead of the ib_srpt driver. This patch fixes the following kernel crash: BUG: unable to handle kernel NULL pointer...
void deleteURL(struct URL *url) { destroyURL(url); free(url); }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
shellinabox
4f0ecc31ac6f985e0dd3f5a52cbfc0e9251f6361
127,292,838,303,163,700,000,000,000,000,000,000,000
4
Rolling code for version 2.21
void machine_shutdown(void) { #ifdef CONFIG_HOTPLUG_CPU int cpu; for_each_online_cpu(cpu) { if (cpu != smp_processor_id()) cpu_down(cpu); } #endif #ifdef CONFIG_KEXEC kexec_disable_iosapic(); #endif }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
255,241,936,195,117,700,000,000,000,000,000,000,000
14
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
static struct Magick_info { Magick_info() { Magick::InitializeMagick("");
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
93,349,038,081,843,640,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
static int interface_get_cursor_command(QXLInstance *sin, struct QXLCommandExt *ext) { PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); QXLCursorRing *ring; QXLCommand *cmd; int notify; switch (qxl->mode) { case QXL_MODE_COMPAT: case QXL_MODE_NATIVE: case QXL_MODE_UNDEFINED...
0
[]
qemu-kvm
5ff4e36c804157bd84af43c139f8cd3a59722db9
182,932,701,432,593,100,000,000,000,000,000,000,000
35
qxl: async io support using new spice api Some of the QXL port i/o commands are waiting for the spice server to complete certain actions. Add async versions for these commands, so we don't block the vcpu while the spice server processses the command. Instead the qxl device will raise an IRQ when done. The async comm...
void security_msg_msg_free(struct msg_msg *msg) { security_ops->msg_msg_free_security(msg); }
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
43,595,993,922,927,930,000,000,000,000,000,000,000
4
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
TEST_P(Http2RingHashIntegrationTest, CookieRoutingWithCookieNoTtl) { config_helper_.addConfigModifier( [&](envoy::extensions::filters::network::http_connection_manager::v3::HttpConnectionManager& hcm) -> void { auto* hash_policy = hcm.mutable_route_config() ...
0
[ "CWE-400" ]
envoy
0e49a495826ea9e29134c1bd54fdeb31a034f40c
147,518,501,545,026,070,000,000,000,000,000,000,000
29
http/2: add stats and stream flush timeout (#139) This commit adds a new stream flush timeout to guard against a remote server that does not open window once an entire stream has been buffered for flushing. Additional stats have also been added to better understand the codecs view of active streams as well as amount o...
SPL_METHOD(SplFileObject, __construct) { spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis() TSRMLS_CC); zend_bool use_include_path = 0; char *p1, *p2; char *tmp_path; int tmp_path_len; zend_error_handling error_handling; zend_replace_error_handling(EH_THROW, spl_ce_...
0
[ "CWE-190" ]
php-src
7245bff300d3fa8bacbef7897ff080a6f1c23eba
313,539,003,096,450,350,000,000,000,000,000,000,000
58
Fix bug #72262 - do not overflow int
TEST_F(BrotliDecompressorImplTest, WrongInput) { Buffer::OwnedImpl buffer; Buffer::OwnedImpl output_buffer; const char zeros[20]{}; Buffer::BufferFragmentImpl* frag = new Buffer::BufferFragmentImpl( zeros, 20, [](const void*, size_t, const Buffer::BufferFragmentImpl* frag) { delete frag; }); buffer.add...
0
[]
envoy
cb4ef0b09200c720dfdb07e097092dd105450343
210,224,556,651,992,370,000,000,000,000,000,000,000
13
decompressors: stop decompressing upon excessive compression ratio (#733) Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@intel.com> Co-authored-by: Ryan Hamilton <rch@google.com> Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
static void testReloadExternalMod(CuTest *tc) { augeas *aug = NULL; int r, created; const char *aug_root, *s; char *mtime; aug = setup_writable_hosts(tc); r = aug_load(aug); CuAssertRetSuccess(tc, r); r = aug_get(aug, "/augeas/files/etc/hosts/mtime", &s); CuAssertIntEquals(tc, 1, ...
0
[]
augeas
1a66739c3fc14b3257af5d4a32d0a2a714a7b39d
161,053,471,832,689,440,000,000,000,000,000,000,000
54
* src/transform.c (xread_file): catch failed fopen, e.g. EACCES
switch (type) { #ifdef ELFCORE case ET_CORE: flags |= FLAGS_IS_CORE; if (dophn_core(ms, clazz, swap, fd, (off_t)elf_getu(swap, elfhdr.e_phoff), elf_getu16(swap, elfhdr.e_phnum), (size_t)elf_getu16(swap, elfhdr.e_phentsize), fsize, &flags) == -1) return -1; break; #endif case ET_EXEC...
1
[ "CWE-399", "CWE-284" ]
file
b4c01141e5367f247b84dcaf6aefbb4e741842b8
102,774,582,025,802,750,000,000,000,000,000,000,000
35
- limit the number of program and section header number of sections to be processed to avoid excessive processing time. - if a bad note is found, return 0 to stop processing immediately.
static bool img_request_layered_test(struct rbd_img_request *img_request) { return test_bit(IMG_REQ_LAYERED, &img_request->flags) != 0; }
0
[ "CWE-863" ]
linux
f44d04e696feaf13d192d942c4f14ad2e117065a
290,392,597,857,355,340,000,000,000,000,000,000,000
4
rbd: require global CAP_SYS_ADMIN for mapping and unmapping It turns out that currently we rely only on sysfs attribute permissions: $ ll /sys/bus/rbd/{add*,remove*} --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add_single_major --w------- 1 ro...
static inline char const* getStr(tr_variant const* v) { TR_ASSERT(tr_variantIsString(v)); return tr_variant_string_get_string(&v->val.s); }
0
[ "CWE-416", "CWE-284" ]
transmission
2123adf8e5e1c2b48791f9d22fc8c747e974180e
22,162,460,547,559,205,000,000,000,000,000,000,000
6
CVE-2018-10756: Fix heap-use-after-free in tr_variantWalk In libtransmission/variant.c, function tr_variantWalk, when the variant stack is reallocated, a pointer to the previously allocated memory region is kept. This address is later accessed (heap use-after-free) while walking back down the stack, causing the applic...
static void rdp_write_bitmap_cache_cell_info(wStream* s, BITMAP_CACHE_V2_CELL_INFO* cellInfo) { UINT32 info; /** * numEntries is in the first 31 bits, while the last bit (k) * is used to indicate a persistent bitmap cache. */ info = (cellInfo->numEntries | (cellInfo->persistent << 31)); Stream_Write_UINT32(s,...
0
[ "CWE-119", "CWE-125" ]
FreeRDP
3627aaf7d289315b614a584afb388f04abfb5bbf
315,141,264,147,868,400,000,000,000,000,000,000,000
10
Fixed #6011: Bounds check in rdp_read_font_capability_set
static void async_set_pht_entry_from_index(volatile page_hash_table db, size_t index) { while (AO_test_and_set_acquire(&GC_fault_handler_lock) == AO_TS_SET) { /* empty */ } /* Could also revert to set_pht_entry_from_index_safe if initial */ /* GC...
0
[ "CWE-119" ]
bdwgc
7292c02fac2066d39dd1bcc37d1a7054fd1e32ee
105,720,522,299,275,370,000,000,000,000,000,000,000
11
Fix malloc routines to prevent size value wrap-around See issue #135 on Github. * allchblk.c (GC_allochblk, GC_allochblk_nth): Use OBJ_SZ_TO_BLOCKS_CHECKED instead of OBJ_SZ_TO_BLOCKS. * malloc.c (GC_alloc_large): Likewise. * alloc.c (GC_expand_hp_inner): Type of "bytes" local variable changed from word to size_t; ca...
pdf14_disable_clist_device(gs_memory_t *mem, gs_gstate * pgs, gx_device * dev) { gx_device_forward * pdev = (gx_device_forward *)dev; gx_device * target = pdev->target; if_debug0m('v', pgs->memory, "[v]pdf14_disable_clist_device\n"); /* * To disable the action of t...
0
[ "CWE-416" ]
ghostpdl
90fd0c7ca3efc1ddff64a86f4104b13b3ac969eb
308,144,766,790,905,830,000,000,000,000,000,000,000
18
Bug 697456. Dont create new ctx when pdf14 device reenabled This bug had yet another weird case where the user created a file that pushed the pdf14 device twice. We were in that case, creating a new ctx and blowing away the original one with out proper clean up. To avoid, only create a new one when we need it.
file_softmagic(struct magic_set *ms, const unsigned char *buf, size_t nbytes, size_t level, int mode, int text) { struct mlist *ml; int rv, printed_something = 0, need_separator = 0; for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) if ((rv = match(ms, ml->magic, ml->nmagic, buf, nbytes, 0, mod...
0
[ "CWE-399" ]
file
90018fe22ff8b74a22fcd142225b0a00f3f12677
145,641,230,812,304,970,000,000,000,000,000,000,000
14
bump recursion to 15, and allow it to be set from the command line.
ambsdtar_build_argv( char *bsdtar_realpath, application_argument_t *argument, char *timestamps, char **file_exclude, char **file_include, int command) { int nb_exclude = 0; int nb_include = 0; char *dirname; char tmppath[PATH_MAX]; GPtrArray *arg...
0
[ "CWE-264" ]
amanda
4bf5b9b356848da98560ffbb3a07a9cb5c4ea6d7
284,934,167,598,756,900,000,000,000,000,000,000,000
68
* Add a /etc/amanda-security.conf file git-svn-id: https://svn.code.sf.net/p/amanda/code/amanda/branches/3_3@6486 a8d146d6-cc15-0410-8900-af154a0219e0
static void rcu_free_wq(struct rcu_head *rcu) { struct workqueue_struct *wq = container_of(rcu, struct workqueue_struct, rcu); if (!(wq->flags & WQ_UNBOUND)) free_percpu(wq->cpu_pwqs); else free_workqueue_attrs(wq->unbound_attrs); kfree(wq->rescuer); kfree(wq); }
0
[ "CWE-200" ]
tip
dfb4357da6ddbdf57d583ba64361c9d792b0e0b1
306,514,704,136,099,060,000,000,000,000,000,000,000
13
time: Remove CONFIG_TIMER_STATS Currently CONFIG_TIMER_STATS exposes process information across namespaces: kernel/time/timer_list.c print_timer(): SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); /proc/timer_list: #11: <0000000000000000>, hrtimer_wakeup, S:01, do_nanosleep, cron/2570 Given that the trac...
set_ssl_ciphers(SCHANNEL_CRED *schannel_cred, char *ciphers) { char *startCur = ciphers; int algCount = 0; static ALG_ID algIds[45]; /*There are 45 listed in the MS headers*/ while(startCur && (0 != *startCur) && (algCount < 45)) { long alg = strtol(startCur, 0, 0); if(!alg) alg = get_alg_id_by_na...
0
[ "CWE-290" ]
curl
b09c8ee15771c614c4bf3ddac893cdb12187c844
314,412,685,738,406,020,000,000,000,000,000,000,000
21
vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() To make sure we set and extract the correct session. Reported-by: Mingtao Yang Bug: https://curl.se/docs/CVE-2021-22890.html CVE-2021-22890
static void test_valid_user_group_name_or_numeric_relaxed(void) { log_info("/* %s */", __func__); assert_se(!valid_user_group_name(NULL, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX)); assert_se(!valid_user_group_name("", VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX)); assert_se(valid_user_gr...
0
[ "CWE-269" ]
systemd
156a5fd297b61bce31630d7a52c15614bf784843
296,478,770,271,846,100,000,000,000,000,000,000,000
37
basic/user-util: always use base 10 for user/group numbers We would parse numbers with base prefixes as user identifiers. For example, "0x2b3bfa0" would be interpreted as UID==45334432 and "01750" would be interpreted as UID==1000. This parsing was used also in cases where either a user/group name or number may be spe...
static void remove_tempfile_on_signal(int signo) { remove_tempfile(); signal(SIGINT, SIG_DFL); raise(signo); }
0
[ "CWE-119" ]
git
fd55a19eb1d49ae54008d932a65f79cd6fda45c9
317,633,073,798,569,940,000,000,000,000,000,000,000
6
Fix buffer overflow in git diff If PATH_MAX on your system is smaller than a path stored, it may cause buffer overflow and stack corruption in diff_addremove() and diff_change() functions when running git-diff Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
static int can_run_requests(h2o_http2_conn_t *conn) { return conn->num_streams.pull.half_closed + conn->num_streams.push.half_closed < conn->super.ctx->globalconf->http2.max_concurrent_requests_per_connection; }
0
[ "CWE-703" ]
h2o
1c0808d580da09fdec5a9a74ff09e103ea058dd4
105,028,882,564,528,470,000,000,000,000,000,000,000
5
h2: use after free on premature connection close #920 lib/http2/connection.c:on_read() calls parse_input(), which might free `conn`. It does so in particular if the connection preface isn't the expected one in expect_preface(). `conn` is then used after the free in `if (h2o_timeout_is_linked(&conn->_write.timeout_entr...
void CoreUserInputHandler::handlePrint(const BufferInfo &bufferInfo, const QString &msg) { if (bufferInfo.bufferName().isEmpty() || !bufferInfo.acceptsRegularMessages()) return; // server buffer QByteArray encMsg = channelEncode(bufferInfo.bufferName(), msg); emit displayMsg(Message::Info, bufferI...
0
[ "CWE-399" ]
quassel
b5e38970ffd55e2dd9f706ce75af9a8d7730b1b8
260,477,366,256,413,320,000,000,000,000,000,000,000
8
Improve the message-splitting algorithm for PRIVMSG and CTCP This introduces a new message splitting algorithm based on QTextBoundaryFinder. It works by first starting with the entire message to be sent, encoding it, and checking to see if it is over the maximum message length. If it is, it uses QTBF to find the wor...
ClientRequestContext::sslBumpAccessCheckDone(const Acl::Answer &answer) { if (!httpStateIsValid()) return; const Ssl::BumpMode bumpMode = answer.allowed() ? static_cast<Ssl::BumpMode>(answer.kind) : Ssl::bumpSplice; http->sslBumpNeed(bumpMode); // for processReque...
0
[ "CWE-116" ]
squid
7024fb734a59409889e53df2257b3fc817809fb4
48,748,426,489,042,370,000,000,000,000,000,000,000
21
Handle more Range requests (#790) Also removed some effectively unused code.
static bgp_attr_parse_ret_t bgp_attr_origin(struct bgp_attr_parser_args *args) { struct peer *const peer = args->peer; struct attr *const attr = args->attr; const bgp_size_t length = args->length; /* If any recognized attribute has Attribute Length that conflicts with the expected length (based on the attribut...
0
[ "CWE-20", "CWE-436" ]
frr
943d595a018e69b550db08cccba1d0778a86705a
320,958,821,473,377,950,000,000,000,000,000,000,000
37
bgpd: don't use BGP_ATTR_VNC(255) unless ENABLE_BGP_VNC_ATTR is defined Signed-off-by: Lou Berger <lberger@labn.net>
static int uvesafb_vbe_getedid(struct uvesafb_ktask *task, struct fb_info *info) { struct uvesafb_par *par = info->par; int err = 0; if (noedid || par->vbe_ib.vbe_version < 0x0300) return -EINVAL; task->t.regs.eax = 0x4f15; task->t.regs.ebx = 0; task->t.regs.ecx = 0; task->t.buf_len = 0; task->t.flags = 0; ...
0
[ "CWE-190" ]
linux
9f645bcc566a1e9f921bdae7528a01ced5bc3713
282,574,319,094,220,860,000,000,000,000,000,000,000
60
video: uvesafb: Fix integer overflow in allocation cmap->len can get close to INT_MAX/2, allowing for an integer overflow in allocation. This uses kmalloc_array() instead to catch the condition. Reported-by: Dr Silvio Cesare of InfoSect <silvio.cesare@gmail.com> Fixes: 8bdb3a2d7df48 ("uvesafb: the driver core") Cc: s...
GF_Err iods_box_read(GF_Box *s, GF_BitStream *bs) { GF_Err e; u32 descSize; char *desc; GF_ObjectDescriptorBox *ptr = (GF_ObjectDescriptorBox *)s; //use the OD codec... descSize = (u32) (ptr->size); desc = (char*)gf_malloc(sizeof(char) * descSize); if (!desc) return GF_OUT_OF_MEM; gf_bs_read_data(bs, desc, d...
0
[ "CWE-787" ]
gpac
77510778516803b7f7402d7423c6d6bef50254c3
276,293,532,365,947,980,000,000,000,000,000,000,000
28
fixed #2255
static void uvesafb_check_limits(struct fb_var_screeninfo *var, struct fb_info *info) { const struct fb_videomode *mode; struct uvesafb_par *par = info->par; /* * If pixclock is set to 0, then we're using default BIOS timings * and thus don't have to perform any checks here. */ if (!var->pixclock) return...
0
[ "CWE-190" ]
linux
9f645bcc566a1e9f921bdae7528a01ced5bc3713
212,575,009,304,844,700,000,000,000,000,000,000,000
35
video: uvesafb: Fix integer overflow in allocation cmap->len can get close to INT_MAX/2, allowing for an integer overflow in allocation. This uses kmalloc_array() instead to catch the condition. Reported-by: Dr Silvio Cesare of InfoSect <silvio.cesare@gmail.com> Fixes: 8bdb3a2d7df48 ("uvesafb: the driver core") Cc: s...
selaComputeCompositeParameters(const char *fileout) { char *str, *nameh1, *nameh2, *namev1, *namev2; char buf[L_BUF_SIZE]; l_int32 size, size1, size2, len; SARRAY *sa; SELA *selabasic, *selacomb; selabasic = selaAddBasic(NULL); selacomb = selaAddDwaCombs(NULL); sa = sarrayCreate(64); for (...
1
[ "CWE-119", "CWE-787" ]
leptonica
ee301cb2029db8a6289c5295daa42bba7715e99a
250,991,317,183,238,180,000,000,000,000,000,000,000
40
Security fixes: expect final changes for release 1.75.3. * Fixed a debian security issue with fscanf() reading a string with possible buffer overflow. * There were also a few similar situations with sscanf().
static void tcp_v4_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32 ts, int oif, struct tcp_md5sig_key *key, int reply_flags) { struct tcphdr *th = tcp_hdr(skb); struct { struct tcphdr th; __be32 opt[(TCPOLEN_TSTAMP_ALIGNED >> 2) #ifdef CONFIG_TCP_MD5SIG + (TCPOLEN_MD5SIG_AL...
0
[ "CWE-362" ]
linux-2.6
f6d8bd051c391c1c0458a30b2a7abcd939329259
328,055,619,060,689,200,000,000,000,000,000,000,000
69
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...
TEST_F(QueryPlannerTest, MultikeyTwoSharedPrefixesTwoElemMatch) { // true means multikey addIndex(BSON("a.b" << 1 << "a.c" << 1 << "d.e" << 1 << "d.f" << 1), true); runQuery(fromjson("{a: {$elemMatch: {b: 1, c: 1}}, d: {$elemMatch: {e: 1, f: 1}}}")); assertNumSolutions(2U); assertSolutionExists("{c...
0
[ "CWE-834" ]
mongo
94d0e046baa64d1aa1a6af97e2d19bb466cc1ff5
103,276,985,680,134,330,000,000,000,000,000,000,000
16
SERVER-38164 $or pushdown optimization does not correctly handle $not within an $elemMatch
static int io_recvmsg(struct io_kiocb *req, struct io_kiocb **nxt, bool force_nonblock) { #if defined(CONFIG_NET) struct io_async_msghdr *kmsg = NULL; struct socket *sock; int ret; if (unlikely(req->ctx->flags & IORING_SETUP_IOPOLL)) return -EINVAL; sock = sock_from_file(req->file, &ret); if (sock) { ...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
94,816,203,001,854,680,000,000,000,000,000,000,000
74
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>