func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
static void free_bitmap_data(BITMAP_DATA* data, size_t count) { size_t x; if (!data) return; for (x = 0; x < count; x++) free(data[x].bitmapDataStream); free(data); }
0
[ "CWE-125" ]
FreeRDP
0b6b92a25a77d533b8a92d6acc840a81e103684e
83,561,454,008,892,410,000,000,000,000,000,000,000
12
Fixed CVE-2020-11525: Out of bounds read in bitmap_cache_new Thanks to Sunglin and HuanGMz from Knownsec 404
static inline int domain_sg_mapping(struct dmar_domain *domain, unsigned long iov_pfn, struct scatterlist *sg, unsigned long nr_pages, int prot) { return domain_mapping(domain, iov_pfn, sg, 0, nr_pages, prot); }
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
107,336,976,701,460,160,000,000,000,000,000,000,000
6
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 MagickBooleanType ReadPSDChannelZip(Image *image,const size_t channels, const ssize_t type,const PSDCompressionType compression, const size_t compact_size,ExceptionInfo *exception) { MagickBooleanType status; register unsigned char *p; size_t count, length, packet_size, row_si...
1
[ "CWE-772" ]
ImageMagick
d4e8b9722577547177a2daecee98ea9e5fe54968
214,218,159,458,034,940,000,000,000,000,000,000,000
112
Fixed memory leak reported in #462.
send_key_to_dongle(struct brcmf_if *ifp, struct brcmf_wsec_key *key) { int err; struct brcmf_wsec_key_le key_le; convert_key_from_CPU(key, &key_le); brcmf_netdev_wait_pend8021x(ifp); err = brcmf_fil_bsscfg_data_set(ifp, "wsec_key", &key_le, sizeof(key_le)); if (err) brcmf_err("wsec_key error (%d)\n", e...
0
[ "CWE-119", "CWE-703" ]
linux
ded89912156b1a47d940a0c954c43afbabd0c42c
151,607,421,730,264,580,000,000,000,000,000,000,000
16
brcmfmac: avoid potential stack overflow in brcmf_cfg80211_start_ap() User-space can choose to omit NL80211_ATTR_SSID and only provide raw IE TLV data. When doing so it can provide SSID IE with length exceeding the allowed size. The driver further processes this IE copying it into a local variable without checking the...
static CURLcode get_cert_chain(struct Curl_easy *data, struct ssl_connect_data *connssl) { CURLcode result; STACK_OF(X509) *sk; int i; numcert_t numcerts; BIO *mem; struct ssl_backend_data *backend = connssl->backend; DEBUGASSERT(backend); sk = SSL_get_peer_cert_chain(ba...
0
[]
curl
139a54ed0a172adaaf1a78d6f4fff50b2c3f9e08
221,152,145,876,960,800,000,000,000,000,000,000,000
241
openssl: don't leak the SRP credentials in redirects either Follow-up to 620ea21410030 Reported-by: Harry Sintonen Closes #8751
apr_status_t h2_mplx_out_trywait(h2_mplx *m, apr_interval_time_t timeout, apr_thread_cond_t *iowait) { apr_status_t status; H2_MPLX_ENTER(m); if (m->aborted) { status = APR_ECONNABORTED; } else if (h2_mplx_has_master_events(m)) { status = APR_SU...
0
[ "CWE-444" ]
mod_h2
825de6a46027b2f4c30d7ff5a0c8b852d639c207
323,919,099,999,338,050,000,000,000,000,000,000,000
29
* Fixed keepalives counter on slave connections.
DECODE_JSON(NodeId) { ALLOW_NULL; CHECK_OBJECT; /* NameSpace */ UA_Boolean hasNamespace = false; size_t searchResultNamespace = 0; status ret = lookAheadForKey(UA_JSONKEY_NAMESPACE, ctx, parseCtx, &searchResultNamespace); if(ret != UA_STATUSCODE_GOOD) { dst->namespaceIndex = 0; ...
0
[ "CWE-703", "CWE-787" ]
open62541
c800e2987b10bb3af6ef644b515b5d6392f8861d
220,425,319,083,353,000,000,000,000,000,000,000,000
34
fix(json): Check max recursion depth in more places
mrb_define_singleton_method(mrb_state *mrb, struct RObject *o, const char *name, mrb_func_t func, mrb_aspec aspec) { prepare_singleton_class(mrb, (struct RBasic*)o); mrb_define_method_id(mrb, o->c, mrb_intern_cstr(mrb, name), func, aspec); }
0
[ "CWE-476", "CWE-415" ]
mruby
faa4eaf6803bd11669bc324b4c34e7162286bfa3
159,298,487,799,190,770,000,000,000,000,000,000,000
5
`mrb_class_real()` did not work for `BasicObject`; fix #4037
static void set_refuse_options(char *bp) { struct poptOption *op; char *cp, shortname[2]; int is_wild, found_match; shortname[1] = '\0'; while (1) { while (*bp == ' ') bp++; if (!*bp) break; if ((cp = strchr(bp, ' ')) != NULL) *cp= '\0'; is_wild = strpbrk(bp, "*?[") != NULL; found_match = 0; fo...
0
[]
rsync
eac858085e3ac94ec0ab5061d11f52652c90a869
190,454,127,924,484,100,000,000,000,000,000,000,000
67
Add compat flag to allow proper seed checksum order. Fixes the equivalent of librsync's CVE-2014-8242 issue.
xfs_find_bdev_for_inode( struct inode *inode) { struct xfs_inode *ip = XFS_I(inode); struct xfs_mount *mp = ip->i_mount; if (XFS_IS_REALTIME_INODE(ip)) return mp->m_rtdev_targp->bt_bdev; else return mp->m_ddev_targp->bt_bdev; }
0
[ "CWE-362" ]
linux
04197b341f23b908193308b8d63d17ff23232598
133,674,585,154,777,940,000,000,000,000,000,000,000
11
xfs: don't BUG() on mixed direct and mapped I/O We've had reports of generic/095 causing XFS to BUG() in __xfs_get_blocks() due to the existence of delalloc blocks on a direct I/O read. generic/095 issues a mix of various types of I/O, including direct and memory mapped I/O to a single file. This is clearly not suppor...
rb_str_crypt(str, salt) VALUE str, salt; { extern char *crypt(); VALUE result; char *s; StringValue(salt); if (RSTRING(salt)->len < 2) rb_raise(rb_eArgError, "salt too short(need >=2 bytes)"); if (RSTRING(str)->ptr) s = RSTRING(str)->ptr; else s = ""; result = rb_str_new2(crypt(s,...
0
[ "CWE-20" ]
ruby
e926ef5233cc9f1035d3d51068abe9df8b5429da
42,909,354,905,454,500,000,000,000,000,000,000,000
18
* random.c (rb_genrand_int32, rb_genrand_real), intern.h: Export. * string.c (rb_str_tmp_new), intern.h: New function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
const struct io_uring_sqe *sqe) __must_hold(&ctx->uring_lock) { const struct io_op_def *def; unsigned int sqe_flags; int personality; u8 opcode; /* req is partially pre-initialised, see io_preinit_req() */ req->opcode = opcode = READ_ONCE(sqe->opcode); /* same numerical values with corresponding REQ_F...
0
[ "CWE-416" ]
linux
9cae36a094e7e9d6e5fe8b6dcd4642138b3eb0c7
128,661,031,093,025,740,000,000,000,000,000,000,000
91
io_uring: reinstate the inflight tracking After some debugging, it was realized that we really do still need the old inflight tracking for any file type that has io_uring_fops assigned. If we don't, then trivial circular references will mean that we never get the ctx cleaned up and hence it'll leak. Just bring back t...
static int engine_init_common(struct intel_engine_cs *engine) { struct intel_context *ce; int ret; engine->set_default_submission(engine); /* * We may need to do things with the shrinker which * require us to immediately switch back to the default * context. This can cause a problem as pinning the * defau...
0
[ "CWE-20", "CWE-190" ]
linux
c784e5249e773689e38d2bc1749f08b986621a26
281,802,593,391,179,250,000,000,000,000,000,000,000
32
drm/i915/guc: Update to use firmware v49.0.1 The latest GuC firmware includes a number of interface changes that require driver updates to match. * Starting from Gen11, the ID to be provided to GuC needs to contain the engine class in bits [0..2] and the instance in bits [3..6]. NOTE: this patch breaks pointer d...
static int ieee80211_set_mcast_rate(struct wiphy *wiphy, struct net_device *dev, int rate[NUM_NL80211_BANDS]) { struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); memcpy(sdata->vif.bss_conf.mcast_rate, rate, sizeof(int) * NUM_NL80211_BANDS); ieee80211_bss_info_change_notify(sdata, ...
0
[ "CWE-287" ]
linux
3e493173b7841259a08c5c8e5cbe90adb349da7e
256,390,541,431,690,940,000,000,000,000,000,000,000
12
mac80211: Do not send Layer 2 Update frame before authorization The Layer 2 Update frame is used to update bridges when a station roams to another AP even if that STA does not transmit any frames after the reassociation. This behavior was described in IEEE Std 802.11F-2003 as something that would happen based on MLME-...
(struct CRYPTO_dynlock_value *l, const char *file,int line) { return(dynlock_destroy_callback); }
0
[ "CWE-310" ]
openssl
9c00a950604aca819cee977f1dcb4b45f2af3aa6
316,440,135,596,043,770,000,000,000,000,000,000,000
4
Add and use a constant-time memcmp. This change adds CRYPTO_memcmp, which compares two vectors of bytes in an amount of time that's independent of their contents. It also changes several MAC compares in the code to use this over the standard memcmp, which may leak information about the size of a matching prefix. (cher...
_compare_duration_idx(const void *_d1, const void *_d2) { const struct duration_idx_t *d1 = _d1; const struct duration_idx_t *d2 = _d2; return d1->duration - d2->duration; }
0
[ "CWE-399" ]
tor
308f6dad20675c42b29862f4269ad1fbfb00dc9a
183,575,707,042,402,730,000,000,000,000,000,000,000
6
Mitigate a side-channel leak of which relays Tor chooses for a circuit Tor's and OpenSSL's current design guarantee that there are other leaks, but this one is likely to be more easily exploitable, and is easy to fix.
vips_foreign_load_gif_get_flags( VipsForeignLoad *load ) { return( VIPS_FOREIGN_SEQUENTIAL ); }
0
[ "CWE-416" ]
libvips
ce684dd008532ea0bf9d4a1d89bacb35f4a83f4d
175,279,169,477,410,430,000,000,000,000,000,000,000
4
fetch map after DGifGetImageDesc() Earlier refactoring broke GIF map fetch.
const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, int reason) { if (rdma_ib_or_roce(id->device, id->port_num)) return ibcm_reject_msg(reason); if (rdma_protocol_iwarp(id->device, id->port_num)) return iwcm_reject_msg(reason); WARN_ON_ONCE(1); return "unrecognized transport"; }
0
[ "CWE-416" ]
linux
bc0bdc5afaa740d782fbf936aaeebd65e5c2921d
286,926,932,091,324,200,000,000,000,000,000,000,000
12
RDMA/cma: Do not change route.addr.src_addr.ss_family If the state is not idle then rdma_bind_addr() will immediately fail and no change to global state should happen. For instance if the state is already RDMA_CM_LISTEN then this will corrupt the src_addr and would cause the test in cma_cancel_operation(): if (cma...
my_ulonglong mysql_st_internal_execute41( SV *sth, int num_params, MYSQL_RES **result, MYSQL_STMT *stmt, MYSQL_BIND...
0
[ "CWE-416" ]
DBD-mysql
a56ae87a4c1c1fead7d09c3653905841ccccf1cc
194,330,411,416,895,350,000,000,000,000,000,000,000
111
fix use-after-free crash in RT #97625
Status TrySimplify(NodeDef* node, string* simplified_node_name) override { const NodeScopeAndName matmul = ParseNodeScopeAndName(node->name()); const string optimized_node_name = OptimizedNodeName(matmul); if (ctx().node_map->NodeExists(optimized_node_name)) return Status::OK(); NodeDef* input; T...
0
[ "CWE-476" ]
tensorflow
e6340f0665d53716ef3197ada88936c2a5f7a2d3
167,736,552,802,276,210,000,000,000,000,000,000,000
27
Handle a special grappler case resulting in crash. It might happen that a malformed input could be used to trick Grappler into trying to optimize a node with no inputs. This, in turn, would produce a null pointer dereference and a segfault. PiperOrigin-RevId: 369242852 Change-Id: I2e5cbe7aec243d34a6d60220ac8ac9b16f13...
static MemTxResult gic_thisvcpu_read(void *opaque, hwaddr addr, uint64_t *data, unsigned size, MemTxAttrs attrs) { GICState *s = (GICState *)opaque; return gic_cpu_read(s, gic_get_current_vcpu(s), addr, data, attrs); }
0
[ "CWE-787" ]
qemu
edfe2eb4360cde4ed5d95bda7777edcb3510f76a
274,969,319,849,229,800,000,000,000,000,000,000,000
7
hw/intc/arm_gic: Fix interrupt ID in GICD_SGIR register Per the ARM Generic Interrupt Controller Architecture specification (document "ARM IHI 0048B.b (ID072613)"), the SGIINTID field is 4 bit, not 10: - 4.3 Distributor register descriptions - 4.3.15 Software Generated Interrupt Register, GICD_SG - Table 4-2...
void AsyncSSLSocket::connect( ConnectCallback* callback, const folly::SocketAddress& address, std::chrono::milliseconds connectTimeout, std::chrono::milliseconds totalConnectTimeout, const OptionMap& options, const folly::SocketAddress& bindAddr) noexcept { assert(!server_); assert(state_ ==...
0
[ "CWE-125" ]
folly
c321eb588909646c15aefde035fd3133ba32cdee
129,646,352,918,494,760,000,000,000,000,000,000,000
18
Handle close_notify as standard writeErr in AsyncSSLSocket. Summary: Fixes CVE-2019-11934 Reviewed By: mingtaoy Differential Revision: D18020613 fbshipit-source-id: db82bb250e53f0d225f1280bd67bc74abd417836
void HBasicBlock::SetInitialEnvironment(HEnvironment* env) { ASSERT(!HasEnvironment()); ASSERT(first() == NULL); UpdateEnvironment(env); }
0
[]
node
fd80a31e0697d6317ce8c2d289575399f4e06d21
23,737,603,684,581,784,000,000,000,000,000,000,000
5
deps: backport 5f836c from v8 upstream Original commit message: Fix Hydrogen bounds check elimination When combining bounds checks, they must all be moved before the first load/store that they are guarding. BUG=chromium:344186 LOG=y R=svenpanne@chromium.org Review URL: https://coderevie...
NTSTATUS smb_vfs_call_streaminfo(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *fname, TALLOC_CTX *mem_ctx, unsigned int *num_streams, struct stream_struct **streams) { VFS_FIND(streaminfo); return handle->fns->streaminfo_fn(handle, fsp, fname, mem_ctx, num_str...
0
[ "CWE-264" ]
samba
4278ef25f64d5fdbf432ff1534e275416ec9561e
577,261,726,208,285,360,000,000,000,000,000,000
11
CVE-2015-5252: s3: smbd: Fix symlink verification (file access outside the share). Ensure matching component ends in '/' or '\0'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11395 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
e_async_closure_callback (GObject *object, GAsyncResult *result, gpointer closure) { EAsyncClosure *real_closure; g_return_if_fail (G_IS_ASYNC_RESULT (result)); g_return_if_fail (closure != NULL); real_closure = closure; g_mutex_lock (&real_closure->lock); /...
0
[ "CWE-295" ]
evolution-data-server
6672b8236139bd6ef41ecb915f4c72e2a052dba5
280,702,756,649,449,080,000,000,000,000,000,000,000
23
Let child source with 'none' authentication method use collection source authentication That might be the same as having set NULL authentication method. Related to https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
change_cond_ref_to_const(THD *thd, I_List<COND_CMP> *save_list, Item *and_father, Item *cond, Item_bool_func2 *field_value_owner, Item *field, Item *value) { if (cond->type() == Item::COND_ITEM) { bool and_level= ((Item_cond*) cond)->fun...
0
[]
server
ff77a09bda884fe6bf3917eb29b9d3a2f53f919b
38,458,605,250,192,465,000,000,000,000,000,000,000
81
MDEV-22464 Server crash on UPDATE with nested subquery Uninitialized ref_pointer_array[] because setup_fields() got empty fields list. mysql_multi_update() for some reason does that by substituting the fields list with empty total_list for the mysql_select() call (looks like wrong merge since total_list is not used a...
void *ztrycalloc(size_t size) { void *ptr = ztrycalloc_usable(size, NULL); return ptr; }
0
[ "CWE-190" ]
redis
d32f2e9999ce003bad0bd2c3bca29f64dcce4433
173,283,272,324,703,150,000,000,000,000,000,000,000
4
Fix integer overflow (CVE-2021-21309). (#8522) On 32-bit systems, setting the proto-max-bulk-len config parameter to a high value may result with integer overflow and a subsequent heap overflow when parsing an input bulk (CVE-2021-21309). This fix has two parts: Set a reasonable limit to the config parameter. A...
int sqlite3WindowRewrite(Parse *pParse, Select *p){ int rc = SQLITE_OK; if( p->pWin && p->pPrior==0 && (p->selFlags & SF_WinRewrite)==0 ){ Vdbe *v = sqlite3GetVdbe(pParse); sqlite3 *db = pParse->db; Select *pSub = 0; /* The subquery */ SrcList *pSrc = p->pSrc; Expr *pWhere = p->pWher...
0
[ "CWE-755" ]
sqlite
8654186b0236d556aa85528c2573ee0b6ab71be3
244,558,507,838,888,550,000,000,000,000,000,000,000
130
When an error occurs while rewriting the parser tree for window functions in the sqlite3WindowRewrite() routine, make sure that pParse->nErr is set, and make sure that this shuts down any subsequent code generation that might depend on the transformations that were implemented. This fixes a problem discovered by the Y...
static void pmu_dev_release(struct device *dev) { kfree(dev); }
0
[ "CWE-703", "CWE-189" ]
linux
8176cced706b5e5d15887584150764894e94e02f
143,136,219,370,625,780,000,000,000,000,000,000,000
4
perf: Treat attr.config as u64 in perf_swevent_init() Trinity discovered that we fail to check all 64 bits of attr.config passed by user space, resulting to out-of-bounds access of the perf_swevent_enabled array in sw_perf_event_destroy(). Introduced in commit b0a873ebb ("perf: Register PMU implementations"). Signed...
Name_resolution_context_backup(Name_resolution_context &_ctx, TABLE_LIST &_table_list) : ctx(_ctx), table_list(_table_list), save_map(_table_list.map) { ctx_state.save_state(&ctx, &table_list); ctx.table_list= &table_list; ctx.first_name_resolution_table= &table_list; }
0
[ "CWE-617" ]
server
807945f2eb5fa22e6f233cc17b85a2e141efe2c8
316,867,404,318,228,640,000,000,000,000,000,000,000
7
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 ...
static void tg3_get_5787_nvram_info(struct tg3 *tp) { u32 nvcfg1; nvcfg1 = tr32(NVRAM_CFG1); switch (nvcfg1 & NVRAM_CFG1_5752VENDOR_MASK) { case FLASH_5787VENDOR_ATMEL_EEPROM_64KHZ: case FLASH_5787VENDOR_ATMEL_EEPROM_376KHZ: case FLASH_5787VENDOR_MICRO_EEPROM_64KHZ: case FLASH_5787VENDOR_MICRO_EEPROM_376KHZ: ...
0
[ "CWE-476", "CWE-119" ]
linux
715230a44310a8cf66fbfb5a46f9a62a9b2de424
256,258,258,880,752,830,000,000,000,000,000,000,000
37
tg3: fix length overflow in VPD firmware parsing Commit 184b89044fb6e2a74611dafa69b1dce0d98612c6 ("tg3: Use VPD fw version when present") introduced VPD parsing that contained a potential length overflow. Limit the hardware's reported firmware string length (max 255 bytes) to stay inside the driver's firmware string ...
store_tabletMouseLeft(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct aiptek *aiptek = dev_get_drvdata(dev); int new_button = map_str_to_val(mouse_button_map, buf, count); if (new_button == AIPTEK_INVALID_VALUE) return -EINVAL; aiptek->newSetting.mouseButtonLeft = new_...
0
[ "CWE-476", "CWE-401" ]
linux
8e20cf2bce122ce9262d6034ee5d5b76fbb92f96
32,506,864,920,952,815,000,000,000,000,000,000,000
11
Input: aiptek - fix crash on detecting device without endpoints The aiptek driver crashes in aiptek_probe() when a specially crafted USB device without endpoints is detected. This fix adds a check that the device has proper configuration expected by the driver. Also an error return value is changed to more matching on...
static void get_staves(struct SYMBOL *s) { // struct SYMBOL *s2; struct VOICE_S *p_voice, *p_voice2; struct staff_s *p_staff, staves[MAXVOICE]; int i, flags, voice, staff, range, dup_voice, maxtime; memset(staves, 0, sizeof staves); parse_staves(s, staves); if (staves[0].voice < 0) // if error return; voic...
0
[ "CWE-703", "CWE-125" ]
abcm2ps
2f56e1179cab6affeb8afa9d6c324008fe40d8e3
145,459,885,739,803,320,000,000,000,000,000,000,000
215
fix: array overflow when wrong duration in voice overlay Issue #83,
UrlQuery::ConstIterator UrlQuery::Find(const std::string& key) const { return std::find_if(parameters_.begin(), parameters_.end(), [&key](const Parameter& p) { return p.first == key; }); }
0
[ "CWE-22" ]
webcc
55a45fd5039061d5cc62e9f1b9d1f7e97a15143f
52,866,083,794,265,775,000,000,000,000,000,000,000
4
fix static file serving security issue; fix url path encoding issue
CopyJoinFields(const Join *from, Join *newnode) { CopyPlanFields((const Plan *) from, (Plan *) newnode); COPY_SCALAR_FIELD(jointype); COPY_NODE_FIELD(joinqual); }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
173,327,421,029,159,840,000,000,000,000,000,000,000
7
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
static void binobj_set_baddr(RBinObject *o, ut64 baddr) { if (!o || baddr == UT64_MAX) { return; } o->baddr_shift = baddr - o->baddr; }
0
[ "CWE-125" ]
radare2
d31c4d3cbdbe01ea3ded16a584de94149ecd31d9
38,203,473,126,676,967,000,000,000,000,000,000,000
6
Fix #8748 - Fix oobread on string search
NO_INLINE JsVar *jspeFactorTypeOf() { JSP_ASSERT_MATCH(LEX_R_TYPEOF); JsVar *a = jspeUnaryExpression(); JsVar *result = 0; if (JSP_SHOULD_EXECUTE) { if (!jsvIsVariableDefined(a)) { // so we don't get a ReferenceError when accessing an undefined var result=jsvNewFromString("undefined"); } els...
0
[ "CWE-787" ]
Espruino
e069be2ecc5060ef47391716e4de94999595b260
212,682,820,789,689,030,000,000,000,000,000,000,000
16
Fix potential corruption issue caused by `delete [].__proto__` (fix #2142)
static inline u64 vgettsc(cycle_t *cycle_now) { long v; struct pvclock_gtod_data *gtod = &pvclock_gtod_data; *cycle_now = read_tsc(); v = (*cycle_now - gtod->clock.cycle_last) & gtod->clock.mask; return v * gtod->clock.mult; }
0
[ "CWE-119" ]
kvm
c300aa64ddf57d9c5d9c898a64b36877345dd4a9
254,818,395,436,481,740,000,000,000,000,000,000,000
10
KVM: x86: fix for buffer overflow in handling of MSR_KVM_SYSTEM_TIME (CVE-2013-1796) If the guest sets the GPA of the time_page so that the request to update the time straddles a page then KVM will write onto an incorrect page. The write is done byusing kmap atomic to get a pointer to the page for the time structure ...
DEFUN (clear_ip_bgp_peer_group_in_prefix_filter, clear_ip_bgp_peer_group_in_prefix_filter_cmd, "clear ip bgp peer-group WORD in prefix-filter", CLEAR_STR IP_STR BGP_STR "Clear all members of peer-group\n" "BGP peer-group name\n" "Soft reconfig inbound update\n" ...
0
[ "CWE-125" ]
frr
6d58272b4cf96f0daa846210dd2104877900f921
195,595,696,642,841,050,000,000,000,000,000,000,000
14
[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...
gst_qtdemux_find_index (GstQTDemux * qtdemux, QtDemuxStream * str, guint64 media_time) { QtDemuxSample *result; guint32 index; /* convert media_time to mov format */ media_time = gst_util_uint64_scale_ceil (media_time, str->timescale, GST_SECOND); result = gst_util_array_binary_search (str->sample...
0
[ "CWE-125" ]
gst-plugins-good
d0949baf3dadea6021d54abef6802fed5a06af75
36,990,139,477,978,534,000,000,000,000,000,000,000
21
qtdemux: Fix out of bounds read in tag parsing code We can't simply assume that the length of the tag value as given inside the stream is correct but should also check against the amount of data we have actually available. https://bugzilla.gnome.org/show_bug.cgi?id=775451
lprn_bubble_flush(gx_device_printer * pdev, gp_file * fp, Bubble * bbl) { gx_device_lprn *const lprn = (gx_device_lprn *) pdev; int i, j, bx; byte *p; int bx0 = bbl->brect.p.x / lprn->nBw; int bx1 = (bbl->brect.q.x + lprn->nBw - 1) / lprn->nBw; int bpl = gdev_mem_bytes_per_scan_line(pdev); i...
0
[ "CWE-787" ]
ghostpdl
450da26a76286a8342ec0864b3d113856709f8f6
9,478,662,059,962,339,000,000,000,000,000,000,000
35
Bug 701785: fixed sanitizer heap-buffer-overflow in lprn_is_black(). In contrib/lips4/gdevlprn.c:lprn_is_black(), it seems that bpl is not necessarily a multiple of lprn->nBw, so we need to explicitly avoid straying into the next line's data. This also avoids accessing beyond our buffer if we are already on the last ...
GF_Err nhmldmx_process(GF_Filter *filter) { GF_NHMLDmxCtx *ctx = gf_filter_get_udta(filter); GF_FilterPacket *pck; GF_Err e; Bool start, end; pck = gf_filter_pid_get_packet(ctx->ipid); if (pck) { gf_filter_pck_get_framing(pck, &start, &end); //for now we only work with complete files assert(end); } //...
0
[ "CWE-787" ]
gpac
74695dea7278e78af3db467e586233fe8773c07e
104,727,052,480,265,330,000,000,000,000,000,000,000
42
fixed #1910 #1911
R_API void r_core_anal_autoname_all_golang_fcns(RCore *core) { RList* section_list = r_bin_get_sections (core->bin); RListIter *iter; const char* oldstr = NULL; RBinSection *section; ut64 gopclntab = 0; r_list_foreach (section_list, iter, section) { if (strstr (section->name, ".gopclntab")) { gopclntab = sec...
0
[ "CWE-416" ]
radare2
10517e3ff0e609697eb8cde60ec8dc999ee5ea24
306,360,806,085,808,900,000,000,000,000,000,000,000
66
aaef on arm/thumb switches causes uaf ##crash * Reported by peacock-doris via huntr.dev * Reproducer: poc_uaf_r_reg_get
efi_thunk_query_capsule_caps(efi_capsule_header_t **capsules, unsigned long count, u64 *max_size, int *reset_type) { /* * To properly support this function we would need to repackage * 'capsules' because the firmware doesn't understand 64-bit * pointers. */ return EFI_UNSUPPORTED; }
0
[ "CWE-388" ]
tip
4e78921ba4dd0aca1cc89168f45039add4183f8e
26,221,845,582,054,186,000,000,000,000,000,000,000
11
efi/x86/Add missing error handling to old_memmap 1:1 mapping code The old_memmap flow in efi_call_phys_prolog() performs numerous memory allocations, and either does not check for failure at all, or it does but fails to propagate it back to the caller, which may end up calling into the firmware with an incomplete 1:1 ...
static int inline move_horizontal(DviContext *dvi, int amount) { int rhh; dvi->pos.h += amount; rhh = pixel_round(dvi, dvi->pos.h); if(!dvi->params.hdrift) return rhh; else if(amount > dvi->params.thinsp || amount <= -6 * dvi->params.thinsp) return rhh; else { int newhh; newhh = dvi->pos.hh + pixel_r...
0
[ "CWE-20" ]
evince
d4139205b010ed06310d14284e63114e88ec6de2
333,906,144,094,644,800,000,000,000,000,000,000,000
22
backends: Fix several security issues in the dvi-backend. See CVE-2010-2640, CVE-2010-2641, CVE-2010-2642 and CVE-2010-2643.
static int brcmf_net_p2p_stop(struct net_device *ndev) { brcmf_dbg(TRACE, "Enter\n"); return brcmf_cfg80211_down(ndev); }
0
[ "CWE-20" ]
linux
a4176ec356c73a46c07c181c6d04039fafa34a9f
131,230,027,278,910,630,000,000,000,000,000,000,000
6
brcmfmac: add subtype check for event handling in data path For USB there is no separate channel being used to pass events from firmware to the host driver and as such are passed over the data path. In order to detect mock event messages an additional check is needed on event subtype. This check is added conditionally...
open_read (const char *filename) { int fd; if (filename[0] == '-' && !filename[1]) { set_binary (stdin); return 0; /* stdin */ } fd = check_special_filename (filename, 0); if (fd != -1) return fd; fd = open (filename, O_RDONLY | O_BINARY); if (fd == -1) { log_error (_("can...
0
[]
gnupg
abd5f6752d693b7f313c19604f0723ecec4d39a6
207,914,433,711,166,400,000,000,000,000,000,000,000
20
dirmngr,gpgsm: Return NULL on fail * dirmngr/ldapserver.c (ldapserver_parse_one): Set SERVER to NULL. * sm/gpgsm.c (parse_keyserver_line): Ditto. -- Reported-by: Joshua Rogers <git@internot.info> "If something inside the ldapserver_parse_one function failed, 'server' would be freed, then returned, leading to a ...
void PackLinuxElf64ppc::pack1(OutputFile *fo, Filter &ft) { super::pack1(fo, ft); if (0!=xct_off) // shared library return; generateElfHdr(fo, stub_powerpc64_linux_elf_fold, getbrk(phdri, e_phnum) ); }
0
[ "CWE-476" ]
upx
ef336dbcc6dc8344482f8cf6c909ae96c3286317
281,867,091,636,282,300,000,000,000,000,000,000,000
7
Protect against bad crafted input. https://github.com/upx/upx/issues/128 modified: p_lx_elf.cpp
static BOOL rdg_read_all(rdpTls* tls, BYTE* buffer, int size) { int status; int readCount = 0; BYTE* pBuffer = buffer; while (readCount < size) { status = BIO_read(tls->bio, pBuffer, size - readCount); if (status <= 0) { if (!BIO_should_retry(tls->bio)) return FALSE; continue; } readCount +...
0
[ "CWE-125" ]
FreeRDP
6b485b146a1b9d6ce72dfd7b5f36456c166e7a16
332,193,921,800,265,200,000,000,000,000,000,000,000
24
Fixed oob read in irp_write and similar
static void opl3_aftertouch(int dev, int voice, int pressure) { int tmp; struct sbi_instrument *instr; struct physical_voice_info *map; if (voice < 0 || voice >= devc->nr_voice) return; map = &pv_map[devc->lv_map[voice]]; DEB(printk("Aftertouch %d\n", voice)); if (map->voice_mode == 0) return; /* * A...
0
[ "CWE-119", "CWE-264", "CWE-284" ]
linux
4d00135a680727f6c3be78f8befaac009030e4df
81,537,531,914,011,800,000,000,000,000,000,000,000
66
sound/oss/opl3: validate voice and channel indexes User-controllable indexes for voice and channel values may cause reading and writing beyond the bounds of their respective arrays, leading to potentially exploitable memory corruption. Validate these indexes. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> C...
static Image *ReadMTVImage(const ImageInfo *image_info,ExceptionInfo *exception) { char buffer[MaxTextExtent]; Image *image; MagickBooleanType status; register ssize_t x; register PixelPacket *q; register unsigned char *p; ssize_t count, y; unsigned char *pixel...
0
[ "CWE-401" ]
ImageMagick6
210474b2fac6a661bfa7ed563213920e93e76395
60,327,998,891,224,110,000,000,000,000,000,000,000
151
Fix ultra rare but potential memory-leak
bool DNP3_Base::CheckCRC(int len, const u_char* data, const u_char* crc16, const char* where) { unsigned int crc = CalcCRC(len, data); if ( crc16[0] == (crc & 0xff) && crc16[1] == (crc & 0xff00) >> 8 ) return true; analyzer->Weird(fmt("dnp3_corrupt_%s_checksum", where)); return false; }
0
[ "CWE-119", "CWE-787" ]
bro
6cedd67c381ff22fde653adf02ee31caf66c81a0
202,381,141,039,809,730,000,000,000,000,000,000,000
10
DNP3: fix reachable assertion and buffer over-read/overflow. A DNP3 packet using a link layer header that specifies a zero length can trigger an assertion failure if assertions are enabled. Assertions are enabled unless Bro is compiled with the NDEBUG preprocessor macro defined. The default configuration of Bro will...
static inline u8 bnx2x_fp_igu_sb_id(struct bnx2x_fastpath *fp) { return fp->bp->igu_base_sb + fp->index + CNIC_SUPPORT(fp->bp); }
0
[ "CWE-20" ]
linux
8914a595110a6eca69a5e275b323f5d09e18f4f9
129,950,020,395,947,600,000,000,000,000,000,000,000
4
bnx2x: disable GSO where gso_size is too big for hardware If a bnx2x card is passed a GSO packet with a gso_size larger than ~9700 bytes, it will cause a firmware error that will bring the card down: bnx2x: [bnx2x_attn_int_deasserted3:4323(enP24p1s0f0)]MC assert! bnx2x: [bnx2x_mc_assert:720(enP24p1s0f0)]XSTORM_ASSERT...
void sspi_ContextBufferAllocTableNew() { size_t size; ContextBufferAllocTable.cEntries = 0; ContextBufferAllocTable.cMaxEntries = 4; size = sizeof(CONTEXT_BUFFER_ALLOC_ENTRY) * ContextBufferAllocTable.cMaxEntries; ContextBufferAllocTable.entries = malloc(size); ZeroMemory(ContextBufferAllocTable.entries, size)...
0
[ "CWE-476", "CWE-125" ]
FreeRDP
0773bb9303d24473fe1185d85a424dfe159aff53
86,534,125,328,474,740,000,000,000,000,000,000,000
12
nla: invalidate sec handle after creation If sec pointer isn't invalidated after creation it is not possible to check if the upper and lower pointers are valid. This fixes a segfault in the server part if the client disconnects before the authentication was finished.
static HRESULT STDMETHODCALLTYPE CliprdrDataObject_QueryGetData(IDataObject* This, FORMATETC* pformatetc) { CliprdrDataObject* instance = (CliprdrDataObject*)This; if (!pformatetc) return E_INVALIDARG; if (cliprdr_lookup_format(instance, pformatetc)...
0
[ "CWE-20" ]
FreeRDP
0d79670a28c0ab049af08613621aa0c267f977e9
209,865,733,259,950,450,000,000,000,000,000,000,000
13
Fixed missing input checks for file contents request reported by Valentino Ricotta (Thalium)
static void calc_sleep_time(tcpreplay_t *ctx, struct timeval *pkt_ts_delta, struct timeval *time_delta, COUNTER len, sendpacket_t *sp, COUNTER counter, timestamp_t *sent_timestamp, COUNTER start_us, COUNTER *skip_length) { tcpreplay_opt_t *options = ctx->options; struct timeval nap_for; ...
0
[ "CWE-476" ]
tcpreplay
46cf964a7db636da76abeebf10482acf6f682a87
255,237,881,315,591,440,000,000,000,000,000,000,000
138
Bug #677 - fixes for tcpprep tree
/** \param[out] max_val Value of the maximum value found. **/ template<typename t> const T& min_max(t& max_val) const { bool is_all_empty = true; T *ptr_min = 0; cimglist_for(*this,l) if (!_data[l].is_empty()) { ptr_min = _data[l]._data; is_all_empty = false; ...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
47,307,565,488,272,160,000,000,000,000,000,000,000
25
.
static int get_transpose(char *p) { int val, pit1, pit2, acc; static int pit_st[7] = {0, 2, 4, 5, 7, 9, 11}; if (isdigit(*p) || *p == '-' || *p == '+') { sscanf(p, "%d", &val); val *= 3; switch (p[strlen(p) - 1]) { default: return val; case '#': val++; break; case 'b': val += 2; break; ...
0
[ "CWE-787" ]
abcm2ps
dc0372993674d0b50fedfbf7b9fad1239b8efc5f
130,591,967,169,643,100,000,000,000,000,000,000,000
84
fix: crash when too many accidentals in K: (signature + explicit) Issue #17.
dirserv_add_multiple_descriptors(const char *desc, uint8_t purpose, const char *source, const char **msg) { was_router_added_t r, r_tmp; const char *msg_out; smartlist_t *list; const char *s; int n_parsed = 0; time_t now = time(NULL); char ...
0
[]
tor
02e05bd74dbec614397b696cfcda6525562a4675
152,232,227,312,373,300,000,000,000,000,000,000,000
74
When examining descriptors as a dirserver, reject ones with bad versions This is an extra fix for bug 21278: it ensures that these descriptors and platforms will never be listed in a legit consensus.
const char * iniparser_getsecname(const dictionary * d, int n) { int i ; int foundsec ; if (d==NULL || n<0) return NULL ; foundsec=0 ; for (i=0 ; i<d->size ; i++) { if (d->key[i]==NULL) continue ; if (strchr(d->key[i], ':')==NULL) { foundsec++ ; i...
0
[]
iniparser
4f870752abbb756911d7b11405d49e9769d082bd
100,820,993,579,915,350,000,000,000,000,000,000,000
21
Fix #68 when reading file with only \0 char
void LanLinkProvider::deviceLinkDestroyed(QObject* destroyedDeviceLink) { const QString id = destroyedDeviceLink->property("deviceId").toString(); //qCDebug(KDECONNECT_CORE) << "deviceLinkDestroyed" << id; QMap< QString, LanDeviceLink* >::iterator linkIterator = m_links.find(id); Q_ASSERT(linkIterator !...
0
[ "CWE-400", "CWE-703" ]
kdeconnect-kde
4fbd01a3d44a0bcca888c49a77ec7cfd10e113d7
272,898,698,727,272,070,000,000,000,000,000,000,000
16
Limit identity packets to 8KiB Healthy identity packages shouldn't be that big and we don't want to allow systems around us to send us ever humongous packages that will just leave us without any memory. Thanks Matthias Gerstner <mgerstner@suse.de> for reporting this.
void send_stream_error(h2o_http2_conn_t *conn, uint32_t stream_id, int errnum) { assert(stream_id != 0); assert(conn->state < H2O_HTTP2_CONN_STATE_IS_CLOSING); h2o_http2_encode_rst_stream_frame(&conn->_write.buf, stream_id, -errnum); h2o_http2_conn_request_write(conn); }
0
[ "CWE-703" ]
h2o
1c0808d580da09fdec5a9a74ff09e103ea058dd4
6,752,972,799,465,244,000,000,000,000,000,000,000
8
h2: use after free on premature connection close #920 lib/http2/connection.c:on_read() calls parse_input(), which might free `conn`. It does so in particular if the connection preface isn't the expected one in expect_preface(). `conn` is then used after the free in `if (h2o_timeout_is_linked(&conn->_write.timeout_entr...
static double mp_exp(_cimg_math_parser& mp) { return std::exp(_mp_arg(2));
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
318,243,437,655,129,450,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
int kvm_set_memory_region(struct kvm *kvm, struct kvm_userspace_memory_region *mem, int user_alloc) { int r; mutex_lock(&kvm->slots_lock); r = __kvm_set_memory_region(kvm, mem, user_alloc); mutex_unlock(&kvm->slots_lock); return r; }
0
[ "CWE-399" ]
kvm
5b40572ed5f0344b9dbee486a17c589ce1abe1a3
76,240,405,307,118,790,000,000,000,000,000,000,000
11
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 ...
xmlDumpElementTable(xmlBufferPtr buf, xmlElementTablePtr table) { if ((buf == NULL) || (table == NULL)) return; xmlHashScan(table, xmlDumpElementDeclScan, buf); }
0
[ "CWE-416" ]
libxml2
652dd12a858989b14eed4e84e453059cd3ba340e
66,017,707,129,418,170,000,000,000,000,000,000,000
5
[CVE-2022-23308] Use-after-free of ID and IDREF attributes If a document is parsed with XML_PARSE_DTDVALID and without XML_PARSE_NOENT, the value of ID attributes has to be normalized after potentially expanding entities in xmlRemoveID. Otherwise, later calls to xmlGetID can return a pointer to previously freed memory...
Item_iterator_ref_list(List_iterator<Item*> &arg_list): list(arg_list) {}
0
[ "CWE-617" ]
server
2e7891080667c59ac80f788eef4d59d447595772
312,343,823,626,021,100,000,000,000,000,000,000,000
2
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....
template<typename T> explicit CImgDisplay(const CImg<T>& img, const char *const title=0, const unsigned int normalization=3, const bool is_fullscreen=false, const bool is_closed=false): _width(0),_height(0),_normalization(0), _min(0),_max(0), _...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
196,087,793,476,878,420,000,000,000,000,000,000,000
13
Fix other issues in 'CImg<T>::load_bmp()'.
_dwarf_internal_printlines(Dwarf_Die die, int * err_count_out, int only_line_header, Dwarf_Error * error) { /* This pointer is used to scan the portion of the .debug_line section for the current cu. */ Dwarf_Small *line_ptr = 0; Dwarf_Small *orig_line_ptr = 0; /* Pointer to a DW_A...
1
[]
libdwarf-code
faf99408e3f9f706fc3809dd400e831f989778d3
169,476,511,777,665,770,000,000,000,000,000,000,000
193
modified: libdwarf/dwarf_print_lines.c * dwarf_print_lines.c: In case of corrupted DWARF5 line header the fi_file_name field for a file entry can be null. Now we print a <no file name> string in that case to avoid passing a null to dwarfstring_append. Dwarfbug DW202010-003. Als...
static int ssl_load_certificates (SSL_CTX *ctx) { FILE *fp; X509 *cert = NULL; X509_STORE *store; char buf[STRING]; int rv = 1; dprint (2, (debugfile, "ssl_load_certificates: loading trusted certificates\n")); store = SSL_CTX_get_cert_store (ctx); if (!store) { store = X509_STORE_new (); SSL_...
0
[ "CWE-74" ]
mutt
c547433cdf2e79191b15c6932c57f1472bfb5ff4
202,233,792,000,428,300,000,000,000,000,000,000,000
42
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...
**/ CImg<T>& distance_eikonal(const unsigned int nb_iterations, const float band_size=0, const float time_step=0.5f) { if (is_empty()) return *this; CImg<Tfloat> velocity(*this,false); for (unsigned int iteration = 0; iteration<nb_iterations; ++iteration) { Tfloat *ptrd = velocity._dat...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
98,259,899,066,927,710,000,000,000,000,000,000,000
45
Fix other issues in 'CImg<T>::load_bmp()'.
void StreamListener::OnStreamAfterWrite(WriteWrap* w, int status) { CHECK_NOT_NULL(previous_listener_); previous_listener_->OnStreamAfterWrite(w, status); }
0
[ "CWE-416" ]
node
4f8772f9b731118628256189b73cd202149bbd97
246,571,096,533,731,660,000,000,000,000,000,000,000
4
src: retain pointers to WriteWrap/ShutdownWrap Avoids potential use-after-free when wrap req's are synchronously destroyed. CVE-ID: CVE-2020-8265 Fixes: https://github.com/nodejs-private/node-private/issues/227 Refs: https://hackerone.com/bugs?subject=nodejs&report_id=988103 PR-URL: https://github.com/nodejs-private/...
static void finish_wqe(struct mlx5_ib_qp *qp, struct mlx5_wqe_ctrl_seg *ctrl, u8 size, unsigned idx, u64 wr_id, int nreq, u8 fence, u32 mlx5_opcode) { u8 opmod = 0; ctrl->opmod_idx_opcode = cpu_to_be32(((u32)(qp->sq.cur_post) << 8) | mlx5_opcode | ((u32)opmod << 24)); ctrl->qpn_...
0
[ "CWE-119", "CWE-787" ]
linux
0625b4ba1a5d4703c7fb01c497bd6c156908af00
180,052,721,425,707,800,000,000,000,000,000,000,000
20
IB/mlx5: Fix leaking stack memory to userspace mlx5_ib_create_qp_resp was never initialized and only the first 4 bytes were written. Fixes: 41d902cb7c32 ("RDMA/mlx5: Fix definition of mlx5_ib_create_qp_resp") Cc: <stable@vger.kernel.org> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <...
explicit BoostedTreesQuantileStreamResourceFlushOp( OpKernelConstruction* const context) : OpKernel(context) { OP_REQUIRES_OK(context, context->GetAttr(kGenerateQuantiles, &generate_quantiles_)); }
0
[ "CWE-703", "CWE-681" ]
tensorflow
8a84f7a2b5a2b27ecf88d25bad9ac777cd2f7992
201,276,194,096,041,300,000,000,000,000,000,000,000
6
Ensure num_streams >= 0 in tf.raw_ops.BoostedTreesCreateQuantileStreamResource PiperOrigin-RevId: 387452765 Change-Id: I9990c760e177fabca6a3b9b4612ceeaeeba51495
status_icon_start (GsdXrandrManager *manager) { struct GsdXrandrManagerPrivate *priv = manager->priv; /* Ideally, we should detect if we are on a tablet and only display * the icon in that case. */ if (!priv->status_icon) { priv->status_icon = gtk_status_icon_n...
0
[]
gnome-settings-daemon
be513b3c7d80d0b7013d79ce46d7eeca929705cc
317,083,235,312,729,650,000,000,000,000,000,000,000
17
Implement autoconfiguration of the outputs This is similar in spirit to 'xrandr --auto', but we disfavor selecting clone modes. Instead, we lay out the outputs left-to-right. Signed-off-by: Federico Mena Quintero <federico@novell.com>
char *fn_rext(char *name) { char *res= strrchr(name, '.'); if (res && !strcmp(res, reg_ext)) return res; return name + strlen(name); }
0
[ "CWE-416" ]
server
4681b6f2d8c82b4ec5cf115e83698251963d80d5
312,857,942,304,978,650,000,000,000,000,000,000,000
7
MDEV-26281 ASAN use-after-poison when complex conversion is involved in blob the bug was that in_vector array in Item_func_in was allocated in the statement arena, not in the table->expr_arena. revert part of the 5acd391e8b2d. Instead, change the arena correctly in fix_all_session_vcol_exprs(). Remove TABLE_ARENA, t...
XkbSizeVirtualModMap(XkbDescPtr xkb, xkbGetMapReply * rep) { unsigned i, len, nRtrn; if (((rep->present & XkbVirtualModMapMask) == 0) || (rep->nVModMapKeys < 1) || (!xkb) || (!xkb->server) || (!xkb->server->vmodmap)) { rep->present &= ~XkbVirtualModMapMask; rep->firstVModMapKey = rep->n...
0
[ "CWE-119" ]
xserver
f7cd1276bbd4fe3a9700096dec33b52b8440788d
165,484,534,298,797,110,000,000,000,000,000,000,000
19
Correct bounds checking in XkbSetNames() CVE-2020-14345 / ZDI 11428 This vulnerability was discovered by: Jan-Niklas Sohn working with Trend Micro Zero Day Initiative Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
currentbasecolor_cont(i_ctx_t *i_ctx_p) { ref arr, *parr = &arr; es_ptr ep = esp; int i, code = 0, stage, base, cont=1, stack_depth = 0, CIESubst=0; unsigned int depth; PS_colour_space_t *obj; stack_depth = (int)ep[-4].value.intval; base = (int)ep[-3].value.intval; depth = (unsigned int...
0
[]
ghostpdl
b326a71659b7837d3acde954b18bda1a6f5e9498
151,666,105,519,256,060,000,000,000,000,000,000,000
63
Bug 699655: Properly check the return value.... ...when getting a value from a dictionary
p11_rpc_server_handle (CK_X_FUNCTION_LIST *self, p11_buffer *request, p11_buffer *response) { p11_rpc_message msg; CK_RV ret; int req_id; return_val_if_fail (self != NULL, false); return_val_if_fail (request != NULL, false); return_val_if_fail (response != NULL, fals...
0
[ "CWE-190" ]
p11-kit
5307a1d21a50cacd06f471a873a018d23ba4b963
27,162,810,604,307,070,000,000,000,000,000,000,000
138
Check for arithmetic overflows before allocating
static int mxf_compute_index_tables(MXFContext *mxf) { int i, j, k, ret, nb_sorted_segments; MXFIndexTableSegment **sorted_segments = NULL; if ((ret = mxf_get_sorted_table_segments(mxf, &nb_sorted_segments, &sorted_segments)) || nb_sorted_segments <= 0) { av_log(mxf->fc, AV_LOG_WARNING, "br...
0
[ "CWE-125" ]
FFmpeg
bab0716c7f4793ec42e05a5aa7e80d82a0dd4e75
211,292,385,694,056,400,000,000,000,000,000,000,000
107
avformat/mxfdec: Fix av_log context Fixes: out of array access Fixes: mxf-crash-1c2e59bf07a34675bfb3ada5e1ec22fa9f38f923 Found-by: Paul Ch <paulcher@icloud.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Converter_str2my_decimal_with_warn(THD *thd, Warn_filter filter, uint mask, CHARSET_INFO *cs, const char *str, size_t length, my_decimal *buf) :Converter_str2my_decimal(mask, cs, str, length, bu...
0
[ "CWE-416", "CWE-703" ]
server
08c7ab404f69d9c4ca6ca7a9cf7eec74c804f917
49,989,051,956,072,010,000,000,000,000,000,000,000
8
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...
conn_lookup(struct conntrack *ct, const struct conn_key *key, long long now, struct conn **conn_out, bool *reply) { uint32_t hash = conn_key_hash(key, ct->hash_basis); return conn_key_lookup(ct, key, hash, now, conn_out, reply); }
0
[ "CWE-400" ]
ovs
79349cbab0b2a755140eedb91833ad2760520a83
14,547,654,090,558,235,000,000,000,000,000,000,000
6
flow: Support extra padding length. Although not required, padding can be optionally added until the packet length is MTU bytes. A packet with extra padding currently fails sanity checks. Vulnerability: CVE-2020-35498 Fixes: fa8d9001a624 ("miniflow_extract: Properly handle small IP packets.") Reported-by: Joakim Hind...
write_header( FT_Error error_code ) { FT_Face face; const char* basename; const char* format; error = FTC_Manager_LookupFace( handle->cache_manager, handle->scaler.face_id, &face ); if ( error ) Fatal( "can't access font file" ); if ( !sta...
0
[ "CWE-120" ]
freetype2-demos
b995299b73ba4cd259f221f500d4e63095508bec
314,295,187,795,825,060,000,000,000,000,000,000,000
98
Fix Savannah bug #30054. * src/ftdiff.c, src/ftgrid.c, src/ftmulti.c, src/ftstring.c, src/ftview.c: Use precision for `%s' where appropriate to avoid buffer overflows.
GF_Box *ihdr_box_new() { ISOM_DECL_BOX_ALLOC(GF_J2KImageHeaderBox, GF_ISOM_BOX_TYPE_IHDR); return (GF_Box *)tmp;
0
[ "CWE-787" ]
gpac
388ecce75d05e11fc8496aa4857b91245007d26e
97,967,017,820,445,670,000,000,000,000,000,000,000
5
fixed #1587
static bool parse_dysymtab(struct MACH0_(obj_t) *bin, ut64 off) { size_t 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-125", "CWE-787" ]
radare2
0052500c1ed5bf8263b26b9fd7773dbdc6f170c4
292,055,662,138,464,120,000,000,000,000,000,000,000
152
Fix heap OOB read in macho.iterate_chained_fixups ##crash * Reported by peacock-doris via huntr.dev * Reproducer 'tests_65305' mrmacete: * Return early if segs_count is 0 * Initialize segs_count also for reconstructed fixups Co-authored-by: pancake <pancake@nopcode.org> Co-authored-by: Francesco Tamagni <mrm...
pam_sm_authenticate(pam_handle_t *pamh, int flags UNUSED, int argc, const char **argv) { const char *username; const void *password; const char *database = NULL; const char *cryptmode = NULL; int retval = PAM_AUTH_ERR, ctrl; /* parse arguments */ ctrl = _pam_parse(pamh, argc, a...
0
[]
linux-pam
57a1e2b274d0a6376d92ada9926e5c5741e7da20
247,824,042,312,435,880,000,000,000,000,000,000,000
87
pam_userdb: fix password hash comparison Starting with commit Linux-PAM-0-77-28-g0b3e583 that introduced hashed passwords support in pam_userdb, hashes are compared case-insensitively. This bug leads to accepting hashes for completely different passwords in addition to those that should be accepted. Additionally, com...
process_title(struct parsed_tag *tag) { cur_title = Strnew(); return NULL; }
0
[ "CWE-476" ]
w3m
59b91cd8e30c86f23476fa81ae005cabff49ebb6
107,717,169,694,130,350,000,000,000,000,000,000,000
5
Prevent segfault with malformed input type Bug-Debian: https://github.com/tats/w3m/issues/7
void ProtocolV1::discard_out_queue() { ldout(cct, 10) << __func__ << " started" << dendl; for (list<Message *>::iterator p = sent.begin(); p != sent.end(); ++p) { ldout(cct, 20) << __func__ << " discard " << *p << dendl; (*p)->put(); } sent.clear(); for (map<int, list<pair<bufferlist, Message *> > >:...
0
[ "CWE-294" ]
ceph
6c14c2fb5650426285428dfe6ca1597e5ea1d07d
288,570,468,857,621,350,000,000,000,000,000,000,000
20
mon/MonClient: bring back CEPHX_V2 authorizer challenges Commit c58c5754dfd2 ("msg/async/ProtocolV1: use AuthServer and AuthClient") introduced a backwards compatibility issue into msgr1. To fix it, commit 321548010578 ("mon/MonClient: skip CEPHX_V2 challenge if client doesn't support it") set out to skip authorizer c...
bool AuthorizationSession::isAuthorizedToParseNamespaceElement(const BSONElement& element) { const bool isUUID = element.type() == BinData && element.binDataType() == BinDataType::newUUID; uassert(ErrorCodes::InvalidNamespace, "Failed to parse namespace element", element.type() == Strin...
0
[ "CWE-613" ]
mongo
db19e7ce84cfd702a4ba9983ee2ea5019f470f82
308,040,890,182,305,550,000,000,000,000,000,000,000
14
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
TEST_F(HttpConnectionManagerImplTest, TestAccessLogSsl) { setup(true, ""); std::shared_ptr<MockStreamDecoderFilter> filter(new NiceMock<MockStreamDecoderFilter>()); std::shared_ptr<AccessLog::MockInstance> handler(new NiceMock<AccessLog::MockInstance>()); EXPECT_CALL(filter_factory_, createFilterChain(_)) ...
0
[ "CWE-22" ]
envoy
5333b928d8bcffa26ab19bf018369a835f697585
321,121,769,737,395,170,000,000,000,000,000,000,000
49
Implement handling of escaped slash characters in URL path Fixes: CVE-2021-29492 Signed-off-by: Yan Avlasov <yavlasov@google.com>
ngx_mail_ssl_handshake_handler(ngx_connection_t *c) { ngx_mail_session_t *s; ngx_mail_core_srv_conf_t *cscf; if (c->ssl->handshaked) { s = c->data; if (ngx_mail_verify_cert(s, c) != NGX_OK) { return; } if (s->starttls) { cscf = ngx_mail_get...
0
[ "CWE-284", "CWE-295" ]
nginx
173f16f736c10eae46cd15dd861b04b82d91a37a
222,300,132,215,084,670,000,000,000,000,000,000,000
32
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.
static Jpeg2000TgtNode *ff_jpeg2000_tag_tree_init(int w, int h) { int pw = w, ph = h; Jpeg2000TgtNode *res, *t, *t2; int32_t tt_size; tt_size = tag_tree_size(w, h); t = res = av_mallocz_array(tt_size, sizeof(*t)); if (!res) return NULL; while (w > 1 || h > 1) { int i, j; ...
0
[ "CWE-703" ]
FFmpeg
912ce9dd2080c5837285a471d750fa311e09b555
117,202,290,561,367,000,000,000,000,000,000,000,000
30
jpeg2000: fix dereferencing invalid pointers Found-by: Laurent Butti <laurentb@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
GF_Err trgr_on_child_box(GF_Box *s, GF_Box *a, Bool is_rem) { GF_TrackGroupBox *ptr = (GF_TrackGroupBox *)s; BOX_FIELD_LIST_ASSIGN(groups) return gf_list_add(ptr->groups, a);
0
[ "CWE-476", "CWE-787" ]
gpac
b8f8b202d4fc23eb0ab4ce71ae96536ca6f5d3f8
7,873,285,302,544,211,000,000,000,000,000,000,000
7
fixed #1757
parsedURL2Str(ParsedURL *pu) { return _parsedURL2Str(pu, FALSE); }
0
[ "CWE-119" ]
w3m
ba9d78faeba9024c3e8840579c3b0e959ae2cb0f
104,419,292,625,433,950,000,000,000,000,000,000,000
4
Prevent global-buffer-overflow in parseURL() Bug-Debian: https://github.com/tats/w3m/issues/41
TEST(ExistsMatchExpression, Equivalent) { ExistsMatchExpression e1("a"); ExistsMatchExpression e2("b"); ASSERT(e1.equivalent(&e1)); ASSERT(!e1.equivalent(&e2)); }
0
[]
mongo
64095239f41e9f3841d8be9088347db56d35c891
104,984,740,449,464,370,000,000,000,000,000,000,000
7
SERVER-51083 Reject invalid UTF-8 from $regex match expressions
Item_decimal::Item_decimal(longlong val, bool unsig) { int2my_decimal(E_DEC_FATAL_ERROR, val, unsig, &decimal_value); decimals= (uint8) decimal_value.frac; fixed= 1; max_length= my_decimal_precision_to_length_no_truncation(decimal_value.intg + decimals,...
0
[]
server
b000e169562697aa072600695d4f0c0412f94f4f
103,199,396,863,065,720,000,000,000,000,000,000,000
10
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'...
ref_param_begin_write_collection(gs_param_list * plist, gs_param_name pkey, gs_param_dict * pvalue, gs_param_collection_type_t coll_type) { iparam_list *const iplist = (iparam_list *) plist; gs_ref_memory_t *imem = iplist->ref_memory; dict_pa...
0
[]
ghostpdl
bfa6b2ecbe48edc69a7d9d22a12419aed25960b8
229,662,124,295,075,300,000,000,000,000,000,000,000
35
Bug 697548: use the correct param list enumerator When we encountered dictionary in a ref_param_list, we were using the enumerator for the "parent" param_list, rather than the enumerator for the param_list we just created for the dictionary. That parent was usually the stack list enumerator, and caused a segfault. Us...
static int parse_expect(struct transaction_t *txn) { const char **exp = spool_getheader(txn->req_hdrs, "Expect"); int i, ret = 0; /* Expect not supported by HTTP/1.0 clients */ if (exp && txn->flags.ver1_0) return HTTP_EXPECT_FAILED; /* Look for interesting expectations. Unknown == error */ f...
0
[ "CWE-787" ]
cyrus-imapd
a5779db8163b99463e25e7c476f9cbba438b65f3
125,449,403,917,096,680,000,000,000,000,000,000,000
30
HTTP: don't overrun buffer when parsing strings with sscanf()
static MemoryRegion *memory_region_get_flatview_root(MemoryRegion *mr) { while (mr->enabled) { if (!mr->terminates) { unsigned int found = 0; MemoryRegion *child, *next = NULL; QTAILQ_FOREACH(child, &mr->subregions, subregions_link) { if (child->enabled) {...
0
[ "CWE-476" ]
unicorn
3d3deac5e6d38602b689c4fef5dac004f07a2e63
266,205,749,080,246,800,000,000,000,000,000,000,000
35
Fix crash when mapping a big memory and calling uc_close
GF_Err saio_Read(GF_Box *s, GF_BitStream *bs) { GF_SampleAuxiliaryInfoOffsetBox *ptr = (GF_SampleAuxiliaryInfoOffsetBox *)s; if (ptr->flags & 1) { ptr->aux_info_type = gf_bs_read_u32(bs); ptr->aux_info_type_parameter = gf_bs_read_u32(bs); ISOM_DECREASE_SIZE(ptr, 8); } ptr->entry_count = gf_bs_read_u32(bs); ...
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
269,406,347,660,638,070,000,000,000,000,000,000,000
29
prevent dref memleak on invalid input (#1183)
static void release_stun_session(pjsua_stun_resolve *sess) { PJSUA_LOCK(); pj_list_erase(sess); PJSUA_UNLOCK(); pj_assert(sess->stun_sock==NULL); pj_pool_release(sess->pool); }
0
[ "CWE-120", "CWE-787" ]
pjproject
d27f79da11df7bc8bb56c2f291d71e54df8d2c47
284,696,215,034,278,040,000,000,000,000,000,000,000
9
Use PJ_ASSERT_RETURN() on pjsip_auth_create_digest() and pjsua_init_tpselector() (#3009) * Use PJ_ASSERT_RETURN on pjsip_auth_create_digest * Use PJ_ASSERT_RETURN on pjsua_init_tpselector() * Fix incorrect check. * Add return value to pjsip_auth_create_digest() and pjsip_auth_create_digestSHA256() * Modifi...