func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
int csync_file_backup(const char *filepath) { static char error_buffer[1024]; const struct csync_group *g = NULL; struct stat buf; int rc; /* ============================================================================================== * As of now, filepath may only contain prefixes but we may need to resolve o...
0
[ "CWE-703" ]
csync2
416f1de878ef97e27e27508914f7ba8599a0be22
66,244,937,351,398,380,000,000,000,000,000,000,000
125
fail HELLO command when SSL is required
struct file *open_exec(const char *name) { struct file *file; int err; static const struct open_flags open_exec_flags = { .open_flag = O_LARGEFILE | O_RDONLY | __FMODE_EXEC, .acc_mode = MAY_EXEC | MAY_OPEN, .intent = LOOKUP_OPEN }; file = do_filp_open(AT_FDCWD, name, &open_exec_flags, LOOKUP_FOLLOW); if (I...
0
[ "CWE-264" ]
linux
259e5e6c75a910f3b5e656151dc602f53f9d7548
91,218,147,291,780,860,000,000,000,000,000,000,000
34
Add PR_{GET,SET}_NO_NEW_PRIVS to prevent execve from granting privs With this change, calling prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0) disables privilege granting operations at execve-time. For example, a process will not be able to execute a setuid binary to change their uid or gid if this bit is set. The same is t...
long ParseElementHeader(IMkvReader* pReader, long long& pos, long long stop, long long& id, long long& size) { if (stop >= 0 && pos >= stop) return E_FILE_FORMAT_INVALID; long len; id = ReadID(pReader, pos, len); if (id < 0) return E_FILE_FORMAT_INVALID; pos += len; // con...
0
[ "CWE-20" ]
libvpx
34d54b04e98dd0bac32e9aab0fbda0bf501bc742
265,516,393,432,634,440,000,000,000,000,000,000,000
40
update libwebm to libwebm-1.0.0.27-358-gdbf1d10 changelog: https://chromium.googlesource.com/webm/libwebm/+log/libwebm-1.0.0.27-351-g9f23fbc..libwebm-1.0.0.27-358-gdbf1d10 Change-Id: I28a6b3ae02a53fb1f2029eee11e9449afb94c8e3
_rsvg_handle_allow_load (RsvgHandle *handle, const char *uri, GError **error) { RsvgHandlePrivate *priv = handle->priv; GFile *base; char *path, *dir; char *scheme = NULL, *cpath = NULL, *cdir = NULL; g_assert (handle->priv->load_policy == RSVG_LOAD...
0
[ "CWE-20" ]
librsvg
f01aded72c38f0e18bc7ff67dee800e380251c8e
93,463,916,313,490,950,000,000,000,000,000,000,000
83
io: Implement strict load policy Allow any file to load from data:, and any resource to load from other resources. Only allow file: to load other file: URIs from below the path of the base file. Any other loads are denied. Bug #691708.
int enc_untrusted_inotify_rm_watch(int fd, int wd) { return EnsureInitializedAndDispatchSyscall( asylo::system_call::kSYS_inotify_rm_watch, fd, wd); }
0
[ "CWE-125" ]
asylo
b1d120a2c7d7446d2cc58d517e20a1b184b82200
327,867,763,565,457,750,000,000,000,000,000,000,000
4
Check for return size in enc_untrusted_read Check return size does not exceed requested. The returned result and content still cannot be trusted, but it's expected behavior when not using a secure file system. PiperOrigin-RevId: 333827386 Change-Id: I0bdec0aec9356ea333dc8c647eba5d2772875f29
gnutls_priority_cipher_list(gnutls_priority_t pcache, const unsigned int **list) { if (pcache->cipher.algorithms == 0) return 0; *list = pcache->cipher.priority; return pcache->cipher.algorithms; }
0
[ "CWE-310" ]
gnutls
21f89efad7014a5ee0debd4cd3d59e27774b29e6
127,818,648,654,693,900,000,000,000,000,000,000,000
9
handshake: add FALLBACK_SCSV priority option This allows clients to enable the TLS_FALLBACK_SCSV mechanism during the handshake, as defined in RFC7507.
gdImagePtr gdImageRotateInterpolated(const gdImagePtr src, const float angle, int bgcolor) { const int angle_rounded = (int)floor(angle * 100); if (bgcolor < 0) { return NULL; } /* impact perf a bit, but not that much. Implementation for palette images can be done at a later point. */ if (src->trueColor =...
0
[ "CWE-119" ]
php-src
aa8d3a8cc612ba87c0497275f58a2317a90fb1c4
326,866,405,980,586,370,000,000,000,000,000,000,000
50
fix the fix for bug #70976 (imagerotate)
static int qh_echo(int sd, char *buf, unsigned int len) { int result = 0; if (buf == NULL || !strcmp(buf, "help")) { nsock_printf_nul(sd, "Query handler that simply echoes back what you send it."); return 0; } result = write(sd, buf, len); if (result == -1) { logit(NSLOG_RUNTIME_ERROR, TRUE, "qh: qh_e...
0
[ "CWE-476" ]
nagioscore
b1a92a3b52d292ccb601e77a0b29cb1e67ac9d76
113,375,774,211,805,100,000,000,000,000,000,000,000
18
merge accidental master PR (#553) into maint and fix changelog merge conflict
static int network_config_set_interface(const oconfig_item_t *ci, /* {{{ */ int *interface) { char if_name[256]; if (cf_util_get_string_buffer(ci, if_name, sizeof(if_name)) != 0) return (-1); *interface = if_nametoindex(if_name); return (0); } /* }}} int network_con...
0
[ "CWE-835" ]
collectd
f6be4f9b49b949b379326c3d7002476e6ce4f211
159,586,231,592,968,040,000,000,000,000,000,000,000
10
network plugin: Fix endless loop DOS in parse_packet() When correct 'Signature part' is received by Collectd, configured without AuthFile option, condition for endless loop occurs due to missing increase of pointer to next unprocessed part. This is a forward-port of #2233. Fixes: CVE-2017-7401 Closes: #2174 Signed-o...
addRuleName(const FileInfo *file, CharsString *name, TranslationTableOffset ruleOffset, TranslationTableHeader *table) { int k; RuleName *ruleName; if (!(ruleName = malloc(sizeof(*ruleName) + CHARSIZE * (name->length - 1)))) { compileError(file, "not enough memory"); _lou_outOfMemory(); } memset(ruleName, 0,...
0
[ "CWE-787" ]
liblouis
2e4772befb2b1c37cb4b9d6572945115ee28630a
286,750,377,131,226,750,000,000,000,000,000,000,000
26
Prevent an invalid memory writes in compileRule Thanks to Han Zheng for reporting it Fixes #1214
image_brush_fill(gx_path_type_t path_type, xps_brush_t brush_type) { return brush_type == xps_imagebrush; }
0
[]
ghostpdl
94d8955cb7725eb5f3557ddc02310c76124fdd1a
133,369,516,401,169,060,000,000,000,000,000,000,000
4
Bug 701818: better handling of error during PS/PDF image In the xps device, if an error occurred after xps_begin_image() but before xps_image_end_image(), *if* the Postscript had called 'restore' as part of the error handling, the image enumerator would have been freed (by the restore) despite the xps device still hol...
void bdrv_add_before_write_notifier(BlockDriverState *bs, NotifierWithReturn *notifier) { notifier_with_return_list_add(&bs->before_write_notifiers, notifier); }
0
[ "CWE-190" ]
qemu
8f4754ede56e3f9ea3fd7207f4a7c4453e59285b
337,114,576,904,417,030,000,000,000,000,000,000,000
5
block: Limit request size (CVE-2014-0143) Limiting the size of a single request to INT_MAX not only fixes a direct integer overflow in bdrv_check_request() (which would only trigger bad behaviour with ridiculously huge images, as in close to 2^64 bytes), but can also prevent overflows in all block drivers. Signed-off...
kssl_krb5_cc_default(krb5_context CO, krb5_ccache * pCC) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_cc_default ) return(p_krb5_cc_default(CO,pCC)); else return KRB5KRB_ERR_GENERIC; }
0
[ "CWE-20" ]
openssl
cca1cd9a3447dd067503e4a85ebd1679ee78a48e
85,875,593,648,273,540,000,000,000,000,000,000,000
11
Submitted by: Tomas Hoger <thoger@redhat.com> Fix for CVE-2010-0433 where some kerberos enabled versions of OpenSSL could be crashed if the relevant tables were not present (e.g. chrooted).
virDomainHubDefCheckABIStability(virDomainHubDefPtr src, virDomainHubDefPtr dst) { if (src->type != dst->type) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("Target hub device type %s does not match source %s"), virDomainHubType...
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
142,525,620,154,540,650,000,000,000,000,000,000,000
16
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
rfbSendBell(rfbScreenInfoPtr rfbScreen) { rfbClientIteratorPtr i; rfbClientPtr cl; rfbBellMsg b; i = rfbGetClientIterator(rfbScreen); while((cl=rfbClientIteratorNext(i))) { b.type = rfbBell; if (WriteExact(cl, (char *)&b, sz_rfbBellMsg) < 0) { rfbLogPerror("rfbSendBell: write"); rfbClos...
0
[ "CWE-119" ]
vino
dff52694a384fe95195f2211254026b752d63ec4
60,051,557,840,726,260,000,000,000,000,000,000,000
16
Avoid out-of-bounds memory accesses This fixes two critical security vulnerabilities that lead to an out-of-bounds memory access with a crafted client framebuffer update request packet. The dimensions of the update from the packet are checked to ensure that they are within the screen dimensions. Thanks to Kevin Chen ...
unset_addr_list_end(UnsetAddrList* uslist) { if (IS_NOT_NULL(uslist->us)) xfree(uslist->us); }
0
[ "CWE-125" ]
php-src
c6e34d91b88638966662caac62c4d0e90538e317
250,057,380,910,746,430,000,000,000,000,000,000,000
5
Fix bug #77371 (heap buffer overflow in mb regex functions - compile_string_node)
ConnectTerminationIntegrationTest() { enableHalfClose(true); }
0
[ "CWE-416" ]
envoy
ce0ae309057a216aba031aff81c445c90c6ef145
89,976,630,768,809,900,000,000,000,000,000,000,000
1
CVE-2021-43826 Signed-off-by: Yan Avlasov <yavlasov@google.com>
ipmi_current_channel_info(struct ipmi_intf *intf, struct channel_info_t *chinfo) { int ccode = 0; chinfo->channel = CH_CURRENT; ccode = _ipmi_get_channel_info(intf, chinfo); if (ccode) { if (ccode != IPMI_CC_INV_DATA_FIELD_IN_REQ) { if (ccode > 0) { lprintf(LOG_ERR, "Get Channel ...
0
[ "CWE-120" ]
ipmitool
9452be87181a6e83cfcc768b3ed8321763db50e4
155,406,001,485,314,720,000,000,000,000,000,000,000
22
channel: Fix buffer overflow Partial fix for CVE-2020-5208, see https://github.com/ipmitool/ipmitool/security/advisories/GHSA-g659-9qxw-p7cp The `ipmi_get_channel_cipher_suites` function does not properly check the final response’s `data_len`, which can lead to stack buffer overflow on the final copy.
format_interval_update(const uint16_t i) { return i == 0xFFFF ? "infinity" : format_interval(i); }
0
[ "CWE-125" ]
tcpdump
12f66f69f7bf1ec1266ddbee90a7616cbf33696b
305,789,011,873,668,230,000,000,000,000,000,000,000
4
(for 4.9.3) CVE-2018-14470/Babel: fix an existing length check In babel_print_v2() the non-verbose branch for an Update TLV compared the TLV Length against 1 instead of 10 (probably a typo), put it right. This fixes a buffer over-read discovered by Henri Salo from Nixu Corporation. Add a test using the capture file ...
static int io_req_defer(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_ring_ctx *ctx = req->ctx; struct io_defer_entry *de; int ret; u32 seq; /* Still need defer if there is pending req in defer list. */ if (likely(list_empty_careful(&ctx->defer_list) && !(req->flags & REQ_F_IO_DRAIN))) re...
0
[]
linux
0f2122045b946241a9e549c2a76cea54fa58a7ff
102,057,966,379,543,180,000,000,000,000,000,000,000
42
io_uring: don't rely on weak ->files references Grab actual references to the files_struct. To avoid circular references issues due to this, we add a per-task note that keeps track of what io_uring contexts a task has used. When the tasks execs or exits its assigned files, we cancel requests based on this tracking. W...
static void io_async_find_and_cancel(struct io_ring_ctx *ctx, struct io_kiocb *req, __u64 sqe_addr, int success_ret) { unsigned long flags; int ret; ret = io_async_cancel_one(req->task->io_uring, sqe_addr, ctx); spin_lock_irqsave(&ctx->completion_lock, flags); if (ret != -ENOENT) goto done; ...
0
[ "CWE-787" ]
linux
d1f82808877bb10d3deee7cf3374a4eb3fb582db
296,462,935,515,011,060,000,000,000,000,000,000,000
26
io_uring: truncate lengths larger than MAX_RW_COUNT on provide buffers Read and write operations are capped to MAX_RW_COUNT. Some read ops rely on that limit, and that is not guaranteed by the IORING_OP_PROVIDE_BUFFERS. Truncate those lengths when doing io_add_buffers, so buffer addresses still use the uncapped lengt...
const char *string_of_NPEvent_type(int type) { const char *str; switch (type) { #define _(VAL) case VAL: str = #VAL; break; #ifdef MOZ_X11 _(KeyPress); _(KeyRelease); _(ButtonPress); _(ButtonRelease); _(MotionNotify); _(EnterNotify); _(LeaveNotify); _(FocusIn); _(FocusOut); ...
0
[ "CWE-264" ]
nspluginwrapper
7e4ab8e1189846041f955e6c83f72bc1624e7a98
292,388,425,888,670,840,000,000,000,000,000,000,000
49
Support all the new variables added
oauth2_jwt_copy_fields(ARRAY_TYPE(oauth2_field) *fields, struct json_tree *tree) { pool_t pool = array_get_pool(fields); ARRAY(const struct json_tree_node*) nodes; const struct json_tree_node *root = json_tree_root(tree); t_array_init(&nodes, 1); array_push_back(&nodes, &root); while (array_count(&nodes) > 0) {...
0
[ "CWE-22" ]
core
15682a20d5589ebf5496b31c55ecf9238ff2457b
291,685,493,848,122,600,000,000,000,000,000,000,000
28
lib-oauth2: Do not escape '.' This is not really needed and just makes things difficult.
static gboolean contains_uppercase(const char *s1) { const char *ch; for (ch = s1; *ch != '\0'; ch++) { if (g_ascii_isupper(*ch)) return TRUE; } return FALSE; }
0
[ "CWE-416" ]
irssi
36564717c9f701e3a339da362ab46d220d27e0c1
163,630,112,973,026,000,000,000,000,000,000,000,000
11
Merge branch 'security' into 'master' Security See merge request irssi/irssi!34 (cherry picked from commit b0d9cb33cd9ef9da7c331409e8b7c57a6f3aef3f)
Select *sqlite3SelectNew( Parse *pParse, /* Parsing context */ ExprList *pEList, /* which columns to include in the result */ SrcList *pSrc, /* the FROM clause -- which tables to scan */ Expr *pWhere, /* the WHERE clause */ ExprList *pGroupBy, /* the GROUP BY clause */ Expr *pHav...
0
[ "CWE-20" ]
sqlite
e59c562b3f6894f84c715772c4b116d7b5c01348
25,519,022,860,070,717,000,000,000,000,000,000,000
54
Fix a crash that could occur if a sub-select that uses both DISTINCT and window functions also used an ORDER BY that is the same as its select list. FossilOrigin-Name: bcdd66c1691955c697f3d756c2b035acfe98f6aad72e90b0021bab6e9023b3ba
struct XOR { bool operator()(bool b1, bool b2) const { return (b1&&!b2)||(!b1&&b2); } };
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
256,170,080,264,806,120,000,000,000,000,000,000,000
2
Fix Nef_2 and Nef_S2 IO
static struct fwnet_partial_datagram *fwnet_pd_find(struct fwnet_peer *peer, u16 datagram_label) { struct fwnet_partial_datagram *pd; list_for_each_entry(pd, &peer->pd_list, pd_link) if (pd->datagram_label == datagram_label) return pd; return NULL; }
0
[ "CWE-119", "CWE-284", "CWE-787" ]
linux
667121ace9dbafb368618dbabcf07901c962ddac
70,036,106,288,851,580,000,000,000,000,000,000,000
11
firewire: net: guard against rx buffer overflows The IP-over-1394 driver firewire-net lacked input validation when handling incoming fragmented datagrams. A maliciously formed fragment with a respectively large datagram_offset would cause a memcpy past the datagram buffer. So, drop any packets carrying a fragment wi...
MySQLresult* DoBlockingQuery(const std::string& query) { /* Parse the command string and dispatch it to mysql */ if (CheckConnection() && !mysql_real_query(connection, query.data(), query.length())) { /* Successfull query */ MYSQL_RES* res = mysql_use_result(connection); unsigned long rows = mysql_aff...
0
[ "CWE-476" ]
inspircd
8745660fcdac7c1b80c94cfc0ff60928cd4dd4b7
324,379,425,376,532,100,000,000,000,000,000,000,000
19
Initialise and deallocate the MySQL library correctly.
DECODE_JSON(Double) { CHECK_TOKEN_BOUNDS; size_t tokenSize; char* tokenData; GET_TOKEN(tokenData, tokenSize); /* https://www.exploringbinary.com/maximum-number-of-decimal-digits-in-binary-floating-point-numbers/ * Maximum digit counts for select IEEE floating-point formats: 1074 * San...
0
[ "CWE-703", "CWE-787" ]
open62541
c800e2987b10bb3af6ef644b515b5d6392f8861d
326,128,853,335,174,340,000,000,000,000,000,000,000
68
fix(json): Check max recursion depth in more places
KaxBlockVirtual::KaxBlockVirtual(EBML_EXTRA_DEF) :EBML_DEF_BINARY(KaxBlockVirtual)EBML_DEF_SEP ParentCluster(NULL) { SetBuffer(DataBlock,sizeof(DataBlock)); SetValueIsSet(false); }
0
[ "CWE-200", "CWE-399", "CWE-119" ]
libmatroska
0a2d3e3644a7453b6513db2f9bc270f77943573f
308,115,264,669,499,400,000,000,000,000,000,000,000
6
KaxBlockInternal: check EBML lace sizes against available buffer space
static const char *writer_get_name(void *p) { WriterContext *wctx = p; return wctx->writer->name; }
0
[ "CWE-476" ]
FFmpeg
837cb4325b712ff1aab531bf41668933f61d75d2
60,374,844,241,605,100,000,000,000,000,000,000,000
5
ffprobe: Fix null pointer dereference with color primaries Found-by: AD-lab of venustech Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
napi_status napi_get_boolean(napi_env env, bool value, napi_value* result) { CHECK_ENV(env); CHECK_ARG(env, result); v8::Isolate* isolate = env->isolate; if (value) { *result = v8impl::JsValueFromV8LocalValue(v8::True(isolate)); } else { *result = v8impl::JsValueFromV8LocalValue(v8::False(isolate));...
0
[ "CWE-191" ]
node
656260b4b65fec3b10f6da3fdc9f11fb941aafb5
86,640,331,999,284,980,000,000,000,000,000,000,000
14
napi: fix memory corruption vulnerability Fixes: https://hackerone.com/reports/784186 CVE-ID: CVE-2020-8174 PR-URL: https://github.com/nodejs-private/node-private/pull/195 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Michael Dawson <michael_da...
//! Load image from a PANDORE-5 file \overloading. CImg<T>& load_pandore(std::FILE *const file) { return _load_pandore(file,0);
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
133,392,212,439,205,110,000,000,000,000,000,000,000
3
Fix other issues in 'CImg<T>::load_bmp()'.
show_account (GoaProvider *provider, GoaClient *client, GoaObject *object, GtkBox *vbox, GtkGrid *left, GtkGrid *right) { /* Chain up */ GOA_PROVIDER_CLASS (goa_owncloud_provider_pa...
0
[ "CWE-310" ]
gnome-online-accounts
edde7c63326242a60a075341d3fea0be0bc4d80e
250,440,904,309,882,940,000,000,000,000,000,000,000
30
Guard against invalid SSL certificates None of the branded providers (eg., Google, Facebook and Windows Live) should ever have an invalid certificate. So set "ssl-strict" on the SoupSession object being used by GoaWebView. Providers like ownCloud and Exchange might have to deal with certificates that are not up to th...
static double mp_find_seq(_cimg_math_parser& mp) { const bool is_forward = (bool)_mp_arg(6); const ulongT siz1 = (ulongT)mp.opcode[3], siz2 = (ulongT)mp.opcode[5]; longT ind = (longT)(mp.opcode[7]!=_cimg_mp_slot_nan?_mp_arg(7):is_forward?0:siz1 - 1); if (ind<0 ...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
96,824,795,074,051,770,000,000,000,000,000,000,000
38
.
ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue, void **avalue, void *closure) { struct call_context *context; void *stack, *frame, *rvalue; struct arg_state state; size_t stack_bytes, rtype_size, rsize; int i, nargs, flags; ffi_type *rtype; flags = cif->flags; rtype = cif->rtype...
0
[ "CWE-787" ]
libffi
44a6c28545186d78642487927952844156fc7ab5
289,175,092,587,352,970,000,000,000,000,000,000,000
160
aarch64: Flush code mapping in addition to data mapping (#471) This needs a new function, ffi_data_to_code_pointer, to translate from data pointers to code pointers. Fixes issue #470.
CopyInterps(CompatInfo *info, bool needSymbol, enum xkb_match_operation pred, struct collect *collect) { SymInterpInfo *si; darray_foreach(si, info->interps) if (si->interp.match == pred && (si->interp.sym != XKB_KEY_NoSymbol) == needSymbol) darray_append(collect->sy...
0
[ "CWE-476" ]
libxkbcommon
96df3106d49438e442510c59acad306e94f3db4d
163,527,671,524,815,370,000,000,000,000,000,000,000
10
xkbcomp: Don't crash on no-op modmask expressions If we have an expression of the form 'l1' in an interp section, we unconditionally try to dereference its args, even if it has none. Signed-off-by: Daniel Stone <daniels@collabora.com>
static int sctp_getsockopt_connectx3(struct sock *sk, int len, char __user *optval, int __user *optlen) { struct sctp_getaddrs_old param; sctp_assoc_t assoc_id = 0; int err = 0; #ifdef CONFIG_COMPAT if (is_compat_task()) { struct compat_sctp_getaddrs_old param32; if (len < sizeof(param32)) ...
0
[ "CWE-362", "CWE-703" ]
linux
2d45a02d0166caf2627fe91897c6ffc3b19514c4
255,710,764,665,240,170,000,000,000,000,000,000,000
41
sctp: fix ASCONF list handling ->auto_asconf_splist is per namespace and mangled by functions like sctp_setsockopt_auto_asconf() which doesn't guarantee any serialization. Also, the call to inet_sk_copy_descendant() was backuping ->auto_asconf_list through the copy but was not honoring ->do_auto_asconf, which could l...
nm_gconf_set_bytearray_helper (GConfClient *client, const char *path, const char *key, const char *setting, GByteArray *value) { char *gc_key; int i; GSList *list = NULL; g_return_val_if_fail...
0
[ "CWE-310" ]
network-manager-applet
4020594dfbf566f1852f0acb36ad631a9e73a82b
156,743,619,273,271,680,000,000,000,000,000,000,000
32
core: fix CA cert mishandling after cert file deletion (deb #560067) (rh #546793) If a connection was created with a CA certificate, but the user later moved or deleted that CA certificate, the applet would simply provide the connection to NetworkManager without any CA certificate. This could cause NM to connect to t...
static void ql_free_large_buffers(struct ql3_adapter *qdev) { int i = 0; struct ql_rcv_buf_cb *lrg_buf_cb; for (i = 0; i < qdev->num_large_buffers; i++) { lrg_buf_cb = &qdev->lrg_buf[i]; if (lrg_buf_cb->skb) { dev_kfree_skb(lrg_buf_cb->skb); pci_unmap_single(qdev->pdev, dma_unmap_addr(lrg_buf_cb, m...
0
[ "CWE-401" ]
linux
1acb8f2a7a9f10543868ddd737e37424d5c36cf4
168,950,260,471,062,200,000,000,000,000,000,000,000
19
net: qlogic: Fix memory leak in ql_alloc_large_buffers In ql_alloc_large_buffers, a new skb is allocated via netdev_alloc_skb. This skb should be released if pci_dma_mapping_error fails. Fixes: 0f8ab89e825f ("qla3xxx: Check return code from pci_map_single() in ql_release_to_lrg_buf_free_list(), ql_populate_free_queue...
void MainWindow::onToolbarVisibilityChanged(bool visible) { ui->actionShowToolbar->setChecked(visible); Settings.setShowToolBar(visible); }
0
[ "CWE-89", "CWE-327", "CWE-295" ]
shotcut
f008adc039642307f6ee3378d378cdb842e52c1d
153,693,583,633,986,360,000,000,000,000,000,000,000
5
fix upgrade check is not using TLS correctly
int ssl_renegotiate( ssl_context *ssl ) { int ret = POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE; #if defined(POLARSSL_SSL_SRV_C) /* On server, just send the request */ if( ssl->endpoint == SSL_IS_SERVER ) { if( ssl->state != SSL_HANDSHAKE_OVER ) return( POLARSSL_ERR_SSL_BAD_INPUT_DATA ); ...
0
[ "CWE-119" ]
mbedtls
c988f32adde62a169ba340fee0da15aecd40e76e
163,749,575,209,887,140,000,000,000,000,000,000,000
49
Added max length checking of hostname
void CL_InitRef( void ) { refimport_t ri; refexport_t *ret; #ifdef USE_RENDERER_DLOPEN GetRefAPI_t GetRefAPI; char dllName[MAX_OSPATH]; #endif Com_Printf( "----- Initializing Renderer ----\n" ); #ifdef USE_RENDERER_DLOPEN cl_renderer = Cvar_Get("cl_renderer", "opengl2", CVAR_ARCHIVE | CVAR_LATCH); Com_spri...
1
[ "CWE-269" ]
ioq3
376267d534476a875d8b9228149c4ee18b74a4fd
293,460,076,285,207,450,000,000,000,000,000,000,000
108
Don't load .pk3s as .dlls, and don't load user config files from .pk3s.
static void sasl_mech_unregister(sasl_mechanism_t *mech) { mowgli_node_t *n, *tn; sasl_session_t *session; slog(LG_DEBUG, "sasl_mech_unregister(): unregistering %s", mech->name); MOWGLI_ITER_FOREACH_SAFE(n, tn, sessions.head) { session = n->data; if (session->mechptr == mech) { slog(LG_DEBUG, "sasl_mech...
0
[ "CWE-288" ]
atheme
de2ba3ca8f6c39b41431d989f3ac66002a487839
66,414,411,373,670,270,000,000,000,000,000,000,000
29
modules/saslserv/main: backport 7.3 commits for pending EID login This backports commits 4e664c75d0b280a052eb & ceb0235695e6736ce2ab from the master branch. The IRCv3.1 SASL specification contains the following wording: If the client completes registration (with CAP END, NICK, USER and any other necessary me...
gsd_xrandr_manager_class_init (GsdXrandrManagerClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->get_property = gsd_xrandr_manager_get_property; object_class->set_property = gsd_xrandr_manager_set_property; object_class->constructor = gsd_xrandr_manager_...
0
[]
gnome-settings-daemon
be513b3c7d80d0b7013d79ce46d7eeca929705cc
221,394,696,257,230,900,000,000,000,000,000,000,000
14
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>
cdf_count_chain(const cdf_sat_t *sat, cdf_secid_t sid, size_t size) { size_t i, j; cdf_secid_t maxsector = (cdf_secid_t)((sat->sat_len * size) / sizeof(maxsector)); DPRINTF(("Chain:")); for (j = i = 0; sid >= 0; i++, j++) { DPRINTF((" %d", sid)); if (j >= CDF_LOOP_LIMIT) { DPRINTF(("Counting chain loop...
0
[]
php-src
40ef6e07e0b2cdced57c506e08cf18f47122292d
2,184,695,056,213,496,400,000,000,000,000,000,000
24
Bug #67412 fileinfo: cdf_count_chain insufficient boundary check Upstream: https://github.com/file/file/commit/40bade80cbe2af1d0b2cd0420cebd5d5905a2382
rsvg_node_component_transfer_function_set_atts (RsvgNode * self, RsvgHandle * ctx, RsvgPropertyBag * atts) { const char *value; RsvgNodeComponentTransferFunc *data = (RsvgNodeComponentTransferFunc *) self; if (rsvg_property_bag_size (atts)) { if ((val...
0
[]
librsvg
34c95743ca692ea0e44778e41a7c0a129363de84
138,113,718,901,725,260,000,000,000,000,000,000,000
45
Store node type separately in RsvgNode The node name (formerly RsvgNode:type) cannot be used to infer the sub-type of RsvgNode that we're dealing with, since for unknown elements we put type = node-name. This lead to a (potentially exploitable) crash e.g. when the element name started with "fe" which tricked the old c...
static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport, struct udp_table *udptable) { const struct iphdr *iph = ip_hdr(skb); return __udp4_lib_lookup(dev_net(skb->dev), iph->saddr, sport, iph->daddr, dport, inet_iif(skb), udptable, skb); }
0
[]
linux
a612769774a30e4fc143c4cb6395c12573415660
230,272,686,486,331,170,000,000,000,000,000,000,000
10
udp: prevent bugcheck if filter truncates packet too much If socket filter truncates an udp packet below the length of UDP header in udpv6_queue_rcv_skb() or udp_queue_rcv_skb(), it will trigger a BUG_ON in skb_pull_rcsum(). This BUG_ON (and therefore a system crash if kernel is configured that way) can be easily enfo...
int crypt_set_data_device(struct crypt_device *cd, const char *device) { /* metadata device must be set */ if (!cd || !cd->device || !device) return -EINVAL; log_dbg(cd, "Setting ciphertext data device to %s.", device ?: "(none)"); if (!isLUKS1(cd->type) && !isLUKS2(cd->type) && !isVERITY(cd->type) && !isI...
0
[ "CWE-345" ]
cryptsetup
0113ac2d889c5322659ad0596d4cfc6da53e356c
291,191,514,032,796,200,000,000,000,000,000,000,000
21
Fix CVE-2021-4122 - LUKS2 reencryption crash recovery attack Fix possible attacks against data confidentiality through LUKS2 online reencryption extension crash recovery. An attacker can modify on-disk metadata to simulate decryption in progress with crashed (unfinished) reencryption step and persistently decrypt par...
int kvm_emulate_hypercall(struct kvm_vcpu *vcpu) { unsigned long nr, a0, a1, a2, a3, ret; int r = 1; if (kvm_hv_hypercall_enabled(vcpu->kvm)) return kvm_hv_hypercall(vcpu); nr = kvm_register_read(vcpu, VCPU_REGS_RAX); a0 = kvm_register_read(vcpu, VCPU_REGS_RBX); a1 = kvm_register_read(vcpu, VCPU_REGS_RCX); a...
0
[ "CWE-119", "CWE-703", "CWE-120" ]
linux
a08d3b3b99efd509133946056531cdf8f3a0c09b
84,136,747,481,895,790,000,000,000,000,000,000,000
46
kvm: x86: fix emulator buffer overflow (CVE-2014-0049) The problem occurs when the guest performs a pusha with the stack address pointing to an mmio address (or an invalid guest physical address) to start with, but then extending into an ordinary guest physical address. When doing repeated emulated pushes emulator_re...
string_from_portable(int pflags) { static char ret[128]; *ret = '\0'; #define PAPPEND(str) { \ if (*ret != '\0') \ strlcat(ret, ",", sizeof(ret)); \ strlcat(ret, str, sizeof(ret)); \ } if (pflags & SSH2_FXF_READ) PAPPEND("READ") if (pflags & SSH2_FXF_WRITE) PAPPEND("WRITE") if (pflags & SSH2_F...
0
[ "CWE-732", "CWE-703", "CWE-269" ]
src
a6981567e8e215acc1ef690c8dbb30f2d9b00a19
173,604,427,170,158,200,000,000,000,000,000,000,000
27
disallow creation (of empty files) in read-only mode; reported by Michal Zalewski, feedback & ok deraadt@
base64_encode (char *to, char *from, unsigned int len) { while (len >= 3) { three_to_four (from, to); len -= 3; from += 3; to += 4; } if (len) { char three[3] = {0,0,0}; unsigned int i; for (i = 0; i < len; i++) { three[i] = *from++; } three_to_four (three, to); if (len == 1) { to[2] ...
0
[ "CWE-310" ]
hexchat
c9b63f7f9be01692b03fa15275135a4910a7e02d
137,098,177,265,475,550,000,000,000,000,000,000,000
30
ssl: Validate hostnames Closes #524
static void hidp_process_hid_control(struct hidp_session *session, unsigned char param) { BT_DBG("session %p param 0x%02x", session, param); if (param == HIDP_CTRL_VIRTUAL_CABLE_UNPLUG) { /* Flush the transmit queues */ skb_queue_purge(&session->ctrl_transmit); skb_queue_purge(&session->intr_transmit); ...
0
[ "CWE-200" ]
linux
0a9ab9bdb3e891762553f667066190c1d22ad62b
129,747,919,401,095,810,000,000,000,000,000,000,000
14
Bluetooth: Fix incorrect strncpy() in hidp_setup_hid() The length parameter should be sizeof(req->name) - 1 because there is no guarantee that string provided by userspace will contain the trailing '\0'. Can be easily reproduced by manually setting req->name to 128 non-zero bytes prior to ioctl(HIDPCONNADD) and check...
const char * pcQueueGetName( QueueHandle_t xQueue ) /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ { UBaseType_t ux; const char * pcReturn = NULL; /*lint !e971 Unqualified char types are allowed for strings and single characters only. */ ...
0
[ "CWE-200", "CWE-190" ]
FreeRTOS-Kernel
47338393f1f79558f6144213409f09f81d7c4837
111,959,095,384,500,470,000,000,000,000,000,000,000
23
add assert for addition overflow on queue creation (#225)
static void server_connect_callback_readpipe(SERVER_REC *server) { RESOLVED_IP_REC iprec; IPADDR *ip; const char *errormsg; char *servername = NULL; g_source_remove(server->connect_tag); server->connect_tag = -1; net_gethostbyname_return(server->connect_pipe[0], &iprec); g_io_channel_close(server->con...
0
[ "CWE-20" ]
irssi-proxy
85bbc05b21678e80423815d2ef1dfe26208491ab
147,895,966,697,204,780,000,000,000,000,000,000,000
80
Check if an SSL certificate matches the hostname of the server we are connecting to git-svn-id: http://svn.irssi.org/repos/irssi/trunk@5104 dbcabf3a-b0e7-0310-adc4-f8d773084564
init_word_char (re_dfa_t *dfa) { int i = 0; int j; int ch = 0; dfa->word_ops_used = 1; if (BE (dfa->map_notascii == 0, 1)) { bitset_word_t bits0 = 0x00000000; bitset_word_t bits1 = 0x03ff0000; bitset_word_t bits2 = 0x87fffffe; bitset_word_t bits3 = 0x07fffffe; if (BITSET_WORD...
0
[ "CWE-19" ]
gnulib
5513b40999149090987a0341c018d05d3eea1272
65,981,485,753,954,050,000,000,000,000,000,000,000
43
Diagnose ERE '()|\1' Problem reported by Hanno Böck in: http://bugs.gnu.org/21513 * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep track of the set of previously-completed subexpressions available before the first alternative, and restore this set just before parsing each subsequent alternative. This...
const std::unordered_map<int, Event::FileEventPtr>& events() { return resolver_->events_; }
0
[ "CWE-400" ]
envoy
542f84c66e9f6479bc31c6f53157c60472b25240
240,030,048,551,117,270,000,000,000,000,000,000,000
1
overload: Runtime configurable global connection limits (#147) Signed-off-by: Tony Allen <tony@allen.gg>
SPICE_GNUC_VISIBLE int spice_server_set_video_codecs(SpiceServer *reds, const char *video_codecs) { unsigned int installed = 0; reds_set_video_codecs_from_string(reds, video_codecs, &installed); if (!installed) { return -1; } reds_on_vc_change(reds); return 0; }
0
[]
spice
ca5bbc5692e052159bce1a75f55dc60b36078749
140,229,207,481,340,060,000,000,000,000,000,000,000
13
With OpenSSL 1.1: Disable client-initiated renegotiation. Fixes issue #49 Fixes BZ#1904459 Signed-off-by: Julien Ropé <jrope@redhat.com> Reported-by: BlackKD Acked-by: Frediano Ziglio <fziglio@redhat.com>
encode_layoutcommit(struct xdr_stream *xdr, struct inode *inode, const struct nfs4_layoutcommit_args *args, struct compound_hdr *hdr) { __be32 *p; dprintk("%s: lbw: %llu type: %d\n", __func__, args->lastbytewritten, NFS_SERVER(args->inode)->pnfs_curr_ld->id); p = reserve_space(xdr, 44 + NFS4_ST...
0
[ "CWE-703", "CWE-189" ]
linux
bf118a342f10dafe44b14451a1392c3254629a1f
134,121,032,771,886,980,000,000,000,000,000,000,000
34
NFSv4: include bitmap in nfsv4 get acl data The NFSv4 bitmap size is unbounded: a server can return an arbitrary sized bitmap in an FATTR4_WORD0_ACL request. Replace using the nfs4_fattr_bitmap_maxsz as a guess to the maximum bitmask returned by a server with the inclusion of the bitmap (xdr length plus bitmasks) and...
static int emulate_pop(struct x86_emulate_ctxt *ctxt, void *dest, int len) { int rc; struct segmented_address addr; addr.ea = register_address(ctxt, ctxt->regs[VCPU_REGS_RSP]); addr.seg = VCPU_SREG_SS; rc = segmented_read(ctxt, addr, dest, len); if (rc != X86EMUL_CONTINUE) return rc; register_addres...
0
[]
kvm
e28ba7bb020f07193bc000453c8775e9d2c0dda7
63,208,267,149,869,940,000,000,000,000,000,000,000
15
KVM: x86: fix missing checks in syscall emulation On hosts without this patch, 32bit guests will crash (and 64bit guests may behave in a wrong way) for example by simply executing following nasm-demo-application: [bits 32] global _start SECTION .text _start: syscall (I tested it with winxp and linux ...
PrioritizedChoice(const std::vector<std::shared_ptr<Ope>> &opes) : opes_(opes) {}
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
55,954,667,331,642,830,000,000,000,000,000,000,000
2
Fix #122
int snd_seq_control_queue(struct snd_seq_event *ev, int atomic, int hop) { struct snd_seq_queue *q; if (snd_BUG_ON(!ev)) return -EINVAL; q = queueptr(ev->data.queue.queue); if (q == NULL) return -EINVAL; if (! queue_access_lock(q, ev->source.client)) { queuefree(q); return -EPERM; } snd_seq_queue_pro...
0
[ "CWE-362" ]
linux
3567eb6af614dac436c4b16a8d426f9faed639b3
147,002,668,416,573,800,000,000,000,000,000,000,000
22
ALSA: seq: Fix race at timer setup and close ALSA sequencer code has an open race between the timer setup ioctl and the close of the client. This was triggered by syzkaller fuzzer, and a use-after-free was caught there as a result. This patch papers over it by adding a proper queue->timer_mutex lock around the timer...
my_ulonglong STDCALL mysql_num_rows(MYSQL_RES *res) { return res->row_count; }
0
[]
mariadb-connector-c
27b2f3d1f1550dfaee0f63a331a406ab31c1b37e
61,650,937,684,735,220,000,000,000,000,000,000,000
4
various checks for corrupted packets in the protocol also: check the return value of unpack_fields()
virDomainNetReleaseActualDevice(virConnectPtr conn, virDomainDefPtr dom G_GNUC_UNUSED, virDomainNetDefPtr iface) { virNetworkPtr net = NULL; virNetworkPortPtr port = NULL; int ret = -1; /* Port might not exist if a failure occurred during ...
0
[ "CWE-212" ]
libvirt
a5b064bf4b17a9884d7d361733737fb614ad8979
67,487,772,506,243,520,000,000,000,000,000,000,000
28
conf: Don't format http cookies unless VIR_DOMAIN_DEF_FORMAT_SECURE is used Starting with 3b076391befc3fe72deb0c244ac6c2b4c100b410 (v6.1.0-122-g3b076391be) we support http cookies. Since they may contain somewhat sensitive information we should not format them into the XML unless VIR_DOMAIN_DEF_FORMAT_SECURE is assert...
void SM_io_parser<Decorator_>::print() const { out << "Sphere_map_2" << std::endl; out << "vertices " << vn << std::endl; out << "edges " << en << std::endl; out << "loops " << ln << std::endl; out << "faces " << fn << std::endl; if (verbose) out << "/* index { isolated ? face : edge, mark,...
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
247,512,883,943,748,170,000,000,000,000,000,000,000
27
Fix Nef_2 and Nef_S2 IO
init_groups (const struct passwd *pw, gid_t *groups, size_t num_groups) { int retval; errno = 0; if (num_groups) retval = setgroups (num_groups, groups); else retval = initgroups (pw->pw_name, pw->pw_gid); if (retval == -1) { cleanup_pam (PAM_ABORT); err (EXIT_FAILURE, _("cannot set...
0
[ "CWE-362" ]
util-linux
dffab154d29a288aa171ff50263ecc8f2e14a891
74,723,258,402,678,575,000,000,000,000,000,000,000
24
su: properly clear child PID Reported-by: Tobias Stöckmann <tobias@stoeckmann.org> Signed-off-by: Karel Zak <kzak@redhat.com>
std::string toHexStr(int n){ #if defined(__APPLE__) char buffer[9]= {'\0'}; snprintf(buffer,9, "%X", n); return std::string(buffer); #else std::ostringstream Convert; Convert << std::uppercase << std::hex << n; return Convert.str(); #endif }
0
[ "CWE-191" ]
libdxfrw
ba3fa95648bef948e008dfbdd31a4d21badd71f0
17,084,521,623,547,111,000,000,000,000,000,000,000
11
fixed out-of-bounds write vulnerability CVE-2021-21898 as reported in TALOS-2021-1349 / CVE-2021-21898, dwgCompressor::decompress18() could be abused with a malformed DWG file to force out-of-bounds write and possibly lead to malicious code execution.
s32 gf_media_avc_read_sps_ext(const char *spse_data, u32 spse_size) { GF_BitStream *bs; char *spse_data_without_emulation_bytes = NULL; u32 spse_data_without_emulation_bytes_size = 0; s32 sps_id; /*PPS still contains emulation bytes*/ spse_data_without_emulation_bytes = gf_malloc(spse_size*sizeof(char)); spse_d...
0
[ "CWE-119", "CWE-787" ]
gpac
90dc7f853d31b0a4e9441cba97feccf36d8b69a4
306,643,030,192,683,240,000,000,000,000,000,000,000
20
fix some exploitable overflows (#994, #997)
static int find_module_sections(struct module *mod, struct load_info *info) { mod->kp = section_objs(info, "__param", sizeof(*mod->kp), &mod->num_kp); mod->syms = section_objs(info, "__ksymtab", sizeof(*mod->syms), &mod->num_syms); mod->crcs = section_addr(info, "__kcrctab"); mod->gpl_syms = section_...
0
[ "CWE-362", "CWE-347" ]
linux
0c18f29aae7ce3dadd26d8ee3505d07cc982df75
35,050,466,667,673,613,000,000,000,000,000,000,000
102
module: limit enabling module.sig_enforce Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying "module.sig_enforce=1" on the boot command line sets "sig_enforce". Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured. This patch makes the presence of /sys/module/module/parameters/s...
static void test_prepare_insert_update() { MYSQL_STMT *stmt; int rc; int i; const char *testcase[]= { "CREATE TABLE t1 (a INT, b INT, c INT, UNIQUE (A), UNIQUE(B))", "INSERT t1 VALUES (1,2,10), (3,4,20)", "INSERT t1 VALUES (5,6,30), (7,4,40), (8,9,60) ON DUPLICATE KEY UPDATE c=c+100", ...
0
[ "CWE-284", "CWE-295" ]
mysql-server
3bd5589e1a5a93f9c224badf983cd65c45215390
326,243,006,380,290,860,000,000,000,000,000,000,000
48
WL#6791 : Redefine client --ssl option to imply enforced encryption # Changed the meaning of the --ssl=1 option of all client binaries to mean force ssl, not try ssl and fail over to eunecrypted # Added a new MYSQL_OPT_SSL_ENFORCE mysql_options() option to specify that an ssl connection is required. # Added a new macr...
static int open_if_safe(int dirfd, const char *nextpath) { int newfd = openat(dirfd, nextpath, O_RDONLY | O_NOFOLLOW); if (newfd >= 0) // was not a symlink, all good return newfd; if (errno == ELOOP) return newfd; if (errno == EPERM || errno == EACCES) { /* we're not root (cause we got EPERM) so try op...
0
[ "CWE-59", "CWE-61" ]
lxc
592fd47a6245508b79fe6ac819fe6d3b2c1289be
248,910,278,167,701,360,000,000,000,000,000,000,000
28
CVE-2015-1335: Protect container mounts against symlinks When a container starts up, lxc sets up the container's inital fstree by doing a bunch of mounting, guided by the container configuration file. The container config is owned by the admin or user on the host, so we do not try to guard against bad entries. Howev...
static js_Ast *assignment(js_State *J, int notin) { js_Ast *a = conditional(J, notin); INCREC(); if (jsP_accept(J, '=')) a = EXP2(ASS, a, assignment(J, notin)); else if (jsP_accept(J, TK_MUL_ASS)) a = EXP2(ASS_MUL, a, assignment(J, notin)); else if (jsP_accept(J, TK_DIV_ASS)) a = EXP2(ASS_DIV, a, assignment(J, not...
0
[ "CWE-674" ]
mujs
4d45a96e57fbabf00a7378b337d0ddcace6f38c1
71,094,374,621,494,175,000,000,000,000,000,000,000
19
Guard binary expressions from too much recursion.
xmlDictAddString(xmlDictPtr dict, const xmlChar *name, int namelen) { xmlDictStringsPtr pool; const xmlChar *ret; int size = 0; /* + sizeof(_xmlDictStrings) == 1024 */ #ifdef DICT_DEBUG_PATTERNS fprintf(stderr, "-"); #endif pool = dict->strings; while (pool != NULL) { if (pool->end - pool->fre...
0
[ "CWE-399" ]
libxml2
8973d58b7498fa5100a876815476b81fd1a2412a
43,003,402,751,339,370,000,000,000,000,000,000,000
44
Add hash randomization to hash and dict structures Following http://www.ocert.org/advisories/ocert-2011-003.html it seems that having hash randomization might be a good idea when using XML with untrusted data * configure.in: lookup for rand, srand and time * dict.c: add randomization to dictionaries hash tables * hash...
Curl_clone_primary_ssl_config(struct ssl_primary_config *source, struct ssl_primary_config *dest) { dest->version = source->version; dest->version_max = source->version_max; dest->verifypeer = source->verifypeer; dest->verifyhost = source->verifyhost; dest->verifystatus = source-...
0
[ "CWE-416", "CWE-295" ]
curl
7f4a9a9b2a49547eae24d2e19bc5c346e9026479
246,870,873,609,773,060,000,000,000,000,000,000,000
24
openssl: associate/detach the transfer from connection CVE-2021-22901 Bug: https://curl.se/docs/CVE-2021-22901.html
static int sockent_client_disconnect(sockent_t *se) /* {{{ */ { struct sockent_client *client; if ((se == NULL) || (se->type != SOCKENT_TYPE_CLIENT)) return (EINVAL); client = &se->data.client; if (client->fd >= 0) /* connected */ { close(client->fd); client->fd = -1; } sfree(client->addr);...
0
[ "CWE-835" ]
collectd
f6be4f9b49b949b379326c3d7002476e6ce4f211
8,711,939,545,241,400,000,000,000,000,000,000,000
19
network plugin: Fix endless loop DOS in parse_packet() When correct 'Signature part' is received by Collectd, configured without AuthFile option, condition for endless loop occurs due to missing increase of pointer to next unprocessed part. This is a forward-port of #2233. Fixes: CVE-2017-7401 Closes: #2174 Signed-o...
static MagickBooleanType WriteDIBImage(const ImageInfo *image_info,Image *image, ExceptionInfo *exception) { DIBInfo dib_info; MagickBooleanType status; register const Quantum *p; register ssize_t i, x; register unsigned char *q; size_t bytes_per_line; ssize_t y; ...
0
[ "CWE-401" ]
ImageMagick
9cf2f738f714eba6d47be1127ed255acd2b51750
115,943,679,744,681,470,000,000,000,000,000,000,000
326
https://github.com/ImageMagick/ImageMagick/issues/1453
server_client_dispatch_command(struct client *c, struct imsg *imsg) { struct msg_command_data data; char *buf; size_t len; struct cmd_list *cmdlist = NULL; int argc; char **argv, *cause; if (c->flags & CLIENT_EXIT) return; if (imsg->hdr.len - IMSG_HEADER_SIZE < sizeof data) fatalx("bad MS...
0
[]
src
b32e1d34e10a0da806823f57f02a4ae6e93d756e
71,091,162,161,289,350,000,000,000,000,000,000,000
52
evbuffer_new and bufferevent_new can both fail (when malloc fails) and return NULL. GitHub issue 1547.
inline void Repetition::accept(Visitor &v) { v.visit(*this); }
0
[ "CWE-125" ]
cpp-peglib
b3b29ce8f3acf3a32733d930105a17d7b0ba347e
318,308,491,899,015,000,000,000,000,000,000,000,000
1
Fix #122
static struct dentry *failed_creating(struct dentry *dentry) { inode_unlock(d_inode(dentry->d_parent)); dput(dentry); simple_release_fs(&debugfs_mount, &debugfs_mount_count); return NULL; }
0
[ "CWE-362", "CWE-399" ]
linux
49d31c2f389acfe83417083e1208422b4091cd9e
146,705,655,390,870,810,000,000,000,000,000,000,000
7
dentry name snapshots take_dentry_name_snapshot() takes a safe snapshot of dentry name; if the name is a short one, it gets copied into caller-supplied structure, otherwise an extra reference to external name is grabbed (those are never modified). In either case the pointer to stable string is stored into the same st...
static void crypto_larval_destroy(struct crypto_alg *alg) { struct crypto_larval *larval = (void *)alg; BUG_ON(!crypto_is_larval(alg)); if (larval->adult) crypto_mod_put(larval->adult); kfree(larval); }
0
[ "CWE-284", "CWE-264", "CWE-269" ]
linux
5d26a105b5a73e5635eae0629b42fa0a90e07b7b
104,394,623,475,641,320,000,000,000,000,000,000,000
9
crypto: prefix module autoloading with "crypto-" This prefixes all crypto module loading with "crypto-" so we never run the risk of exposing module auto-loading to userspace via a crypto API, as demonstrated by Mathias Krause: https://lkml.org/lkml/2013/3/4/70 Signed-off-by: Kees Cook <keescook@chromium.org> Signed-...
static int check_specific_config(ALSDecContext *ctx) { ALSSpecificConfig *sconf = &ctx->sconf; int error = 0; // report unsupported feature and set error value #define MISSING_ERR(cond, str, errval) \ { \ if (cond) { ...
0
[ "CWE-787" ]
FFmpeg
18f94df8af04f2c02a25a7dec512289feff6517f
52,980,264,590,062,140,000,000,000,000,000,000,000
20
avcodec/alsdec: check predictor order against block length Fixes out of array access Fixes: abd3c041acbcb816be113455d138166b-asan_heap-oob_b11634_3707_cov_1707137151_als_05_2ch48k16b.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static void virtio_net_announce_timer(void *opaque) { VirtIONet *n = opaque; trace_virtio_net_announce_timer(n->announce_timer.round); n->announce_timer.round--; virtio_net_announce_notify(n); }
0
[ "CWE-703" ]
qemu
abe300d9d894f7138e1af7c8e9c88c04bfe98b37
20,462,611,062,308,788,000,000,000,000,000,000,000
8
virtio-net: fix map leaking on error during receive Commit bedd7e93d0196 ("virtio-net: fix use after unmap/free for sg") tries to fix the use after free of the sg by caching the virtqueue elements in an array and unmap them at once after receiving the packets, But it forgot to unmap the cached elements on error which ...
**/ inline int system(const char *const command, const char *const module_name=0, const bool is_verbose=false) { cimg::unused(module_name); #ifdef cimg_no_system_calls return -1; #else if (is_verbose) return std::system(command); #if cimg_OS==1 const unsigned int l = (unsigned int)std::s...
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
82,088,639,781,957,520,000,000,000,000,000,000,000
37
.
static int mov_read_iloc(MOVContext *c, AVIOContext *pb, MOVAtom atom) { int version, offset_size, length_size, base_offset_size, index_size; int item_count, extent_count; uint64_t base_offset, extent_offset, extent_length; uint8_t value; if (!c->is_still_picture_avif) { // * For non-avif, ...
0
[ "CWE-703" ]
FFmpeg
c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
47,393,679,072,085,110,000,000,000,000,000,000,000
67
avformat/mov: Check count sums in build_open_gop_key_points() Fixes: ffmpeg.md Fixes: Out of array access Fixes: CVE-2022-2566 Found-by: Andy Nguyen <theflow@google.com> Found-by: 3pvd <3pvd@google.com> Reviewed-by: Andy Nguyen <theflow@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
static int kvm_vcpu_ioctl_x86_set_xcrs(struct kvm_vcpu *vcpu, struct kvm_xcrs *guest_xcrs) { int i, r = 0; if (!cpu_has_xsave) return -EINVAL; if (guest_xcrs->nr_xcrs > KVM_MAX_XCRS || guest_xcrs->flags) return -EINVAL; for (i = 0; i < guest_xcrs->nr_xcrs; i++) /* Only support XCR0 currently */ ...
0
[ "CWE-200" ]
kvm
831d9d02f9522e739825a51a11e3bc5aa531a905
315,346,307,823,196,250,000,000,000,000,000,000,000
22
KVM: x86: fix information leak to userland Structures kvm_vcpu_events, kvm_debugregs, kvm_pit_state2 and kvm_clock_data are copied to userland with some padding and reserved fields unitialized. It leads to leaking of contents of kernel stack memory. We have to initialize them to zero. In patch v1 Jan Kiszka suggest...
DEFUN(editBf, EDIT, "Edit local source") { char *fn = Currentbuf->filename; Str cmd; if (fn == NULL || Currentbuf->pagerSource != NULL || /* Behaving as a pager */ (Currentbuf->type == NULL && Currentbuf->edit == NULL) || /* Reading shell */ Currentbuf->real_scheme != SCM_LOCAL || !strcmp(Currentbuf->cur...
0
[ "CWE-59", "CWE-241" ]
w3m
18dcbadf2771cdb0c18509b14e4e73505b242753
3,797,580,225,791,515,000,000,000,000,000,000,000
25
Make temporary directory safely when ~/.w3m is unwritable
static avifBool avifParseItemPropertiesBox(avifMeta * meta, const uint8_t * raw, size_t rawLen) { BEGIN_STREAM(s, raw, rawLen); avifBoxHeader ipcoHeader; CHECK(avifROStreamReadBoxHeader(&s, &ipcoHeader)); if (memcmp(ipcoHeader.type, "ipco", 4) != 0) { return AVIF_FALSE; } // Read all i...
0
[ "CWE-703", "CWE-787" ]
libavif
0a8e7244d494ae98e9756355dfbfb6697ded2ff9
191,606,831,192,743,100,000,000,000,000,000,000,000
30
Set max image size to 16384 * 16384 Fix https://crbug.com/oss-fuzz/24728 and https://crbug.com/oss-fuzz/24734.
static struct sock *udp6_lib_lookup2(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned int hnum, int dif, struct udp_hslot *hslot2, unsigned int slot2) { struct sock *sk, *result; struct hlist_nulls_node *node; int score, badness, matches = 0, reuseport = 0; u...
0
[ "CWE-20" ]
net
bceaa90240b6019ed73b49965eac7d167610be69
73,046,992,076,409,010,000,000,000,000,000,000,000
53
inet: prevent leakage of uninitialized memory to user in recv syscalls Only update *addr_len when we actually fill in sockaddr, otherwise we can return uninitialized memory from the stack to the caller in the recvfrom, recvmmsg and recvmsg syscalls. Drop the the (addr_len == NULL) checks because we only get called wit...
AnyP::Uri::Uri(AnyP::UriScheme const &aScheme) : scheme_(aScheme), hostIsNumeric_(false), port_(0) { *host_=0; }
0
[ "CWE-20" ]
squid
dfd818595b54942cb1adc45f6aed95c9b706e3a8
201,553,872,821,185,380,000,000,000,000,000,000,000
7
Merge pull request from GHSA-jvf6-h9gj-pmj6 * Add slash prefix to path-rootless or path-noscheme URLs * Update src/anyp/Uri.cc Co-authored-by: Alex Rousskov <rousskov@measurement-factory.com> * restore file trailer GH auto-removes * Remove redundant path-empty check * Removed stale comment left behind by b2ab59a ...
AP_DECLARE(int) ap_some_authn_required(request_rec *r) { int access_status; switch (ap_satisfies(r)) { case SATISFY_ALL: case SATISFY_NOSPEC: if ((access_status = ap_run_access_checker(r)) != OK) { break; } access_status = ap_run_access_checker_ex(r); if (ac...
0
[ "CWE-284", "CWE-264" ]
httpd
db81019ab88734ed35fa70294a0cfa7a19743f73
169,323,438,789,255,670,000,000,000,000,000,000,000
32
SECURITY: CVE-2015-3185 (cve.mitre.org) Replacement of ap_some_auth_required (unusable in Apache httpd 2.4) with new ap_some_authn_required and ap_force_authn hook. Submitted by: breser git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1684524 13f79535-47bb-0310-9956-ffa450edef68
Mode(User* source, Channel* Chantarget, User* Usertarget, const Modes::ChangeList& changelist) : ClientProtocol::Message("MODE", source) , chantarget(Chantarget) , usertarget(Usertarget) , beginit(changelist.getlist().begin()) { PushParamRef(GetStrTarget()); PushParam(ToModeLetters(changelist.getlist(), 4...
0
[ "CWE-200", "CWE-732" ]
inspircd
4350a11c663b0d75f8119743bffb7736d87abd4d
164,338,085,301,114,150,000,000,000,000,000,000,000
10
Fix sending malformed pong messages in some cases.
static int elo_probe(struct hid_device *hdev, const struct hid_device_id *id) { struct elo_priv *priv; int ret; struct usb_device *udev; if (!hid_is_usb(hdev)) return -EINVAL; priv = kzalloc(sizeof(*priv), GFP_KERNEL); if (!priv) return -ENOMEM; INIT_DELAYED_WORK(&priv->work, elo_work); udev = interface_...
0
[ "CWE-200", "CWE-401" ]
linux
817b8b9c5396d2b2d92311b46719aad5d3339dbe
172,325,027,830,350,360,000,000,000,000,000,000,000
42
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...
static json_t * r_jwe_aes_key_wrap(jwe_t * jwe, jwa_alg alg, jwk_t * jwk, int x5u_flags, int * ret) { uint8_t kek[32] = {0}, wrapped_key[72] = {0}; unsigned char cipherkey_b64url[256] = {0}; size_t kek_len = 0, cipherkey_b64url_len = 0; unsigned int bits = 0; json_t * j_return = NULL; if (r_jwk_key_type(jw...
0
[ "CWE-787" ]
rhonabwy
b4c2923a1ba4fabf9b55a89244127e153a3e549b
255,751,734,529,672,530,000,000,000,000,000,000,000
45
Fix buffer overflow on r_jwe_aesgcm_key_unwrap
binder_dequeue_work_ilocked(struct binder_work *work) { list_del_init(&work->entry); }
0
[ "CWE-416" ]
linux
7bada55ab50697861eee6bb7d60b41e68a961a9c
89,715,277,562,690,870,000,000,000,000,000,000,000
4
binder: fix race that allows malicious free of live buffer Malicious code can attempt to free buffers using the BC_FREE_BUFFER ioctl to binder. There are protections against a user freeing a buffer while in use by the kernel, however there was a window where BC_FREE_BUFFER could be used to free a recently allocated bu...
static int ntop_get_interface_host_activitymap(lua_State* vm) { NetworkInterfaceView *ntop_interface = getCurrentInterface(vm); char *host_ip; GenericHost *h; u_int16_t vlan_id = 0; char buf[64]; ntop->getTrace()->traceEvent(TRACE_INFO, "%s() called", __FUNCTION__); if(!ntop_interface) return(CONST_LUA...
0
[ "CWE-254" ]
ntopng
2e0620be3410f5e22c9aa47e261bc5a12be692c6
316,496,480,000,654,430,000,000,000,000,000,000,000
32
Added security fix to avoid escalating privileges to non-privileged users Many thanks to Dolev Farhi for reporting it
QPDFFormFieldObjectHelper::getFontFromResource( QPDFObjectHandle resources, std::string const& name) { QPDFObjectHandle result; if (resources.isDictionary() && resources.getKey("/Font").isDictionary() && resources.getKey("/Font").hasKey(name)) { result = resources.getKey("/Font")...
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
320,897,973,019,257,250,000,000,000,000,000,000,000
12
Fix sign and conversion warnings (major) This makes all integer type conversions that have potential data loss explicit with calls that do range checks and raise an exception. After this commit, qpdf builds with no warnings when -Wsign-conversion -Wconversion is used with gcc or clang or when -W3 -Wd4800 is used with ...
cmsBool NULLClose(cmsIOHANDLER* iohandler) { FILENULL* ResData = (FILENULL*) iohandler ->stream; _cmsFree(iohandler ->ContextID, ResData); _cmsFree(iohandler ->ContextID, iohandler); return TRUE; }
0
[]
Little-CMS
d2d902b9a03583ae482c782b2f243f7e5268a47d
166,747,327,689,631,270,000,000,000,000,000,000,000
8
>Changes from Richard Hughes
static void call_trans2qpipeinfo(connection_struct *conn, struct smb_request *req, unsigned int tran_call, char **pparams, int total_params, char **ppdata, int total_data, unsigned int max_data_bytes) { char *params = *pparams; char *pdata = *ppdata; unsigned int data_size = 0; unsigned int...
0
[ "CWE-787" ]
samba
22b4091924977f6437b59627f33a8e6f02b41011
275,785,843,947,855,500,000,000,000,000,000,000,000
70
CVE-2021-44142: smbd: add Netatalk xattr used by vfs_fruit to the list of private Samba xattrs This is an internal xattr that should not be user visible. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14914 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
static void arm_gic_realize(DeviceState *dev, Error **errp) { /* Device instance realize function for the GIC sysbus device */ int i; GICState *s = ARM_GIC(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); ARMGICClass *agc = ARM_GIC_GET_CLASS(s); Error *local_err = NULL; agc->parent_realize(de...
0
[ "CWE-787" ]
qemu
edfe2eb4360cde4ed5d95bda7777edcb3510f76a
252,599,895,722,135,440,000,000,000,000,000,000,000
65
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...
WandExport size_t DrawGetFontWeight(const DrawingWand *wand) { assert(wand != (const DrawingWand *) NULL); assert(wand->signature == MagickWandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); return(CurrentContext->weight); }
0
[ "CWE-476" ]
ImageMagick
6ad5fc3c9b652eec27fc0b1a0817159f8547d5d9
276,144,563,521,236,770,000,000,000,000,000,000,000
8
https://github.com/ImageMagick/ImageMagick/issues/716