func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
tty_cmd_alignmenttest(struct tty *tty, const struct tty_ctx *ctx) { struct window_pane *wp = ctx->wp; struct screen *s = wp->screen; u_int i, j; if (ctx->bigger) { wp->flags |= PANE_REDRAW; return; } tty_attributes(tty, &grid_default_cell, wp); tty_region_pane(tty, ctx, 0, screen_size_y(s) - 1); tty_...
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
326,632,482,447,316,700,000,000,000,000,000,000,000
22
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
JBIG2MMRDecoder::JBIG2MMRDecoder() { str = nullptr; byteCounter = 0; reset(); }
0
[ "CWE-476", "CWE-190" ]
poppler
27354e9d9696ee2bc063910a6c9a6b27c5184a52
11,978,759,322,251,343,000,000,000,000,000,000,000
6
JBIG2Stream: Fix crash on broken file https://github.com/jeffssh/CVE-2021-30860 Thanks to David Warren for the heads up
static ssize_t show_contrast(struct device *cd, struct device_attribute *attr, char *buf) { struct video_device *vdev = container_of(cd, struct video_device, dev); struct usb_usbvision *usbvision = video_get_drvdata(vdev); struct v4l2_control ctrl; ctrl.id = V4L2_CID_CONTRAST; ctrl.value = 0; if (usbvis...
0
[ "CWE-17" ]
media_tree
fa52bd506f274b7619955917abfde355e3d19ffe
38,331,374,851,690,250,000,000,000,000,000,000,000
13
[media] usbvision: fix crash on detecting device with invalid configuration The usbvision driver crashes when a specially crafted usb device with invalid number of interfaces or endpoints is detected. This fix adds checks that the device has proper configuration expected by the driver. Reported-by: Ralf Spenneberg <r...
yang_check_identities(struct lys_module *module, struct unres_schema *unres) { uint32_t i, size, base_size; uint8_t j; size = module->ident_size; module->ident_size = 0; for (i = 0; i < size; ++i) { base_size = module->ident[i].base_size; module->ident[i].base_size = 0; for ...
0
[ "CWE-415" ]
libyang
d9feacc4a590d35dbc1af21caf9080008b4450ed
178,813,583,419,941,800,000,000,000,000,000,000,000
35
yang parser BUGFIX double free Fixes #742
static int decode_pathname(struct xdr_stream *xdr, struct nfs4_pathname *path) { u32 n; __be32 *p; int status = 0; p = xdr_inline_decode(xdr, 4); if (unlikely(!p)) return -EIO; n = be32_to_cpup(p); if (n == 0) goto root_path; dprintk("pathname4: "); if (n > NFS4_PATHNAME_MAXCOMPONENTS) { dprintk("cannot...
0
[ "CWE-787" ]
linux
b4487b93545214a9db8cbf32e86411677b0cca21
148,965,901,625,376,320,000,000,000,000,000,000,000
41
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...
void cql_server::response::write_string_multimap(std::multimap<sstring, sstring> string_map) { std::vector<sstring> keys; for (auto it = string_map.begin(), end = string_map.end(); it != end; it = string_map.upper_bound(it->first)) { keys.push_back(it->first); } write_short(cast_if_fits<uint16_t...
0
[]
scylladb
1c2eef384da439b0457b6d71c7e37d7268e471cb
122,656,085,271,623,330,000,000,000,000,000,000,000
17
transport/server.cc: Return correct size of decompressed lz4 buffer An incorrect size is returned from the function, which could lead to crashes or undefined behavior. Fix by erroring out in these cases. Fixes #11476
get_qf_loc_list(int is_qf, win_T *wp, typval_T *what_arg, typval_T *rettv) { if (what_arg->v_type == VAR_UNKNOWN) { if (rettv_list_alloc(rettv) == OK) if (is_qf || wp != NULL) (void)get_errorlist(NULL, wp, -1, 0, rettv->vval.v_list); } else { if (rettv_dict_alloc(rettv) == OK) if (is_q...
0
[ "CWE-416" ]
vim
4f1b083be43f351bc107541e7b0c9655a5d2c0bb
30,723,940,297,873,046,000,000,000,000,000,000,000
25
patch 9.0.0322: crash when no errors and 'quickfixtextfunc' is set Problem: Crash when no errors and 'quickfixtextfunc' is set. Solution: Do not handle errors if there aren't any.
const Type_handler *type_handler() const { return Type_handler_hybrid_field_type::type_handler(); }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
32,180,207,160,791,334,000,000,000,000,000,000,000
2
MDEV-26402: A SEGV in Item_field::used_tables/update_depend_map_for_order... When doing condition pushdown from HAVING into WHERE, Item_equal::create_pushable_equalities() calls item->set_extraction_flag(IMMUTABLE_FL) for constant items. Then, Item::cleanup_excluding_immutables_processor() checks for this flag to see ...
explicit FormatInt(ULongLong value) : str_(format_decimal(value)) {}
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
294,361,309,165,815,550,000,000,000,000,000,000,000
1
Fix segfault on complex pointer formatting (#642)
static int proc_pid_personality(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) { seq_printf(m, "%08x\n", task->personality); return 0; }
0
[ "CWE-20", "CWE-362", "CWE-416" ]
linux
86acdca1b63e6890540fa19495cfc708beff3d8b
315,971,038,062,160,500,000,000,000,000,000,000,000
6
fix autofs/afs/etc. magic mountpoint breakage We end up trying to kfree() nd.last.name on open("/mnt/tmp", O_CREAT) if /mnt/tmp is an autofs direct mount. The reason is that nd.last_type is bogus here; we want LAST_BIND for everything of that kind and we get LAST_NORM left over from finding parent directory. So make...
TfLiteStatus ResizeOutputTensor(TfLiteContext* context, const RuntimeShape& extended_lhs_shape, const RuntimeShape& extended_rhs_shape, bool adj_x, bool adj_y, int output_rank, TfLiteTensor* o...
0
[ "CWE-125", "CWE-787" ]
tensorflow
1970c2158b1ffa416d159d03c3370b9a462aee35
187,223,713,278,299,560,000,000,000,000,000,000,000
25
[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 io_poll_wake(struct wait_queue_entry *wait, unsigned mode, int sync, void *key) { struct io_poll_iocb *poll = container_of(wait, struct io_poll_iocb, wait); struct io_kiocb *req = container_of(poll, struct io_kiocb, poll); struct io_ring_ctx *ctx = req->ctx; __poll_t mask = key_to_poll(key); u...
0
[]
linux
181e448d8709e517c9c7b523fcd209f24eb38ca7
27,725,579,184,758,016,000,000,000,000,000,000,000
36
io_uring: async workers should inherit the user creds If we don't inherit the original task creds, then we can confuse users like fuse that pass creds in the request header. See link below on identical aio issue. Link: https://lore.kernel.org/linux-fsdevel/26f0d78e-99ca-2f1b-78b9-433088053a61@scylladb.com/T/#u Signed...
generate_sub_request(uint8_t* qname, size_t qnamelen, uint16_t qtype, uint16_t qclass, struct module_qstate* qstate, int id, struct iter_qstate* iq, enum iter_state initial_state, enum iter_state finalstate, struct module_qstate** subq_ret, int v) { struct module_qstate* subq = NULL; struct iter_qstate* subiq = ...
1
[ "CWE-400" ]
unbound
ba0f382eee814e56900a535778d13206b86b6d49
69,215,327,055,018,010,000,000,000,000,000,000,000
73
- CVE-2020-12662 Unbound can be tricked into amplifying an incoming query into a large number of queries directed to a target. - CVE-2020-12663 Malformed answers from upstream name servers can be used to make Unbound unresponsive.
static bool ShouldSwapFreeAndContract( const Labels& labels, const std::vector<DimensionType>& label_types) { // Check that ordering is according to dimension type, with the role of // free and contract dimensions swapped. gtl::InlinedVector<int, 5> remap = {0, 1, 3, 2, 4}; for (int i = 0; i + 1...
0
[ "CWE-703", "CWE-824" ]
tensorflow
f09caa532b6e1ac8d2aa61b7832c78c5b79300c6
72,478,770,063,378,710,000,000,000,000,000,000,000
15
Fix EinsumHelper::ParseEquation to avoid uninitialized accesses. EinsumHelper::ParseEquation is supposed to return true or false in input_has_ellipsis and output_has_ellipsis to indicate whether there is ellipsis in the inputs and output. Previously, when there is no ellipsis in the inputs or output, the routine doesn...
static u32 uvc_colorspace(const u8 primaries) { static const u8 colorprimaries[] = { 0, V4L2_COLORSPACE_SRGB, V4L2_COLORSPACE_470_SYSTEM_M, V4L2_COLORSPACE_470_SYSTEM_BG, V4L2_COLORSPACE_SMPTE170M, V4L2_COLORSPACE_SMPTE240M, }; if (primaries < ARRAY_SIZE(colorprimaries)) return colorprimaries[primarie...
0
[ "CWE-269" ]
linux
68035c80e129c4cfec659aac4180354530b26527
315,549,388,529,798,400,000,000,000,000,000,000,000
16
media: uvcvideo: Avoid cyclic entity chains due to malformed USB descriptors Way back in 2017, fuzzing the 4.14-rc2 USB stack with syzkaller kicked up the following WARNING from the UVC chain scanning code: | list_add double add: new=ffff880069084010, prev=ffff880069084010, | next=ffff880067d22298. | ----------...
print_attr_strange(netdissect_options *ndo, register const u_char *data, u_int length, u_short attr_code) { u_short len_data; switch(attr_code) { case ARAP_PASS: if (length != 16) { ND_PRINT((ndo, "ERROR: length %u != 16", length)); ...
0
[ "CWE-125", "CWE-787" ]
tcpdump
1bc78d795cd5cad5525498658f414a11ea0a7e9c
78,477,487,073,282,130,000,000,000,000,000,000,000
69
CVE-2017-13032/RADIUS: Check whether a byte exists before testing its value. Reverse the test in a for loop to test the length before testing whether we have a null byte. This fixes a buffer over-read discovered by Bhargava Shastry. Add a test using the capture file supplied by the reporter(s), modified so the captu...
static void fuse_do_truncate(struct file *file) { struct inode *inode = file->f_mapping->host; struct iattr attr; attr.ia_valid = ATTR_SIZE; attr.ia_size = i_size_read(inode); attr.ia_file = file; attr.ia_valid |= ATTR_FILE; fuse_do_setattr(file_dentry(file), &attr, file); }
0
[ "CWE-459" ]
linux
5d069dbe8aaf2a197142558b6fb2978189ba3454
167,842,966,524,610,890,000,000,000,000,000,000,000
13
fuse: fix bad inode Jan Kara's analysis of the syzbot report (edited): The reproducer opens a directory on FUSE filesystem, it then attaches dnotify mark to the open directory. After that a fuse_do_getattr() call finds that attributes returned by the server are inconsistent, and calls make_bad_inode() which,...
RemoveUserMapping(DropUserMappingStmt *stmt) { ObjectAddress object; Oid useId; Oid umId; ForeignServer *srv; RoleSpec *role = (RoleSpec *) stmt->user; if (role->roletype == ROLESPEC_PUBLIC) useId = ACL_ID_PUBLIC; else { useId = get_rolespec_oid(stmt->user, stmt->missing_ok); if (!OidIsValid(useId)...
0
[ "CWE-94" ]
postgres
b9b21acc766db54d8c337d508d0fe2f5bf2daab0
140,715,680,497,095,230,000,000,000,000,000,000,000
73
In extensions, don't replace objects not belonging to the extension. Previously, if an extension script did CREATE OR REPLACE and there was an existing object not belonging to the extension, it would overwrite the object and adopt it into the extension. This is problematic, first because the overwrite is probably uni...
static inline void jmp_rel(struct x86_emulate_ctxt *ctxt, int rel) { register_address_increment(ctxt, &ctxt->_eip, rel); }
0
[]
kvm
e28ba7bb020f07193bc000453c8775e9d2c0dda7
99,166,632,838,172,950,000,000,000,000,000,000,000
4
KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests will crash (and 64bit guests may behave in a wrong way) for example by simply executing following nasm-demo-application: [bits 32] global _start SECTION .text _start: syscall (I tested it with winxp and linux ...
static int ahash_def_finup(struct ahash_request *req) { struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); int err; err = ahash_save_req(req, ahash_def_finup_done1); if (err) return err; err = tfm->update(req); return ahash_def_finup_finish1(req, err); }
1
[ "CWE-835" ]
linux
ef0579b64e93188710d48667cb5e014926af9f1b
57,971,215,334,798,460,000,000,000,000,000,000,000
12
crypto: ahash - Fix EINPROGRESS notification callback The ahash API modifies the request's callback function in order to clean up after itself in some corner cases (unaligned final and missing finup). When the request is complete ahash will restore the original callback and everything is fine. However, when the requ...
static void install_handler(void) { struct sigaction sga; // handle SIGTERM sigemptyset(&sga.sa_mask); sga.sa_handler = signal_handler; sga.sa_flags = 0; sigaction(SIGTERM, &sga, NULL); }
0
[ "CWE-269", "CWE-94" ]
firejail
27cde3d7d1e4e16d4190932347c7151dc2a84c50
47,433,480,176,947,210,000,000,000,000,000,000,000
9
fixing CVE-2022-31214
static int netif_rx_internal(struct sk_buff *skb) { int ret; /* if netpoll wants it, pretend we never saw it */ if (netpoll_rx(skb)) return NET_RX_DROP; net_timestamp_check(netdev_tstamp_prequeue, skb); trace_netif_rx(skb); #ifdef CONFIG_RPS if (static_key_false(&rps_needed)) { struct rps_dev_flow voidflo...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
29,779,821,182,779,396,000,000,000,000,000,000,000
36
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
static int ceph_aes_crypt(const struct ceph_crypto_key *key, bool encrypt, void *buf, int buf_len, int in_len, int *pout_len) { struct crypto_skcipher *tfm = ceph_crypto_alloc_cipher(); SKCIPHER_REQUEST_ON_STACK(req, tfm); struct sg_table sgt; struct scatterlist prealloc_sg; char iv[AES_BLOCK_SIZE]; int pad_...
0
[ "CWE-399" ]
linux
a45f795c65b479b4ba107b6ccde29b896d51ee98
285,183,928,031,901,900,000,000,000,000,000,000,000
71
libceph: introduce ceph_crypt() for in-place en/decryption Starting with 4.9, kernel stacks may be vmalloced and therefore not guaranteed to be physically contiguous; the new CONFIG_VMAP_STACK option is enabled by default on x86. This makes it invalid to use on-stack buffers with the crypto scatterlist API, as sg_set...
static apr_status_t ngn_out_update_windows(h2_mplx *m, h2_req_engine *ngn) { ngn_update_ctx ctx; ctx.m = m; ctx.ngn = ngn; ctx.streams_updated = 0; h2_ihash_iter(m->streams, ngn_update_window, &ctx); return ctx.streams_updated? APR_SUCCESS : APR_EAGAIN; }
0
[ "CWE-444" ]
mod_h2
825de6a46027b2f4c30d7ff5a0c8b852d639c207
151,995,873,327,741,380,000,000,000,000,000,000,000
11
* Fixed keepalives counter on slave connections.
R_API RAnalBlock *r_anal_bb_get_failbb(RAnalFunction *fcn, RAnalBlock *bb) { RListIter *iter; RAnalBlock *b; if (bb->fail == UT64_MAX) { return NULL; } if (bb->failbb) { return bb->failbb; } r_list_foreach (fcn->bbs, iter, b) { if (b->addr == bb->fail) { bb->failbb = b; b->prev = bb; return b; }...
0
[ "CWE-416" ]
radare2
90b71c017a7fa9732fe45fd21b245ee051b1f548
183,681,903,050,083,300,000,000,000,000,000,000,000
18
Fix #10293 - Use-after-free in r_anal_bb_free()
static bool lookup_name_sid_list(struct torture_context *torture, char **list) { uint32_t count; for (count = 0; list[count]; count++) { struct winbindd_request req; struct winbindd_response rep; char *sid; char *name; const char *domain_name = torture_setting_string(torture, "winbindd_domain_without...
0
[ "CWE-476" ]
samba
0b259a48a70bde4dfd482e0720e593ae5a9c414a
225,300,225,817,624,650,000,000,000,000,000,000,000
56
CVE-2020-14323 torture4: Add a simple test for invalid lookup_sids winbind call We can't add this test before the fix, add it to knownfail and have the fix remove the knownfail entry again. As this crashes winbind, many tests after this one will fail. Reported by Bas Alberts of the GitHub Security Lab Team as GHSL-20...
bool load_data_set_value(THD *thd, const char *pos, uint length, const Load_data_param *param) { field->load_data_set_value(pos, length, param->charset()); return false; }
0
[ "CWE-617" ]
server
2e7891080667c59ac80f788eef4d59d447595772
28,178,734,278,345,726,000,000,000,000,000,000,000
6
MDEV-25635 Assertion failure when pushing from HAVING into WHERE of view This bug could manifest itself after pushing a where condition over a mergeable derived table / view / CTE DT into a grouping view / derived table / CTE V whose item list contained set functions with constant arguments such as MIN(2), SUM(1) etc....
static u64 muldiv64(u64 a, u32 b, u32 c) { union { u64 ll; struct { u32 low, high; } l; } u, res; u64 rl, rh; u.ll = a; rl = (u64)u.l.low * (u64)b; rh = (u64)u.l.high * (u64)b; rh += (rl >> 32); res.l.high = div64_u64(rh, c); res.l.low = div64_u64(((mod_64(rh, c) << 32) + (rl & 0xffffffff)), c); ret...
0
[ "CWE-362" ]
kvm
2febc839133280d5a5e8e1179c94ea674489dae2
266,298,332,473,388,940,000,000,000,000,000,000,000
18
KVM: x86: Improve thread safety in pit There's a race condition in the PIT emulation code in KVM. In __kvm_migrate_pit_timer the pit_timer object is accessed without synchronization. If the race condition occurs at the wrong time this can crash the host kernel. This fixes CVE-2014-3611. Cc: stable@vger.kernel.org ...
static bool tcp_shifted_skb(struct sock *sk, struct sk_buff *skb, struct tcp_sacktag_state *state, unsigned int pcount, int shifted, int mss, bool dup_sack) { struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *prev = tcp_write_queue_prev(sk, skb); u32 start_seq = TCP_SKB_CB(skb)->seq; /* start of...
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
239,124,578,702,428,200,000,000,000,000,000,000,000
80
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
void whiteSpace_replace(xmlChar* str) { while (*str != '\0') { if (*str == '\x9' || *str == '\xA' || *str == '\xD') { *str = ' '; } str++; } }
0
[ "CWE-19" ]
php-src
c8eaca013a3922e8383def6158ece2b63f6ec483
289,524,926,892,463,220,000,000,000,000,000,000,000
9
Added type checks
md_process_leaf_block(MD_CTX* ctx, const MD_BLOCK* block) { union { MD_BLOCK_H_DETAIL header; MD_BLOCK_CODE_DETAIL code; MD_BLOCK_TABLE_DETAIL table; } det; MD_ATTRIBUTE_BUILD info_build; MD_ATTRIBUTE_BUILD lang_build; int is_in_tight_list; int clean_fence_code_detail = F...
0
[ "CWE-125", "CWE-908" ]
md4c
4fc808d8fe8d8904f8525bb4231d854f45e23a19
130,038,180,205,615,710,000,000,000,000,000,000,000
85
md_analyze_line: Avoid reading 1 byte beyond the input size. Fixes #155.
virtual bool dynamic_result() { return 0; }
0
[ "CWE-617" ]
server
2e7891080667c59ac80f788eef4d59d447595772
335,956,896,760,809,100,000,000,000,000,000,000,000
1
MDEV-25635 Assertion failure when pushing from HAVING into WHERE of view This bug could manifest itself after pushing a where condition over a mergeable derived table / view / CTE DT into a grouping view / derived table / CTE V whose item list contained set functions with constant arguments such as MIN(2), SUM(1) etc....
static int unittest_i2c_bus_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct unittest_i2c_bus_data *std = platform_get_drvdata(pdev); dev_dbg(dev, "%s for node @%pOF\n", __func__, np); i2c_del_adapter(&std->adap); return 0; }
0
[ "CWE-401" ]
linux
e13de8fe0d6a51341671bbe384826d527afe8d44
216,316,822,926,663,660,000,000,000,000,000,000,000
11
of: unittest: fix memory leak in unittest_data_add In unittest_data_add, a copy buffer is created via kmemdup. This buffer is leaked if of_fdt_unflatten_tree fails. The release for the unittest_data buffer is added. Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree") Signed-off-by: Navid ...
bool Item_sum::register_sum_func(THD *thd, Item **ref) { SELECT_LEX *sl; nesting_map allow_sum_func= thd->lex->allow_sum_func; for (sl= thd->lex->current_select->context.outer_select() ; sl && sl->nest_level > max_arg_level; sl= sl->context.outer_select()) { if (aggr_level < 0 && (allo...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
22,413,621,553,085,630,000,000,000,000,000,000,000
74
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
void ConnectDialogEdit::on_qleServer_textEdited(const QString& server) { // If using automatic label, update it if (!bCustomLabel) { qleName->setText(server); } }
0
[ "CWE-59", "CWE-61" ]
mumble
e59ee87abe249f345908c7d568f6879d16bfd648
246,607,065,223,958,760,000,000,000,000,000,000,000
6
FIX(client): Only allow "http"/"https" for URLs in ConnectDialog Our public server list registration script doesn't have an URL scheme whitelist for the website field. Turns out a malicious server can register itself with a dangerous URL in an attempt to attack a user's machine. User interaction is required, as the ...
PJ_DEF(pj_status_t) pjmedia_rtcp_enable_xr( pjmedia_rtcp_session *sess, pj_bool_t enable) { #if defined(PJMEDIA_HAS_RTCP_XR) && (PJMEDIA_HAS_RTCP_XR != 0) /* Check if request won't change anything */ if (!(enable ^ sess->xr_enabled)) return PJ_SUCCESS; if (!enable) { sess->xr_enabled = PJ_FALS...
0
[ "CWE-125" ]
pjproject
8b621f192cae14456ee0b0ade52ce6c6f258af1e
11,268,491,123,111,235,000,000,000,000,000,000,000
27
Merge pull request from GHSA-3qx3-cg72-wrh9
static unsigned int ipv4_mtu(const struct dst_entry *dst) { const struct rtable *rt = (const struct rtable *) dst; unsigned int mtu = rt->rt_pmtu; if (!mtu || time_after_eq(jiffies, rt->dst.expires)) mtu = dst_metric_raw(dst, RTAX_MTU); if (mtu) return mtu; mtu = READ_ONCE(dst->dev->mtu); if (unlikely(dst...
0
[ "CWE-476" ]
linux
bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205
320,821,627,707,538,770,000,000,000,000,000,000,000
22
net: check and errout if res->fi is NULL when RTM_F_FIB_MATCH is set Syzkaller hit 'general protection fault in fib_dump_info' bug on commit 4.13-rc5.. Guilty file: net/ipv4/fib_semantics.c kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP KASAN Modules linked...
komeda_wb_encoder_atomic_check(struct drm_encoder *encoder, struct drm_crtc_state *crtc_st, struct drm_connector_state *conn_st) { struct komeda_crtc_state *kcrtc_st = to_kcrtc_st(crtc_st); struct drm_writeback_job *writeback_job = conn_st->writeback_job; struct komeda_layer *wb_layer; struct ko...
0
[ "CWE-401" ]
linux
a0ecd6fdbf5d648123a7315c695fb6850d702835
228,276,403,460,534,500,000,000,000,000,000,000,000
41
drm/komeda: prevent memory leak in komeda_wb_connector_add In komeda_wb_connector_add if drm_writeback_connector_init fails the allocated memory for kwb_conn should be released. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com> Sig...
evdev_pre_configure_model_quirks(struct evdev_device *device) { struct quirks_context *quirks; struct quirks *q; const struct quirk_tuples *t; const uint32_t *props = NULL; size_t nprops = 0; char *prop; /* Touchpad claims to have 4 slots but only ever sends 2 * https://bugs.freedesktop.org/show_bug.cgi?id=98...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
65,595,481,200,274,110,000,000,000,000,000,000,000
107
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...
inline unsigned char HexCharToValue(unsigned char c) { return c - kCharToHexLookup[c / 0x20]; }
0
[]
envoy
3b5acb2f43548862dadb243de7cf3994986a8e04
190,172,997,590,505,500,000,000,000,000,000,000,000
1
http, url: Bring back chromium_url and http_parser_parse_url (#198) * Revert GURL as HTTP URL parser utility This reverts: 1. commit c9c4709c844b90b9bb2935d784a428d667c9df7d 2. commit d828958b591a6d79f4b5fa608ece9962b7afbe32 3. commit 2d69e30c51f2418faf267aaa6c1126fce9948c62 Signed-off-by: Dhi Aurrahman <dio@tetrat...
static int chown_common(struct dentry * dentry, uid_t user, gid_t group) { struct inode * inode; int error; struct iattr newattrs; error = -ENOENT; if (!(inode = dentry->d_inode)) { printk(KERN_ERR "chown_common: NULL inode\n"); goto out; } error = -EROFS; if (IS_RDONLY(inode)) goto out; error = -EPERM;...
0
[ "CWE-264" ]
linux-2.6
7b82dc0e64e93f430182f36b46b79fcee87d3532
270,891,031,204,233,940,000,000,000,000,000,000,000
34
Remove suid/sgid bits on [f]truncate() .. to match what we do on write(). This way, people who write to files by using [f]truncate + writable mmap have the same semantics as if they were using the write() family of system calls. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
static inline struct DIR_PAGE_ENTRY *find_dp(struct RESTART_TABLE *dptbl, u32 target_attr, u64 vcn) { __le32 ta = cpu_to_le32(target_attr); struct DIR_PAGE_ENTRY *dp = NULL; while ((dp = enum_rstbl(dptbl, dp))) { u64 dp_vcn = le64_to_cpu(dp->vcn); if (dp->target_attr == ta && vcn >= dp_vcn && v...
0
[ "CWE-416" ]
linux
f26967b9f7a830e228bb13fb41bd516ddd9d789d
288,599,613,657,411,770,000,000,000,000,000,000,000
16
fs/ntfs3: Fix invalid free in log_replay log_read_rst() returns ENOMEM error when there is not enough memory. In this case, if info is returned without initialization, it attempts to kfree the uninitialized info->r_page pointer. This patch moves the memset initialization code to before log_read_rst() is called. Repor...
static void server_init(IRC_SERVER_REC *server) { IRC_SERVER_CONNECT_REC *conn; char *address, *ptr, *username, *cmd; GTimeVal now; g_return_if_fail(server != NULL); conn = server->connrec; if (conn->proxy != NULL && conn->proxy_password != NULL && *conn->proxy_password != '\0') { cmd = g_strdup_printf(...
0
[ "CWE-416" ]
irssi
b8d3301d34f383f039071214872570385de1bb59
293,851,628,062,826,100,000,000,000,000,000,000,000
81
SASL support The only supported methods are PLAIN and EXTERNAL, the latter is untested as of now. The code gets the values from the keys named sasl_{mechanism,username,password} specified for each chatnet.
ast_for_dictelement(struct compiling *c, const node *n, int *i, expr_ty *key, expr_ty *value) { expr_ty expression; if (TYPE(CHILD(n, *i)) == DOUBLESTAR) { assert(NCH(n) - *i >= 2); expression = ast_for_expr(c, CHILD(n, *i + 1)); if (!expression) return 0...
0
[ "CWE-125" ]
cpython
a4d78362397fc3bced6ea80fbc7b5f4827aec55e
325,587,088,575,725,770,000,000,000,000,000,000,000
34
bpo-36495: Fix two out-of-bounds array reads (GH-12641) Research and fix by @bradlarsen.
void Chapters::Atom::ShallowCopy(Atom& rhs) const { rhs.m_string_uid = m_string_uid; rhs.m_uid = m_uid; rhs.m_start_timecode = m_start_timecode; rhs.m_stop_timecode = m_stop_timecode; rhs.m_displays = m_displays; rhs.m_displays_size = m_displays_size; rhs.m_displays_count = m_displays_count; }
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
283,191,491,947,374,520,000,000,000,000,000,000,000
10
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
static int handle_gid_request(enum request_types request_type, gid_t gid, const char *domain_name, struct berval **berval) { int ret; struct group grp; char *sid_str = NULL; enum sss_id_type id_type; size_t buf_len; char *buf = NULL; struct sss_nss_kv *kv_list =...
1
[ "CWE-19" ]
freeipa
c15a407cbfaed163a933ab137eed16387efe25d2
138,576,054,226,345,460,000,000,000,000,000,000,000
64
extdom: make nss buffer configurable The get*_r_wrapper() calls expect a maximum buffer size to avoid memory shortage if too many threads try to allocate buffers e.g. for large groups. With this patch this size can be configured by setting ipaExtdomMaxNssBufSize in the plugin config object cn=ipa_extdom_extop,cn=plugi...
Expression_Obj Parser::fold_operands(Expression_Obj base, std::vector<Expression_Obj>& operands, std::vector<Operand>& ops, size_t i) { if (String_Schema_Ptr schema = Cast<String_Schema>(base)) { // return schema; if (schema->has_interpolants()) { if (i + 1 < operands.size() && ( ...
0
[ "CWE-125" ]
libsass
eb15533b07773c30dc03c9d742865604f47120ef
28,050,037,902,432,725,000,000,000,000,000,000,000
54
Fix memory leak in `parse_ie_keyword_arg` `kwd_arg` would never get freed when there was a parse error in `parse_ie_keyword_arg`. Closes #2656
int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey) { EVP_MD_CTX ctx; const EVP_MD *type; unsigned char *buf_in=NULL; int ret= -1,i,inl; if (!pkey) { ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER); return -1; } EVP_MD_CTX_...
1
[ "CWE-310" ]
openssl
ec2fede9467ae1a65f452d3a39f7fbc4891d9285
101,492,541,056,667,210,000,000,000,000,000,000,000
58
Fix various certificate fingerprint issues. By using non-DER or invalid encodings outside the signed portion of a certificate the fingerprint can be changed without breaking the signature. Although no details of the signed portion of the certificate can be changed this can cause problems with some applications: e.g. t...
QPDFPageObjectHelper::getPageContents() { return this->oh.getPageContents(); }
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
4,054,622,190,271,197,000,000,000,000,000,000,000
4
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 ...
read_data_stored(struct archive_read *a, const void **buff, size_t *size, int64_t *offset) { struct rar *rar; ssize_t bytes_avail; rar = (struct rar *)(a->format->data); if (rar->bytes_remaining == 0 && !(rar->main_flags & MHD_VOLUME && rar->file_flags & FHD_SPLIT_AFTER)) { *buff = N...
0
[ "CWE-119", "CWE-787" ]
libarchive
05caadc7eedbef471ac9610809ba683f0c698700
12,876,302,512,188,622,000,000,000,000,000,000,000
41
Issue 719: Fix for TALOS-CAN-154 A RAR file with an invalid zero dictionary size was not being rejected, leading to a zero-sized allocation for the dictionary storage which was then overwritten during the dictionary initialization. Thanks to the Open Source and Threat Intelligence project at Cisco for reporting this...
static void __init free_syscall_print_fmt(struct ftrace_event_call *call) { struct syscall_metadata *entry = call->data; if (entry->enter_event == call) kfree(call->print_fmt); }
0
[ "CWE-125", "CWE-476", "CWE-119", "CWE-264" ]
linux
086ba77a6db00ed858ff07451bedee197df868c9
147,398,902,170,126,890,000,000,000,000,000,000,000
7
tracing/syscalls: Ignore numbers outside NR_syscalls' range ARM has some private syscalls (for example, set_tls(2)) which lie outside the range of NR_syscalls. If any of these are called while syscall tracing is being performed, out-of-bounds array access will occur in the ftrace and perf sys_{enter,exit} handlers. ...
static void textview_uri_list_remove_all(GSList *uri_list) { GSList *cur; for (cur = uri_list; cur != NULL; cur = cur->next) { if (cur->data) { g_free(((ClickableText *)cur->data)->uri); g_free(((ClickableText *)cur->data)->filename); if (((ClickableText *)cur->data)->is_quote) { g_free(((ClickableTex...
0
[ "CWE-601" ]
claws
ac286a71ed78429e16c612161251b9ea90ccd431
237,093,412,381,689,900,000,000,000,000,000,000,000
19
harden link checker before accepting click
static void read_by_type_read_complete_cb(struct gatt_db_attribute *attr, int err, const uint8_t *value, size_t len, void *user_data) { struct async_read_op *op = user_data; struct bt_gatt_server *server = op->server; uint16_t mtu; uint16_t handle; mtu = bt_att_get_mtu(server->att); handle = gatt_db_...
0
[ "CWE-287" ]
bluez
00da0fb4972cf59e1c075f313da81ea549cb8738
4,622,323,709,492,522,000,000,000,000,000,000,000
47
shared/gatt-server: Fix not properly checking for secure flags When passing the mask to check_permissions all valid permissions for the operation must be set including BT_ATT_PERM_SECURE flags.
yaffsfs_jentry_walk(TSK_FS_INFO * /*info*/, int /*entry*/, TSK_FS_JENTRY_WALK_CB /*cb*/, void * /*fn*/) { tsk_error_reset(); tsk_error_set_errno(TSK_ERR_FS_UNSUPFUNC); tsk_error_set_errstr("Journal support for YAFFS is not implemented"); return 1; }
0
[ "CWE-125", "CWE-787" ]
sleuthkit
459ae818fc8dae717549810150de4d191ce158f1
26,197,327,372,021,240,000,000,000,000,000,000,000
8
Fix stack buffer overflow in yaffsfs_istat Prevent a stack buffer overflow in yaffsfs_istat by increasing the buffer size to the size required by tsk_fs_time_to_str.
GF_EXPORT GF_Err gf_isom_get_rvc_config(GF_ISOFile *movie, u32 track, u32 sampleDescriptionIndex, u16 *rvc_predefined, u8 **data, u32 *size, const char **mime) { GF_MPEGVisualSampleEntryBox *entry; GF_TrackBox *trak; if (!rvc_predefined || !data || !size) return GF_BAD_PARAM; *rvc_predefined = 0; trak = gf_isom_...
0
[ "CWE-476" ]
gpac
ebfa346eff05049718f7b80041093b4c5581c24e
121,568,148,095,336,150,000,000,000,000,000,000,000
26
fixed #1706
static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg, struct msghdr *msg_sys, unsigned int flags, struct used_address *used_address) { struct compat_msghdr __user *msg_compat = (struct compat_msghdr __user *)msg; struct sockaddr_storage address; struct iovec iovstack[UIO_FASTIOV...
0
[ "CWE-264" ]
net
4de930efc23b92ddf88ce91c405ee645fe6e27ea
227,071,074,551,294,580,000,000,000,000,000,000,000
93
net: validate the range we feed to iov_iter_init() in sys_sendto/sys_recvfrom Cc: stable@vger.kernel.org # v3.19 Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
mcs_recv_cjcf(void) { uint8 opcode, result; STREAM s; s = iso_recv(NULL); if (s == NULL) return False; in_uint8(s, opcode); if ((opcode >> 2) != MCS_CJCF) { error("expected CJcf, got %d\n", opcode); return False; } in_uint8(s, result); if (result != 0) { error("CJrq: %d\n", result); return False...
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
52,581,349,926,240,150,000,000,000,000,000,000,000
29
Malicious RDP server security fixes This commit includes fixes for a set of 21 vulnerabilities in rdesktop when a malicious RDP server is used. All vulnerabilities was identified and reported by Eyal Itkin. * Add rdp_protocol_error function that is used in several fixes * Refactor of process_bitmap_updates * Fix pos...
bool Item_ref::is_null_result() { if (result_field) return (null_value=result_field->is_null()); return is_null(); }
0
[]
server
b000e169562697aa072600695d4f0c0412f94f4f
310,902,895,615,659,100,000,000,000,000,000,000,000
7
Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME', NULL)) based on: commit f7316aa0c9a Author: Ajo Robert <ajo.robert@oracle.com> Date: Thu Aug 24 17:03:21 2017 +0530 Bug#26361149 MYSQL SERVER CRASHES AT: COL IN(IFNULL(CONST, COL), NAME_CONST('NAME'...
CImg<T> get_resize(const CImg<t>& src, const int interpolation_type=1, const unsigned int boundary_conditions=0, const float centering_x = 0, const float centering_y = 0, const float centering_z = 0, const float centering_c = 0) const { retu...
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
166,483,519,918,081,850,000,000,000,000,000,000,000
7
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
void connAccepted( const std::shared_ptr<folly::AsyncSSLSocket>& s) noexcept override { auto sock = std::static_pointer_cast<AsyncSSLSocket>(s); std::cerr << "SSLServerAcceptCallbackDelay::connAccepted" << std::endl; auto fd = sock->getNetworkSocket(); #ifndef TCP_NOPUSH { // The accepte...
0
[ "CWE-125" ]
folly
c321eb588909646c15aefde035fd3133ba32cdee
49,773,393,498,590,220,000,000,000,000,000,000,000
32
Handle close_notify as standard writeErr in AsyncSSLSocket. Summary: Fixes CVE-2019-11934 Reviewed By: mingtaoy Differential Revision: D18020613 fbshipit-source-id: db82bb250e53f0d225f1280bd67bc74abd417836
bool Field_timestamp_with_dec::send_binary(Protocol *protocol) { MYSQL_TIME ltime; Field_timestamp::get_date(&ltime, 0); return protocol->store(&ltime, dec); }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
334,117,063,648,194,730,000,000,000,000,000,000,000
6
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...
bool FastAreTensorProtosEqual(const TensorProto& lhs, const TensorProto& rhs) { // A small TensorProto can expand into a giant Tensor. So we avoid // conversion to an actual Tensor if we can quickly rule out equality // by comparing the Tensor size since different sized Tensors are definitely // different. c...
0
[ "CWE-369", "CWE-674" ]
tensorflow
e07e1c3d26492c06f078c7e5bf2d138043e199c1
188,703,493,088,718,300,000,000,000,000,000,000,000
30
Prevent memory overflow in ParseAttrValue from nested tensors. PiperOrigin-RevId: 370108442 Change-Id: I84d64a5e8895a6aeffbf4749841b4c54d51b5889
static int addfunction(JF, js_Function *value) { if (F->funlen >= F->funcap) { F->funcap = F->funcap ? F->funcap * 2 : 16; F->funtab = js_realloc(J, F->funtab, F->funcap * sizeof *F->funtab); } F->funtab[F->funlen] = value; return F->funlen++; }
0
[ "CWE-476" ]
mujs
5008105780c0b0182ea6eda83ad5598f225be3ee
88,200,777,957,880,440,000,000,000,000,000,000,000
9
Fix 697172: degenerate labeled break/continue statement. A labeled break statement will look for a matching label through its chain of parent statements. We start looking at the break statement though, so if the label is attached to the break, we'll return the break statement itself as a break target. Start looking f...
void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) { unsigned long flags; spin_lock_irqsave(&list->lock, flags); __skb_queue_head(list, newsk); spin_unlock_irqrestore(&list->lock, flags); }
0
[ "CWE-416" ]
net
36d5fe6a000790f56039afe26834265db0a3ad4c
153,166,507,769,658,000,000,000,000,000,000,000,000
8
core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors skb_zerocopy can copy elements of the frags array between skbs, but it doesn't orphan them. Also, it doesn't handle errors, so this patch takes care of that as well, and modify the callers accordingly. skb_tx_error() is also added to the caller...
static int fwnet_fifo_start(struct fwnet_device *dev) { int retval; if (dev->local_fifo != FWNET_NO_FIFO_ADDR) return 0; dev->handler.length = 4096; dev->handler.address_callback = fwnet_receive_packet; dev->handler.callback_data = dev; retval = fw_core_add_address_handler(&dev->handler, &fw_high_m...
0
[ "CWE-119", "CWE-284", "CWE-787" ]
linux
667121ace9dbafb368618dbabcf07901c962ddac
136,325,874,804,794,880,000,000,000,000,000,000,000
20
firewire: net: guard against rx buffer overflows The IP-over-1394 driver firewire-net lacked input validation when handling incoming fragmented datagrams. A maliciously formed fragment with a respectively large datagram_offset would cause a memcpy past the datagram buffer. So, drop any packets carrying a fragment wi...
wStream* license_send_stream_init(rdpLicense* license) { wStream* s; BOOL do_crypt = license->rdp->do_crypt; license->rdp->sec_flags = SEC_LICENSE_PKT; /** * Encryption of licensing packets is optional even if the rdp security * layer is used. If the peer has not indicated that it is capable of * processing...
0
[ "CWE-125" ]
FreeRDP
6ade7b4cbfd71c54b3d724e8f2d6ac76a58e879a
328,245,160,063,890,350,000,000,000,000,000,000,000
35
Fixed OOB Read in license_read_new_or_upgrade_license_packet CVE-2020-11099 thanks to @antonio-morales for finding this.
PHPAPI void php_session_start(TSRMLS_D) /* {{{ */ { zval **ppid; zval **data; char *p, *value; int nrand; int lensess; if (PS(use_only_cookies)) { PS(apply_trans_sid) = 0; } else { PS(apply_trans_sid) = PS(use_trans_sid); } switch (PS(session_status)) { case php_session_active: php_error(E_NOTICE, "...
0
[ "CWE-416" ]
php-src
3798eb6fd5dddb211b01d41495072fd9858d4e32
239,960,029,276,889,650,000,000,000,000,000,000,000
140
Fix bug #72562 - destroy var_hash properly
void bson_fatal_msg( int ok , const char *msg ) { if ( ok ) return; if ( err_handler ) { err_handler( msg ); } #ifndef R_SAFETY_NET bson_errprintf( "error: %s\n" , msg ); exit( -5 ); #endif }
0
[ "CWE-190" ]
mongo-c-driver-legacy
1a1f5e26a4309480d88598913f9eebf9e9cba8ca
93,294,054,730,704,130,000,000,000,000,000,000,000
12
don't mix up int and size_t (first pass to fix that)
iasecc_finish(struct sc_card *card) { struct sc_context *ctx = card->ctx; struct iasecc_private_data *private_data = (struct iasecc_private_data *)card->drv_data; struct iasecc_se_info *se_info = private_data->se_info, *next; LOG_FUNC_CALLED(ctx); while (se_info) { sc_file_free(se_info->df); next = se_info...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
12,690,619,773,740,019,000,000,000,000,000,000,000
20
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
archive_write_disk_vtable(void) { static struct archive_vtable av; static int inited = 0; if (!inited) { av.archive_close = _archive_write_disk_close; av.archive_filter_bytes = _archive_write_disk_filter_bytes; av.archive_free = _archive_write_disk_free; av.archive_write_header = _archive_write_disk_header;...
0
[ "CWE-59", "CWE-269" ]
libarchive
b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
37,780,273,242,532,087,000,000,000,000,000,000,000
18
Do not follow symlinks when processing the fixup list Use lchmod() instead of chmod() and tell the remaining functions that the real file to be modified is a symbolic link. Fixes #1566
xfs_attr3_leaf_clearflag( struct xfs_da_args *args) { struct xfs_attr_leafblock *leaf; struct xfs_attr_leaf_entry *entry; struct xfs_attr_leaf_name_remote *name_rmt; struct xfs_buf *bp; int error; #ifdef DEBUG struct xfs_attr3_icleaf_hdr ichdr; xfs_attr_leaf_name_local_t *name_loc; int namelen; char *name;...
0
[ "CWE-241", "CWE-19" ]
linux
8275cdd0e7ac550dcce2b3ef6d2fb3b808c1ae59
248,190,488,225,677,520,000,000,000,000,000,000,000
64
xfs: remote attribute overwrite causes transaction overrun Commit e461fcb ("xfs: remote attribute lookups require the value length") passes the remote attribute length in the xfs_da_args structure on lookup so that CRC calculations and validity checking can be performed correctly by related code. This, unfortunately h...
*/ int netdev_master_upper_dev_link(struct net_device *dev, struct net_device *upper_dev) { return __netdev_upper_dev_link(dev, upper_dev, true, NULL);
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
198,189,850,860,844,400,000,000,000,000,000,000,000
5
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
TEST(FormatterTest, FormatHex) { EXPECT_EQ("0", format("{0:x}", 0)); EXPECT_EQ("42", format("{0:x}", 0x42)); EXPECT_EQ("42", format("{0:x}", 0x42u)); EXPECT_EQ("-42", format("{0:x}", -0x42)); EXPECT_EQ("12345678", format("{0:x}", 0x12345678)); EXPECT_EQ("90abcdef", format("{0:x}", 0x90abcdef)); EXPECT_EQ(...
0
[ "CWE-134", "CWE-119", "CWE-787" ]
fmt
8cf30aa2be256eba07bb1cefb998c52326e846e7
52,496,126,723,910,135,000,000,000,000,000,000,000
24
Fix segfault on complex pointer formatting (#642)
static void get_lang_env(String & str) { if (proc_locale_str(getenv("LC_MESSAGES"), str)) return; if (proc_locale_str(getenv("LANG"), str)) return; if (proc_locale_str(getenv("LANGUAGE"), str)) return; str = DEFAULT_LANG; }
0
[ "CWE-125" ]
aspell
80fa26c74279fced8d778351cff19d1d8f44fe4e
132,055,786,213,815,600,000,000,000,000,000,000,000
7
Fix various bugs found by OSS-Fuze.
proc_map_files_readdir(struct file *file, struct dir_context *ctx) { struct vm_area_struct *vma; struct task_struct *task; struct mm_struct *mm; unsigned long nr_files, pos, i; struct flex_array *fa = NULL; struct map_files_info info; struct map_files_info *p; int ret; ret = -ENOENT; task = get_proc_task(fil...
0
[ "CWE-119" ]
linux
7f7ccc2ccc2e70c6054685f5e3522efa81556830
242,737,044,551,917,460,000,000,000,000,000,000,000
97
proc: do not access cmdline nor environ from file-backed areas proc_pid_cmdline_read() and environ_read() directly access the target process' VM to retrieve the command line and environment. If this process remaps these areas onto a file via mmap(), the requesting process may experience various issues such as extra de...
kadm5_get_principal(void *server_handle, krb5_principal principal, kadm5_principal_ent_t entry, long in_mask) { krb5_db_entry *kdb; osa_princ_ent_rec adb; krb5_error_code ret = 0; long mask; int i; ...
0
[ "CWE-703" ]
krb5
c5be6209311d4a8f10fda37d0d3f876c1b33b77b
80,213,355,682,018,110,000,000,000,000,000,000,000
151
Null pointer deref in kadmind [CVE-2012-1013] The fix for #6626 could cause kadmind to dereference a null pointer if a create-principal request contains no password but does contain the KRB5_KDB_DISALLOW_ALL_TIX flag (e.g. "addprinc -randkey -allow_tix name"). Only clients authorized to create principals can trigger ...
static void ion_vm_close(struct vm_area_struct *vma) { struct ion_buffer *buffer = vma->vm_private_data; struct ion_vma_list *vma_list, *tmp; pr_debug("%s\n", __func__); mutex_lock(&buffer->lock); list_for_each_entry_safe(vma_list, tmp, &buffer->vmas, list) { if (vma_list->vma != vma) continue; list_del(&v...
0
[ "CWE-416", "CWE-284" ]
linux
9590232bb4f4cc824f3425a6e1349afbe6d6d2b7
112,577,729,925,230,940,000,000,000,000,000,000,000
17
staging/android/ion : fix a race condition in the ion driver There is a use-after-free problem in the ion driver. This is caused by a race condition in the ion_ioctl() function. A handle has ref count of 1 and two tasks on different cpus calls ION_IOC_FREE simultaneously. cpu 0 cpu ...
bool LEX::parsed_insert_select(SELECT_LEX *first_select) { if (sql_command == SQLCOM_INSERT || sql_command == SQLCOM_REPLACE) { if (sql_command == SQLCOM_INSERT) sql_command= SQLCOM_INSERT_SELECT; else sql_command= SQLCOM_REPLACE_SELECT; } insert_select_hack(first_select); if (check_...
0
[ "CWE-703" ]
server
39feab3cd31b5414aa9b428eaba915c251ac34a2
102,120,912,786,624,200,000,000,000,000,000,000,000
20
MDEV-26412 Server crash in Item_field::fix_outer_field for INSERT SELECT IF an INSERT/REPLACE SELECT statement contained an ON expression in the top level select and this expression used a subquery with a column reference that could not be resolved then an attempt to resolve this reference as an outer reference caused...
imapx_reconnect (CamelIMAPXServer *is, GCancellable *cancellable, GError **error) { CamelIMAPXCommand *ic; CamelService *service; CamelSession *session; CamelIMAPXStore *store; CamelSettings *settings; gchar *mechanism; gboolean use_qresync; gboolean use_idle; gboolean success...
0
[]
evolution-data-server
f26a6f672096790d0bbd76903db4c9a2e44f116b
7,935,177,666,152,607,000,000,000,000,000,000,000
157
[IMAPx] 'STARTTLS not supported' error ignored When a user has setup the STARTTLS encryption method, but the server doesn't support it, then an error should be shown to the user, instead of using unsecure connection. There had been two bugs in the existing code which prevented this error from being used and the failur...
static int hpet_pre_load(void *opaque) { HPETState *s = opaque; /* version 1 only supports 3, later versions will load the actual value */ s->num_timers = HPET_MIN_TIMERS; return 0; }
0
[ "CWE-119" ]
qemu
3f1c49e2136fa08ab1ef3183fd55def308829584
118,323,097,667,236,520,000,000,000,000,000,000,000
8
hpet: fix buffer overrun on invalid state load CVE-2013-4527 hw/timer/hpet.c buffer overrun hpet is a VARRAY with a uint8 size but static array of 32 To fix, make sure num_timers is valid using VMSTATE_VALID hook. Reported-by: Anthony Liguori <anthony@codemonkey.ws> Signed-off-by: Michael S. Tsirkin <mst@redhat.com...
DEFUN (neighbor_maximum_prefix, neighbor_maximum_prefix_cmd, NEIGHBOR_CMD2 "maximum-prefix <1-4294967295>", NEIGHBOR_STR NEIGHBOR_ADDR_STR2 "Maximum number of prefix accept from this peer\n" "maximum no. of prefix limit\n") { return peer_maximum_prefix_set_vty (vty, argv[0], ...
0
[ "CWE-125" ]
frr
6d58272b4cf96f0daa846210dd2104877900f921
55,987,286,273,934,730,000,000,000,000,000,000,000
12
[bgpd] cleanup, compact and consolidate capability parsing code 2007-07-26 Paul Jakma <paul.jakma@sun.com> * (general) Clean up and compact capability parsing slightly. Consolidate validation of length and logging of generic TLV, and memcpy of capability data, thus removing such from cap specifc code (not a...
static unsigned long oops_begin(struct pt_regs *regs) { int cpu; unsigned long flags; if (debugger(regs)) return 1; oops_enter(); /* racy, but better than risking deadlock. */ raw_local_irq_save(flags); cpu = smp_processor_id(); if (!arch_spin_trylock(&die_lock)) { if (cpu == die_owner) /* nested oops...
0
[]
linux
5d176f751ee3c6eededd984ad409bff201f436a7
177,265,687,559,634,250,000,000,000,000,000,000,000
27
powerpc: tm: Enable transactional memory (TM) lazily for userspace Currently the MSR TM bit is always set if the hardware is TM capable. This adds extra overhead as it means the TM SPRS (TFHAR, TEXASR and TFAIR) must be swapped for each process regardless of if they use TM. For processes that don't use TM the TM MSR ...
gs_manager_set_logout_enabled (GSManager *manager, gboolean logout_enabled) { g_return_if_fail (GS_IS_MANAGER (manager)); if (manager->priv->logout_enabled != logout_enabled) { GSList *l; manager->priv->logout_enabled = logout_enabled; ...
0
[]
gnome-screensaver
2f597ea9f1f363277fd4dfc109fa41bbc6225aca
224,178,995,261,264,730,000,000,000,000,000,000,000
14
Fix adding monitors Make sure to show windows that are added. And fix an off by one bug.
static void iwl_pcie_init_msix(struct iwl_trans_pcie *trans_pcie) { struct iwl_trans *trans = trans_pcie->trans; iwl_pcie_conf_msix_hw(trans_pcie); if (!trans_pcie->msix_enabled) return; trans_pcie->fh_init_mask = ~iwl_read32(trans, CSR_MSIX_FH_INT_MASK_AD); trans_pcie->fh_mask = trans_pcie->fh_init_mask; tr...
0
[ "CWE-476" ]
linux
8188a18ee2e48c9a7461139838048363bfce3fef
176,930,949,325,612,900,000,000,000,000,000,000,000
14
iwlwifi: pcie: fix rb_allocator workqueue allocation We don't handle failures in the rb_allocator workqueue allocation correctly. To fix that, move the code earlier so the cleanup is easier and we don't have to undo all the interrupt allocations in this case. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Sig...
njs_encode_base64(njs_str_t *dst, const njs_str_t *src) { njs_encode_base64_core(dst, src, njs_basis64_enc, 1); }
0
[ "CWE-125" ]
njs
b9aea5854bcf6f2de8f7a7f1550874e392b94be2
180,940,929,876,280,380,000,000,000,000,000,000,000
4
Fixed String.prototype.trimEnd() with unicode string. Previously, when the method was invoked with a string consisting of space characters and at least one of them was a Unicode space separator (code point above 127) it returned invalid string value with non-zero size but zero length. The fix is to update the size of...
static int intel_iommu_add_device(struct device *dev) { struct intel_iommu *iommu; struct iommu_group *group; u8 bus, devfn; iommu = device_to_iommu(dev, &bus, &devfn); if (!iommu) return -ENODEV; iommu_device_link(&iommu->iommu, dev); group = iommu_group_get_for_dev(dev); if (IS_ERR(group)) return PTR_...
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
300,635,326,776,079,170,000,000,000,000,000,000,000
20
iommu/vt-d: Disable ATS support on untrusted devices Commit fb58fdcd295b9 ("iommu/vt-d: Do not enable ATS for untrusted devices") disables ATS support on the devices which have been marked as untrusted. Unfortunately this is not enough to fix the DMA attack vulnerabiltiies because IOMMU driver allows translated reques...
static void filter_map_update(filter_map *map, int flag, const unsigned char *allowed_list) { int l, i; l = strlen((const char*)allowed_list); for (i = 0; i < l; ++i) { (*map)[allowed_list[i]] = flag; } }
0
[ "CWE-190" ]
php-src
a5b5743d71fbd5ae944469a1ca443a1cdb30663a
77,620,586,522,900,780,000,000,000,000,000,000,000
9
full_special_chars filter from trunk - approved by johannes
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRAINTS *nc) { GENERAL_SUBTREE *sub; int i, r, match = 0; /* * Permitted subtrees: if any subtrees exist of matching the type at * least one subtree must match. */ for (i = 0; i < sk_GENERAL_SUBTREE_num(nc->permittedSubtrees); i++) { ...
0
[ "CWE-125" ]
openssl
8393de42498f8be75cf0353f5c9f906a43a748d2
146,005,063,145,878,480,000,000,000,000,000,000,000
51
Fix the name constraints 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>
static __latent_entropy struct task_struct *copy_process( struct pid *pid, int trace, int node, struct kernel_clone_args *args) { int pidfd = -1, retval; struct task_struct *p; struct multiprocess_signals delayed; struct file *pidfile = NULL; u64 clone_flags = args->flags; struct nsproxy *nsp ...
1
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
277,052,288,901,219,200,000,000,000,000,000,000,000
527
io_uring: don't rely on weak ->files references Grab actual references to the files_struct. To avoid circular references issues due to this, we add a per-task note that keeps track of what io_uring contexts a task has used. When the tasks execs or exits its assigned files, we cancel requests based on this tracking. W...
static void tcp_check_space(struct sock *sk) { if (sock_flag(sk, SOCK_QUEUE_SHRUNK)) { sock_reset_flag(sk, SOCK_QUEUE_SHRUNK); /* pairs with tcp_poll() */ smp_mb(); if (sk->sk_socket && test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { tcp_new_space(sk); if (!test_bit(SOCK_NOSPACE, &sk->sk_socket->f...
0
[ "CWE-190" ]
net
3b4929f65b0d8249f19a50245cd88ed1a2f78cff
64,782,908,653,948,090,000,000,000,000,000,000,000
14
tcp: limit payload size of sacked skbs Jonathan Looney reported that TCP can trigger the following crash in tcp_shifted_skb() : BUG_ON(tcp_skb_pcount(skb) < pcount); This can happen if the remote peer has advertized the smallest MSS that linux TCP accepts : 48 An skb can hold 17 fragments, and each fragment can ho...
inline void Tanh(const int16* input_data, const Dims<4>& input_dims, int input_left_shift, int16* output_data, const Dims<4>& output_dims) { Tanh(input_data, DimsToShape(input_dims), input_left_shift, output_data, DimsToShape(output_dims)); }
0
[ "CWE-703", "CWE-835" ]
tensorflow
dfa22b348b70bb89d6d6ec0ff53973bacb4f4695
13,814,657,246,418,290,000,000,000,000,000,000,000
6
Prevent a division by 0 in average ops. PiperOrigin-RevId: 385184660 Change-Id: I7affd4554f9b336fca29ac68f633232c094d0bd3
set_current_job (job) int job; { int candidate; if (js.j_current != job) { js.j_previous = js.j_current; js.j_current = job; } /* First choice for previous job is the old current job. */ if (js.j_previous != js.j_current && js.j_previous != NO_JOB && jobs[js.j_previous] &&...
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
329,392,648,915,392,500,000,000,000,000,000,000,000
51
bash-4.4-rc2 release
reread_command() { FILE *fp = lf_top(); if (fp != (FILE *) NULL) rewind(fp); c_token++; }
0
[ "CWE-415" ]
gnuplot
052cbd17c3cbbc602ee080b2617d32a8417d7563
154,330,797,333,645,620,000,000,000,000,000,000,000
8
successive failures of "set print <foo>" could cause double-free Bug #2312
draw_gdk_apply_netstate_transformation (cairo_matrix_t *fullMatrix, cairo_matrix_t *scaleMatrix, gerbv_netstate_t *state) { /* apply scale factor */ cairo_matrix_scale (fullMatrix, state->scaleA, state->scaleB); cairo_matrix_scale (scaleMatrix, state->scaleA, state->scaleB); /* apply offset */ cairo_matrix_trans...
0
[ "CWE-703" ]
gerbv
b2c2f8da851f2ac8079a91ce9d498d87ff96abcf
255,463,799,334,091,850,000,000,000,000,000,000,000
32
Avoid direct access on array of unknown size Be requiring a `gerbv_simplified_amacro_t` the `dgk_draw_amacro_funcs` can be sure of the length of the parameter array.
static void byte_convert(uint8_t * address, size_t size) { #ifdef __LITTLE_ENDIAN__ uint8_t i = 0, j = 0; uint8_t tmp = 0; for (i = 0; i < (size / 2); i++) { tmp = address[i]; j = ((size - 1) + 0) - i; address[i] = address[j]; address[j] = tmp; } #endif }
0
[ "CWE-770" ]
libplist
26061aac4ec75e7a4469a9aab9a424716223e5c4
219,039,493,452,833,130,000,000,000,000,000,000,000
15
bplist: Check for invalid offset_size in bplist trailer
static int annotation_set_tofile(annotate_state_t *state __attribute__((unused)), struct annotate_entry_list *entry, int maywrite) { const char *filename = (const char *)entry->desc->rock; char path[MAX_MAILBOX...
0
[ "CWE-732" ]
cyrus-imapd
621f9e41465b521399f691c241181300fab55995
239,239,306,029,648,180,000,000,000,000,000,000,000
33
annotate: don't allow everyone to write shared server entries
SProcRecordDispatch(ClientPtr client) { REQUEST(xReq); switch (stuff->data) { case X_RecordQueryVersion: return SProcRecordQueryVersion(client); case X_RecordCreateContext: return SProcRecordCreateContext(client); case X_RecordRegisterClients: return SProcRecordRegisterClien...
0
[ "CWE-191" ]
xserver
2902b78535ecc6821cc027351818b28a5c7fdbdc
178,404,659,971,104,430,000,000,000,000,000,000,000
25
Fix XRecordRegisterClients() Integer underflow CVE-2020-14362 ZDI-CAN-11574 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
int gfs2_rgrp_go_lock(struct gfs2_holder *gh) { struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; struct gfs2_sbd *sdp = rgd->rd_sbd; if (gh->gh_flags & GL_SKIP && sdp->sd_args.ar_rgrplvb) return 0; return gfs2_rgrp_bh_get(rgd); }
0
[ "CWE-416" ]
linux
36e4ad0316c017d5b271378ed9a1c9a4b77fab5f
244,346,615,537,074,700,000,000,000,000,000,000,000
9
GFS2: don't set rgrp gl_object until it's inserted into rgrp tree Before this patch, function read_rindex_entry would set a rgrp glock's gl_object pointer to itself before inserting the rgrp into the rgrp rbtree. The problem is: if another process was also reading the rgrp in, and had already inserted its newly create...
static unsigned int cache_estimate(unsigned long gfporder, size_t buffer_size, unsigned long flags, size_t *left_over) { unsigned int num; size_t slab_size = PAGE_SIZE << gfporder; /* * The slab management structure can be either off the slab or * on it. For the latter case, the memory allocated for a * sla...
0
[ "CWE-703" ]
linux
c4e490cf148e85ead0d1b1c2caaba833f1d5b29f
90,954,389,338,622,670,000,000,000,000,000,000,000
34
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...
njs_module_add(njs_vm_t *vm, njs_str_t *name) { njs_int_t ret; njs_mod_t *module; njs_lvlhsh_query_t lhq; module = njs_mp_zalloc(vm->mem_pool, sizeof(njs_mod_t)); if (njs_slow_path(module == NULL)) { njs_memory_error(vm); return NULL; } ret = njs_name_c...
0
[ "CWE-787" ]
njs
ab1702c7af9959366a5ddc4a75b4357d4e9ebdc1
301,977,596,589,492,400,000,000,000,000,000,000,000
37
Fixed typo while calculating module path length. The issue was introduced in 77c398f26d7e (not released yet).