func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void InstanceKlass::add_implementor(Klass* k) { assert_lock_strong(Compile_lock); assert(is_interface(), "not interface"); // Filter out my subinterfaces. // (Note: Interfaces are never on the subklass list.) if (InstanceKlass::cast(k)->is_interface()) return; // Filter out subclasses whose supers already ...
0
[]
jdk11u-dev
41825fa33d605f8501164f9296572e4378e8183b
262,689,825,331,803,460,000,000,000,000,000,000,000
31
8270386: Better verification of scan methods Reviewed-by: mbaesken Backport-of: ac329cef45979bd0159ecd1347e36f7129bb2ce4
static int rbd_obj_read_from_parent(struct rbd_obj_request *obj_req) { struct rbd_img_request *img_req = obj_req->img_request; struct rbd_device *parent = img_req->rbd_dev->parent; struct rbd_img_request *child_img_req; int ret; child_img_req = kmem_cache_alloc(rbd_img_request_cache, GFP_NOIO); if (!child_img_re...
0
[ "CWE-863" ]
linux
f44d04e696feaf13d192d942c4f14ad2e117065a
169,570,864,293,927,200,000,000,000,000,000,000,000
55
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 struct intel_iommu *device_to_iommu(struct device *dev, u8 *bus, u8 *devfn) { struct dmar_drhd_unit *drhd = NULL; struct intel_iommu *iommu; struct device *tmp; struct pci_dev *ptmp, *pdev = NULL; u16 segment = 0; int i; if (iommu_dummy(dev)) return NULL; if (dev_is_pci(dev)) { struct pci_dev *pf_p...
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
142,915,521,498,768,990,000,000,000,000,000,000,000
74
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 XDrawMatteText(Display *display,const XWindowInfo *window_info, XWidgetInfo *text_info) { const char *text; int n, x, y; int i; unsigned int height, width; XFontStruct *font_info; XRectangle crop_info; /* Clear the text area. */ XSetMatteColo...
0
[]
ImageMagick
d95735d25a39300dd874f0227c430d5dbb1f83cc
131,054,445,964,255,350,000,000,000,000,000,000,000
107
https://github.com/ImageMagick/ImageMagick/issues/3333
find_matching_se(struct sched_entity **se, struct sched_entity **pse) { }
0
[ "CWE-400", "CWE-703", "CWE-835" ]
linux
c40f7d74c741a907cfaeb73a7697081881c497d0
88,448,855,086,374,860,000,000,000,000,000,000,000
3
sched/fair: Fix infinite loop in update_blocked_averages() by reverting a9e7f6544b9c Zhipeng Xie, Xie XiuQi and Sargun Dhillon reported lockups in the scheduler under high loads, starting at around the v4.18 time frame, and Zhipeng Xie tracked it down to bugs in the rq->leaf_cfs_rq_list manipulation. Do a (manual) re...
tgoto(const char *string, int x, int y) { char *result; T((T_CALLED("tgoto(%s, %d, %d)"), _nc_visbuf(string), x, y)); #if !PURE_TERMINFO if (is_termcap(string)) result = tgoto_internal(string, x, y); else #endif result = TIPARM_2(string, y, x); returnPtr(result); }
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
3,471,367,906,684,013,500,000,000,000,000,000,000
13
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
int ssl_get_prev_session(SSL *s, unsigned char *session_id, int len, const unsigned char *limit) { /* This is used only by servers. */ SSL_SESSION *ret = NULL; int fatal = 0; int try_session_cache = 1; #ifndef OPENSSL_NO_TLSEXT int r; #endif if (session_id + len > limi...
1
[ "CWE-190" ]
openssl
a004e72b95835136d3f1ea90517f706c24c03da7
164,529,904,437,389,300,000,000,000,000,000,000,000
173
Avoid some undefined pointer arithmetic A common idiom in the codebase is: if (p + len > limit) { return; /* Too long */ } Where "p" points to some malloc'd data of SIZE bytes and limit == p + SIZE "len" here could be from some externally supplied data (e.g. from a TLS message). The rules of C pointer arithmet...
static OPJ_BOOL bmp_read_rle8_data(FILE* IN, OPJ_UINT8* pData, OPJ_UINT32 stride, OPJ_UINT32 width, OPJ_UINT32 height) { OPJ_UINT32 x, y; OPJ_UINT8 *pix; const OPJ_UINT8 *beyond; beyond = pData + stride * height; pix = pData; x = y = 0U; while (y < height...
1
[ "CWE-400", "CWE-703", "CWE-834" ]
openjpeg
8ee335227bbcaf1614124046aa25e53d67b11ec3
263,177,549,907,825,970,000,000,000,000,000,000,000
79
convertbmp: detect invalid file dimensions early width/length dimensions read from bmp headers are not necessarily valid. For instance they may have been maliciously set to very large values with the intention to cause DoS (large memory allocation, stack overflow). In these cases we want to detect the invalid size as ...
async_implicit_handshake_dispatch (GPollableInputStream *stream, gpointer user_data) { TestConnection *test = user_data; GError *error = NULL; gchar buffer[TEST_DATA_LENGTH]; gssize size; gboolean keep_running; size = g_pollable_input_stream_read_nonblocking (stream, buff...
0
[ "CWE-295" ]
glib-networking
29513946809590c4912550f6f8620468f9836d94
85,915,363,046,241,830,000,000,000,000,000,000,000
29
Return bad identity error if identity is unset When the server-identity property of GTlsClientConnection is unset, the documentation sasy we need to fail the certificate verification with G_TLS_CERTIFICATE_BAD_IDENTITY. This is important because otherwise, it's easy for applications to fail to specify server identity....
inline void MulSimpleBroadcast(int size, const ArithmeticParams& params, const float broadcast_value, const float* input2_data, float* output_data) { int i = 0; #ifdef USE_NEON const float32x4_t output_activation_min_vector = vdupq_n_f32(params.flo...
0
[ "CWE-476", "CWE-369" ]
tensorflow
15691e456c7dc9bd6be203b09765b063bf4a380c
313,282,065,232,284,340,000,000,000,000,000,000,000
29
Prevent dereferencing of null pointers in TFLite's `add.cc`. PiperOrigin-RevId: 387244946 Change-Id: I56094233327fbd8439b92e1dbb1262176e00eeb9
parse_path_key_expr(const char *id, const char **prefix, int *pref_len, const char **name, int *nam_len, int *parent_times) { int parsed = 0, ret, par_times = 0; assert(id); assert(parent_times); if (prefix) { *prefix = NULL; } if (pref_len) { *pref_len = 0; ...
0
[ "CWE-119" ]
libyang
32fb4993bc8bb49e93e84016af3c10ea53964be5
276,635,767,864,662,700,000,000,000,000,000,000,000
115
schema tree BUGFIX do not check features while still resolving schema Fixes #723
virNodeDeviceCapSCSIHostDefFormat(virBufferPtr buf, const virNodeDevCapData *data) { virBufferAsprintf(buf, "<host>%d</host>\n", data->scsi_host.host); if (data->scsi_host.unique_id != -1) virBufferAsprintf(buf, "<unique_id>%d</unique_id>\n", ...
0
[ "CWE-119" ]
libvirt
4c4d0e2da07b5a035b26a0ff13ec27070f7c7b1a
242,048,368,178,519,950,000,000,000,000,000,000,000
31
conf: Fix segfault when parsing mdev types Commit f1b0890 introduced a potential crash due to incorrect operator precedence when accessing an element from a pointer to an array. Backtrace below: #0 virNodeDeviceGetMdevTypesCaps (sysfspath=0x7fff801661e0 "/sys/devices/pci0000:00/0000:00:02.0", mdev_types=0x7fff801...
void CLASS parse_fuji(int offset) { unsigned entries, tag, len, save, c; fseek(ifp, offset, SEEK_SET); entries = get4(); if (entries > 255) return; #ifdef LIBRAW_LIBRARY_BUILD imgdata.process_warnings |= LIBRAW_WARN_PARSEFUJI_PROCESSED; #endif while (entries--) { tag = get2(); len = get2(); ...
0
[ "CWE-400" ]
LibRaw
e67a9862d10ebaa97712f532eca1eb5e2e410a22
171,302,778,804,557,200,000,000,000,000,000,000,000
205
Fixed Secunia Advisory SA86384 - possible infinite loop in unpacked_load_raw() - possible infinite loop in parse_rollei() - possible infinite loop in parse_sinar_ia() Credits: Laurent Delosieres, Secunia Research at Flexera
static void io_req_caches_free(struct io_ring_ctx *ctx) { struct io_submit_state *submit_state = &ctx->submit_state; struct io_comp_state *cs = &ctx->submit_state.comp; mutex_lock(&ctx->uring_lock); if (submit_state->free_reqs) { kmem_cache_free_bulk(req_cachep, submit_state->free_reqs, submit_state->...
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
318,030,393,724,481,850,000,000,000,000,000,000,000
22
io_uring: ensure that SQPOLL thread is started for exit If we create it in a disabled state because IORING_SETUP_R_DISABLED is set on ring creation, we need to ensure that we've kicked the thread if we're exiting before it's been explicitly disabled. Otherwise we can run into a deadlock where exit is waiting go park t...
static int ssl_set_verify_partial (SSL_CTX *ctx) { int rv = 0; #ifdef HAVE_SSL_PARTIAL_CHAIN X509_VERIFY_PARAM *param; if (option (OPTSSLVERIFYPARTIAL)) { param = X509_VERIFY_PARAM_new(); if (param) { X509_VERIFY_PARAM_set_flags(param, X509_V_FLAG_PARTIAL_CHAIN); if (0 == SSL_CTX_set1_p...
0
[ "CWE-74" ]
mutt
c547433cdf2e79191b15c6932c57f1472bfb5ff4
2,475,329,568,806,973,300,000,000,000,000,000,000
28
Fix STARTTLS response injection attack. Thanks again to Damian Poddebniak and Fabian Ising from the Münster University of Applied Sciences for reporting this issue. Their summary in ticket 248 states the issue clearly: We found another STARTTLS-related issue in Mutt. Unfortunately, it affects SMTP, POP3 and IMAP...
static int decode_statfs(struct xdr_stream *xdr, struct nfs_fsstat *fsstat) { unsigned int savep; uint32_t attrlen, bitmap[3] = {0}; int status; if ((status = decode_op_hdr(xdr, OP_GETATTR)) != 0) goto xdr_error; if ((status = decode_attr_bitmap(xdr, bitmap)) != 0) goto xdr_error; if ((status = decode_attr_l...
0
[ "CWE-787" ]
linux
b4487b93545214a9db8cbf32e86411677b0cca21
306,377,305,321,553,860,000,000,000,000,000,000,000
36
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 int calculate_nss_hash( struct crypto_instance *instance, const unsigned char *buf, const size_t buf_len, unsigned char *hash) { PK11Context* hash_context = NULL; SECItem hash_param; unsigned int hash_tmp_outlen = 0; unsigned char hash_block[hash_block_len[instance->crypto_hash_type]]; int err = -1; ...
0
[ "CWE-703" ]
corosync
b3f456a8ceefac6e9f2e9acc2ea0c159d412b595
219,263,462,782,813,300,000,000,000,000,000,000,000
69
totemcrypto: fix hmac key initialization Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com> Reviewed-by: Jan Friesse <jfriesse@redhat.com>
do_load_function_ptr (VerifyContext *ctx, guint32 token, gboolean virtual) { ILStackDesc *top; MonoMethod *method; if (virtual && !check_underflow (ctx, 1)) return; if (!virtual && !check_overflow (ctx)) return; if (!IS_METHOD_DEF_OR_REF_OR_SPEC (token) || !token_bounds_check (ctx->image, token)) { ADD_VE...
0
[ "CWE-20" ]
mono
4905ef1130feb26c3150b28b97e4a96752e0d399
195,187,485,276,843,040,000,000,000,000,000,000,000
41
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
_run_trap_internal (sig, tag) int sig; char *tag; { char *trap_command, *old_trap; int trap_exit_value, *token_state; volatile int save_return_catch_flag, function_code, top_level_code, old_int; int flags; procenv_t save_return_catch; WORD_LIST *save_subst_varlist; sh_parser_state_t pstate; #if ...
1
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
114,395,540,523,453,390,000,000,000,000,000,000,000
116
bash-4.4-rc2 release
GF_AVCConfig *gf_isom_mvc_config_get(GF_ISOFile *the_file, u32 trackNumber, u32 DescriptionIndex) { GF_TrackBox *trak; GF_MPEGVisualSampleEntryBox *entry; trak = gf_isom_get_track_from_file(the_file, trackNumber); if (!trak || !trak->Media || !DescriptionIndex) return NULL; if (gf_isom_get_avc_svc_type(the_file, t...
0
[ "CWE-119", "CWE-787" ]
gpac
90dc7f853d31b0a4e9441cba97feccf36d8b69a4
56,121,746,617,335,040,000,000,000,000,000,000,000
13
fix some exploitable overflows (#994, #997)
START_TEST(dpi_parser) { struct parser_test tests[] = { { "450 *1800 3200", 1800 }, { "*450 1800 3200", 450 }, { "450 1800 *3200", 3200 }, { "450 1800 3200", 3200 }, { "450 1800 failboat", 0 }, { "450 1800 *failboat", 0 }, { "0 450 1800 *3200", 0 }, { "450@37 1800@12 *3200@6", 3200 }, { "450@125 1800...
0
[ "CWE-134" ]
libinput
a423d7d3269dc32a87384f79e29bb5ac021c83d1
227,971,525,158,440,620,000,000,000,000,000,000,000
37
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...
SRC_SelectSource(SRC_Instance updated_inst) { struct SelectInfo *si; struct timespec now, ref_time; int i, j, j1, j2, index, sel_prefer, n_endpoints, n_sel_sources, sel_req_source; int n_badstats_sources, max_sel_reach, max_sel_reach_size, max_badstat_reach; int depth, best_depth, trust_depth, best_trust_dept...
0
[ "CWE-59" ]
chrony
e18903a6b56341481a2e08469c0602010bf7bfe3
56,721,308,695,517,760,000,000,000,000,000,000,000
497
switch to new util file functions Replace all fopen(), rename(), and unlink() calls with the new util functions.
ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt, ObjectAddress *oldSchemaAddr) { ObjectAddress address; Oid oldNspOid; switch (stmt->objectType) { case OBJECT_EXTENSION: address = AlterExtensionNamespace(strVal((Value *) stmt->object), stmt->newschema, oldSchemaAddr ? &oldNspOid :...
0
[ "CWE-862" ]
postgres
b048f558dd7c26a0c630a2cff29d3d8981eaf6b9
114,570,561,615,124,210,000,000,000,000,000,000,000
77
Fix priv checks for ALTER <object> DEPENDS ON EXTENSION Marking an object as dependant on an extension did not have any privilege check whatsoever; this allowed any user to mark objects as droppable by anyone able to DROP EXTENSION, which could be used to cause system-wide havoc. Disallow by checking that the calling...
explicit Conv2DBackpropInputOp(OpKernelConstruction* context) : OpKernel(context) { string data_format; OP_REQUIRES_OK(context, context->GetAttr("data_format", &data_format)); OP_REQUIRES(context, FormatFromString(data_format, &data_format_), errors::InvalidArgument("Invalid data for...
0
[ "CWE-369" ]
tensorflow
2be2cdf3a123e231b16f766aa0e27d56b4606535
68,491,486,667,767,250,000,000,000,000,000,000,000
63
Prevent yet another division by zero PiperOrigin-RevId: 369343977 Change-Id: I1a60da4cf512e60fd91e069c16e026544632fe7f
static int32_t scsi_block_dma_command(SCSIRequest *req, uint8_t *buf) { SCSIBlockReq *r = (SCSIBlockReq *)req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); r->cmd = req->cmd.buf[0]; switch (r->cmd >> 5) { case 0: /* 6-byte CDB. */ r->cdb1 = r->group_number = 0; ...
0
[ "CWE-193" ]
qemu
b3af7fdf9cc537f8f0dd3e2423d83f5c99a457e8
298,085,307,722,988,760,000,000,000,000,000,000,000
41
hw/scsi/scsi-disk: MODE_PAGE_ALLS not allowed in MODE SELECT commands This avoids an off-by-one read of 'mode_sense_valid' buffer in hw/scsi/scsi-disk.c:mode_sense_page(). Fixes: CVE-2021-3930 Cc: qemu-stable@nongnu.org Reported-by: Alexander Bulekov <alxndr@bu.edu> Fixes: a8f4bbe2900 ("scsi-disk: store valid mode pa...
conf_fgets(char *buf, const int max) { int i; for(;;) { if(fgets(buf, max, f_in[cur_fin]) == NULL) { fclose(f_in[cur_fin]); free(f_name[cur_fin]); if(cur_fin > 0) { cur_fin--; continue; } else return NULL; ...
0
[]
pound
a0c52c542ca9620a96750f9877b26bf4c84aef1b
232,554,372,926,132,200,000,000,000,000,000,000,000
38
SSL Compression Disable patch for 2.6f This patch disables SSL/TLS compression entirely. There is no config option. This prevents CRIME attacks against SSL. Note that HTTP compression is still an option. Test your server at https://www.ssllabs.com/ssldb/ Original patch by Hereward Cooper <coops@fawk.eu> Openssl 0...
static const char *set_limit_req_fieldsize(cmd_parms *cmd, void *dummy, const char *arg) { const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE); int lim; if (err != NULL) { return err; } lim = atoi(arg); if (lim < 0) { retu...
0
[ "CWE-416", "CWE-284" ]
httpd
4cc27823899e070268b906ca677ee838d07cf67a
178,540,992,588,189,900,000,000,000,000,000,000,000
20
core: Disallow Methods' registration at run time (.htaccess), they may be used only if registered at init time (httpd.conf). Calling ap_method_register() in children processes is not the right scope since it won't be shared for all requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1807655 13f7...
void Item_func_set_user_var::make_field(THD *thd, Send_field *tmp_field) { if (result_field) { result_field->make_field(tmp_field); DBUG_ASSERT(tmp_field->table_name != 0); if (Item::name) tmp_field->col_name=Item::name; // Use user supplied name } else Item::make_field(thd, ...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
201,842,783,246,174,130,000,000,000,000,000,000,000
12
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 MSG_WriteChar( msg_t *sb, int c ) { #ifdef PARANOID if (c < -128 || c > 127) Com_Error (ERR_FATAL, "MSG_WriteChar: range error"); #endif MSG_WriteBits( sb, c, 8 ); }
0
[ "CWE-119" ]
ioq3
d2b1d124d4055c2fcbe5126863487c52fd58cca1
188,591,036,082,677,950,000,000,000,000,000,000,000
8
Fix/improve buffer overflow in MSG_ReadBits/MSG_WriteBits Prevent reading past end of message in MSG_ReadBits. If read past end of msg->data buffer (16348 bytes) the engine could SEGFAULT. Make MSG_WriteBits use an exact buffer overflow check instead of possibly failing with a few bytes left.
int snd_compress_register(struct snd_compr *device) { int retval; if (device->name == NULL || device->dev == NULL || device->ops == NULL) return -EINVAL; pr_debug("Registering compressed device %s\n", device->name); if (snd_BUG_ON(!device->ops->open)) return -EINVAL; if (snd_BUG_ON(!device->ops->free)) ret...
0
[ "CWE-703" ]
linux
6217e5ede23285ddfee10d2e4ba0cc2d4c046205
245,597,978,496,440,160,000,000,000,000,000,000,000
25
ALSA: compress: fix an integer overflow check I previously added an integer overflow check here but looking at it now, it's still buggy. The bug happens in snd_compr_allocate_buffer(). We multiply ".fragments" and ".fragment_size" and that doesn't overflow but then we save it in an unsigned int so it truncates the h...
unsigned char Transform::threshold( vector<unsigned int>& histogram ){ const unsigned int bits = histogram.size(); // Calculate sum float sum = 0.0, sumb = 0.0; unsigned int np = 0; for( unsigned int n=0; n<bits; n++ ){ np += histogram[n]; sum += (float)n * histogram[n]; } // Calculate threshol...
0
[ "CWE-190" ]
iipsrv
882925b295a80ec992063deffc2a3b0d803c3195
291,825,005,937,768,650,000,000,000,000,000,000,000
34
- Modified TileManager.cc to verify that malloc() has correctly allocated memory. - Updated numerical types to std::size_t in RawTile.h, TileManager.cc, KakaduImage.cc, OpenJPEG.cc and Transforms.cc when allocating memory via new to avoid integer overflow - fixes remaining problems identified in https://github.com/ruve...
ngx_mail_starttls_handler(ngx_event_t *rev) { ngx_connection_t *c; ngx_mail_session_t *s; ngx_mail_ssl_conf_t *sslcf; c = rev->data; s = c->data; s->starttls = 1; c->log->action = "in starttls state"; sslcf = ngx_mail_get_module_srv_conf(s, ngx_mail_ssl_module); ngx_mail_s...
0
[ "CWE-284", "CWE-295" ]
nginx
173f16f736c10eae46cd15dd861b04b82d91a37a
175,463,077,783,044,640,000,000,000,000,000,000,000
16
Mail: max_errors directive. Similarly to smtpd_hard_error_limit in Postfix and smtp_max_unknown_commands in Exim, specifies the number of errors after which the connection is closed.
bool ndp_msg_opt_prefix_flag_router_addr(struct ndp_msg *msg, int offset) { struct nd_opt_prefix_info *pi = ndp_msg_payload_opts_offset(msg, offset); return pi->nd_opt_pi_flags_reserved & ND_OPT_PI_FLAG_RADDR; }
0
[ "CWE-284" ]
libndp
a4892df306e0532487f1634ba6d4c6d4bb381c7f
89,199,178,553,413,690,000,000,000,000,000,000,000
7
libndp: validate the IPv6 hop limit None of the NDP messages should ever come from a non-local network; as stated in RFC4861's 6.1.1 (RS), 6.1.2 (RA), 7.1.1 (NS), 7.1.2 (NA), and 8.1. (redirect): - The IP Hop Limit field has a value of 255, i.e., the packet could not possibly have been forwarded by a router. T...
static int parse_dysymtab(struct MACH0_(obj_t)* bin, ut64 off) { int len, i; ut32 size_tab; ut8 dysym[sizeof (struct dysymtab_command)] = {0}; ut8 dytoc[sizeof (struct dylib_table_of_contents)] = {0}; ut8 dymod[sizeof (struct MACH0_(dylib_module))] = {0}; ut8 idsyms[sizeof (ut32)] = {0}; if (off > bin->size || ...
0
[ "CWE-415", "CWE-125" ]
radare2
60208765887f5f008b3b9a883f3addc8bdb9c134
331,530,019,164,699,800,000,000,000,000,000,000,000
152
Fix #9970 - heap oobread in mach0 parser (#10026)
static void PushRunlengthPacket(Image *image,const unsigned char *pixels, size_t *length,PixelInfo *pixel,ExceptionInfo *exception) { const unsigned char *p; p=pixels; if (image->storage_class == PseudoClass) { pixel->index=0.0; switch (image->depth) { case 32: { ...
0
[ "CWE-772" ]
ImageMagick
4b352c0be410ad900469a079e389178f878aded8
117,743,940,351,498,850,000,000,000,000,000,000,000
187
https://github.com/ImageMagick/ImageMagick/issues/1191
static JSValue js_sys_prop_get(JSContext *ctx, JSValueConst this_val, int magic) { u32 uval; Bool bval; const char *res; GF_SystemRTInfo rti; if (magic<=JS_SYS_GPAC_MEM) { gf_sys_get_rti(RTI_REFRESH_MS, &rti, 0); switch (magic) { case JS_SYS_NB_CORES: return JS_NewInt32(ctx, rti.nb_cores); case JS_SYS_...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
122,981,398,219,332,900,000,000,000,000,000,000,000
149
fixed #2138
void MainWindow::keyReleaseEvent(QKeyEvent* event) { if (event->key() == Qt::Key_K) { m_isKKeyPressed = false; event->setAccepted(true); } else { QMainWindow::keyReleaseEvent(event); } }
0
[ "CWE-89", "CWE-327", "CWE-295" ]
shotcut
f008adc039642307f6ee3378d378cdb842e52c1d
208,852,301,656,566,000,000,000,000,000,000,000,000
9
fix upgrade check is not using TLS correctly
*/ static int xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op) { int total = 0; int equal, ret; xmlXPathCompExprPtr comp; xmlXPathObjectPtr arg1, arg2; xmlNodePtr bak; xmlDocPtr bakd; int pp; int cs; CHECK_ERROR0; comp = ctxt->comp; switch (op->op) { ...
0
[ "CWE-415" ]
libxml2
f5048b3e71fc30ad096970b8df6e7af073bae4cb
295,330,638,408,783,750,000,000,000,000,000,000,000
871
Hardening of XPath evaluation Add a mechanism of frame for XPath evaluation when entering a function or a scoped evaluation, also fix a potential problem in predicate evaluation.
static int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg, size_t size) { struct kiocb iocb; struct sock_iocb siocb; int ret; init_sync_kiocb(&iocb, NULL); iocb.private = &siocb; ret = __sock_sendmsg_nosec(&iocb, sock, msg, size); if (-EIOCBQUEUED == ret) ret = wait_on_sync_kiocb(&iocb); return r...
0
[]
linux-2.6
644595f89620ba8446cc555be336d24a34464950
55,291,565,020,034,660,000,000,000,000,000,000,000
13
compat: Handle COMPAT_USE_64BIT_TIME in net/socket.c Use helper functions aware of COMPAT_USE_64BIT_TIME to write struct timeval and struct timespec to userspace in net/socket.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
void* IOBuf::operator new(size_t size) { if (size > kMaxIOBufSize) { throw_exception<std::bad_alloc>(); } size_t fullSize = offsetof(HeapStorage, buf) + size; auto storage = static_cast<HeapStorage*>(checkedMalloc(fullSize)); new (&storage->prefix) HeapPrefix(kIOBufInUse, fullSize); if (io_buf_alloc_c...
0
[ "CWE-787" ]
folly
4f304af1411e68851bdd00ef6140e9de4616f7d3
266,007,566,639,326,930,000,000,000,000,000,000,000
15
[folly] Add additional overflow checks to IOBuf - CVE-2021-24036 Summary: As per title CVE-2021-24036 Reviewed By: jan Differential Revision: D27938605 fbshipit-source-id: 7481c54ae6fbb7b67b15b3631d5357c2f7043f9c
signal_is_ignored (sig) int sig; { return (sigmodes[sig] & SIG_IGNORED); }
0
[]
bash
955543877583837c85470f7fb8a97b7aa8d45e6c
319,098,876,483,749,250,000,000,000,000,000,000,000
5
bash-4.4-rc2 release
mcs_recv(uint16 * channel, uint8 * rdpver) { uint8 opcode, appid, length; STREAM s; s = iso_recv(rdpver); if (s == NULL) return NULL; if (rdpver != NULL) if (*rdpver != 3) return s; in_uint8(s, opcode); appid = opcode >> 2; if (appid != MCS_SDIN) { if (appid != MCS_DPUM) { error("expected data, ...
0
[ "CWE-787" ]
rdesktop
766ebcf6f23ccfe8323ac10242ae6e127d4505d2
330,589,385,095,099,300,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...
_nm_singleton_instance_weak_cb(gpointer data, GObject *where_the_object_was) { nm_assert(g_slist_find(_singletons, where_the_object_was)); _singletons = g_slist_remove(_singletons, where_the_object_was); }
0
[ "CWE-20" ]
NetworkManager
420784e342da4883f6debdfe10cde68507b10d27
281,797,287,516,498,640,000,000,000,000,000,000,000
6
core: fix crash in nm_wildcard_match_check() It's not entirely clear how to treat %NULL. Clearly "match.interface-name=eth0" should not match with an interface %NULL. But what about "match.interface-name=!eth0"? It's now implemented that negative matches still succeed against %NULL. What about "match.interface-name=*"...
static int pep_do_rcv(struct sock *sk, struct sk_buff *skb) { struct pep_sock *pn = pep_sk(sk); struct sock *sknode; struct pnpipehdr *hdr; struct sockaddr_pn dst; u8 pipe_handle; if (!pskb_may_pull(skb, sizeof(*hdr))) goto drop; hdr = pnp_hdr(skb); pipe_handle = hdr->pipe_handle; if (pipe_handle == PN_PIP...
0
[ "CWE-200" ]
net
bcd0f93353326954817a4f9fa55ec57fb38acbb0
89,567,974,515,857,800,000,000,000,000,000,000,000
60
phonet: refcount leak in pep_sock_accep sock_hold(sk) is invoked in pep_sock_accept(), but __sock_put(sk) is not invoked in subsequent failure branches(pep_accept_conn() != 0). Signed-off-by: Hangyu Hua <hbh25y@gmail.com> Link: https://lore.kernel.org/r/20211209082839.33985-1-hbh25y@gmail.com Signed-off-by: Jakub Kic...
get_record_from_cache( ulong recno ) { CACHE_CTRL r; for( r = cache_list; r; r = r->next ) { if( r->flags.used && r->recno == recno ) return r->data; } return NULL; }
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
200,765,344,628,188,560,000,000,000,000,000,000,000
10
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
static optional<Principal> parse_principal(CephContext* cct, TokenID t, string&& s) { // Wildcard! if ((t == TokenID::AWS) && (s == "*")) { return Principal::wildcard(); // Do nothing for now. } else if (t == TokenID::CanonicalUser) { // AWS ARNs } else if (t == TokenID::AWS) { auto a ...
1
[ "CWE-617" ]
ceph
b3118cabb8060a8cc6a01c4e8264cb18e7b1745a
49,774,645,375,798,640,000,000,000,000,000,000,000
50
rgw: Remove assertions in IAM Policy A couple of them could be triggered by user input. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
static int nf_tables_addchain(struct nft_ctx *ctx, u8 family, u8 genmask, u8 policy, u32 flags, struct netlink_ext_ack *extack) { const struct nlattr * const *nla = ctx->nla; struct nft_table *table = ctx->table; struct nft_base_chain *basechain; struct nft_stats __percpu *stats; struct net *net ...
0
[]
net
520778042ccca019f3ffa136dd0ca565c486cedd
263,944,665,002,362,470,000,000,000,000,000,000,000
138
netfilter: nf_tables: disallow non-stateful expression in sets earlier Since 3e135cd499bf ("netfilter: nft_dynset: dynamic stateful expression instantiation"), it is possible to attach stateful expressions to set elements. cd5125d8f518 ("netfilter: nf_tables: split set destruction in deactivate and destroy phase") in...
longlong Item_cache_temporal::val_time_packed() { DBUG_ASSERT(fixed == 1); if (Item_cache_temporal::field_type() != MYSQL_TYPE_TIME) return Item::val_time_packed(); // DATETIME-to-TIME conversion needed if ((!value_cached && !cache_value()) || null_value) { null_value= TRUE; return 0; } return v...
0
[ "CWE-416" ]
server
c02ebf3510850ba78a106be9974c94c3b97d8585
219,748,428,312,512,700,000,000,000,000,000,000,000
12
MDEV-24176 Preparations 1. moved fix_vcol_exprs() call to open_table() mysql_alter_table() doesn't do lock_tables() so it cannot win from fix_vcol_exprs() from there. Tests affected: main.default_session 2. Vanilla cleanups and comments.
rbtk_preserve_ip(ptr) struct tcltkip *ptr; { ptr->ref_count++; if (ptr->ip == (Tcl_Interp*)NULL) { /* deleted IP */ ptr->ref_count = 0; } else { Tcl_Preserve((ClientData)ptr->ip); } return(ptr->ref_count); }
0
[]
tk
ebd0fc80d62eeb7b8556522256f8d035e013eb65
104,232,990,662,580,060,000,000,000,000,000,000,000
12
tcltklib.c: check argument * ext/tk/tcltklib.c (ip_cancel_eval_core): check argument type and length. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
static int hidpp_root_get_protocol_version(struct hidpp_device *hidpp) { const u8 ping_byte = 0x5a; u8 ping_data[3] = { 0, 0, ping_byte }; struct hidpp_report response; int ret; ret = hidpp_send_rap_command_sync(hidpp, REPORT_ID_HIDPP_SHORT, HIDPP_PAGE_ROOT_IDX, CMD_ROOT_GET_PROTOCOL_VERSION, ping_dat...
0
[ "CWE-787" ]
linux
d9d4b1e46d9543a82c23f6df03f4ad697dab361b
39,443,763,374,071,056,000,000,000,000,000,000,000
45
HID: Fix assumption that devices have inputs The syzbot fuzzer found a slab-out-of-bounds write bug in the hid-gaff driver. The problem is caused by the driver's assumption that the device must have an input report. While this will be true for all normal HID input devices, a suitably malicious device can violate the...
static int _ext4_show_options(struct seq_file *seq, struct super_block *sb, int nodefs) { struct ext4_sb_info *sbi = EXT4_SB(sb); struct ext4_super_block *es = sbi->s_es; int def_errors, def_mount_opt = sbi->s_def_mount_opt; const struct mount_opts *m; char sep = nodefs ? '\n' : ','; #define SEQ_OPTS_PUT...
0
[ "CWE-416" ]
linux
8844618d8aa7a9973e7b527d038a2a589665002c
252,220,218,473,023,600,000,000,000,000,000,000,000
79
ext4: only look at the bg_flags field if it is valid The bg_flags field in the block group descripts is only valid if the uninit_bg or metadata_csum feature is enabled. We were not consistently looking at this field; fix this. Also block group #0 must never have uninitialized allocation bitmaps, or need to be zeroed...
static int __dispose_buffer(struct journal_head *jh, transaction_t *transaction) { int may_free = 1; struct buffer_head *bh = jh2bh(jh); if (jh->b_cp_transaction) { JBUFFER_TRACE(jh, "on running+cp transaction"); __jbd2_journal_temp_unlink_buffer(jh); /* * We don't want to write the buffer anymore, clear t...
0
[ "CWE-416" ]
linux
cc16eecae687912238ee6efbff71ad31e2bc414e
185,647,564,489,764,630,000,000,000,000,000,000,000
23
jbd2: fix use-after-free of transaction_t race jbd2_journal_wait_updates() is called with j_state_lock held. But if there is a commit in progress, then this transaction might get committed and freed via jbd2_journal_commit_transaction() -> jbd2_journal_free_transaction(), when we release j_state_lock. So check for jou...
void CWebServer::RType_GetSharedUserDevices(WebEmSession & session, const request& req, Json::Value &root) { std::string idx = request::findValue(&req, "idx"); if (idx.empty()) return; root["status"] = "OK"; root["title"] = "GetSharedUserDevices"; std::vector<std::vector<std::string> > result; ...
0
[ "CWE-89" ]
domoticz
ee70db46f81afa582c96b887b73bcd2a86feda00
35,522,657,372,323,053,000,000,000,000,000,000,000
21
Fixed possible SQL Injection Vulnerability (Thanks to Fabio Carretto!)
mono_field_from_token (MonoImage *image, guint32 token, MonoClass **retklass, MonoGenericContext *context) { MonoClass *k; guint32 type; MonoClassField *field; if (image->dynamic) { MonoClassField *result; MonoClass *handle_class; *retklass = NULL; result = mono_lookup_dynamic_token_class (image,...
0
[]
mono
8e890a3bf80a4620e417814dc14886b1bbd17625
41,086,841,628,547,635,000,000,000,000,000,000,000
51
Search for dllimported shared libs in the base directory, not cwd. * loader.c: we don't search the current directory anymore for shared libraries referenced in DllImport attributes, as it has a slight security risk. We search in the same directory where the referencing image was loaded from, instead. Fixes bug# 641915...
static void xmlGROW (xmlParserCtxtPtr ctxt) { unsigned long curEnd = ctxt->input->end - ctxt->input->cur; unsigned long curBase = ctxt->input->cur - ctxt->input->base; if (((curEnd > (unsigned long) XML_MAX_LOOKUP_LIMIT) || (curBase > (unsigned long) XML_MAX_LOOKUP_LIMIT)) && ((ctxt->inpu...
0
[ "CWE-119" ]
libxml2
35bcb1d758ed70aa7b257c9c3b3ff55e54e3d0da
79,968,965,907,721,410,000,000,000,000,000,000,000
23
Detect incoherency on GROW the current pointer to the input has to be between the base and end if not stop everything we have an internal state error.
static int wireless_seq_open(struct inode *inode, struct file *file) { return seq_open(file, &wireless_seq_ops); }
0
[ "CWE-200" ]
linux-2.6
9ef1d4c7c7aca1cd436612b6ca785b726ffb8ed8
684,521,697,772,255,300,000,000,000,000,000,000
4
[NETLINK]: Missing initializations in dumped data Mostly missing initialization of padding fields of 1 or 2 bytes length, two instances of uninitialized nlmsgerr->msg of 16 bytes length. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
static void usage(void) { sds version = cliVersion(); fprintf(stderr, "redis-cli %s\n" "\n" "Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]\n" " -h <hostname> Server hostname (default: 127.0.0.1).\n" " -p <port> Server port (default: 6379).\n" " -s <socket> Server socket (overrides hos...
0
[ "CWE-119", "CWE-787" ]
redis
9fdcc15962f9ff4baebe6fdd947816f43f730d50
203,535,739,112,609,840,000,000,000,000,000,000,000
74
Security: fix redis-cli buffer overflow. Thanks to Fakhri Zulkifli for reporting it. The fix switched to dynamic allocation, copying the final prompt in the static buffer only at the end.
static bool check_slave_skip_counter(sys_var *self, THD *thd, set_var *var) { bool result= false; mysql_mutex_lock(&LOCK_active_mi); mysql_mutex_lock(&active_mi->rli.run_lock); if (active_mi->rli.slave_running) { my_message(ER_SLAVE_MUST_STOP, ER(ER_SLAVE_MUST_STOP), MYF(0)); result= true; } mysql...
0
[ "CWE-264" ]
mysql-server
48bd8b16fe382be302c6f0b45931be5aa6f29a0e
249,979,358,198,446,680,000,000,000,000,000,000,000
14
Bug#24388753: PRIVILEGE ESCALATION USING MYSQLD_SAFE [This is the 5.5/5.6 version of the bugfix]. The problem was that it was possible to write log files ending in .ini/.cnf that later could be parsed as an options file. This made it possible for users to specify startup options without the permissions to do so. Thi...
int set_decryption_serial(MOBIData *m, const char *serial) { printf("\nVerifying serial %s... ", serial); MOBI_RET mobi_ret = mobi_drm_setkey_serial(m, serial); if (mobi_ret != MOBI_SUCCESS) { printf("failed (%s)\n", libmobi_msg(mobi_ret)); return (int) mobi_ret; } printf("ok\n"); ...
0
[ "CWE-476" ]
libmobi
c0699c8693c47f14a2e57dec7292e862ac7adf9c
138,563,326,546,913,140,000,000,000,000,000,000,000
10
Fix undefined behavior when passing null to strdup
proxy_C_SignFinal (CK_X_FUNCTION_LIST *self, CK_SESSION_HANDLE handle, CK_BYTE_PTR signature, CK_ULONG_PTR signature_len) { State *state = (State *)self; Mapping map; CK_RV rv; rv = map_session_to_real (state->px, &handle, &map, NULL); if (rv != CKR_OK) r...
0
[ "CWE-190" ]
p11-kit
5307a1d21a50cacd06f471a873a018d23ba4b963
201,497,588,912,418,360,000,000,000,000,000,000,000
14
Check for arithmetic overflows before allocating
*/ static void xmlXPathCompileExpr(xmlXPathParserContextPtr ctxt, int sort) { xmlXPathCompAndExpr(ctxt); CHECK_ERROR; SKIP_BLANKS; while ((CUR == 'o') && (NXT(1) == 'r')) { int op1 = ctxt->comp->last; SKIP(2); SKIP_BLANKS; xmlXPathCompAndExpr(ctxt); CHECK_ERROR; PUSH_BINARY_EXPR(XPA...
0
[ "CWE-119" ]
libxml2
91d19754d46acd4a639a8b9e31f50f31c78f8c9c
52,778,977,708,820,820,000,000,000,000,000,000,000
23
Fix the semantic of XPath axis for namespace/attribute context nodes The processing of namespace and attributes nodes was not compliant to the XPath-1.0 specification
char *vnc_display_local_addr(DisplayState *ds) { VncDisplay *vs = ds ? (VncDisplay *)ds->opaque : vnc_display; return vnc_socket_local_addr("%s:%s", vs->lsock); }
0
[ "CWE-125" ]
qemu
9f64916da20eea67121d544698676295bbb105a7
217,398,291,061,481,370,000,000,000,000,000,000,000
6
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...
TEST_F(QueryPlannerTest, ContainedOrPathLevelMultikeyCombineLeadingFields) { MultikeyPaths multikeyPaths{{}, {0U}}; addIndex(BSON("a" << 1 << "c" << 1), multikeyPaths); addIndex(BSON("b" << 1)); runQuery(fromjson("{$and: [{a: {$gte: 0}}, {$or: [{a: {$lte: 10}}, {b: 6}]}]}")); assertNumSolutions(3);...
0
[]
mongo
ee97c0699fd55b498310996ee002328e533681a3
154,539,335,318,434,300,000,000,000,000,000,000,000
20
SERVER-36993 Fix crash due to incorrect $or pushdown for indexed $expr.
static void audit_log_exit(struct audit_context *context, struct task_struct *tsk) { int i, call_panic = 0; struct audit_buffer *ab; struct audit_aux_data *aux; struct audit_names *n; /* tsk == current */ context->personality = tsk->personality; ab = audit_log_start(context, GFP_KERNEL, AUDIT_SYSCALL); if (!a...
0
[ "CWE-362" ]
linux
43761473c254b45883a64441dd0bc85a42f3645c
239,789,463,924,680,500,000,000,000,000,000,000,000
126
audit: fix a double fetch in audit_log_single_execve_arg() There is a double fetch problem in audit_log_single_execve_arg() where we first check the execve(2) argumnets for any "bad" characters which would require hex encoding and then re-fetch the arguments for logging in the audit record[1]. Of course this leaves a...
void CoreUserInputHandler::handleSay(const BufferInfo &bufferInfo, const QString &msg) { if (bufferInfo.bufferName().isEmpty() || !bufferInfo.acceptsRegularMessages()) return; // server buffer std::function<QByteArray(const QString &, const QString &)> encodeFunc = [this] (const QString &target, const...
0
[ "CWE-399" ]
quassel
b5e38970ffd55e2dd9f706ce75af9a8d7730b1b8
234,385,565,116,642,770,000,000,000,000,000,000,000
16
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...
TfLiteStatus Subgraph::ReplaceNodeSubsetsWithDelegateKernels( TfLiteRegistration registration, const TfLiteIntArray* nodes_to_replace, TfLiteDelegate* delegate) { // Ignore empty node replacement sets. if (!nodes_to_replace->size) { return kTfLiteOk; } // Annotate the registration as DELEGATE op. ...
0
[ "CWE-20", "CWE-787" ]
tensorflow
d58c96946b2880991d63d1dacacb32f0a4dfa453
156,202,674,432,959,350,000,000,000,000,000,000,000
66
[tflite] Ensure inputs and outputs don't overlap. If a model uses the same tensor for both an input and an output then this can result in data loss and memory corruption. This should not happen. PiperOrigin-RevId: 332522916 Change-Id: If0905b142415a9dfceaf2d181872f2a8fb88f48a
void routerlist_descriptors_added(smartlist_t *sl, int from_cache) { tor_assert(sl); control_event_descriptors_changed(sl); SMARTLIST_FOREACH_BEGIN(sl, routerinfo_t *, ri) { if (ri->purpose == ROUTER_PURPOSE_BRIDGE) learned_bridge_descriptor(ri, from_cache); if (ri->needs_retest_if_added) { ri...
0
[]
tor
1afc2ed956a35b40dfd1d207652af5b50c295da7
157,901,682,005,579,750,000,000,000,000,000,000,000
13
Fix policies.c instance of the "if (r=(a-b)) return r" pattern I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related...
static int proc_cwd_link(struct inode *inode, struct path *path) { struct task_struct *task = get_proc_task(inode); int result = -ENOENT; if (task) { task_lock(task); if (task->fs) { get_fs_pwd(task->fs, path); result = 0; } task_unlock(task); put_task_struct(task); } return result; }
0
[ "CWE-284", "CWE-264" ]
linux
1d1221f375c94ef961ba8574ac4f85c8870ddd51
42,094,905,511,342,320,000,000,000,000,000,000,000
16
proc: restrict access to /proc/PID/io /proc/PID/io may be used for gathering private information. E.g. for openssh and vsftpd daemons wchars/rchars may be used to learn the precise password length. Restrict it to processes being able to ptrace the target process. ptrace_may_access() is needed to prevent keeping op...
PHP_FUNCTION(radius_auth_open) { radius_descriptor *raddesc; raddesc = emalloc(sizeof(radius_descriptor)); raddesc->radh = rad_auth_open(); if (raddesc->radh != NULL) { ZEND_REGISTER_RESOURCE(return_value, raddesc, le_radius); raddesc->id = Z_LVAL_P(return_value); } else { RETURN_FALSE; } }
0
[ "CWE-119", "CWE-787" ]
php-radius
13c149b051f82b709e8d7cc32111e84b49d57234
4,630,850,987,614,116,000,000,000,000,000,000,000
14
Fix a security issue in radius_get_vendor_attr(). The underlying rad_get_vendor_attr() function assumed that it would always be given valid VSA data. Indeed, the buffer length wasn't even passed in; the assumption was that the length field within the VSA structure would be valid. This could result in denial of servic...
void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud) { pud_t entry; unsigned long haddr; bool write = vmf->flags & FAULT_FLAG_WRITE; vmf->ptl = pud_lock(vmf->vma->vm_mm, vmf->pud); if (unlikely(!pud_same(*vmf->pud, orig_pud))) goto unlock; entry = pud_mkyoung(orig_pud); if (write) entry = pud_m...
0
[ "CWE-362" ]
linux
a8f97366452ed491d13cf1e44241bc0b5740b1f0
21,783,928,521,370,130,000,000,000,000,000,000,000
20
mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d() Currently, we unconditionally make page table dirty in touch_pmd(). It may result in false-positive can_follow_write_pmd(). We may avoid the situation, if we would only make the page table entry dirty if caller asks for write access -- FOLL_WRITE...
static int storageConnectIsEncrypted(virConnectPtr conn G_GNUC_UNUSED) { /* Not encrypted, but remote driver takes care of that */ return 0; }
0
[]
libvirt
447f69dec47e1b0bd15ecd7cd49a9fd3b050fb87
89,945,457,910,849,940,000,000,000,000,000,000,000
5
storage_driver: Unlock object on ACL fail in storagePoolLookupByTargetPath 'virStoragePoolObjListSearch' returns a locked and refed object, thus we must release it on ACL permission failure. Fixes: 7aa0e8c0cb8 Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1984318 Signed-off-by: Peter Krempa <pkrempa@redhat.co...
MaybeLocal<Value> GetValidTo( Environment* env, X509* cert, const BIOPointer& bio) { ASN1_TIME_print(bio.get(), X509_get0_notAfter(cert)); return ToV8Value(env, bio); }
0
[ "CWE-295" ]
node
466e5415a2b7b3574ab5403acb87e89a94a980d1
199,210,714,291,560,900,000,000,000,000,000,000,000
7
crypto,tls: implement safe x509 GeneralName format This change introduces JSON-compatible escaping rules for strings that include X.509 GeneralName components (see RFC 5280). This non-standard format avoids ambiguities and prevents injection attacks that could previously lead to X.509 certificates being accepted even ...
void Field_datetime::store_TIME(MYSQL_TIME *ltime) { ulonglong tmp= TIME_to_ulonglong_datetime(ltime); int8store(ptr,tmp); }
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
282,893,796,527,587,920,000,000,000,000,000,000,000
5
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...
e1000e_set_ims(E1000ECore *core, int index, uint32_t val) { static const uint32_t ims_ext_mask = E1000_IMS_RXQ0 | E1000_IMS_RXQ1 | E1000_IMS_TXQ0 | E1000_IMS_TXQ1 | E1000_IMS_OTHER; static const uint32_t ims_valid_mask = E1000_IMS_TXDW | E1000_IMS_TXQE | E1000_IMS_LSC |...
0
[ "CWE-835" ]
qemu
4154c7e03fa55b4cf52509a83d50d6c09d743b77
242,024,275,293,921,100,000,000,000,000,000,000,000
34
net: e1000e: fix an infinite loop issue This issue is like the issue in e1000 network card addressed in this commit: e1000: eliminate infinite loops on out-of-bounds transfer start. Signed-off-by: Li Qiang <liqiang6-s@360.cn> Reviewed-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat....
void ssl_set_client_disabled(SSL *s) { CERT *c = s->cert; c->mask_a = 0; c->mask_k = 0; /* Don't allow TLS 1.2 only ciphers if we don't suppport them */ if (!SSL_CLIENT_USE_TLS1_2_CIPHERS(s)) c->mask_ssl = SSL_TLSV1_2; else c->mask_ssl = 0; ssl_set_sig_mask(&c->mask_a, s, SSL_SECOP_SIGALG_MASK); /* Disable...
0
[]
openssl
80bd7b41b30af6ee96f519e629463583318de3b0
120,552,338,082,238,890,000,000,000,000,000,000,000
44
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...
static int nl80211_dump_wiphy(struct sk_buff *skb, struct netlink_callback *cb) { int idx = 0, ret; struct nl80211_dump_wiphy_state *state = (void *)cb->args[0]; struct cfg80211_registered_device *rdev; rtnl_lock(); if (!state) { state = kzalloc(sizeof(*state), GFP_KERNEL); if (!state) { rtnl_unlock(); ...
0
[ "CWE-120" ]
linux
f88eb7c0d002a67ef31aeb7850b42ff69abc46dc
213,090,270,885,615,700,000,000,000,000,000,000,000
72
nl80211: validate beacon head We currently don't validate the beacon head, i.e. the header, fixed part and elements that are to go in front of the TIM element. This means that the variable elements there can be malformed, e.g. have a length exceeding the buffer size, but most downstream code from this assumes that thi...
static rpmRC hdrblobVerifyRegion(rpmTagVal regionTag, int exact_size, hdrblob blob, char **buf) { rpmRC rc = RPMRC_FAIL; struct entryInfo_s trailer, einfo; unsigned char * regionEnd = NULL; /* Check that we have at least on tag */ if (blob->il < 1) { rasprintf(buf, _("region: no tags")); goto ...
0
[ "CWE-125" ]
rpm
8f4b3c3cab8922a2022b9e47c71f1ecf906077ef
285,956,192,041,075,000,000,000,000,000,000,000,000
94
hdrblobInit() needs bounds checks too Users can pass untrusted data to hdrblobInit() and it must be robust against this.
void OSDService::send_pg_temp() { Mutex::Locker l(pg_temp_lock); if (pg_temp_wanted.empty()) return; dout(10) << "send_pg_temp " << pg_temp_wanted << dendl; MOSDPGTemp *ms[2] = {nullptr, nullptr}; for (auto& pg_temp : pg_temp_wanted) { auto& m = ms[pg_temp.second.forced]; if (!m) { m = new M...
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
4,607,398,393,903,026,000,000,000,000,000,000,000
23
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
cached_summary_data_free (CachedSummaryData *data) { g_free (data->filename); g_free (data); }
0
[ "CWE-74" ]
flatpak
fb473cad801c6b61706353256cab32330557374a
154,083,693,376,382,370,000,000,000,000,000,000,000
5
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...
int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu) { struct kvm_vcpu *v; int r; int i; long itc_offset; struct kvm *kvm = vcpu->kvm; struct kvm_pt_regs *regs = vcpu_regs(vcpu); union context *p_ctx = &vcpu->arch.guest; struct kvm_vcpu *vmm_vcpu = to_guest(vcpu->kvm, vcpu); /*Init vcpu context for first run.*/ if...
0
[ "CWE-399" ]
kvm
5b40572ed5f0344b9dbee486a17c589ce1abe1a3
75,500,719,068,885,100,000,000,000,000,000,000,000
87
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 ...
static void __exit elo_driver_exit(void) { hid_unregister_driver(&elo_driver); destroy_workqueue(wq); }
0
[ "CWE-200", "CWE-401" ]
linux
817b8b9c5396d2b2d92311b46719aad5d3339dbe
218,562,579,601,486,270,000,000,000,000,000,000,000
5
HID: elo: fix memory leak in elo_probe When hid_parse() in elo_probe() fails, it forgets to call usb_put_dev to decrease the refcount. Fix this by adding usb_put_dev() in the error handling code of elo_probe(). Fixes: fbf42729d0e9 ("HID: elo: update the reference count of the usb device structure") Reported-by: syzk...
fr_window_class_init (FrWindowClass *klass) { GObjectClass *gobject_class; GtkWidgetClass *widget_class; fr_window_parent_class = g_type_class_peek_parent (klass); fr_window_signals[ARCHIVE_LOADED] = g_signal_new ("archive-loaded", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STR...
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
147,894,231,022,910,140,000,000,000,000,000,000,000
44
libarchive: sanitize filenames before extracting
static inline void *packet_previous_frame(struct packet_sock *po, struct packet_ring_buffer *rb, int status) { unsigned int previous = rb->head ? rb->head - 1 : rb->frame_max; return packet_lookup_frame(po, rb, previous, status); }
0
[ "CWE-909" ]
linux-2.6
67286640f638f5ad41a946b9a3dc75327950248f
49,269,565,163,641,900,000,000,000,000,000,000,000
7
net: packet: fix information leak to userland packet_getname_spkt() doesn't initialize all members of sa_data field of sockaddr struct if strlen(dev->name) < 13. This structure is then copied to userland. It leads to leaking of contents of kernel stack memory. We have to fully fill sa_data with strncpy() instead of ...
GF_Err NewMedia(GF_MediaBox **mdia, u32 MediaType, u32 TimeScale) { GF_MediaHeaderBox *mdhd; GF_Box *mediaInfo; GF_HandlerBox *hdlr; GF_MediaInformationBox *minf; GF_DataInformationBox *dinf; GF_SampleTableBox *stbl; GF_DataReferenceBox *dref; char *str=""; GF_Err e; if (!mdia) return GF_BAD_PARAM; minf =...
0
[ "CWE-476" ]
gpac
df8fffd839fe5ae9acd82d26fd48280a397411d9
171,898,703,946,186,680,000,000,000,000,000,000,000
197
fixed #1736
void dm_uevent_add(struct mapped_device *md, struct list_head *elist) { unsigned long flags; spin_lock_irqsave(&md->uevent_lock, flags); list_add(elist, &md->uevent_list); spin_unlock_irqrestore(&md->uevent_lock, flags); }
0
[ "CWE-362" ]
linux
b9a41d21dceadf8104812626ef85dc56ee8a60ed
91,452,019,815,569,800,000,000,000,000,000,000,000
8
dm: fix race between dm_get_from_kobject() and __dm_destroy() The following BUG_ON was hit when testing repeat creation and removal of DM devices: kernel BUG at drivers/md/dm.c:2919! CPU: 7 PID: 750 Comm: systemd-udevd Not tainted 4.1.44 Call Trace: [<ffffffff81649e8b>] dm_get_from_kobject+0x34/0x3a ...
static int mpage_submit_page(struct mpage_da_data *mpd, struct page *page) { int len; loff_t size; int err; BUG_ON(page->index != mpd->first_page); clear_page_dirty_for_io(page); /* * We have to be very careful here! Nothing protects writeback path * against i_size changes and the page can be writeably mapp...
0
[ "CWE-416", "CWE-401" ]
linux
4ea99936a1630f51fc3a2d61a58ec4a1c4b7d55a
208,698,183,321,029,660,000,000,000,000,000,000,000
34
ext4: add more paranoia checking in ext4_expand_extra_isize handling It's possible to specify a non-zero s_want_extra_isize via debugging option, and this can cause bad things(tm) to happen when using a file system with an inode size of 128 bytes. Add better checking when the file system is mounted, as well as when w...
void Magick::Image::defineSet(const std::string &magick_, const std::string &key_,bool flag_) { std::string definition; modifyImage(); definition=magick_ + ":" + key_; if (flag_) (void) SetImageOption(imageInfo(),definition.c_str(),""); else DeleteImageOption(imageInfo(),definition.c_str()); }
0
[ "CWE-416" ]
ImageMagick
8c35502217c1879cb8257c617007282eee3fe1cc
178,055,844,256,994,800,000,000,000,000,000,000,000
13
Added missing return to avoid use after free.
static void php_cli_server_buffer_prepend(php_cli_server_buffer *buffer, php_cli_server_chunk *chunk) /* {{{ */ { php_cli_server_chunk *last; for (last = chunk; last->next; last = last->next); last->next = buffer->first; if (!buffer->last) { buffer->last = last; } buffer->first = chunk; } /* }}} */
0
[]
php-src
2438490addfbfba51e12246a74588b2382caa08a
283,519,136,121,466,170,000,000,000,000,000,000,000
10
slim post data
uint32_t BinaryProtocolWriter::writeListBegin(TType elemType, uint32_t size) { uint32_t wsize = 0; wsize += writeByte((int8_t)elemType); wsize += writeI32((int32_t)size); return wsize; }
0
[ "CWE-703", "CWE-770" ]
fbthrift
c9a903e5902834e95bbd4ab0e9fa53ba0189f351
146,042,307,825,742,960,000,000,000,000,000,000,000
6
Better handling of truncated data when reading strings Summary: Currently we read string size and blindly pre-allocate it. This allows malicious attacker to send a few bytes message and cause server to allocate huge amount of memory (>1GB). This diff changes the logic to check if we have enough data in the buffer bef...
void doi_log_cert_thinking(uint16_t auth, enum ike_cert_type certtype, enum certpolicy policy, bool gotcertrequest, bool send_cert, bool send_chain) { DBG(DBG_CONTROL, { DBG_log("thinking about whether to send my certificate:"); struct esb_buf oan; struct esb_buf ictn; DBG_log(" I have R...
0
[ "CWE-125" ]
libreswan
471a3e41a449d7c753bc4edbba4239501bb62ba8
24,090,532,893,560,720,000,000,000,000,000,000,000
40
security: Fix for CVE-2020-1763 pluto will crash on a null pointer dereference when trying to log an error for an IKEv1 packet containing bogus information and/or flags. Signed-off-by: Paul Wouters <pwouters@redhat.com>
static ZEND_RESULT_CODE parse_uidn(struct parse_state *state) { char *host_ptr; uint16_t *uhost_str, ahost_str[MAXHOSTNAMELEN], *ahost_ptr; size_t uhost_len, ahost_len; UErrorCode error = U_ZERO_ERROR; TSRMLS_FETCH_FROM_CTX(state->ts); if (state->flags & PHP_HTTP_URL_PARSE_MBUTF8) { if (SUCCESS != to_utf16(par...
0
[ "CWE-119" ]
ext-http
3724cd76a28be1d6049b5537232e97ac567ae1f5
184,210,922,285,918,430,000,000,000,000,000,000,000
40
fix bug #71719 (Buffer overflow in HTTP url parsing functions) The parser's offset was not reset when we softfail in scheme parsing and continue to parse a path. Thanks to hlt99 at blinkenshell dot org for the report.
static char *mk_str(link_ctx *ctx, size_t end) { if (ctx->i < end) { return apr_pstrndup(ctx->pool, ctx->s + ctx->i, end - ctx->i); } return (char*)""; }
0
[ "CWE-444" ]
mod_h2
b8a8c5061eada0ce3339b24ba1d587134552bc0c
42,347,531,014,916,820,000,000,000,000,000,000,000
7
* Removing support for abandoned draft of http-wg regarding cache-digests.
DwaCompressor::LossyDctEncoderBase::toZigZag (half *dst, half *src) { const int remap[] = { 0, 1, 8, 16, 9, 2, 3, 10, 17, 24, 32, 25, 18, 11, 4, 5, 12, 19, 26, 33, 40, 48, 41, 34, 27, 20, 13, 6, 7, 14, 21, 28, 35, 42, 49, 56, ...
0
[ "CWE-125" ]
openexr
e79d2296496a50826a15c667bf92bdc5a05518b4
268,607,074,971,738,730,000,000,000,000,000,000,000
24
fix memory leaks and invalid memory accesses Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
static int robots_fsio_fstat(pr_fh_t *fh, int fd, struct stat *st) { if (fd != AUTH_ROBOTS_TXT_FD) { errno = EINVAL; return -1; } return robots_fsio_stat(NULL, NULL, st); }
0
[ "CWE-59", "CWE-295" ]
proftpd
349addc3be4fcdad9bd4ec01ad1ccd916c898ed8
132,443,337,369,770,370,000,000,000,000,000,000,000
8
Walk the entire DefaultRoot path, checking for symlinks of any component, when AllowChrootSymlinks is disabled.
static struct uprobe *__insert_uprobe(struct uprobe *uprobe) { struct rb_node **p = &uprobes_tree.rb_node; struct rb_node *parent = NULL; struct uprobe *u; int match; while (*p) { parent = *p; u = rb_entry(parent, struct uprobe, rb_node); match = match_uprobe(uprobe, u); if (!match) return get_uprobe(u...
0
[ "CWE-416" ]
linux
355627f518978b5167256d27492fe0b343aaf2f2
300,335,781,952,272,940,000,000,000,000,000,000,000
29
mm, uprobes: fix multiple free of ->uprobes_state.xol_area Commit 7c051267931a ("mm, fork: make dup_mmap wait for mmap_sem for write killable") made it possible to kill a forking task while it is waiting to acquire its ->mmap_sem for write, in dup_mmap(). However, it was overlooked that this introduced an new error p...
bjc_put_cmyk_image(gp_file *file, char component, const byte *data, int count) { bjc_put_command(file, 'A', count + 1); gp_fputc(component, file); bjc_put_bytes(file, data, count); }
0
[ "CWE-787" ]
ghostpdl
bf72f1a3dd5392ee8291e3b1518a0c2c5dc6ba39
334,249,248,528,018,300,000,000,000,000,000,000,000
7
Fix valgrind problems with gdevbjca.c 2 problems here. Firstly, we could access off the end of a row while looking for runs. Change the indexing to fix this. Secondly, we could overrun our gamma tables due to unexpectedly large values. Add some clamping.
static int hls_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { HLSContext *c = s->priv_data; struct playlist *seek_pls = NULL; int i, seq_no; int j; int stream_subdemuxer_index; int64_t first_timestamp, seek_timestamp, duration; ...
0
[ "CWE-703", "CWE-835" ]
FFmpeg
7ec414892ddcad88313848494b6fc5f437c9ca4a
287,705,512,732,764,980,000,000,000,000,000,000,000
81
avformat/hls: Fix DoS due to infinite loop Fixes: loop.m3u The default max iteration count of 1000 is arbitrary and ideas for a better solution are welcome Found-by: Xiaohei and Wangchu from Alibaba Security Team Previous version reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <...
static int filter_iface(char *ifname, char *iflist[], size_t num) { size_t i; if (!num) { logit(LOG_DEBUG, "No interfaces to filter, using all with an IP address."); return 0; } logit(LOG_DEBUG, "Filter %s? Comparing %zd entries ...", ifname, num); for (i = 0; i < num; i++) { logit(LOG_DEBUG, "Filter %s? ...
0
[ "CWE-119", "CWE-787" ]
ssdp-responder
ce04b1f29a137198182f60bbb628d5ceb8171765
191,975,379,328,516,900,000,000,000,000,000,000,000
18
Fix #1: Ensure recv buf is always NUL terminated Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
check_maximum_width(struct table *t) { struct table_cell *cell = &t->cell; #ifdef MATRIX int i, j, bcol, ecol; int swidth, width; cell->necell = 0; for (j = 0; j <= cell->maxcell; j++) { bcol = cell->col[j]; ecol = bcol + cell->colspan[j]; swidth = 0; for (i = bcol; i < ecol; i++) swidth +...
0
[ "CWE-119" ]
w3m
67a3db378f5ee3047c158eae4342f7e3245a2ab1
315,273,926,127,870,030,000,000,000,000,000,000,000
27
Fix table rowspan and colspan Origin: https://github.com/tats/w3m/pull/19 Bug-Debian: https://github.com/tats/w3m/issues/8
TEST(ComparisonsTest, NotEqualBroadcast) { ComparisonOpModel model({1, 1, 1, 4}, {1, 1, 1, 1}, TensorType_INT32, BuiltinOperator_NOT_EQUAL); model.PopulateTensor<int>(model.input1(), {-1, 9, 7, 3}); model.PopulateTensor<int>(model.input2(), {7}); model.Invoke(); EXPECT_THAT(model.Ge...
0
[ "CWE-20", "CWE-703" ]
tensorflow
a989426ee1346693cc015792f11d715f6944f2b8
253,685,319,941,134,650,000,000,000,000,000,000,000
10
Improve to cover scale value greater than one PiperOrigin-RevId: 433050921