func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
char* oidc_util_get_full_path(apr_pool_t *pool, const char *abs_or_rel_filename) { return (abs_or_rel_filename) ? ap_server_root_relative(pool, abs_or_rel_filename) : NULL; }
0
[ "CWE-79" ]
mod_auth_openidc
55ea0a085290cd2c8cdfdd960a230cbc38ba8b56
71,090,616,672,709,130,000,000,000,000,000,000,000
4
Add a function to escape Javascript characters
void Magick::Image::boxColor(const Color &boxColor_) { modifyImage(); options()->boxColor(boxColor_); }
0
[ "CWE-416" ]
ImageMagick
8c35502217c1879cb8257c617007282eee3fe1cc
250,325,423,884,895,750,000,000,000,000,000,000,000
5
Added missing return to avoid use after free.
int usb_disable_lpm(struct usb_device *udev) { return 0; }
0
[ "CWE-703" ]
linux
e50293ef9775c5f1cf3fcc093037dd6a8c5684ea
295,748,300,364,507,340,000,000,000,000,000,000,000
4
USB: fix invalid memory access in hub_activate() Commit 8520f38099cc ("USB: change hub initialization sleeps to delayed_work") changed the hub_activate() routine to make part of it run in a workqueue. However, the commit failed to take a reference to the usb_hub structure or to lock the hub interface while doing so. ...
download_status_changed_cb (GObject *object, GParamSpec *pspec, EphyEmbed *embed) { WebKitDownload *download = WEBKIT_DOWNLOAD (object); if (webkit_download_get_status (download) == WEBKIT_DOWNLOAD_STATUS_FINISHED) { GFile *destination; GFile *temp;...
0
[]
epiphany
3e0f7dea754381c5ad11a06ccc62eb153382b498
15,841,784,069,500,573,000,000,000,000,000,000,000
58
Report broken certs through the padlock icon This uses a new feature in libsoup that reports through a SoupMessageFlag whether the message is talking to a server that has a trusted server. Bug #600663
static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) { BMPInfo bmp_info; Image *image; MagickBooleanType status; MagickOffsetType offset, start_position; MemoryInfo *pixel_info; Quantum index; register Quantum *q; register ssize_t i,...
1
[ "CWE-399", "CWE-770" ]
ImageMagick
ecb31dbad39ccdc65868d5d2a37f0f0521250832
66,746,200,705,360,130,000,000,000,000,000,000,000
967
https://github.com/ImageMagick/ImageMagick/issues/1268
static void bootp_reply(Slirp *slirp, const struct bootp_t *bp, const uint8_t *bp_end) { BOOTPClient *bc = NULL; struct mbuf *m; struct bootp_t *rbp; struct sockaddr_in saddr, daddr; struct in_addr preq_addr; int dhcp_msg_type, val; uint8_t *q;...
0
[]
libslirp
f13cad45b25d92760bb0ad67bec0300a4d7d5275
152,259,366,005,824,500,000,000,000,000,000,000,000
217
bootp: limit vendor-specific area to input packet memory buffer sizeof(bootp_t) currently holds DHCP_OPT_LEN. Remove this optional field from the structure, to help with the following patch checking for minimal header size. Modify the bootp_reply() function to take the buffer boundaries and avoiding potential buffer o...
PHP_FUNCTION(imageconvolution) { zval *SIM, *hash_matrix; zval **var = NULL, **var2 = NULL; gdImagePtr im_src = NULL; double div, offset; int nelem, i, j, res; float matrix[3][3] = {{0,0,0}, {0,0,0}, {0,0,0}}; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "radd", &SIM, &hash_matrix, &div, &offset) == FAI...
1
[ "CWE-703", "CWE-189" ]
php-src
2938329ce19cb8c4197dec146c3ec887c6f61d01
61,616,764,492,641,350,000,000,000,000,000,000,000
48
Fixed bug #66356 (Heap Overflow Vulnerability in imagecrop()) And also fixed the bug: arguments are altered after some calls
gs_window_set_lock_enabled (GSWindow *window, gboolean lock_enabled) { g_return_if_fail (GS_IS_WINDOW (window)); if (window->priv->lock_enabled == lock_enabled) { return; } window->priv->lock_enabled = lock_enabled; g_object_notify (...
0
[]
gnome-screensaver
a5f66339be6719c2b8fc478a1d5fc6545297d950
329,421,655,730,891,620,000,000,000,000,000,000,000
12
Ensure keyboard grab and unlock dialog exist after monitor removal gnome-screensaver currently doesn't deal with monitors getting removed properly. If the unlock dialog is on the removed monitor then the unlock dialog and its associated keyboard grab are not moved to an existing monitor when the monitor removal is pr...
static int sk_alloc_security(struct sock *sk, int family, gfp_t priority) { struct sk_security_struct *ssec; ssec = kzalloc(sizeof(*ssec), priority); if (!ssec) return -ENOMEM; ssec->peer_sid = SECINITSID_UNLABELED; ssec->sid = SECINITSID_UNLABELED; sk->sk_security = ssec; selinux_netlbl_sk_security_reset(s...
0
[]
linux-2.6
ee18d64c1f632043a02e6f5ba5e045bb26a5465f
111,781,369,879,409,660,000,000,000,000,000,000,000
16
KEYS: Add a keyctl to install a process's session keyring on its parent [try #6] Add a keyctl to install a process's session keyring onto its parent. This replaces the parent's session keyring. Because the COW credential code does not permit one process to change another process's credentials directly, the change is...
static BOOL update_recv_secondary_order(rdpUpdate* update, wStream* s, BYTE flags) { BOOL rc = FALSE; BYTE* next; BYTE orderType; UINT16 extraFlags; UINT16 orderLength; rdpContext* context = update->context; rdpSettings* settings = context->settings; rdpSecondaryUpdate* secondary = update->secondary; const cha...
0
[ "CWE-125" ]
FreeRDP
17f547ae11835bb11baa3d045245dc1694866845
62,699,857,569,923,845,000,000,000,000,000,000,000
155
Fixed CVE-2020-11521: Out of bounds write in planar codec. Thanks to Sunglin and HuanGMz from Knownsec 404
void DISOpticalFlowImpl::calc(InputArray I0, InputArray I1, InputOutputArray flow) { CV_Assert(!I0.empty() && I0.depth() == CV_8U && I0.channels() == 1); CV_Assert(!I1.empty() && I1.depth() == CV_8U && I1.channels() == 1); CV_Assert(I0.sameSize(I1)); CV_Assert(I0.isContinuous()); CV_Assert(I1.isCont...
0
[ "CWE-125", "CWE-369" ]
opencv
d1615ba11a93062b1429fce9f0f638d1572d3418
226,944,425,463,696,160,000,000,000,000,000,000,000
81
video:fixed DISOpticalFlow segfault from small img
static int ieee80211_drop_unencrypted_mgmt(struct ieee80211_rx_data *rx) { struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)rx->skb->data; struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(rx->skb); __le16 fc = hdr->frame_control; /* * Pass through unencrypted frames if the hardware has * decrypted th...
0
[]
linux
588f7d39b3592a36fb7702ae3b8bdd9be4621e2f
183,620,171,208,695,350,000,000,000,000,000,000,000
45
mac80211: drop robust management frames from unknown TA When receiving a robust management frame, drop it if we don't have rx->sta since then we don't have a security association and thus couldn't possibly validate the frame. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
get_local_tgt(krb5_context context, const krb5_data *realm, krb5_db_entry *candidate, krb5_db_entry **alias_out, krb5_db_entry **storage_out) { krb5_error_code ret; krb5_principal princ; krb5_db_entry *tgt; *alias_out = NULL; *storage_out = NULL; ret = krb5_build_pr...
0
[ "CWE-476" ]
krb5
93b4a6306a0026cf1cc31ac4bd8a49ba5d034ba7
129,656,212,464,489,080,000,000,000,000,000,000,000
28
Fix S4U2Self KDC crash when anon is restricted In validate_as_request(), when enforcing restrict_anonymous_to_tgt, use client.princ instead of request->client; the latter is NULL when validating S4U2Self requests. CVE-2016-3120: In MIT krb5 1.9 and later, an authenticated attacker can cause krb5kdc to dereference a ...
find_str_position(OnigCodePoint s[], int n, UChar* from, UChar* to, UChar **next, OnigEncoding enc) { int i; OnigCodePoint x; UChar *q; UChar *p = from; while (p < to) { x = ONIGENC_MBC_TO_CODE(enc, p, to); q = p + enclen(enc, p); if (x == s[0]) { for (i = 1; i < n && q ...
0
[ "CWE-476" ]
oniguruma
850bd9b0d8186eb1637722b46b12656814ab4ad2
37,930,901,176,126,967,000,000,000,000,000,000,000
27
fix #87: Read unknown address in onig_error_code_to_str()
ppmd_alloc(void *p, size_t size) { (void)p; return malloc(size); }
0
[ "CWE-190", "CWE-125" ]
libarchive
e79ef306afe332faf22e9b442a2c6b59cb175573
332,111,888,092,594,600,000,000,000,000,000,000,000
5
Issue #718: Fix TALOS-CAN-152 If a 7-Zip archive declares a rediculously large number of substreams, it can overflow an internal counter, leading a subsequent memory allocation to be too small for the substream data. Thanks to the Open Source and Threat Intelligence project at Cisco for reporting this issue.
cifs_read_from_socket(struct TCP_Server_Info *server, char *buf, unsigned int to_read) { struct kvec iov; iov.iov_base = buf; iov.iov_len = to_read; return cifs_readv_from_socket(server, &iov, 1, to_read); }
0
[ "CWE-703", "CWE-189" ]
linux
1fc29bacedeabb278080e31bb9c1ecb49f143c3b
26,301,590,424,359,700,000,000,000,000,000,000,000
10
cifs: fix off-by-one bug in build_unc_path_to_root commit 839db3d10a (cifs: fix up handling of prefixpath= option) changed the code such that the vol->prepath no longer contained a leading delimiter and then fixed up the places that accessed that field to account for that change. One spot in build_unc_path_to_root wa...
EbmlCallbacks::EbmlCallbacks(EbmlElement & (*Creator)(), const EbmlId & aGlobalId, const char * aDebugName, const EbmlSemanticContext & aContext) :Create(Creator) ,GlobalId(aGlobalId) ,DebugName(aDebugName) ,Context(aContext) { assert((Create!=NULL) || !strcmp(aDebugName, "DummyElement")); }
0
[ "CWE-200" ]
libebml
24e5cd7c666b1ddd85619d60486db0a5481c1b90
232,008,138,245,947,000,000,000,000,000,000,000,000
8
EbmlElement: don't read beyond end of buffer when reading variable length integers
static int open_input_file(InputFile *ifile, const char *filename) { int err, i; AVFormatContext *fmt_ctx = NULL; AVDictionaryEntry *t; int scan_all_pmts_set = 0; fmt_ctx = avformat_alloc_context(); if (!fmt_ctx) { print_error(filename, AVERROR(ENOMEM)); exit_program(1); } ...
0
[ "CWE-476" ]
FFmpeg
837cb4325b712ff1aab531bf41668933f61d75d2
207,014,064,091,581,400,000,000,000,000,000,000,000
117
ffprobe: Fix null pointer dereference with color primaries Found-by: AD-lab of venustech Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
void tfxd_del(GF_Box *s) { gf_free(s); }
0
[ "CWE-400", "CWE-401" ]
gpac
d2371b4b204f0a3c0af51ad4e9b491144dd1225c
160,767,216,584,119,330,000,000,000,000,000,000,000
4
prevent dref memleak on invalid input (#1183)
int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRING *signature, void *asn, EVP_PKEY *pkey) { EVP_MD_CTX ctx; unsigned char *buf_in=NULL; int ret= -1,inl; int mdnid, pknid; if (!pkey) { ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER); return -1; } if (signature->typ...
0
[ "CWE-310" ]
openssl
cb62ab4b17818fe66d2fed0a7fe71969131c811b
75,540,217,511,806,600,000,000,000,000,000,000,000
107
use correct function name Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
compat_do_ip6t_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len) { int ret; if (!ns_capable(sock_net(sk)->user_ns, CAP_NET_ADMIN)) return -EPERM; switch (cmd) { case IP6T_SO_SET_REPLACE: ret = compat_do_replace(sock_net(sk), user, len); break; case IP6T_SO_SET_ADD_COUNTERS: ...
0
[ "CWE-119" ]
nf-next
d7591f0c41ce3e67600a982bab6989ef0f07b3ce
292,472,945,717,081,560,000,000,000,000,000,000,000
24
netfilter: x_tables: introduce and use xt_copy_counters_from_user The three variants use same copy&pasted code, condense this into a helper and use that. Make sure info.name is 0-terminated. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
BOOL nsc_encode(NSC_CONTEXT* context, const BYTE* bmpdata, UINT32 rowstride) { if (!context || !bmpdata || (rowstride == 0)) return FALSE; if (!nsc_encode_argb_to_aycocg(context, bmpdata, rowstride)) return FALSE; if (context->ChromaSubsamplingLevel) { if (!nsc_encode_subsampling(context)) return FALSE; ...
0
[ "CWE-200", "CWE-787" ]
FreeRDP
d1112c279bd1a327e8e4d0b5f371458bf2579659
164,134,667,402,739,410,000,000,000,000,000,000,000
16
Fixed CVE-2018-8788 Thanks to Eyal Itkin from Check Point Software Technologies.
_copyVar(const Var *from) { Var *newnode = makeNode(Var); COPY_SCALAR_FIELD(varno); COPY_SCALAR_FIELD(varattno); COPY_SCALAR_FIELD(vartype); COPY_SCALAR_FIELD(vartypmod); COPY_SCALAR_FIELD(varcollid); COPY_SCALAR_FIELD(varlevelsup); COPY_SCALAR_FIELD(varnoold); COPY_SCALAR_FIELD(varoattno); COPY_LOCATION...
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
89,464,293,884,215,500,000,000,000,000,000,000,000
16
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...
void PSOutputDev::setupExternalType1Font(GooString *fileName, GooString *psName) { FILE *fontFile; int c; int i; // check if font is already embedded for (i = 0; i < fontFileNameLen; ++i) { if (!fontFileNames[i]->cmp(fileName)) { return; } } // add entry to fontFileNames list if (fontFil...
0
[]
poppler
abf167af8b15e5f3b510275ce619e6fdb42edd40
72,624,764,022,324,690,000,000,000,000,000,000,000
43
Implement tiling/patterns in SplashOutputDev Fixes bug 13518
vrrp_print(netdissect_options *ndo, register const u_char *bp, register u_int len, register const u_char *bp2, int ttl) { int version, type, auth_type = VRRP_AUTH_NONE; /* keep compiler happy */ const char *type_s; ND_TCHECK(bp[0]); version = (bp[0] & 0xf0) >> 4; type = bp[0] & 0x0f; type_s...
1
[ "CWE-125" ]
tcpdump
3de07c772166b7e8e8bb4b9d1d078f1d901b570b
58,863,535,903,036,760,000,000,000,000,000,000,000
78
(for 4.9.3) CVE-2018-14463/VRRP: Add a missing bounds check In vrrp_print(). This fixes a buffer over-read discovered by Bhargava Shastry. Add a test using the capture file supplied by the reporter(s).
static int host_start(struct ci13xxx *ci) { struct usb_hcd *hcd; struct ehci_hcd *ehci; int ret; if (usb_disabled()) return -ENODEV; hcd = usb_create_hcd(&ci_ehci_hc_driver, ci->dev, dev_name(ci->dev)); if (!hcd) return -ENOMEM; dev_set_drvdata(ci->dev, ci); hcd->rsrc_start = ci->hw_bank.phys; hcd->rsrc...
1
[ "CWE-119", "CWE-787" ]
linux
929473ea05db455ad88cdc081f2adc556b8dc48f
55,120,376,015,923,520,000,000,000,000,000,000,000
34
usb: chipidea: Allow disabling streaming not only in udc mode When running a scp transfer using a USB/Ethernet adapter the following crash happens: $ scp test.tar.gz fabio@192.168.1.100:/home/fabio fabio@192.168.1.100's password: test.tar.gz 0% 0 0.0KB/s --:-- ETA -------...
int platform_pm_resume(struct device *dev) { struct device_driver *drv = dev->driver; int ret = 0; if (!drv) return 0; if (drv->pm) { if (drv->pm->resume) ret = drv->pm->resume(dev); } else { ret = platform_legacy_resume(dev); } return ret; }
0
[ "CWE-362", "CWE-284" ]
linux
6265539776a0810b7ce6398c27866ddb9c6bd154
260,023,197,250,446,400,000,000,000,000,000,000,000
17
driver core: platform: fix race condition with driver_override The driver_override implementation is susceptible to race condition when different threads are reading vs storing a different driver override. Add locking to avoid race condition. Fixes: 3d713e0e382e ("driver core: platform: add device binding path 'drive...
hup_putstr(window, attr, text) winid window UNUSED; int attr UNUSED; const char *text UNUSED; { return; }
0
[ "CWE-120", "CWE-269" ]
NetHack
f3def5c0b999478da2d0a8f0b6a7c370a2065f77
107,210,428,401,550,750,000,000,000,000,000,000,000
7
command line triggered buffer overruns Prevent extremely long command line arguments from overflowing local buffers in raw_printf or config_error_add. The increased buffer sizes they recently got to deal with long configuration file values aren't sufficient to handle command line induced overflows. choose_windows(co...
static int parse_VariantColVector(tvbuff_t *tvb, int offset, proto_tree *tree, guint64 base_address, gboolean is_64bit, struct CRowVariant *variant, struct vtype_data *vt_list_type) { guint32 i = 0; guint64 count = 0; int buf_offset = 0; proto_tree *sub_tree; wmem_strbuf_t *strbuf; offset = parse_CRowVariantArra...
0
[ "CWE-770" ]
wireshark
b7a0650e061b5418ab4a8f72c6e4b00317aff623
47,215,024,722,318,830,000,000,000,000,000,000,000
58
MS-WSP: Don't allocate huge amounts of memory. Add a couple of memory allocation sanity checks, one of which fixes #17331.
EncodeDateOnly(struct pg_tm * tm, int style, char *str) { Assert(tm->tm_mon >= 1 && tm->tm_mon <= MONTHS_PER_YEAR); switch (style) { case USE_ISO_DATES: case USE_XSD_DATES: /* compatible with ISO date formats */ if (tm->tm_year > 0) sprintf(str, "%04d-%02d-%02d", tm->tm_year, tm->tm_mon, tm->tm_...
0
[ "CWE-119" ]
postgres
01824385aead50e557ca1af28640460fa9877d51
117,108,320,728,884,670,000,000,000,000,000,000,000
52
Prevent potential overruns of fixed-size buffers. Coverity identified a number of places in which it couldn't prove that a string being copied into a fixed-size buffer would fit. We believe that most, perhaps all of these are in fact safe, or are copying data that is coming from a trusted source so that any overrun i...
static inline struct iscsi_task *iscsi_alloc_task(struct iscsi_conn *conn, struct scsi_cmnd *sc) { struct iscsi_task *task; if (!kfifo_out(&conn->session->cmdpool.queue, (void *) &task, sizeof(void *))) return NULL; sc->SCp.phase = conn->session->age; sc->SCp.ptr = (char *) task; refcount_set(&tas...
0
[ "CWE-787" ]
linux
ec98ea7070e94cc25a422ec97d1421e28d97b7ee
162,819,001,809,773,130,000,000,000,000,000,000,000
23
scsi: iscsi: Ensure sysfs attributes are limited to PAGE_SIZE As the iSCSI parameters are exported back through sysfs, it should be enforcing that they never are more than PAGE_SIZE (which should be more than enough) before accepting updates through netlink. Change all iSCSI sysfs attributes to use sysfs_emit(). Cc:...
fr_window_drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, guint info, guint time, gpointer extra_data) { FrW...
0
[ "CWE-22" ]
file-roller
b147281293a8307808475e102a14857055f81631
110,680,995,395,268,160,000,000,000,000,000,000,000
163
libarchive: sanitize filenames before extracting
nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue, struct nf_queue_entry *entry, __be32 **packet_id_ptr) { size_t size; size_t data_len = 0, cap_len = 0; unsigned int hlen = 0; struct sk_buff *skb; struct nlattr *nla; struct nfqnl_msg_packet_hdr *pmsg; struct nlmsghdr *nlh; st...
0
[ "CWE-416" ]
net
36d5fe6a000790f56039afe26834265db0a3ad4c
39,842,100,968,625,297,000,000,000,000,000,000,000
225
core, nfqueue, openvswitch: Orphan frags in skb_zerocopy and handle errors skb_zerocopy can copy elements of the frags array between skbs, but it doesn't orphan them. Also, it doesn't handle errors, so this patch takes care of that as well, and modify the callers accordingly. skb_tx_error() is also added to the caller...
void cql_server::connection::write_response(foreign_ptr<std::unique_ptr<cql_server::response>>&& response, service_permit permit, cql_compression compression) { _ready_to_respond = _ready_to_respond.then([this, compression, response = std::move(response), permit = std::move(permit)] () mutable { auto messag...
0
[]
scylladb
1c2eef384da439b0457b6d71c7e37d7268e471cb
271,692,883,780,310,800,000,000,000,000,000,000,000
10
transport/server.cc: Return correct size of decompressed lz4 buffer An incorrect size is returned from the function, which could lead to crashes or undefined behavior. Fix by erroring out in these cases. Fixes #11476
jas_image_t *jas_image_create0() { jas_image_t *image; if (!(image = jas_malloc(sizeof(jas_image_t)))) { return 0; } image->tlx_ = 0; image->tly_ = 0; image->brx_ = 0; image->bry_ = 0; image->clrspc_ = JAS_CLRSPC_UNKNOWN; image->numcmpts_ = 0; image->maxcmpts_ = 0; image->cmpts_ = 0; image->inmem_ = tru...
1
[ "CWE-20", "CWE-190" ]
jasper
d42b2388f7f8e0332c846675133acea151fc557a
25,796,418,540,619,585,000,000,000,000,000,000,000
21
The generation of the configuration file jas_config.h has been completely reworked in order to avoid pollution of the global namespace. Some problematic types like uchar, ulong, and friends have been replaced with names with a jas_ prefix. An option max_samples has been added to the BMP and JPEG decoders to restrict ...
int file_update_time(struct file *file) { struct inode *inode = file_inode(file); struct timespec64 now; int sync_it = 0; int ret; /* First try to exhaust all avenues to not sync */ if (IS_NOCMTIME(inode)) return 0; now = current_time(inode); if (!timespec64_equal(&inode->i_mtime, &now)) sync_it = S_MTIME...
0
[ "CWE-269" ]
linux
0fa3ecd87848c9c93c2c828ef4c3a8ca36ce46c7
303,850,941,776,578,200,000,000,000,000,000,000,000
33
Fix up non-directory creation in SGID directories sgid directories have special semantics, making newly created files in the directory belong to the group of the directory, and newly created subdirectories will also become sgid. This is historically used for group-shared directories. But group directories writable b...
init_node_hash(struct node *nodes) { struct node *np, *nextp; int hash; memset(nbuckets, 0, sizeof(nbuckets)); for (np = nodes; np;) { nextp = np->next; hash = NBUCKET(name_hash(np->parent)); np->next = nbuckets[hash]; nbuckets[hash] = np; np = nex...
0
[ "CWE-59", "CWE-61" ]
net-snmp
4fd9a450444a434a993bc72f7c3486ccce41f602
154,734,463,617,211,850,000,000,000,000,000,000,000
14
CHANGES: snmpd: Stop reading and writing the mib_indexes/* files Caching directory contents is something the operating system should do and is not something Net-SNMP should do. Instead of storing a copy of the directory contents in ${tmp_dir}/mib_indexes/${n}, always scan a MIB directory.
TEST_F(DateExpressionTest, ParsingAcceptsAllFormats) { auto expCtx = getExpCtx(); for (auto&& expName : dateExpressions) { auto possibleSyntaxes = { // Single argument. BSON(expName << Date_t{}), BSON(expName << "$date"), BSON(expName << BSON("$add" << BSO...
0
[ "CWE-835" ]
mongo
0a076417d1d7fba3632b73349a1fd29a83e68816
78,986,609,181,108,990,000,000,000,000,000,000,000
26
SERVER-38070 fix infinite loop in agg expression
void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, int index) { struct mlx4_vlan_table *table = &mlx4_priv(dev)->port[port].vlan_table; if (index < MLX4_VLAN_REGULAR) { mlx4_warn(dev, "Trying to free special vlan index %d\n", index); return; } mutex_lock(&table->mutex); if (!table->refs[index]) { mlx...
0
[ "CWE-119", "CWE-787" ]
linux
0926f91083f34d047abc74f1ca4fa6a9c161f7db
153,729,300,550,456,150,000,000,000,000,000,000,000
25
mlx4_en: Fix out of bounds array access When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access. Fix this by adding a proper check outside the loop. Signed-of...
TPMS_PCR_SELECTION_Unmarshal(TPMS_PCR_SELECTION *target, BYTE **buffer, INT32 *size) { TPM_RC rc = TPM_RC_SUCCESS; if (rc == TPM_RC_SUCCESS) { rc = TPMI_ALG_HASH_Unmarshal(&target->hash, buffer, size, NO); } if (rc == TPM_RC_SUCCESS) { rc = UINT8_Unmarshal(&target->sizeofSelect, buffer, size); ...
0
[ "CWE-787" ]
libtpms
5cc98a62dc6f204dcf5b87c2ee83ac742a6a319b
238,487,573,936,708,140,000,000,000,000,000,000,000
22
tpm2: Restore original value if unmarshalled value was illegal Restore the original value of the memory location where data from a stream was unmarshalled and the unmarshalled value was found to be illegal. The goal is to not keep illegal values in memory. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, const unsigned long len, const unsigned long pgoff, const unsigned long flags) { struct vm_area_struct *vma; struct mm_struct *mm = current->mm; unsigned long addr = addr0; int do_colour_align; struct vm_unmapped_area_info info;...
0
[ "CWE-119" ]
linux
1be7107fbe18eed3e319a6c3e83c78254b693acb
167,724,248,804,762,120,000,000,000,000,000,000,000
64
mm: larger stack guard gap, between vmas Stack guard page is a useful feature to reduce a risk of stack smashing into a different mapping. We have been using a single page gap which is sufficient to prevent having stack adjacent to a different mapping. But this seems to be insufficient in the light of the stack usage ...
static void __exit cros_ec_dev_exit(void) { platform_driver_unregister(&cros_ec_dev_driver); unregister_chrdev(ec_major, CROS_EC_DEV_NAME); class_unregister(&cros_class); }
0
[ "CWE-362" ]
linux
096cdc6f52225835ff503f987a0d68ef770bb78e
45,207,267,352,360,650,000,000,000,000,000,000,000
6
platform/chrome: cros_ec_dev - double fetch bug in ioctl We verify "u_cmd.outsize" and "u_cmd.insize" but we need to make sure that those values have not changed between the two copy_from_user() calls. Otherwise it could lead to a buffer overflow. Additionally, cros_ec_cmd_xfer() can set s_cmd->insize to a lower val...
static MagickBooleanType ReadPSDLayersInternal(Image *image, const ImageInfo *image_info,const PSDInfo *psd_info, const MagickBooleanType skip_layers,ExceptionInfo *exception) { char type[4]; LayerInfo *layer_info; MagickSizeType size; MagickBooleanType status; register ssize_t i; ...
0
[ "CWE-401" ]
ImageMagick6
210474b2fac6a661bfa7ed563213920e93e76395
187,478,072,019,074,100,000,000,000,000,000,000,000
390
Fix ultra rare but potential memory-leak
TEST_F(RouterTest, UpstreamSSLConnection) { NiceMock<Http::MockRequestEncoder> encoder; Http::ResponseDecoder* response_decoder = nullptr; std::string session_id = "D62A523A65695219D46FE1FFE285A4C371425ACE421B110B5B8D11D3EB4D5F0B"; auto connection_info = std::make_shared<NiceMock<Ssl::MockConnectionInfo>>(); ...
0
[ "CWE-703" ]
envoy
5bf9b0f1e7f247a4eee7180849cb0823926f7fff
239,164,954,335,609,440,000,000,000,000,000,000,000
38
[1.21] CVE-2022-21655 Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
do_stobj (VerifyContext *ctx, int token) { ILStackDesc *dest, *src; MonoType *type = get_boxable_mono_type (ctx, token, "stobj"); CLEAR_PREFIX (ctx, PREFIX_UNALIGNED | PREFIX_VOLATILE); if (!type) return; if (!check_underflow (ctx, 2)) return; src = stack_pop (ctx); dest = stack_pop (ctx); if (stack_sl...
0
[ "CWE-20" ]
mono
65292a69c837b8a5f7a392d34db63de592153358
254,005,282,315,016,260,000,000,000,000,000,000,000
35
Handle invalid instantiation of generic methods. * verify.c: Add new function to internal verifier API to check method instantiations. * reflection.c (mono_reflection_bind_generic_method_parameters): Check the instantiation before returning it. Fixes #655847
static int skip_double_quoted (string, slen, sind, flags) char *string; size_t slen; int sind; int flags; { int c, i; char *ret; int pass_next, backquote, si; DECLARE_MBSTATE; pass_next = backquote = 0; i = sind; while (c = string[i]) { if (pass_next) { pass_next = 0; ...
0
[ "CWE-20" ]
bash
4f747edc625815f449048579f6e65869914dd715
72,453,633,050,503,200,000,000,000,000,000,000,000
68
Bash-4.4 patch 7
genop_2(codegen_scope *s, mrb_code i, uint16_t a, uint16_t b) { s->lastpc = s->pc; check_no_ext_ops(s, a, b); if (a > 0xff && b > 0xff) { gen_B(s, OP_EXT3); gen_B(s, i); gen_S(s, a); gen_S(s, b); } else if (b > 0xff) { gen_B(s, OP_EXT2); gen_B(s, i); gen_B(s, (uint8_t)a); gen_S...
0
[ "CWE-415", "CWE-122" ]
mruby
38b164ace7d6ae1c367883a3d67d7f559783faad
43,830,835,996,113,000,000,000,000,000,000,000,000
28
codegen.c: fix a bug in `gen_values()`. - Fix limit handling that fails 15 arguments method calls. - Fix too early argument packing in arrays.
template<typename t> CImg<_cimg_Ttfloat> get_solve(const CImg<t>& A) const { typedef _cimg_Ttfloat Ttfloat; return CImg<Ttfloat>(*this,false).solve(A);
0
[ "CWE-119", "CWE-787" ]
CImg
ac8003393569aba51048c9d67e1491559877b1d1
275,721,774,795,620,600,000,000,000,000,000,000,000
4
.
in_flight (uintptr_t index) { return src->ops->in_flight (src, index) + dst->ops->in_flight (dst, index); }
0
[ "CWE-252" ]
libnbd
8d444b41d09a700c7ee6f9182a649f3f2d325abb
21,363,808,547,080,056,000,000,000,000,000,000,000
4
copy: CVE-2022-0485: Fail nbdcopy if NBD read or write fails nbdcopy has a nasty bug when performing multi-threaded copies using asynchronous nbd calls - it was blindly treating the completion of an asynchronous command as successful, rather than checking the *error parameter. This can result in the silent creation o...
static void tw5864_stop_streaming(struct vb2_queue *q) { unsigned long flags; struct tw5864_input *input = vb2_get_drv_priv(q); tw5864_disable_input(input); spin_lock_irqsave(&input->slock, flags); if (input->vb) { vb2_buffer_done(&input->vb->vb.vb2_buf, VB2_BUF_STATE_ERROR); input->vb = NULL; } while (!li...
0
[ "CWE-476" ]
linux
2e7682ebfc750177a4944eeb56e97a3f05734528
262,069,647,791,383,150,000,000,000,000,000,000,000
21
media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame 'vb' null check should be done before dereferencing it in tw5864_handle_frame, otherwise a NULL pointer dereference may occur. Fixes: 34d1324edd31 ("[media] pci: Add tw5864 driver") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-of...
init_xterm_mouse(SCREEN *sp) { sp->_mouse_type = M_XTERM; sp->_mouse_format = MF_X10; sp->_mouse_xtermcap = tigetstr("XM"); if (VALID_STRING(sp->_mouse_xtermcap)) { char *code = strstr(sp->_mouse_xtermcap, "[?"); if (code != 0) { code += 2; while ((*code >= '0') && (*code <= '9')) { char *...
0
[]
ncurses
790a85dbd4a81d5f5d8dd02a44d84f01512ef443
58,603,789,546,780,630,000,000,000,000,000,000,000
44
ncurses 6.2 - patch 20200531 + correct configure version-check/warnng for g++ to allow for 10.x + re-enable "bel" in konsole-base (report by Nia Huang) + add linux-s entry (patch by Alexandre Montaron). + drop long-obsolete convert_configure.pl + add test/test_parm.c, for checking tparm changes. + improve parameter-ch...
static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev, unsigned short type, const void *daddr, const void *saddr, unsigned int len) { struct vlan_hdr *vhdr; unsigned int vhdrlen = 0; u16 vlan_tci = 0; int rc; if (!(vlan_dev_info(dev)->flags & VLAN_FLAG_REORDER_HDR)) { vhdr = (s...
0
[ "CWE-703", "CWE-264" ]
linux
550fd08c2cebad61c548def135f67aba284c6162
198,107,711,182,300,500,000,000,000,000,000,000,000
42
net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared After the last patch, We are left in a state in which only drivers calling ether_setup have IFF_TX_SKB_SHARING set (we assume that drivers touching real hardware call ether_setup for their net_devices and don't hold any state in their skbs. There...
int ldb_msg_add_steal_string(struct ldb_message *msg, const char *attr_name, char *str) { struct ldb_val val; val.data = (uint8_t *)str; val.length = strlen(str); if (val.length == 0) { /* allow empty strings as non-existent attributes */ return LDB_SUCCESS; } return ldb_msg_add_steal_value(msg, at...
0
[ "CWE-200" ]
samba
7efe8182c165fbf17d2f88c173527a7a554e214b
65,173,464,597,570,480,000,000,000,000,000,000,000
15
CVE-2022-32746 ldb: Add flag to mark message element values as shared When making a shallow copy of an ldb message, mark the message elements of the copy as sharing their values with the message elements in the original message. This flag value will be heeded in the next commit. BUG: https://bugzilla.samba.org/show_...
static void am_restore_lasso_profile_state(request_rec *r, LassoProfile *profile, am_cache_entry_t *am_session) { const char *identity_dump; const char *session_dump; int rc; if(am_session == NULL) { ap_log_...
0
[]
mod_auth_mellon
6bdda9170a8f1757dabc5b109958657417728018
183,667,024,639,644,450,000,000,000,000,000,000,000
38
Fix segmentation fault when receiving badly formed logout message. If the logout message is badly formed, we won't get the entityID in `logout->parent.remote_providerID`. If we call `apr_hash_get()` with a null pointer, it will cause a segmentation fault. Add a check to validate that the entityID is correctly set.
activate_interpreter(plperl_interp_desc *interp_desc) { if (interp_desc && plperl_active_interp != interp_desc) { Assert(interp_desc->interp); PERL_SET_CONTEXT(interp_desc->interp); /* trusted iff user_id isn't InvalidOid */ set_interp_require(OidIsValid(interp_desc->user_id)); plperl_active_interp = interp...
0
[ "CWE-264" ]
postgres
537cbd35c893e67a63c59bc636c3e888bd228bc7
273,122,963,138,818,450,000,000,000,000,000,000,000
11
Prevent privilege escalation in explicit calls to PL validators. The primary role of PL validators is to be called implicitly during CREATE FUNCTION, but they are also normal functions that a user can call explicitly. Add a permissions check to each validator to ensure that a user cannot use explicit validator calls ...
int_ossl_asn1_decode0_cons(unsigned char **pp, long max_len, long length, long *offset, int depth, int yield, int j, int tag, VALUE tc, long *num_read) { VALUE value, asn1data, ary; int infinite; long available_len, off = *offset; infinite = (j == 0x21); ary = rb_ary_new(); availab...
0
[ "CWE-119" ]
openssl
1648afef33c1d97fb203c82291b8a61269e85d3b
177,137,484,751,472,600,000,000,000,000,000,000,000
64
asn1: fix out-of-bounds read in decoding constructed objects OpenSSL::ASN1.{decode,decode_all,traverse} have a bug of out-of-bounds read. int_ossl_asn1_decode0_cons() does not give the correct available length to ossl_asn1_decode() when decoding the inner components of a constructed object. This can cause out-of-bound...
static void kvaser_usb_leaf_stop_chip_reply(const struct kvaser_usb *dev, const struct kvaser_cmd *cmd) { struct kvaser_usb_net_priv *priv; u8 channel = cmd->u.simple.channel; if (channel >= dev->nchannels) { dev_err(&dev->intf->dev, "Invalid channel number (%d)\n", channel); return; } priv = dev...
0
[ "CWE-200", "CWE-908" ]
linux
da2311a6385c3b499da2ed5d9be59ce331fa93e9
310,476,604,847,438,400,000,000,000,000,000,000,000
16
can: kvaser_usb: kvaser_usb_leaf: Fix some info-leaks to USB devices Uninitialized Kernel memory can leak to USB devices. Fix this by using kzalloc() instead of kmalloc(). Signed-off-by: Xiaolong Huang <butterflyhuangxx@gmail.com> Fixes: 7259124eac7d ("can: kvaser_usb: Split driver into kvaser_usb_core.c and kvaser_...
GF_Err AddCompositionOffset(GF_CompositionOffsetBox *ctts, s32 offset) { if (!ctts) return GF_BAD_PARAM; if (ctts->nb_entries && (ctts->entries[ctts->nb_entries-1].decodingOffset==offset)) { ctts->entries[ctts->nb_entries-1].sampleCount++; } else { if (ctts->alloc_size==ctts->nb_entries) { ALLOC_INC(ctts->al...
0
[ "CWE-120", "CWE-787" ]
gpac
77ed81c069e10b3861d88f72e1c6be1277ee7eae
70,095,993,946,082,150,000,000,000,000,000,000,000
23
fixed #1774 (fuzz)
ieee80211_make_monitor_skb(struct ieee80211_local *local, struct sk_buff **origskb, struct ieee80211_rate *rate, int rtap_space, bool use_origskb) { struct ieee80211_rx_status *status = IEEE80211_SKB_RXCB(*origskb); int rt_hdrlen, needed_headroom; struct sk_buff *skb; /* room for the radiotap hea...
0
[]
linux
588f7d39b3592a36fb7702ae3b8bdd9be4621e2f
196,066,969,380,411,100,000,000,000,000,000,000,000
51
mac80211: drop robust management frames from unknown TA When receiving a robust management frame, drop it if we don't have rx->sta since then we don't have a security association and thus couldn't possibly validate the frame. Cc: stable@vger.kernel.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
static void mp_initialize_cpu(void) { /* Call back into driver infrastructure for the AP initialization. */ struct cpu_info *info = cpu_info(); cpu_initialize(info->index); }
0
[ "CWE-269" ]
coreboot
afb7a814783cda12f5b72167163b9109ee1d15a7
3,480,108,035,836,188,000,000,000,000,000,000,000
6
cpu/x86/smm: Introduce SMM module loader version 2 Xeon-SP Skylake Scalable Processor can have 36 CPU threads (18 cores). Current coreboot SMM is unable to handle more than ~32 CPU threads. This patch introduces a version 2 of the SMM module loader which addresses this problem. Having two versions of the SMM module lo...
static int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied, size_t size) { struct tcp_sock *tp = tcp_sk(sk); struct inet_sock *inet = inet_sk(sk); int err, flags; if (!(sysctl_tcp_fastopen & TFO_CLIENT_ENABLE)) return -EOPNOTSUPP; if (tp->fastopen_req) return -EALREADY; /* Another Fa...
0
[ "CWE-369" ]
linux
499350a5a6e7512d9ed369ed63a4244b6536f4f8
290,682,671,161,438,070,000,000,000,000,000,000,000
41
tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0 When tcp_disconnect() is called, inet_csk_delack_init() sets icsk->icsk_ack.rcv_mss to 0. This could potentially cause tcp_recvmsg() => tcp_cleanup_rbuf() => __tcp_select_window() call path to have division by 0 issue. So this patch initializes rcv_mss to TCP_MIN_MSS...
clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator, gpointer native, ClutterEvent *event) { ClutterDeviceManagerXI2 *manager_xi2 = CLUTTER_DEVICE_MANAGER_XI2 (translator); Clu...
0
[ "CWE-264" ]
clutter
e310c68d7b38d521e341f4e8a36f54303079d74e
256,484,034,806,480,670,000,000,000,000,000,000,000
569
x11: trap errors when calling XIQueryDevice Devices can disappear at any time, causing XIQueryDevice to throw an error. At the same time, plug a memory leak. https://bugzilla.gnome.org/show_bug.cgi?id=701974
krb5_timeofday(krb5_context con, krb5_int32 *timeret) { if (!krb5_loaded) load_krb5_dll(); if ( p_krb5_timeofday ) return(p_krb5_timeofday(con,timeret)); else return KRB5KRB_ERR_GENERIC; }
0
[ "CWE-20" ]
openssl
cca1cd9a3447dd067503e4a85ebd1679ee78a48e
134,457,238,342,613,800,000,000,000,000,000,000,000
10
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).
static inline unsigned int xfrm_migrate_msgsize(int num_migrate, int with_kma, int with_encp) { return NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_id)) + (with_kma ? nla_total_size(sizeof(struct xfrm_kmaddress)) : 0) + (with_encp ? nla_total_size(sizeof(struct xfrm_encap_tmpl)) : 0) + nla_tota...
0
[ "CWE-125" ]
linux
b805d78d300bcf2c83d6df7da0c818b0fee41427
41,631,324,046,854,763,000,000,000,000,000,000,000
9
xfrm: policy: Fix out-of-bound array accesses in __xfrm_policy_unlink UBSAN report this: UBSAN: Undefined behaviour in net/xfrm/xfrm_policy.c:1289:24 index 6 is out of range for type 'unsigned int [6]' CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.162-514.55.6.9.x86_64+ #13 Hardware name: QEMU Standard PC (i440FX + P...
vte_sequence_handler_change_cursor_color (VteTerminal *terminal, GValueArray *params) { gchar *name = NULL; GValue *value; GdkColor color; if (params != NULL && params->n_values > 0) { value = g_value_array_get_nth (params, 0); if (G_VALUE_HOLDS_STRING (value)) name = g_value_dup_string (value); else if ...
0
[]
vte
58bc3a942f198a1a8788553ca72c19d7c1702b74
275,615,413,223,427,340,000,000,000,000,000,000,000
32
fix bug #548272 svn path=/trunk/; revision=2365
static int set_msr_hyperv(struct kvm_vcpu *vcpu, u32 msr, u64 data) { switch (msr) { case HV_X64_MSR_APIC_ASSIST_PAGE: { unsigned long addr; if (!(data & HV_X64_MSR_APIC_ASSIST_PAGE_ENABLE)) { vcpu->arch.hv_vapic = data; break; } addr = gfn_to_hva(vcpu->kvm, data >> HV_X64_MSR_APIC_ASSIST_PAGE_AD...
0
[]
linux
6d1068b3a98519247d8ba4ec85cd40ac136dbdf9
62,165,341,579,672,330,000,000,000,000,000,000,000
33
KVM: x86: invalid opcode oops on SET_SREGS with OSXSAVE bit set (CVE-2012-4461) On hosts without the XSAVE support unprivileged local user can trigger oops similar to the one below by setting X86_CR4_OSXSAVE bit in guest cr4 register using KVM_SET_SREGS ioctl and later issuing KVM_RUN ioctl. invalid opcode: 0000 [#2]...
double hllSigma(double x) { if (x == 1.) return INFINITY; double zPrime; double y = 1; double z = x; do { x *= x; zPrime = z; z += x * y; y += y; } while(zPrime != z); return z; }
0
[ "CWE-787" ]
redis
e216ceaf0e099536fe3658a29dcb725d812364e0
78,465,247,097,826,630,000,000,000,000,000,000,000
13
HyperLogLog: handle wrong offset in the base case.
ves_icall_System_Threading_Interlocked_Add_Int (gint32 *location, gint32 value) { #if SIZEOF_VOID_P == 8 /* Should be implemented as a JIT intrinsic */ mono_raise_exception (mono_get_exception_not_implemented (NULL)); return 0; #else gint32 orig; mono_interlocked_lock (); orig = *location; *location = orig + va...
0
[ "CWE-399", "CWE-264" ]
mono
722f9890f09aadfc37ae479e7d946d5fc5ef7b91
336,431,421,998,654,500,000,000,000,000,000,000,000
17
Fix access to freed members of a dead thread * threads.c: Fix access to freed members of a dead thread. Found and fixed by Rodrigo Kumpera <rkumpera@novell.com> Ref: CVE-2011-0992
flatpak_dir_get_sideload_repo_paths (FlatpakDir *self) { g_autoptr(GFile) sideload_repos_dir = flatpak_dir_get_sideload_repos_dir (self); g_autoptr(GFile) runtime_sideload_repos_dir = flatpak_dir_get_runtime_sideload_repos_dir (self); g_autoptr(GPtrArray) res = g_ptr_array_new_with_free_func (g_object_unref); ...
0
[ "CWE-74" ]
flatpak
fb473cad801c6b61706353256cab32330557374a
157,972,179,286,208,540,000,000,000,000,000,000,000
11
dir: Pass environment via bwrap --setenv when running apply_extra This means we can systematically pass the environment variables through bwrap(1), even if it is setuid and thus is filtering out security-sensitive environment variables. bwrap ends up being run with an empty environment instead. As with the previous c...
TEST_F(QueryPlannerTest, ElemMatchOneField) { addIndex(BSON("a.b" << 1)); runQuery(fromjson("{a : {$elemMatch: {b:1}}}")); ASSERT_EQUALS(getNumSolutions(), 2U); assertSolutionExists("{cscan: {dir: 1, filter: {a:{$elemMatch:{b:1}}}}}"); assertSolutionExists( "{fetch: {filter: {a:{$elemMatch:...
0
[ "CWE-834" ]
mongo
94d0e046baa64d1aa1a6af97e2d19bb466cc1ff5
337,361,799,257,836,500,000,000,000,000,000,000,000
10
SERVER-38164 $or pushdown optimization does not correctly handle $not within an $elemMatch
void CWebServer::ReloadCustomSwitchIcons() { m_custom_light_icons.clear(); m_custom_light_icons_lookup.clear(); std::string sLine = ""; //First get them from the switch_icons.txt file std::ifstream infile; std::string switchlightsfile = szWWWFolder + "/switch_icons.txt"; infile.open(switchligh...
0
[ "CWE-89" ]
domoticz
ee70db46f81afa582c96b887b73bcd2a86feda00
117,220,749,976,463,760,000,000,000,000,000,000,000
91
Fixed possible SQL Injection Vulnerability (Thanks to Fabio Carretto!)
TCP_ECN_create_request(struct request_sock *req, const struct sk_buff *skb, struct net *net) { const struct tcphdr *th = tcp_hdr(skb); if (net->ipv4.sysctl_tcp_ecn && th->ece && th->cwr && INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield)) inet_rsk(req)->ecn_ok = 1; }
0
[]
linux
7bced397510ab569d31de4c70b39e13355046387
106,802,539,080,432,850,000,000,000,000,000,000,000
9
net_dma: simple removal Per commit "77873803363c net_dma: mark broken" net_dma is no longer used and there is no plan to fix it. This is the mechanical removal of bits in CONFIG_NET_DMA ifdef guards. Reverting the remainder of the net_dma induced changes is deferred to subsequent patches. Marked for stable due to Ro...
void aes_crypt_ecb( aes_context *ctx, int mode, const unsigned char input[16], unsigned char output[16] ) { int i; unsigned long *RK, X0, X1, X2, X3, Y0, Y1, Y2, Y3; #if defined(XYSSL_PADLOCK_C) && defined(XYSSL_HAVE_X86) if( padlock_supports( PAD...
0
[]
ghostpdl
8e9ce5016db968b40e4ec255a3005f2786cce45f
151,479,194,586,816,720,000,000,000,000,000,000,000
92
Bug 699665 "memory corruption in aesdecode" The specimen file calls aesdecode without specifying the key to be used, though it does manage to do enough work with the PDF interpreter routines to get access to aesdecode (which isn't normally available). This causes us to read uninitialised memory, which can (and often ...
print_r2p_unknown (const unsigned char *msg, size_t msglen) { char buf[100]; snprintf (buf, sizeof buf, "Unknown RDR_to_PC command 0x%02X", msglen? msg[0]:0); print_r2p_header (buf, msg, msglen); if (msglen < 10) return; printf (" bMessageType ......: %02X\n", msg[0]); printf (" buffer[9]...
0
[ "CWE-20" ]
gnupg
2183683bd633818dd031b090b5530951de76f392
119,178,341,919,259,670,000,000,000,000,000,000,000
13
Use inline functions to convert buffer data to scalars. * common/host2net.h (buf16_to_ulong, buf16_to_uint): New. (buf16_to_ushort, buf16_to_u16): New. (buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New. -- Commit 91b826a38880fd8a989318585eb502582636ddd8 was not enough to avoid all sign extension on ...
void opj_tcd_destroy(opj_tcd_t *tcd) { if (tcd) { opj_tcd_free_tile(tcd); if (tcd->tcd_image) { opj_free(tcd->tcd_image); tcd->tcd_image = 00; } opj_free(tcd); } }
0
[ "CWE-369" ]
openjpeg
8f9cc62b3f9a1da9712329ddcedb9750d585505c
26,068,113,053,491,710,000,000,000,000,000,000,000
11
Fix division by zero Fix uclouvain/openjpeg#733
WandExport DrawingWand *DestroyDrawingWand(DrawingWand *wand) { assert(wand != (DrawingWand *) NULL); assert(wand->signature == MagickWandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); for ( ; wand->index > 0; wand->index--) CurrentContext...
0
[ "CWE-476" ]
ImageMagick
6ad5fc3c9b652eec27fc0b1a0817159f8547d5d9
177,377,109,428,755,800,000,000,000,000,000,000,000
23
https://github.com/ImageMagick/ImageMagick/issues/716
e_named_parameters_get_name (const ENamedParameters *parameters, gint index) { const gchar *name_and_value, *colon; g_return_val_if_fail (parameters != NULL, NULL); g_return_val_if_fail (index >= 0 && index < e_named_parameters_count (parameters), NULL); name_and_value = g_ptr_array_index ((GPtrArray *) p...
0
[ "CWE-295" ]
evolution-data-server
6672b8236139bd6ef41ecb915f4c72e2a052dba5
239,939,927,099,300,000,000,000,000,000,000,000,000
16
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
static struct dentry *lookup_slow(const struct qstr *name, struct dentry *dir, unsigned int flags) { struct inode *inode = dir->d_inode; struct dentry *res; inode_lock_shared(inode); res = __lookup_slow(name, dir, flags); inode_unlock_shared(inode); return res; }
0
[ "CWE-416", "CWE-284" ]
linux
d0cb50185ae942b03c4327be322055d622dc79f6
39,032,394,722,658,730,000,000,000,000,000,000,000
11
do_last(): fetch directory ->i_mode and ->i_uid before it's too late may_create_in_sticky() call is done when we already have dropped the reference to dir. Fixes: 30aba6656f61e (namei: allow restricted O_CREAT of FIFOs and regular files) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
static void pending_op_free(void *data) { struct pending_op *op = data; if (op->owner_queue) queue_remove(op->owner_queue, op); bt_att_unregister_disconnect(op->att, op->disconn_id); bt_att_unref(op->att); free(op); }
0
[ "CWE-416" ]
bluez
838c0dc7641e1c991c0f3027bf94bee4606012f8
129,134,357,269,320,570,000,000,000,000,000,000,000
11
gatt: Fix not cleaning up when disconnected There is a current use after free possible on a gatt server if a client disconnects while a WriteValue call is being processed with dbus. This patch includes the addition of a pending disconnect callback to handle cleanup better if a disconnect occurs during a write, an acq...
double frac_nodes_with_descriptors(const smartlist_t *sl, bandwidth_weight_rule_t rule) { double *bandwidths = NULL; double total, present; if (smartlist_len(sl) == 0) return 0.0; if (compute_weighted_bandwidths(sl, rule, &bandwidths) < 0) { int n_with_descs = 0; SMARTL...
0
[]
tor
1afc2ed956a35b40dfd1d207652af5b50c295da7
117,616,593,384,597,890,000,000,000,000,000,000,000
33
Fix policies.c instance of the "if (r=(a-b)) return r" pattern I think this one probably can't underflow, since the input ranges are small. But let's not tempt fate. This patch also replaces the "cmp" functions here with just "eq" functions, since nothing actually checked for anything besides 0 and nonzero. Related...
sldns_affix_token(sldns_buffer* strbuf, char* token, size_t* token_len, int* quoted, int* parens, size_t* pre_data_pos, const char* delimiters, sldns_rdf_type rdftype, size_t* token_strlen) { size_t addlen = *token_len - *token_strlen; size_t addstrlen = 0; /* add space */ if(addlen < 1) return 0; token[*token_...
0
[]
unbound
3f3cadd416d6efa92ff2d548ac090f42cd79fee9
50,322,907,172,125,830,000,000,000,000,000,000,000
20
- Fix Out of Bounds Write in sldns_str2wire_str_buf(), reported by X41 D-Sec.
virSecuritySELinuxSetImageFDLabel(virSecurityManager *mgr G_GNUC_UNUSED, virDomainDef *def, int fd) { virSecurityLabelDef *secdef; secdef = virDomainDefGetSecurityLabelDef(def, SECURITY_SELINUX_NAME); if (!secdef || !secdef->imagelabel) ...
0
[ "CWE-732" ]
libvirt
15073504dbb624d3f6c911e85557019d3620fdb2
240,895,080,706,668,960,000,000,000,000,000,000,000
12
security: fix SELinux label generation logic A process can access a file if the set of MCS categories for the file is equal-to *or* a subset-of, the set of MCS categories for the process. If there are two VMs: a) svirt_t:s0:c117 b) svirt_t:s0:c117,c720 Then VM (b) is able to access files labelled for VM (a). I...
getftp (struct url *u, struct url *original_url, wgint passed_expected_bytes, wgint *qtyread, wgint restval, ccon *con, int count, wgint *last_expected_bytes, FILE *warc_tmp) { int csock, dtsock, local_sock, res; uerr_t err = RETROK; /* appease the compiler */ FILE *fp = NULL; c...
1
[ "CWE-200" ]
wget
3cdfb594cf75f11cdbb9702ac5e856c332ccacfa
60,421,454,582,694,570,000,000,000,000,000,000,000
1,493
Don't save user/pw with --xattr Also the Referer info is reduced to scheme+host+port. * src/ftp.c (getftp): Change params of set_file_metadata() * src/http.c (gethttp): Change params of set_file_metadata() * src/xattr.c (set_file_metadata): Remove user/password from origin URL, reduce Referer value to scheme/host/p...
static int rd_attach_hba(struct se_hba *hba, u32 host_id) { struct rd_host *rd_host; rd_host = kzalloc(sizeof(struct rd_host), GFP_KERNEL); if (!rd_host) { pr_err("Unable to allocate memory for struct rd_host\n"); return -ENOMEM; } rd_host->rd_host_id = host_id; hba->hba_ptr = rd_host; pr_debug("CORE_HBA...
0
[ "CWE-200", "CWE-264" ]
linux
4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc
14,063,229,165,615,543,000,000,000,000,000,000,000
20
target/rd: Refactor rd_build_device_space + rd_release_device_space This patch refactors rd_build_device_space() + rd_release_device_space() into rd_allocate_sgl_table() + rd_release_device_space() so that they may be used seperatly for setup + release of protection information scatterlists. Also add explicit memset ...
void CLASS adobe_coeff (const char *t_make, const char *t_model) { static const struct { const char *prefix; short t_black, t_maximum, trans[12]; } table[] = { { "AgfaPhoto DC-833m", 0, 0, /* DJC */ { 11438,-3762,-1115,-2409,9914,2497,-1227,2295,5300 } }, { "Apple QuickTake", 0, 0, /* DJC */ { 21...
0
[]
LibRaw
9ae25d8c3a6bfb40c582538193264f74c9b93bc0
109,109,405,437,243,530,000,000,000,000,000,000,000
823
backported 0.15.4 datachecks
static double BesselOrderOne(double x) { double p, q; if (x == 0.0) return(0.0); p=x; if (x < 0.0) x=(-x); if (x < 8.0) return(p*J1(x)); q=sqrt((double) (2.0/(MagickPI*x)))*(P1(x)*(1.0/sqrt(2.0)*(sin(x)- cos(x)))-8.0/x*Q1(x)*(-1.0/sqrt(2.0)*(sin(x)+cos(x)))); if (p < 0.0) q=(-...
0
[ "CWE-369" ]
ImageMagick
43539e67a47d2f8de832d33a5b26dc2a7a12294f
306,399,545,786,540,300,000,000,000,000,000,000,000
19
https://github.com/ImageMagick/ImageMagick/issues/1718
static NTSTATUS tls_socket_send(struct socket_context *sock, const DATA_BLOB *blob, size_t *sendlen) { NTSTATUS status; int ret; struct tls_context *tls = talloc_get_type(sock->private_data, struct tls_context); if (!tls->tls_enabled) { return socket_send(tls->socket, blob, sendlen); } status = tls_hands...
0
[]
samba
22af043d2f20760f27150d7d469c7c7b944c6b55
42,226,677,251,848,510,000,000,000,000,000,000,000
33
CVE-2013-4476: s4:libtls: check for safe permissions of tls private key file (key.pem) If the tls key is not owned by root or has not mode 0600 samba will not start up. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10234 Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Björn Baumbach <bb@s...
validate_slice(slice_ty slice) { switch (slice->kind) { case Slice_kind: return (!slice->v.Slice.lower || validate_expr(slice->v.Slice.lower, Load)) && (!slice->v.Slice.upper || validate_expr(slice->v.Slice.upper, Load)) && (!slice->v.Slice.step || validate_expr(slice->v.Slice.st...
0
[ "CWE-125" ]
cpython
a4d78362397fc3bced6ea80fbc7b5f4827aec55e
338,773,668,867,043,340,000,000,000,000,000,000,000
23
bpo-36495: Fix two out-of-bounds array reads (GH-12641) Research and fix by @bradlarsen.
GF_Err chpl_box_dump(GF_Box *a, FILE * trace) { u32 i, count; GF_ChapterListBox *p = (GF_ChapterListBox *)a; gf_isom_box_dump_start(a, "ChapterListBox", trace); gf_fprintf(trace, ">\n"); if (p->size) { count = gf_list_count(p->list); for (i=0; i<count; i++) { char szDur[20]; GF_ChapterEntry *ce = (GF_Ch...
0
[ "CWE-787" ]
gpac
ea1eca00fd92fa17f0e25ac25652622924a9a6a0
144,781,239,918,118,730,000,000,000,000,000,000,000
28
fixed #2138
void remove_migration_pmd(struct page_vma_mapped_walk *pvmw, struct page *new) { struct vm_area_struct *vma = pvmw->vma; struct mm_struct *mm = vma->vm_mm; unsigned long address = pvmw->address; unsigned long mmun_start = address & HPAGE_PMD_MASK; pmd_t pmde; swp_entry_t entry; if (!(pvmw->pmd && !pvmw->pte)) ...
0
[ "CWE-362" ]
linux
a8f97366452ed491d13cf1e44241bc0b5740b1f0
76,598,162,142,432,030,000,000,000,000,000,000,000
27
mm, thp: Do not make page table dirty unconditionally in touch_p[mu]d() Currently, we unconditionally make page table dirty in touch_pmd(). It may result in false-positive can_follow_write_pmd(). We may avoid the situation, if we would only make the page table entry dirty if caller asks for write access -- FOLL_WRITE...
void Item_cache_row::store(Item * item) { example= item; if (!item) { null_value= TRUE; return; } for (uint i= 0; i < item_count; i++) values[i]->store(item->element_index(i)); }
0
[]
server
b000e169562697aa072600695d4f0c0412f94f4f
77,994,761,954,898,860,000,000,000,000,000,000,000
11
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'...
int SSL_get_ex_new_index(long argl,void *argp,CRYPTO_EX_new *new_func, CRYPTO_EX_dup *dup_func,CRYPTO_EX_free *free_func) { return CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_SSL, argl, argp, new_func, dup_func, free_func); }
0
[]
openssl
ee2ffc279417f15fef3b1073c7dc81a908991516
183,099,483,381,410,060,000,000,000,000,000,000,000
6
Add Next Protocol Negotiation.
static const char *include_config (cmd_parms *cmd, void *dummy, const char *name) { ap_directive_t *conftree = NULL; const char *conffile, *error; unsigned *recursion; int optional = cmd->cmd->cmd_data ? 1 : 0; void *data; /* NOTE: ap_include_sentinel is also ...
0
[ "CWE-416", "CWE-284" ]
httpd
4cc27823899e070268b906ca677ee838d07cf67a
31,594,733,788,907,800,000,000,000,000,000,000,000
72
core: Disallow Methods' registration at run time (.htaccess), they may be used only if registered at init time (httpd.conf). Calling ap_method_register() in children processes is not the right scope since it won't be shared for all requests. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1807655 13f7...
void MD5::final() { if (finalized) { return; } unsigned char bits[8]; unsigned int index, padLen; // Save number of bits encode(bits, count, 8); // Pad out to 56 mod 64. index = static_cast<unsigned int>((count[0] >> 3) & 0x3f); padLen = (index < 56) ? (56 - index) : (120 - ...
0
[ "CWE-787" ]
qpdf
d71f05ca07eb5c7cfa4d6d23e5c1f2a800f52e8e
106,877,065,882,639,290,000,000,000,000,000,000,000
31
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 ...
PHP_FUNCTION(openssl_pkcs7_sign) { zval ** zcert, ** zprivkey, * zheaders; zval ** hval; X509 * cert = NULL; EVP_PKEY * privkey = NULL; long flags = PKCS7_DETACHED; PKCS7 * p7 = NULL; BIO * infile = NULL, * outfile = NULL; STACK_OF(X509) *others = NULL; long certresource = -1, keyresource = -1; ulong intindex...
0
[ "CWE-754" ]
php-src
89637c6b41b510c20d262c17483f582f115c66d6
32,271,956,748,497,135,000,000,000,000,000,000,000
107
Fix bug #74651 - check EVP_SealInit as it can return -1
static int listvalidator(void *ic, const char *list) { struct sieve_interp_ctx *ctx = (struct sieve_interp_ctx *) ic; char *abook = get_addrbook_mboxname(list, ctx->userid); int ret = abook ? SIEVE_OK : SIEVE_FAIL; free(abook); return ret; }
0
[ "CWE-269" ]
cyrus-imapd
673ebd96e2efbb8895d08648983377262f35b3f7
96,481,612,441,269,490,000,000,000,000,000,000,000
10
lmtp_sieve: don't create mailbox with admin for sieve autocreate
int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe, void *data, int len, int *actual_length, int timeout) { return usb_bulk_msg(usb_dev, pipe, data, len, actual_length, timeout); }
0
[ "CWE-119", "CWE-787" ]
linux
2e1c42391ff2556387b3cb6308b24f6f65619feb
242,424,772,132,709,900,000,000,000,000,000,000,000
5
USB: core: harden cdc_parse_cdc_header Andrey Konovalov reported a possible out-of-bounds problem for the cdc_parse_cdc_header function. He writes: It looks like cdc_parse_cdc_header() doesn't validate buflen before accessing buffer[1], buffer[2] and so on. The only check present is while (buflen > 0). So fix thi...
static bool checkreturn pb_dec_fixed32(pb_istream_t *stream, const pb_field_t *field, void *dest) { PB_UNUSED(field); return pb_decode_fixed32(stream, dest); }
0
[ "CWE-20", "CWE-119" ]
nanopb
4fe23595732b6f1254cfc11a9b8d6da900b55b0c
248,039,328,785,825,840,000,000,000,000,000,000,000
5
Fix memory leak with oneofs and PB_ENABLE_MALLOC (#615) Nanopb would leak memory when all of the following conditions were true: - PB_ENABLE_MALLOC is defined at the compile time - Message definitions contains an oneof field, the oneof contains a static submessage, and the static submessage contains a pointer fiel...
GrpcHealthCheckerImpl::GrpcActiveHealthCheckSession::GrpcActiveHealthCheckSession( GrpcHealthCheckerImpl& parent, const HostSharedPtr& host) : ActiveHealthCheckSession(parent, host), parent_(parent), local_connection_info_provider_(std::make_shared<Network::ConnectionInfoSetterImpl>( Network::Ut...
0
[ "CWE-476" ]
envoy
9b1c3962172a972bc0359398af6daa3790bb59db
34,857,756,963,894,260,000,000,000,000,000,000,000
6
healthcheck: fix grpc inline removal crashes (#749) Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
bootParameterValidate( Syntax *syntax, struct berval *val ) { char *p, *e; if ( BER_BVISEMPTY( val ) ) { return LDAP_INVALID_SYNTAX; } p = (char *)val->bv_val; e = p + val->bv_len; /* key */ for (; ( p < e ) && ( *p != '=' ); p++ ) { if ( !AD_CHAR( *p ) ) { return LDAP_INVALID_SYNTAX; } } if ( *...
0
[ "CWE-617" ]
openldap
67670f4544e28fb09eb7319c39f404e1d3229e65
332,238,536,189,924,700,000,000,000,000,000,000,000
44
ITS#9383 remove assert in certificateListValidate