func
string
target
int64
cwe
list
project
string
commit_id
string
hash
float64
size
int64
message
string
void OpenConnectionTask::sslConnectionPolicyDecided(bool ok) { switch (model->accessParser(parser).connState) { case CONN_STATE_SSL_VERIFYING: if (ok) { model->changeConnectionState(parser, CONN_STATE_CONNECTED_PRETLS_PRECAPS); } else { logout(tr("The security state of th...
0
[ "CWE-200" ]
trojita
25fffa3e25cbad85bbca804193ad336b090a9ce1
316,397,205,423,108,440,000,000,000,000,000,000,000
24
IMAP: refuse to work when STARTTLS is required but server sends PREAUTH Oops, we cannot send STARTTLS when the connection is already authenticated. This is serious enough to warrant an error; an attacker might be going after a plaintext of a message we're going to APPEND, etc. Thanks to Arnt Gulbrandsen on the imap-p...
static void *bpf_obj_do_get(const struct filename *pathname, enum bpf_type *type) { struct inode *inode; struct path path; void *raw; int ret; ret = kern_path(pathname->name, LOOKUP_FOLLOW, &path); if (ret) return ERR_PTR(ret); inode = d_backing_inode(path.dentry); ret = inode_permission(inode, MAY_W...
0
[ "CWE-703" ]
linux
92117d8443bc5afacc8d5ba82e541946310f106e
2,322,588,067,165,682,300,000,000,000,000,000,000
31
bpf: fix refcnt overflow On a system with >32Gbyte of phyiscal memory and infinite RLIMIT_MEMLOCK, the malicious application may overflow 32-bit bpf program refcnt. It's also possible to overflow map refcnt on 1Tb system. Impose 32k hard limit which means that the same bpf program or map cannot be shared by more than ...
processInternalEntity(XML_Parser parser, ENTITY *entity, XML_Bool betweenDecl) { const char *textStart, *textEnd; const char *next; enum XML_Error result; OPEN_INTERNAL_ENTITY *openEntity; if (parser->m_freeInternalEntities) { openEntity = parser->m_freeInternalEntities; parser-...
0
[ "CWE-611" ]
libexpat
11f8838bf99ea0a6f0b76f9760c43704d00c4ff6
248,354,791,219,233,850,000,000,000,000,000,000,000
57
xmlparse.c: Fix extraction of namespace prefix from XML name (#186)
static void arcmsr_hbaC_start_bgrb(struct AdapterControlBlock *pACB) { struct MessageUnit_C __iomem *phbcmu = pACB->pmuC; pACB->acb_flags |= ACB_F_MSG_START_BGRB; writel(ARCMSR_INBOUND_MESG0_START_BGRB, &phbcmu->inbound_msgaddr0); writel(ARCMSR_HBCMU_DRV2IOP_MESSAGE_CMD_DONE, &phbcmu->inbound_doorbell); if (!arcms...
0
[ "CWE-119", "CWE-787" ]
linux
7bc2b55a5c030685b399bb65b6baa9ccc3d1f167
144,379,745,010,449,100,000,000,000,000,000,000,000
12
scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer() We need to put an upper bound on "user_len" so the memcpy() doesn't overflow. Cc: <stable@vger.kernel.org> Reported-by: Marco Grassi <marco.gra@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Sig...
tChecksumCheckResult ParaNdis_CheckRxChecksum( PARANDIS_ADAPTER *pContext, ULONG virtioFlags, tCompletePhysicalAddress *pPacketPages, ULONG ulPa...
0
[ "CWE-20" ]
kvm-guest-drivers-windows
723416fa4210b7464b28eab89cc76252e6193ac1
30,444,056,655,716,966,000,000,000,000,000,000,000
102
NetKVM: BZ#1169718: Checking the length only on read Signed-off-by: Joseph Hindin <yhindin@rehat.com>
apr_byte_t oidc_json_object_get_string(apr_pool_t *pool, json_t *json, const char *name, char **value, const char *default_value) { *value = default_value ? apr_pstrdup(pool, default_value) : NULL; if (json != NULL) { json_t *v = json_object_get(json, name); if ((v != NULL) && (json_is_string(v))) { *value =...
0
[ "CWE-79" ]
mod_auth_openidc
55ea0a085290cd2c8cdfdd960a230cbc38ba8b56
3,747,822,009,257,412,000,000,000,000,000,000,000
11
Add a function to escape Javascript characters
static int dgram_init(struct sock *sk) { struct dgram_sock *ro = dgram_sk(sk); ro->dst_addr.addr_type = IEEE802154_ADDR_LONG; ro->dst_addr.pan_id = 0xffff; ro->want_ack = 1; memset(&ro->dst_addr.hwaddr, 0xff, sizeof(ro->dst_addr.hwaddr)); return 0; }
0
[ "CWE-20" ]
net
bceaa90240b6019ed73b49965eac7d167610be69
308,561,726,024,509,060,000,000,000,000,000,000,000
10
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...
static int rbd_object_map_load(struct rbd_device *rbd_dev) { int ret; ret = __rbd_object_map_load(rbd_dev); if (ret) return ret; ret = rbd_dev_v2_get_flags(rbd_dev); if (ret) { rbd_object_map_free(rbd_dev); return ret; } if (rbd_dev->object_map_flags & RBD_FLAG_OBJECT_MAP_INVALID) rbd_warn(rbd_dev, "o...
0
[ "CWE-863" ]
linux
f44d04e696feaf13d192d942c4f14ad2e117065a
13,654,615,441,620,051,000,000,000,000,000,000,000
19
rbd: require global CAP_SYS_ADMIN for mapping and unmapping It turns out that currently we rely only on sysfs attribute permissions: $ ll /sys/bus/rbd/{add*,remove*} --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add --w------- 1 root root 4096 Sep 3 20:37 /sys/bus/rbd/add_single_major --w------- 1 ro...
crypto_cert_select(krb5_context context, pkinit_cert_matching_data *md) { struct _pkinit_cert_data *cd; if (md == NULL) return EINVAL; cd = (struct _pkinit_cert_data *)md->ch; if (cd == NULL || cd->magic != CERT_MAGIC) return EINVAL; /* copy the selected cert int...
0
[ "CWE-476" ]
krb5
f249555301940c6df3a2cdda13b56b5674eebc2e
250,757,239,517,236,600,000,000,000,000,000,000,000
39
PKINIT null pointer deref [CVE-2013-1415] Don't dereference a null pointer when cleaning up. The KDC plugin for PKINIT can dereference a null pointer when a malformed packet causes processing to terminate early, leading to a crash of the KDC process. An attacker would need to have a valid PKINIT certificate or have ...
static CImg<T> diagonal(const T& a0, const T& a1, const T& a2, const T& a3, const T& a4) { return matrix(a0,0,0,0,0,0,a1,0,0,0,0,0,a2,0,0,0,0,0,a3,0,0,0,0,0,a4); }
0
[ "CWE-770" ]
cimg
619cb58dd90b4e03ac68286c70ed98acbefd1c90
249,623,496,802,723,800,000,000,000,000,000,000,000
3
CImg<>::load_bmp() and CImg<>::load_pandore(): Check that dimensions encoded in file does not exceed file size.
static int airspy_ctrl_msg(struct airspy *s, u8 request, u16 value, u16 index, u8 *data, u16 size) { int ret; unsigned int pipe; u8 requesttype; switch (request) { case CMD_RECEIVER_MODE: case CMD_SET_FREQ: pipe = usb_sndctrlpipe(s->udev, 0); requesttype = (USB_TYPE_VENDOR | USB_DIR_OUT); break; case CM...
0
[ "CWE-119" ]
media_tree
aa93d1fee85c890a34f2510a310e55ee76a27848
308,121,335,321,756,600,000,000,000,000,000,000,000
52
media: fix airspy usb probe error path Fix a memory leak on probe error of the airspy usb device driver. The problem is triggered when more than 64 usb devices register with v4l2 of type VFL_TYPE_SDR or VFL_TYPE_SUBDEV. The memory leak is caused by the probe function of the airspy driver mishandeling errors and not ...
static void decrement_hugepage_resv_vma(struct hstate *h, struct vm_area_struct *vma) { if (vma->vm_flags & VM_NORESERVE) return; if (vma->vm_flags & VM_MAYSHARE) { /* Shared mappings always use reserves */ h->resv_huge_pages--; } else if (is_vma_resv_set(vma, HPAGE_RESV_OWNER)) { /* * Only the proces...
0
[ "CWE-399" ]
linux
90481622d75715bfcb68501280a917dbfe516029
200,165,541,691,288,700,000,000,000,000,000,000,000
17
hugepages: fix use after free bug in "quota" handling hugetlbfs_{get,put}_quota() are badly named. They don't interact with the general quota handling code, and they don't much resemble its behaviour. Rather than being about maintaining limits on on-disk block usage by particular users, they are instead about maintai...
static int __init dev_prepare_static_identity_mapping(struct device *dev, int hw) { int ret; if (!iommu_should_identity_map(dev, 1)) return 0; ret = domain_add_dev_info(si_domain, dev); if (!ret) dev_info(dev, "%s identity mapping\n", hw ? "Hardware" : "Software"); else if (ret == -ENODEV) /* device no...
0
[]
linux
d8b8591054575f33237556c32762d54e30774d28
119,125,096,180,949,120,000,000,000,000,000,000,000
17
iommu/vt-d: Disable ATS support on untrusted devices Commit fb58fdcd295b9 ("iommu/vt-d: Do not enable ATS for untrusted devices") disables ATS support on the devices which have been marked as untrusted. Unfortunately this is not enough to fix the DMA attack vulnerabiltiies because IOMMU driver allows translated reques...
static void end_block_io_op(struct bio *bio, int error) { __end_block_io_op(bio->bi_private, error); bio_put(bio); }
0
[ "CWE-20" ]
linux-2.6
604c499cbbcc3d5fe5fb8d53306aa0fae1990109
138,440,607,686,253,390,000,000,000,000,000,000,000
5
xen/blkback: Check device permissions before allowing OP_DISCARD We need to make sure that the device is not RO or that the request is not past the number of sectors we want to issue the DISCARD operation for. This fixes CVE-2013-2140. Cc: stable@vger.kernel.org Acked-by: Jan Beulich <JBeulich@suse.com> Acked-by: Ia...
static bool io_arm_poll_handler(struct io_kiocb *req) { const struct io_op_def *def = &io_op_defs[req->opcode]; struct io_ring_ctx *ctx = req->ctx; struct async_poll *apoll; struct io_poll_table ipt; __poll_t mask, ret; int rw; if (!req->file || !file_can_poll(req->file)) return false; if (req->flags & REQ_...
0
[ "CWE-667" ]
linux
3ebba796fa251d042be42b929a2d916ee5c34a49
9,679,833,342,081,142,000,000,000,000,000,000,000
60
io_uring: ensure that SQPOLL thread is started for exit If we create it in a disabled state because IORING_SETUP_R_DISABLED is set on ring creation, we need to ensure that we've kicked the thread if we're exiting before it's been explicitly disabled. Otherwise we can run into a deadlock where exit is waiting go park t...
static void mlx5_fw_reporters_destroy(struct mlx5_core_dev *dev) { struct mlx5_core_health *health = &dev->priv.health; if (!IS_ERR_OR_NULL(health->fw_reporter)) devlink_health_reporter_destroy(health->fw_reporter); if (!IS_ERR_OR_NULL(health->fw_fatal_reporter)) devlink_health_reporter_destroy(health->fw_fata...
0
[ "CWE-400", "CWE-401" ]
linux
c7ed6d0183d5ea9bc31bcaeeba4070bd62546471
160,866,729,871,730,140,000,000,000,000,000,000,000
10
net/mlx5: fix memory leak in mlx5_fw_fatal_reporter_dump In mlx5_fw_fatal_reporter_dump if mlx5_crdump_collect fails the allocated memory for cr_data must be released otherwise there will be memory leak. To fix this, this commit changes the return instruction into goto error handling. Fixes: 9b1f29823605 ("net/mlx5: ...
void UnLoadModuleForNetwork(const CString& sLine) { CString sUsername = sLine.Token(1); CString sNetwork = sLine.Token(2); CString sModName = sLine.Token(3); if (sModName.empty()) { PutModule(t_s( "Usage: UnloadNetModule <username> <network> <modulename>"...
0
[ "CWE-20" ]
znc
64613bc8b6b4adf1e32231f9844d99cd512b8973
79,044,875,251,323,360,000,000,000,000,000,000,000
21
Don't crash if user specified invalid encoding. This is CVE-2019-9917
static int myisamchk(MI_CHECK *param, char * filename) { int error,lock_type,recreate; int rep_quick= param->testflag & (T_QUICK | T_FORCE_UNIQUENESS); MI_INFO *info; File datafile; char llbuff[22],llbuff2[22]; my_bool state_updated=0; MYISAM_SHARE *share; DBUG_ENTER("myisamchk"); param->out_flag=err...
0
[ "CWE-362" ]
mysql-server
4e5473862e6852b0f3802b0cd0c6fa10b5253291
36,551,834,092,093,950,000,000,000,000,000,000,000
399
Bug#24388746: PRIVILEGE ESCALATION AND RACE CONDITION USING CREATE TABLE During REPAIR TABLE of a MyISAM table, a temporary data file (.TMD) is created. When repair finishes, this file is renamed to the original .MYD file. The problem was that during this rename, we copied the stats from the old file to the new file w...
static enum uni_interp SFDGetUniInterp(FILE *sfd, char *tok, SplineFont *sf) { int uniinterp = ui_none; int i; geteol(sfd,tok); for ( i=0; unicode_interp_names[i]!=NULL; ++i ) if ( strcmp(tok,unicode_interp_names[i])==0 ) { uniinterp = i; break; } /* These values are now handled by namel...
0
[ "CWE-416" ]
fontforge
048a91e2682c1a8936ae34dbc7bd70291ec05410
232,423,068,468,597,960,000,000,000,000,000,000,000
24
Fix for #4084 Use-after-free (heap) in the SFD_GetFontMetaData() function Fix for #4086 NULL pointer dereference in the SFDGetSpiros() function Fix for #4088 NULL pointer dereference in the SFD_AssignLookups() function Add empty sf->fontname string if it isn't set, fixing #4089 #4090 and many other potential issues (...
DEFUN(followA, GOTO_LINK, "Follow current hyperlink in a new buffer") { Anchor *a; ParsedURL u; #ifdef USE_IMAGE int x = 0, y = 0, map = 0; #endif char *url; if (Currentbuf->firstLine == NULL) return; #ifdef USE_IMAGE a = retrieveCurrentImg(Currentbuf); if (a && a->image && a->image->map)...
0
[ "CWE-59", "CWE-241" ]
w3m
18dcbadf2771cdb0c18509b14e4e73505b242753
227,322,620,762,038,700,000,000,000,000,000,000,000
79
Make temporary directory safely when ~/.w3m is unwritable
static int io_interception(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); u32 io_info = svm->vmcb->control.exit_info_1; /* address size bug? */ int size, in, string; unsigned port; ++vcpu->stat.io_exits; string = (io_info & SVM_IOIO_STR_MASK) != 0; in = (io_info & SVM_IOIO_TYPE_MASK) != 0; port ...
0
[ "CWE-862" ]
kvm
0f923e07124df069ba68d8bb12324398f4b6b709
38,616,204,381,783,650,000,000,000,000,000,000,000
24
KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl (CVE-2021-3653) * Invert the mask of bits that we pick from L2 in nested_vmcb02_prepare_control * Invert and explicitly use VIRQ related bits bitmask in svm_clear_vintr This fixes a security issue that allowed a malicious L1 to run L2 with AVIC enable...
static void armpmu_enable(struct pmu *pmu) { struct arm_pmu *armpmu = to_arm_pmu(pmu); struct pmu_hw_events *hw_events = armpmu->get_hw_events(); int enabled = bitmap_weight(hw_events->used_mask, armpmu->num_events); if (enabled) armpmu->start(); }
0
[ "CWE-284", "CWE-264" ]
linux
8fff105e13041e49b82f92eef034f363a6b1c071
271,474,699,046,996,160,000,000,000,000,000,000,000
9
arm64: perf: reject groups spanning multiple HW PMUs The perf core implicitly rejects events spanning multiple HW PMUs, as in these cases the event->ctx will differ. However this validation is performed after pmu::event_init() is called in perf_init_event(), and thus pmu::event_init() may be called with a group leader...
xsltAttributeComp(xsltStylesheetPtr style, xmlNodePtr inst) { #ifdef XSLT_REFACTORED xsltStyleItemAttributePtr comp; #else xsltStylePreCompPtr comp; #endif /* * <xsl:attribute * name = { qname } * namespace = { uri-reference }> * <!-- Content: template --> * </xsl:attribute> *...
0
[]
libxslt
7ca19df892ca22d9314e95d59ce2abdeff46b617
9,295,890,014,072,343,000,000,000,000,000,000,000
103
Fix for type confusion in preprocessing attributes CVE-2015-7995 http://www.openwall.com/lists/oss-security/2015/10/27/10 We need to check that the parent node is an element before dereferencing its namespace
ring_addr_to_vva(struct virtio_net *dev, struct vhost_virtqueue *vq, uint64_t ra, uint64_t *size) { if (dev->features & (1ULL << VIRTIO_F_IOMMU_PLATFORM)) { uint64_t vva; uint64_t req_size = *size; vva = vhost_user_iotlb_cache_find(vq, ra, size, VHOST_ACCESS_RW); if (req_size != *size) vhost_user_io...
0
[]
dpdk
612e17cf6d7b2bf05a687d8a9ba7be582a744e50
199,773,133,530,375,740,000,000,000,000,000,000,000
18
vhost: fix possible denial of service on SET_VRING_NUM vhost_user_set_vring_num() performs multiple allocations without checking whether data were previously allocated. It may cause a denial of service because of the memory leaks that happen if a malicious vhost-user master keeps sending VHOST_USER_SET_VRING_NUM requ...
rdpRdp* rdp_new(freerdp* instance) { rdpRdp* rdp; rdp = (rdpRdp*) malloc(sizeof(rdpRdp)); if (rdp != NULL) { ZeroMemory(rdp, sizeof(rdpRdp)); rdp->instance = instance; rdp->settings = freerdp_settings_new((void*) instance); if (instance != NULL) instance->settings = rdp->settings; rdp->extension =...
0
[ "CWE-476" ]
FreeRDP
7d58aac24fe20ffaad7bd9b40c9ddf457c1b06e7
68,048,870,305,258,250,000,000,000,000,000,000,000
31
security: add a NULL pointer check to fix a server crash.
t2p_sample_rgbaa_to_rgb(tdata_t data, uint32 samplecount) { uint32 i; for(i = 0; i < samplecount; i++) memcpy((uint8*)data + i * 3, (uint8*)data + i * 4, 3); return(i * 3); }
0
[ "CWE-119" ]
libtiff
b5d6803f0898e931cf772d3d0755704ab8488e63
45,572,869,848,062,310,000,000,000,000,000,000,000
9
* tools/tiff2pdf.c: fix write buffer overflow of 2 bytes on JPEG compressed images. Reported by Tyler Bohan of Cisco Talos as TALOS-CAN-0187 / CVE-2016-5652. Also prevents writing 2 extra uninitialized bytes to the file stream.
//! Load image from a TIFF file \newinstance. static CImg<T> get_load_tiff(const char *const filename, const unsigned int first_frame=0, const unsigned int last_frame=~0U, const unsigned int step_frame=1, float *const voxel_size=0, CImg...
0
[ "CWE-125" ]
CImg
10af1e8c1ad2a58a0a3342a856bae63e8f257abb
26,144,311,631,944,290,000,000,000,000,000,000,000
7
Fix other issues in 'CImg<T>::load_bmp()'.
peer_info ( sockaddr_u *srcadr, endpt *inter, struct req_pkt *inpkt ) { u_short items; size_t item_sz; char * datap; struct info_peer_list ipl; struct peer * pp; struct info_peer * ip; int i; int j; sockaddr_u addr; l_fp ltmp; items = INFO_NITEMS(inpkt->err_nitems); item_sz = INFO_ITEMSIZ...
0
[ "CWE-190" ]
ntp
c04c3d3d940dfe1a53132925c4f51aef017d2e0f
46,070,552,922,853,120,000,000,000,000,000,000,000
137
[TALOS-CAN-0052] crash by loop counter underrun.
static void smtp_server_connection_ready(struct smtp_server_connection *conn) { conn->raw_input = conn->conn.input; conn->raw_output = conn->conn.output; smtp_server_connection_update_rawlog(conn); conn->smtp_parser = smtp_command_parser_init(conn->conn.input, &conn->set.command_limits); o_stream_set_...
0
[ "CWE-77" ]
core
321c339756f9b2b98fb7326359d1333adebb5295
236,734,606,858,173,300,000,000,000,000,000,000,000
27
lib-smtp: smtp-server-connection - Fix STARTTLS command injection vulnerability. The input handler kept reading more commands even though the input was locked by the STARTTLS command, thereby causing it to read the command pipelined beyond STARTTLS. This causes a STARTTLS command injection vulerability.
static int crypt_extent(struct ecryptfs_crypt_stat *crypt_stat, struct page *dst_page, struct page *src_page, unsigned long extent_offset, int op) { pgoff_t page_index = op == ENCRYPT ? src_page->index : dst_page->index; loff_t extent_base; char extent_iv[ECRYPTFS_MAX_IV_BYTES]; struct scatterlist src_sg, ...
0
[ "CWE-703", "CWE-189" ]
linux
942080643bce061c3dd9d5718d3b745dcb39a8bc
277,706,783,960,577,040,000,000,000,000,000,000,000
42
eCryptfs: Remove buggy and unnecessary write in file name decode routine Dmitry Chernenkov used KASAN to discover that eCryptfs writes past the end of the allocated buffer during encrypted filename decoding. This fix corrects the issue by getting rid of the unnecessary 0 write when the current bit offset is 2. Signed...
static int dccp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, struct nf_conntrack_tuple *tuple) { struct dccp_hdr _hdr, *dh; dh = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); if (dh == NULL) return 0; tuple->src.u.dccp.port = dh->dccph_sport; tuple->dst.u.dccp.port = dh->dccph...
0
[]
linux
2bc780499aa33311ec0f3e42624dfaa7be0ade5e
205,136,400,197,068,060,000,000,000,000,000,000,000
13
[NETFILTER]: nf_conntrack: add DCCP protocol support Add DCCP conntrack helper. Thanks to Gerrit Renker <gerrit@erg.abdn.ac.uk> for review and testing. Signed-off-by: Patrick McHardy <kaber@trash.net>
static inline void xhci_dma_write_u32s(XHCIState *xhci, dma_addr_t addr, uint32_t *buf, size_t len) { int i; uint32_t tmp[5]; uint32_t n = len / sizeof(uint32_t); assert((len % sizeof(uint32_t)) == 0); assert(n <= ARRAY_SIZE(tmp)); for (i = 0; i < n; i++)...
0
[ "CWE-835" ]
qemu
96d87bdda3919bb16f754b3d3fd1227e1f38f13c
225,815,799,772,320,030,000,000,000,000,000,000,000
15
xhci: guard xhci_kick_epctx against recursive calls Track xhci_kick_epctx processing being active in a variable. Check the variable before calling xhci_kick_epctx from xhci_kick_ep. Add an assert to make sure we don't call recursively into xhci_kick_epctx. Cc: 1653384@bugs.launchpad.net Fixes: 94b037f2a451b3dc855f9...
static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos, struct pipe_inode_info *pipe, size_t len, unsigned int flags) { int total, ret; int page_nr = 0; struct pipe_buffer *bufs; struct fuse_copy_state cs; struct fuse_dev *fud = fuse_get_dev(in); if (!fud) return -EPERM; bufs = kvm...
0
[ "CWE-416" ]
linux
15fab63e1e57be9fdb5eec1bbc5916e9825e9acb
165,255,574,428,038,140,000,000,000,000,000,000,000
50
fs: prevent page refcount overflow in pipe_buf_get Change pipe_buf_get() to return a bool indicating whether it succeeded in raising the refcount of the page (if the thing in the pipe is a page). This removes another mechanism for overflowing the page refcount. All callers converted to handle a failure. Reported-by:...
set_last_search_pat( char_u *s, int idx, int magic, int setlast) { vim_free(spats[idx].pat); // An empty string means that nothing should be matched. if (*s == NUL) spats[idx].pat = NULL; else spats[idx].pat = vim_strsave(s); spats[idx].magic = magic; spats[idx].no_scs = FAL...
0
[ "CWE-416" ]
vim
409510c588b1eec1ae33511ae97a21eb8e110895
138,986,185,663,197,850,000,000,000,000,000,000,000
41
patch 8.2.5050: using freed memory when searching for pattern in path Problem: Using freed memory when searching for pattern in path. Solution: Make a copy of the line.
auth_etc_enlightenment_sysactions_perm(char *path) { struct stat st; if (stat(path, &st) == -1) return; if ((st.st_mode & S_IWGRP) || (st.st_mode & S_IXGRP) || (st.st_mode & S_IWOTH) || (st.st_mode & S_IXOTH)) { printf("ERROR: CONFIGURATION FILE HAS BAD PERMISSIONS (writable by group ...
0
[]
enlightenment
cc7faeccf77fef8b0ae70e312a21e4cde087e141
166,905,186,911,325,190,000,000,000,000,000,000,000
13
enlightenment_sys - fix security hole CVE-2022-37706 https://github.com/MaherAzzouzi/CVE-2022-37706-LPE-exploit fixes that. @fix
libssh2_session_last_error(LIBSSH2_SESSION * session, char **errmsg, int *errmsg_len, int want_buf) { size_t msglen = 0; /* No error to report */ if(!session->err_code) { if(errmsg) { if(want_buf) { *errmsg = LIBSSH2_ALLOC(session, 1); ...
0
[ "CWE-787" ]
libssh2
dc109a7f518757741590bb993c0c8412928ccec2
83,733,689,081,662,130,000,000,000,000,000,000,000
47
Security fixes (#315) * Bounds checks Fixes for CVEs https://www.libssh2.org/CVE-2019-3863.html https://www.libssh2.org/CVE-2019-3856.html * Packet length bounds check CVE https://www.libssh2.org/CVE-2019-3855.html * Response length check CVE https://www.libssh2.org/CVE-2019-3859.html * Bounds ch...
rb_str_insert(VALUE str, VALUE idx, VALUE str2) { long pos = NUM2LONG(idx); if (pos == -1) { return rb_str_append(str, str2); } else if (pos < 0) { pos++; } rb_str_splice(str, pos, 0, str2); return str; }
0
[ "CWE-119" ]
ruby
1c2ef610358af33f9ded3086aa2d70aac03dcac5
102,397,228,597,069,340,000,000,000,000,000,000,000
13
* string.c (rb_str_justify): CVE-2009-4124. Fixes a bug reported by Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London; Patch by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
bit_read_MS (Bit_Chain *dat) { int i, j; BITCODE_RS word[2]; BITCODE_MS result; result = 0; for (i = 1, j = 0; i > -1; i--, j += 15) { word[i] = bit_read_RS (dat); if (!(word[i] & 0x8000)) { result |= (((BITCODE_MS)word[i]) << j); return (BITCODE_MS)result; ...
0
[ "CWE-703", "CWE-125" ]
libredwg
95cc9300430d35feb05b06a9badf678419463dbe
67,921,133,829,122,310,000,000,000,000,000,000,000
23
encode: protect from stack under-flow From GH #178 fuzzing
static void fill32(uint8_t *dst, int len) { uint32_t v = AV_RN32(dst - 4); while (len >= 4) { AV_WN32(dst, v); dst += 4; len -= 4; } while (len--) { *dst = dst[-4]; dst++; } }
0
[ "CWE-476" ]
FFmpeg
c94f9e854228e0ea00e1de8769d8d3f7cab84a55
280,791,807,896,384,200,000,000,000,000,000,000,000
15
avutil/mem: Fix flipped condition Fixes return code and later null pointer dereference Found-by: Laurent Butti <laurentb@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Mat_WriteEmptyVariable5(mat_t *mat, const char *name, int rank, size_t *dims) { mat_uint32_t array_flags; mat_uint32_t array_name_type = MAT_T_INT8; const mat_uint32_t matrix_type = MAT_T_MATRIX; int array_flags_type = MAT_T_UINT32, dims_array_type = MAT_T_INT32; int array_flags_size = 8, nBytes, i;...
0
[ "CWE-200", "CWE-401" ]
matio
b53b62b756920f4c1509f4ee06427f66c3b5c9c4
276,844,495,772,951,940,000,000,000,000,000,000,000
78
Fix memory leak As reported by https://github.com/tbeu/matio/issues/186
void LibRaw::setSonyBodyFeatures(unsigned long long id) { ushort idx; static const struct { ushort scf[11]; /* scf[0] camera id scf[1] camera format scf[2] camera mount: Minolta A, Sony E, fixed, scf[3] camera type: DSLR, NEX, SLT, ILCE, ILCA, DSC scf[4] lens mount scf[5] tag...
0
[ "CWE-125" ]
LibRaw
c243f4539233053466c1309bde606815351bee81
38,380,566,261,412,413,000,000,000,000,000,000,000
291
additional checks in parseSonySRF parseSonySR2: buffer size check
static int add_attribute(STACK_OF(X509_ATTRIBUTE) **sk, int nid, int atrtype, void *value) { X509_ATTRIBUTE *attr = NULL; if (*sk == NULL) { if (!(*sk = sk_X509_ATTRIBUTE_new_null())) return 0; new_attrib: if (!(attr = X509_ATTRIBUTE_create(nid, atrtype, va...
0
[]
openssl
544e3e3b69d080ee87721bd03c37b4d450384fb9
234,078,023,124,060,560,000,000,000,000,000,000,000
37
PKCS#7: avoid NULL pointer dereferences with missing content In PKCS#7, the ASN.1 content component is optional. This typically applies to inner content (detached signatures), however we must also handle unexpected missing outer content correctly. This patch only addresses functions reachable from parsing, decryption...
BOOL rdp_read_header(rdpRdp* rdp, wStream* s, UINT16* length, UINT16* channelId) { BYTE li; BYTE byte; BYTE code; BYTE choice; UINT16 initiator; enum DomainMCSPDU MCSPDU; enum DomainMCSPDU domainMCSPDU; MCSPDU = (rdp->settings->ServerMode) ? DomainMCSPDU_SendDataRequest : D...
0
[ "CWE-125" ]
FreeRDP
9301bfe730c66180263248b74353daa99f5a969b
254,480,289,237,488,020,000,000,000,000,000,000,000
105
Fixed #6007: Boundary checks in rdp_read_flow_control_pdu
copy_attr (char const *src_path, char const *dst_path) { struct error_context ctx = { .error = copy_attr_error, .quote = copy_attr_quote, .quote_free = copy_attr_free }; return attr_copy_file (src_path, dst_path, copy_attr_check, &ctx); }
0
[ "CWE-22" ]
patch
685a78b6052f4df6eac6d625a545cfb54a6ac0e1
337,176,927,594,091,770,000,000,000,000,000,000,000
10
Do not let a malicious patch create files above current directory This addresses CVE-2010-4651, reported by Jakub Wilk. https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4651 * src/util.c (strip_leading_slashes): Reject absolute file names and file names containing a component of "..". * tests/bad-filenames: New fi...
_copyLockingClause(const LockingClause *from) { LockingClause *newnode = makeNode(LockingClause); COPY_NODE_FIELD(lockedRels); COPY_SCALAR_FIELD(strength); COPY_SCALAR_FIELD(noWait); return newnode; }
0
[ "CWE-362" ]
postgres
5f173040e324f6c2eebb90d86cf1b0cdb5890f0a
224,889,705,836,974,780,000,000,000,000,000,000,000
10
Avoid repeated name lookups during table and index DDL. If the name lookups come to different conclusions due to concurrent activity, we might perform some parts of the DDL on a different table than other parts. At least in the case of CREATE INDEX, this can be used to cause the permissions checks to be performed aga...
static int x509_profile_check_key( const mbedtls_x509_crt_profile *profile, mbedtls_pk_type_t pk_alg, const mbedtls_pk_context *pk ) { #if defined(MBEDTLS_RSA_C) if( pk_alg == MBEDTLS_PK_RSA || pk_alg == MBEDTLS_PK_RSASSA_PSS ) { if( ...
0
[ "CWE-287", "CWE-284" ]
mbedtls
d15795acd5074e0b44e71f7ede8bdfe1b48591fc
311,671,708,432,176,060,000,000,000,000,000,000,000
30
Improve behaviour on fatal errors If we didn't walk the whole chain, then there may be any kind of errors in the part of the chain we didn't check, so setting all flags looks like the safe thing to do.
int app_main( int argc, char** argv ) { g_argc = argc; g_argv = (const char **)argv; TimingHarness::timing[0][TimingHarness::TS_MAIN] = TimingHarness::get_time_us(true); size_t thread_mem_limit = #ifdef HIGH_MEMORY 64 * 1024 * 1024 #else 3 * 1024 * 1024 #endif ;//8192; ...
0
[ "CWE-399", "CWE-190" ]
lepton
6a5ceefac1162783fffd9506a3de39c85c725761
303,429,079,289,156,320,000,000,000,000,000,000,000
156
fix #111
TEST_F(QueryPlannerTest, CannotIntersectSubnodes) { params.options = QueryPlannerParams::NO_TABLE_SCAN | QueryPlannerParams::INDEX_INTERSECTION; addIndex(BSON("a" << 1)); addIndex(BSON("b" << 1)); addIndex(BSON("c" << 1)); addIndex(BSON("d" << 1)); runQuery(fromjson("{$or: [{a: 1}, {b: 1}], $or...
0
[]
mongo
ee97c0699fd55b498310996ee002328e533681a3
96,296,272,792,594,100,000,000,000,000,000,000,000
21
SERVER-36993 Fix crash due to incorrect $or pushdown for indexed $expr.
proto_tree_add_uint64(proto_tree *tree, int hfindex, tvbuff_t *tvb, gint start, gint length, guint64 value) { proto_item *pi = NULL; header_field_info *hfinfo; CHECK_FOR_NULL_TREE(tree); TRY_TO_FAKE_THIS_ITEM(tree, hfindex, hfinfo); switch (hfinfo->type) { case FT_UINT40: case FT_UINT48: case FT...
0
[ "CWE-401" ]
wireshark
a9fc769d7bb4b491efb61c699d57c9f35269d871
138,224,751,603,970,600,000,000,000,000,000,000,000
27
epan: Fix a memory leak. Make sure _proto_tree_add_bits_ret_val allocates a bits array using the packet scope, otherwise we leak memory. Fixes #17032.
gst_rtsp_connection_get_remember_session_id (GstRTSPConnection * conn) { return conn->remember_session_id; }
0
[]
gst-plugins-base
f672277509705c4034bc92a141eefee4524d15aa
324,960,169,221,669,970,000,000,000,000,000,000,000
4
gstrtspconnection: Security loophole making heap overflow The former code allowed an attacker to create a heap overflow by sending a longer than allowed session id in a response and including a semicolon to change the maximum length. With this change, the parser will never go beyond 512 bytes.
GF_Err gf_bin128_parse(const char *string, bin128 value) { u32 len; u32 i=0; if (!strnicmp(string, "0x", 2)) string += 2; len = (u32) strlen(string); if (len >= 32) { u32 j; for (j=0; j<len; j+=2) { u32 v; char szV[5]; while (string[j] && !isalnum(string[j])) j++; if (!string[j]) break; ...
0
[ "CWE-787" ]
gpac
f3698bb1bce62402805c3fda96551a23101a32f9
248,636,733,891,216,680,000,000,000,000,000,000,000
34
fix buffer overrun in gf_bin128_parse closes #1204 closes #1205
static void wdm_out_callback(struct urb *urb) { struct wdm_device *desc; desc = urb->context; spin_lock(&desc->iuspin); desc->werr = urb->status; spin_unlock(&desc->iuspin); kfree(desc->outbuf); desc->outbuf = NULL; clear_bit(WDM_IN_USE, &desc->flags); wake_up(&desc->wait); }
0
[ "CWE-119", "CWE-269" ]
linux
c0f5ecee4e741667b2493c742b60b6218d40b3aa
205,581,529,358,597,370,000,000,000,000,000,000,000
12
USB: cdc-wdm: fix buffer overflow The buffer for responses must not overflow. If this would happen, set a flag, drop the data and return an error after user space has read all remaining data. Signed-off-by: Oliver Neukum <oliver@neukum.org> CC: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundati...
static int ocsp_helper(const X509_PURPOSE *xp, const X509 *x, int ca) { /* Must be a valid CA. Should we really support the "I don't know" value (2)? */ if(ca) return check_ca(x); /* leaf certificate is checked in OCSP_verify() */ return 1; }
0
[]
openssl
c7235be6e36c4bef84594aa3b2f0561db84b63d8
36,948,748,758,762,960,000,000,000,000,000,000,000
8
RFC 3161 compliant time stamp request creation, response generation and response verification. Submitted by: Zoltan Glozik <zglozik@opentsa.org> Reviewed by: Ulf Moeller
static void stateless_send_transport_cb( void *token, pjsip_tx_data *tdata, pj_ssize_t sent ) { pjsip_send_state *stateless_data = (pjsip_send_state*) token; pj_status_t need_update_via = PJ_TRUE; PJ_UNUSED_ARG(tdata); pj_assert(tdata == stateless_data->tdata); for (;;) { pj_status_t ...
0
[ "CWE-297", "CWE-295" ]
pjproject
67e46c1ac45ad784db5b9080f5ed8b133c122872
97,966,484,684,542,390,000,000,000,000,000,000,000
200
Merge pull request from GHSA-8hcp-hm38-mfph * Check hostname during TLS transport selection * revision based on feedback * remove the code in create_request that has been moved
archive_string_append(struct archive_string *as, const char *p, size_t s) { if (archive_string_ensure(as, as->length + s + 1) == NULL) return (NULL); memmove(as->s + as->length, p, s); as->length += s; as->s[as->length] = 0; return (as); }
0
[ "CWE-476" ]
libarchive
42a3408ac7df1e69bea9ea12b72e14f59f7400c0
149,106,374,077,709,900,000,000,000,000,000,000,000
9
archive_strncat_l(): allocate and do not convert if length == 0 This ensures e.g. that archive_mstring_copy_mbs_len_l() does not set aes_set = AES_SET_MBS with aes_mbs.s == NULL. Resolves possible null-pointer dereference reported by OSS-Fuzz. Reported-By: OSS-Fuzz issue 286
static int response_on_begin_frame_callback(nghttp2_session *session, const nghttp2_frame_hd *hd, void *user_data) { int rv; (void)user_data; if (hd->type != NGHTTP2_HEADERS) { return 0; } rv = nghttp2_submit_respons...
0
[]
nghttp2
0a6ce87c22c69438ecbffe52a2859c3a32f1620f
116,278,010,185,062,120,000,000,000,000,000,000,000
17
Add nghttp2_option_set_max_outbound_ack
cJSON *cJSON_CreateArray( void ) { cJSON *item = cJSON_New_Item(); if ( item ) item->type = cJSON_Array; return item; }
1
[ "CWE-120", "CWE-119", "CWE-787" ]
iperf
91f2fa59e8ed80dfbf400add0164ee0e508e412a
166,373,018,923,492,680,000,000,000,000,000,000,000
7
Fix a buffer overflow / heap corruption issue that could occur if a malformed JSON string was passed on the control channel. This issue, present in the cJSON library, was already fixed upstream, so was addressed here in iperf3 by importing a newer version of cJSON (plus local ESnet modifications). Discovered and repo...
Command *_dequeue() override { if (osd->command_queue.empty()) return NULL; Command *c = osd->command_queue.front(); osd->command_queue.pop_front(); return c; }
0
[ "CWE-287", "CWE-284" ]
ceph
5ead97120e07054d80623dada90a5cc764c28468
40,240,568,016,197,940,000,000,000,000,000,000,000
7
auth/cephx: add authorizer challenge Allow the accepting side of a connection to reject an initial authorizer with a random challenge. The connecting side then has to respond with an updated authorizer proving they are able to decrypt the service's challenge and that the new authorizer was produced for this specific ...
gss_wrap( OM_uint32 *minor_status, gss_ctx_id_t context_handle, int conf_req_flag, gss_qop_t qop_req, gss_buffer_t input_message_buffer, int *conf_state, gss_buffer_t output_message_buffer) { /* EXPORT DELETE START */ OM_uint32 status; ...
0
[ "CWE-415" ]
krb5
56f7b1bc95a2a3eeb420e069e7655fb181ade5cf
287,551,829,786,771,340,000,000,000,000,000,000,000
63
Preserve GSS context on init/accept failure After gss_init_sec_context() or gss_accept_sec_context() has created a context, don't delete the mechglue context on failures from subsequent calls, even if the mechanism deletes the mech-specific context (which is allowed by RFC 2744 but not preferred). Check for union con...
static int pcd_reset(struct pcd_unit *cd) { int i, k, flg; int expect[5] = { 1, 1, 1, 0x14, 0xeb }; pi_connect(cd->pi); write_reg(cd, 6, 0xa0 + 0x10 * cd->drive); write_reg(cd, 7, 8); pcd_sleep(20 * HZ / 1000); /* delay a bit */ k = 0; while ((k++ < PCD_RESET_TMO) && (status_reg(cd) & IDE_BUSY)) pcd_sleep(...
0
[ "CWE-476" ]
linux
f0d1762554014ce0ae347b9f0d088f2c157c8c72
12,546,382,446,374,950,000,000,000,000,000,000,000
31
paride/pcd: Fix potential NULL pointer dereference and mem leak Syzkaller report this: pcd: pcd version 1.07, major 46, nice 0 pcd0: Autoprobe failed pcd: No CD-ROM drive found kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] SMP...
gsm_xsmp_server_set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec) { GsmXsmpServer *self; self = GSM_XSMP_SERVER (object); switch (prop_id) { case...
0
[ "CWE-125", "CWE-835" ]
gnome-session
b0dc999e0b45355314616321dbb6cb71e729fc9d
308,268,076,750,719,900,000,000,000,000,000,000,000
18
[gsm] Delay the creation of the GsmXSMPClient until it really exists We used to create the GsmXSMPClient before the XSMP connection is really accepted. This can lead to some issues, though. An example is: https://bugzilla.gnome.org/show_bug.cgi?id=598211#c19. Quoting: "What is happening is that a new client (probabl...
FILE *fopen_cloexec(const char *path, const char *mode) { int open_mode = 0; int step = 0; int fd; int saved_errno = 0; FILE *ret; if (!strncmp(mode, "r+", 2)) { open_mode = O_RDWR; step = 2; } else if (!strncmp(mode, "r", 1)) { open_mode = O_RDONLY; step = 1; } else if (!strncmp(mode, "w+", 2)) { op...
0
[ "CWE-78" ]
lxc
6400238d08cdf1ca20d49bafb85f4e224348bf9d
314,312,267,834,401,350,000,000,000,000,000,000,000
43
CVE-2019-5736 (runC): rexec callers as memfd Adam Iwaniuk and Borys Popławski discovered that an attacker can compromise the runC host binary from inside a privileged runC container. As a result, this could be exploited to gain root access on the host. runC is used as the default runtime for containers with Docker, co...
static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int newf) { struct net *net; int old; if (!rtnl_trylock()) return restart_syscall(); net = (struct net *)table->extra2; old = *p; *p = newf; if (p == &net->ipv6.devconf_dflt->forwarding) { if ((!newf) ^ (!old)) inet6_netconf_notify_d...
0
[]
net
4b08a8f1bd8cb4541c93ec170027b4d0782dab52
230,321,845,621,350,800,000,000,000,000,000,000,000
36
ipv6: remove max_addresses check from ipv6_create_tempaddr Because of the max_addresses check attackers were able to disable privacy extensions on an interface by creating enough autoconfigured addresses: <http://seclists.org/oss-sec/2012/q4/292> But the check is not actually needed: max_addresses protects the kerne...
static void lo_do_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, off_t offset, struct fuse_file_info *fi, int plus) { struct lo_data *lo = lo_data(req); struct lo_dirp *d = NULL; struct lo_inode *dinode; char *buf = NULL; char *p; size_t rem = size; int err = ...
0
[ "CWE-281" ]
qemu
e586edcb410543768ef009eaa22a2d9dd4a53846
182,781,457,438,609,450,000,000,000,000,000,000,000
110
virtiofs: drop remapped security.capability xattr as needed On Linux, the 'security.capability' xattr holds a set of capabilities that can change when an executable is run, giving a limited form of privilege escalation to those programs that the writer of the file deemed worthy. Any write causes the 'security.capabil...
pgp_decipher(sc_card_t *card, const u8 *in, size_t inlen, u8 *out, size_t outlen) { struct pgp_priv_data *priv = DRVDATA(card); sc_security_env_t *env = &priv->sec_env; sc_apdu_t apdu; u8 apdu_case = SC_APDU_CASE_4; u8 *temp = NULL; int r; LOG_FUNC_CALLED(card->ctx); /* padding according to OpenPGP card s...
0
[ "CWE-125" ]
OpenSC
8fe377e93b4b56060e5bbfb6f3142ceaeca744fa
334,725,174,249,771,450,000,000,000,000,000,000,000
64
fixed out of bounds reads Thanks to Eric Sesterhenn from X41 D-SEC GmbH for reporting and suggesting security fixes.
int Field::store_timestamp(my_time_t ts, ulong sec_part) { MYSQL_TIME ltime; THD *thd= get_thd(); timestamp_to_TIME(thd, &ltime, ts, sec_part, 0); return store_time_dec(&ltime, decimals()); }
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
16,439,655,834,672,667,000,000,000,000,000,000,000
7
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
static int io_req_defer(struct io_kiocb *req, const struct io_uring_sqe *sqe) { struct io_ring_ctx *ctx = req->ctx; int ret; /* Still need defer if there is pending req in defer list. */ if (!req_need_defer(req) && list_empty(&ctx->defer_list)) return 0; if (!req->io && io_alloc_async_ctx(req)) return -EAGAI...
0
[]
linux
ff002b30181d30cdfbca316dadd099c3ca0d739c
150,282,693,921,475,570,000,000,000,000,000,000,000
27
io_uring: grab ->fs as part of async preparation This passes it in to io-wq, so it assumes the right fs_struct when executing async work that may need to do lookups. Cc: stable@vger.kernel.org # 5.3+ Signed-off-by: Jens Axboe <axboe@kernel.dk>
void set_chroma_siting_horz(uint64_t chroma_siting_horz) { chroma_siting_horz_ = chroma_siting_horz; }
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
236,913,719,286,140,730,000,000,000,000,000,000,000
3
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
static CURLcode http_setup_conn(struct Curl_easy *data, struct connectdata *conn) { /* allocate the HTTP-specific struct for the Curl_easy, only to survive during this request */ struct HTTP *http; DEBUGASSERT(data->req.p.http == NULL); http = calloc(1, sizeof(struct HTTP))...
0
[]
curl
48d7064a49148f03942380967da739dcde1cdc24
213,879,337,188,678,340,000,000,000,000,000,000,000
33
cookie: apply limits - Send no more than 150 cookies per request - Cap the max length used for a cookie: header to 8K - Cap the max number of received Set-Cookie: headers to 50 Bug: https://curl.se/docs/CVE-2022-32205.html CVE-2022-32205 Reported-by: Harry Sintonen Closes #9048
int proc_setgroups_show(struct seq_file *seq, void *v) { struct user_namespace *ns = seq->private; unsigned long userns_flags = READ_ONCE(ns->flags); seq_printf(seq, "%s\n", (userns_flags & USERNS_SETGROUPS_ALLOWED) ? "allow" : "deny"); return 0; }
0
[ "CWE-20", "CWE-862", "CWE-863" ]
linux
d2f007dbe7e4c9583eea6eb04d60001e85c6f1bd
297,390,977,451,380,050,000,000,000,000,000,000,000
10
userns: also map extents in the reverse map to kernel IDs The current logic first clones the extent array and sorts both copies, then maps the lower IDs of the forward mapping into the lower namespace, but doesn't map the lower IDs of the reverse mapping. This means that code in a nested user namespace with >5 extent...
static bool css_set_populated(struct css_set *cset) { lockdep_assert_held(&css_set_lock); return !list_empty(&cset->tasks) || !list_empty(&cset->mg_tasks); }
0
[ "CWE-416" ]
linux
a06247c6804f1a7c86a2e5398a4c1f1db1471848
233,947,930,267,553,500,000,000,000,000,000,000,000
6
psi: Fix uaf issue when psi trigger is destroyed while being polled With write operation on psi files replacing old trigger with a new one, the lifetime of its waitqueue is totally arbitrary. Overwriting an existing trigger causes its waitqueue to be freed and pending poll() will stumble on trigger->event_wait which w...
s_reset(stack *s) { s->s_top = &s->s_base[MAXSTACK]; }
0
[ "CWE-125" ]
cpython
dcfcd146f8e6fc5c2fc16a4c192a0c5f5ca8c53c
187,767,362,782,865,700,000,000,000,000,000,000,000
4
bpo-35766: Merge typed_ast back into CPython (GH-11645)
void add_pending_object(struct rev_info *revs, struct object *obj, const char *name) { add_pending_object_with_mode(revs, obj, name, S_IFINVALID); }
0
[]
git
a937b37e766479c8e780b17cce9c4b252fd97e40
309,641,459,746,506,230,000,000,000,000,000,000,000
5
revision: quit pruning diff more quickly when possible When the revision traversal machinery is given a pathspec, we must compute the parent-diff for each commit to determine which ones are TREESAME. We set the QUICK diff flag to avoid looking at more entries than we need; we really just care whether there are any cha...
int RGWHandler_REST_S3::postauth_init() { struct req_init_state *t = &s->init_state; bool relaxed_names = s->cct->_conf->rgw_relaxed_s3_bucket_names; rgw_parse_url_bucket(t->url_bucket, s->user->user_id.tenant, s->bucket_tenant, s->bucket_name); dout(10) << "s->object=" << (!s->object.empty() ? s->obj...
0
[ "CWE-79" ]
ceph
fce0b267446d6f3f631bb4680ebc3527bbbea002
49,858,201,576,460,130,000,000,000,000,000,000,000
42
rgw: reject unauthenticated response-header actions Signed-off-by: Matt Benjamin <mbenjamin@redhat.com> Reviewed-by: Casey Bodley <cbodley@redhat.com> (cherry picked from commit d8dd5e513c0c62bbd7d3044d7e2eddcd897bd400)
static void ssd03232_register_types(void) { type_register_static(&ssd0323_info); }
0
[ "CWE-119" ]
qemu
ead7a57df37d2187813a121308213f41591bd811
320,317,912,644,522,100,000,000,000,000,000,000,000
4
ssd0323: fix buffer overun on invalid state load CVE-2013-4538 s->cmd_len used as index in ssd0323_transfer() to store 32-bit field. Possible this field might then be supplied by guest to overwrite a return addr somewhere. Same for row/col fields, which are indicies into framebuffer array. To fix validate after load...
get_gss_name(struct connectdata *conn, bool proxy, gss_name_t *server) { struct negotiatedata *neg_ctx = proxy?&conn->data->state.proxyneg: &conn->data->state.negotiate; OM_uint32 major_status, minor_status; gss_buffer_desc token = GSS_C_EMPTY_BUFFER; char name[2048]; const char* service; /* GSSAPI imp...
0
[ "CWE-284" ]
curl
f78ae415d24b9bd89d6c121c556e411fdb21c6aa
85,885,106,497,022,320,000,000,000,000,000,000,000
37
Don't clear GSSAPI state between each exchange in the negotiation GSSAPI doesn't work very well if we forget everything ever time. XX: Is Curl_http_done() the right place to do the final cleanup?
adjust_partial_year_to_2020(int year) { /* * Adjust all dates toward 2020; this is effectively what happens when we * assume '70' is 1970 and '69' is 2069. */ /* Force 0-69 into the 2000's */ if (year < 70) return year + 2000; /* Force 70-99 into the 1900's */ else if (year < 100) return year + 1900; /*...
0
[ "CWE-120" ]
postgres
0150ab567bcf5e5913e2b62a1678f84cc272441f
28,580,905,014,369,900,000,000,000,000,000,000,000
21
to_char(): prevent accesses beyond the allocated buffer Previously very long field masks for floats could access memory beyond the existing buffer allocated to hold the result. Reported by Andres Freund and Peter Geoghegan. Backpatch to all supported versions. Security: CVE-2015-0241
static_config_buf_prepare_for_upload(struct sja1105_private *priv, void *config_buf, int buf_len) { struct sja1105_static_config *config = &priv->static_config; struct sja1105_table_header final_header; sja1105_config_valid_t valid; char *final_header_ptr; int crc_len; valid = sja1105_static_config_chec...
0
[ "CWE-401" ]
linux
68501df92d116b760777a2cfda314789f926476f
196,827,732,496,370,230,000,000,000,000,000,000,000
32
net: dsa: sja1105: Prevent leaking memory In sja1105_static_config_upload, in two cases memory is leaked: when static_config_buf_prepare_for_upload fails and when sja1105_inhibit_tx fails. In both cases config_buf should be released. Fixes: 8aa9ebccae87 ("net: dsa: Introduce driver for NXP SJA1105 5-port L2 switch") ...
static void decode_register_operand(struct x86_emulate_ctxt *ctxt, struct operand *op) { unsigned reg = ctxt->modrm_reg; if (!(ctxt->d & ModRM)) reg = (ctxt->b & 7) | ((ctxt->rex_prefix & 1) << 3); if (ctxt->d & Sse) { op->type = OP_XMM; op->bytes = 16; op->addr.xmm = reg; read_sse_reg(ctxt, &op-...
0
[]
kvm
d1442d85cc30ea75f7d399474ca738e0bc96f715
140,499,502,384,010,200,000,000,000,000,000,000,000
30
KVM: x86: Handle errors when RIP is set during far jumps Far jmp/call/ret may fault while loading a new RIP. Currently KVM does not handle this case, and may result in failed vm-entry once the assignment is done. The tricky part of doing so is that loading the new CS affects the VMCS/VMCB state, so if we fail during...
__acquires(rq2->lock) { BUG_ON(!irqs_disabled()); if (rq1 == rq2) { raw_spin_lock(&rq1->lock); __acquire(rq2->lock); /* Fake it out ;) */ } else { if (rq1 < rq2) { raw_spin_lock(&rq1->lock); raw_spin_lock_nested(&rq2->lock, SINGLE_DEPTH_NESTING); } else { raw_spin_lock(&rq2->lock); raw_spin_lock...
0
[ "CWE-703", "CWE-835" ]
linux
f26f9aff6aaf67e9a430d16c266f91b13a5bff64
333,513,067,005,687,700,000,000,000,000,000,000,000
16
Sched: fix skip_clock_update optimization idle_balance() drops/retakes rq->lock, leaving the previous task vulnerable to set_tsk_need_resched(). Clear it after we return from balancing instead, and in setup_thread_stack() as well, so no successfully descheduled or never scheduled task has it set. Need resched confus...
static void __update_tracer_options(struct trace_array *tr) { struct tracer *t; for (t = trace_types; t; t = t->next) add_tracer_options(tr, t); }
0
[ "CWE-415" ]
linux
4397f04575c44e1440ec2e49b6302785c95fd2f8
9,516,900,681,912,565,000,000,000,000,000,000,000
7
tracing: Fix possible double free on failure of allocating trace buffer Jing Xia and Chunyan Zhang reported that on failing to allocate part of the tracing buffer, memory is freed, but the pointers that point to them are not initialized back to NULL, and later paths may try to free the freed memory again. Jing and Chu...
my_decimal *Item_func_minus::decimal_op(my_decimal *decimal_value) { my_decimal value1, *val1; my_decimal value2, *val2= val1= args[0]->val_decimal(&value1); if ((null_value= args[0]->null_value)) return 0; val2= args[1]->val_decimal(&value2); if (!(null_value= (args[1]->null_value || ...
0
[ "CWE-120" ]
server
eca207c46293bc72dd8d0d5622153fab4d3fccf1
201,469,823,650,056,030,000,000,000,000,000,000,000
17
MDEV-25317 Assertion `scale <= precision' failed in decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision' failed in decimal_bin_size_inline/decimal_bin_size. Precision should be kept below DECIMAL_MAX_SCALE for computations. It can be bigger in Item_decimal. I'd fix this too but it changes...
static void hpet_reset(DeviceState *d) { HPETState *s = HPET(d); SysBusDevice *sbd = SYS_BUS_DEVICE(d); int i; for (i = 0; i < s->num_timers; i++) { HPETTimer *timer = &s->timer[i]; hpet_del_timer(timer); timer->cmp = ~0ULL; timer->config = HPET_TN_PERIODIC_CAP | HPET_T...
0
[ "CWE-119" ]
qemu
3f1c49e2136fa08ab1ef3183fd55def308829584
14,509,671,247,691,766,000,000,000,000,000,000,000
31
hpet: fix buffer overrun on invalid state load CVE-2013-4527 hw/timer/hpet.c buffer overrun hpet is a VARRAY with a uint8 size but static array of 32 To fix, make sure num_timers is valid using VMSTATE_VALID hook. Reported-by: Anthony Liguori <anthony@codemonkey.ws> Signed-off-by: Michael S. Tsirkin <mst@redhat.com...
font_load_job_new (FT_Library library, const gchar *uri, gint face_index, GAsyncReadyCallback callback, gpointer user_data) { FontLoadJob *job = g_slice_new0 (FontLoadJob); job->library = library; job->face_index = (FT_Long) face_index; ...
0
[ "CWE-476" ]
gnome-font-viewer
9661683379806e2bad6a52ce6dde776a33f4f981
35,632,079,189,229,396,000,000,000,000,000,000,000
14
Fallback to basename when no family name (CVE-2019-19308) Instead of possibly returning an empty string, which will cause issues later on. We store the GFile that was loaded to create the FT_Face into its generic client data structure, and load the basename from it when we don't have a family name. https://gitlab.gn...
static void atl2_init_flash_opcode(struct atl2_hw *hw) { if (hw->flash_vendor >= ARRAY_SIZE(flash_table)) hw->flash_vendor = 0; /* ATMEL */ /* Init OP table */ ATL2_WRITE_REGB(hw, REG_SPI_FLASH_OP_PROGRAM, flash_table[hw->flash_vendor].cmdPROGRAM); ATL2_WRITE_REGB(hw, REG_SPI_FLASH_OP_SC_ERASE, flash_table[h...
0
[ "CWE-200" ]
linux
f43bfaeddc79effbf3d0fcb53ca477cca66f3db8
5,676,159,862,808,532,000,000,000,000,000,000,000
23
atl2: Disable unimplemented scatter/gather feature atl2 includes NETIF_F_SG in hw_features even though it has no support for non-linear skbs. This bug was originally harmless since the driver does not claim to implement checksum offload and that used to be a requirement for SG. Now that SG and checksum offload are i...
TEST_F(RouterTest, RequestResponseSizeWithTrailers) { testRequestResponseSize(true); }
0
[ "CWE-703" ]
envoy
f0bb2219112d8cdb4c4e8b346834f962925362ca
176,756,049,819,314,560,000,000,000,000,000,000,000
1
[1.20] CVE-2022-21655 Crash with direct_response Signed-off-by: Otto van der Schaaf <ovanders@redhat.com>
dissect_rpcap (tvbuff_t *tvb, packet_info *pinfo, proto_tree *top_tree, void* data _U_) { proto_tree *tree; proto_item *ti; tvbuff_t *new_tvb; gint len, offset = 0; guint8 msg_type; guint16 msg_value; col_set_str (pinfo->cinfo, COL_PROTOCOL, PSNAME); col_clear(pinfo->cinfo, COL_INFO); ti = proto_tr...
0
[ "CWE-20" ]
wireshark
2c13e97d656c1c0ac4d76eb9d307664aae0e0cf7
321,650,118,195,583,750,000,000,000,000,000,000,000
88
The WTAP_ENCAP_ETHERNET dissector needs to be passed a struct eth_phdr. We now require that. Make it so. Bug: 12440 Change-Id: Iffee520976b013800699bde3c6092a3e86be0d76 Reviewed-on: https://code.wireshark.org/review/15424 Reviewed-by: Guy Harris <guy@alum.mit.edu>
static OPJ_BOOL opj_j2k_write_mct_data_group(opj_j2k_t *p_j2k, struct opj_stream_private *p_stream, struct opj_event_mgr * p_manager) { OPJ_UINT32 i; opj_simple_mcc_decorrelation_data_t * l_mcc_record; opj_mct_data_t * l_mct_record; opj_tcp_t * l_tcp; /* preconditions */ assert(...
0
[ "CWE-416", "CWE-787" ]
openjpeg
4241ae6fbbf1de9658764a80944dc8108f2b4154
156,504,896,762,377,240,000,000,000,000,000,000,000
47
Fix assertion in debug mode / heap-based buffer overflow in opj_write_bytes_LE for Cinema profiles with numresolutions = 1 (#985)
py::handle get_op_callbacks() const { return GetPyObject(&GetData()->op_callbacks); }
0
[ "CWE-20", "CWE-476", "CWE-908" ]
tensorflow
22e07fb204386768e5bcbea563641ea11f96ceb8
263,598,106,099,344,030,000,000,000,000,000,000,000
3
Fix multiple vulnerabilities in `tf.experimental.dlpack.to_dlpack`. We have a use after free caused by memory coruption, a segmentation fault caused by memory corruption, several memory leaks and an undefined behavior when taking the reference of a nullptr. PiperOrigin-RevId: 332568894 Change-Id: Ife0fc05e103b3532509...
void MonClient::start_mon_command(const std::vector<string>& cmd, const ceph::buffer::list& inbl, ceph::buffer::list *outbl, string *outs, Context *onfinish) { ldout(cct,10) << __func__ << " cmd=" << cmd << dendl; ...
0
[ "CWE-294" ]
ceph
6c14c2fb5650426285428dfe6ca1597e5ea1d07d
107,568,432,247,209,480,000,000,000,000,000,000,000
36
mon/MonClient: bring back CEPHX_V2 authorizer challenges Commit c58c5754dfd2 ("msg/async/ProtocolV1: use AuthServer and AuthClient") introduced a backwards compatibility issue into msgr1. To fix it, commit 321548010578 ("mon/MonClient: skip CEPHX_V2 challenge if client doesn't support it") set out to skip authorizer c...
piv_write_certificate(sc_card_t *card, const u8* buf, size_t count, unsigned long flags) { piv_private_data_t * priv = PIV_DATA(card); int enumtag, tmplen, tmplen2, tmplen3; int r = SC_SUCCESS; u8 *sbuf = NULL; u8 *p; size_t sbuflen; size_t taglen; if ((tmplen = sc_asn1_put_tag(0x70, buf, count, NULL, 0, NULL)...
0
[]
OpenSC
456ac566938a1da774db06126a2fa6c0cba514b3
65,174,632,393,800,880,000,000,000,000,000,000,000
46
PIV Improved parsing of data from the card Based on Fuzz testing, many of the calls to sc_asn1_find_tag were replaced with sc_asn1_read_tag. The input is also tested that the expected tag is the first byte. Additional tests are also add. sc_asn1_find_tag will skip 0X00 or 0Xff if found. NIST sp800-73-x specs do not ...
int vfio_pci_register_dev_region(struct vfio_pci_device *vdev, unsigned int type, unsigned int subtype, const struct vfio_pci_regops *ops, size_t size, u32 flags, void *data) { struct vfio_pci_region *region; region = krealloc(vdev->region, (vdev->num_regions + 1) * sizeof(*region), GFP_KERN...
0
[ "CWE-399", "CWE-190" ]
linux
05692d7005a364add85c6e25a6c4447ce08f913a
272,033,925,271,204,300,000,000,000,000,000,000,000
25
vfio/pci: Fix integer overflows, bitmask check The VFIO_DEVICE_SET_IRQS ioctl did not sufficiently sanitize user-supplied integers, potentially allowing memory corruption. This patch adds appropriate integer overflow checks, checks the range bounds for VFIO_IRQ_SET_DATA_NONE, and also verifies that only single element...
IMkvWriter::~IMkvWriter() {}
0
[ "CWE-20" ]
libvpx
f00890eecdf8365ea125ac16769a83aa6b68792d
276,779,499,219,911,330,000,000,000,000,000,000,000
1
update libwebm to libwebm-1.0.0.27-352-g6ab9fcf https://chromium.googlesource.com/webm/libwebm/+log/af81f26..6ab9fcf Change-Id: I9d56e1fbaba9b96404b4fbabefddc1a85b79c25d
static inline void unpack_coeffs(SnowContext *s, SubBand *b, SubBand * parent, int orientation){ const int w= b->width; const int h= b->height; int x,y; int run, runs; x_and_coeff *xc= b->x_coeff; x_and_coeff *prev_xc= NULL; x_and_coeff *prev2_xc= xc; x_and_coeff *parent_xc= parent ? pa...
0
[ "CWE-703" ]
FFmpeg
61d59703c91869f4e5cdacd8d6be52f8b89d4ba4
225,931,337,481,849,600,000,000,000,000,000,000,000
99
avcodec/snow: split block clipping checks Fixes out of array read Fixes: d4476f68ca1c1c57afbc45806f581963-asan_heap-oob_2266b27_8607_cov_4044577381_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static int send_mpa_reject(struct iwch_ep *ep, const void *pdata, u8 plen) { int mpalen; struct tx_data_wr *req; struct mpa_message *mpa; struct sk_buff *skb; PDBG("%s ep %p plen %d\n", __func__, ep, plen); mpalen = sizeof(*mpa) + plen; skb = get_skb(NULL, mpalen + sizeof(*req), GFP_KERNEL); if (!skb) { pr...
0
[ "CWE-703" ]
linux
67f1aee6f45059fd6b0f5b0ecb2c97ad0451f6b3
301,916,587,722,297,130,000,000,000,000,000,000,000
47
iw_cxgb3: Fix incorrectly returning error on success The cxgb3_*_send() functions return NET_XMIT_ values, which are positive integers values. So don't treat positive return values as an error. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off...
vg_set_config(VuDev *dev, const uint8_t *data, uint32_t offset, uint32_t size, uint32_t flags) { VuGpu *g = container_of(dev, VuGpu, dev.parent); struct virtio_gpu_config *config = (struct virtio_gpu_config *)data; if (config->events_clear) { g->virtio_config.events_read...
0
[]
qemu
86dd8fac2acc366930a5dc08d3fb1b1e816f4e1e
215,349,350,961,729,840,000,000,000,000,000,000,000
13
vhost-user-gpu: fix resource leak in 'vg_resource_create_2d' (CVE-2021-3544) Call 'vugbm_buffer_destroy' in error path to avoid resource leak. Fixes: CVE-2021-3544 Reported-by: Li Qiang <liq3ea@163.com> Reviewed-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Li Qiang <liq3ea@163.com> Reviewed-by: Marc-And...
static void discovering_callback(uint16_t index, uint16_t length, const void *param, void *user_data) { const struct mgmt_ev_discovering *ev = param; struct btd_adapter *adapter = user_data; if (length < sizeof(*ev)) { btd_error(adapter->dev_id, "Too small discovering event"); return; } DBG("hci%u type ...
0
[ "CWE-862", "CWE-863" ]
bluez
b497b5942a8beb8f89ca1c359c54ad67ec843055
24,741,917,404,958,940,000,000,000,000,000,000,000
53
adapter: Fix storing discoverable setting discoverable setting shall only be store when changed via Discoverable property and not when discovery client set it as that be considered temporary just for the lifetime of the discovery.
QUtil::string_to_ll(char const* str) { errno = 0; #ifdef _MSC_VER long long result = _strtoi64(str, 0, 10); #else long long result = strtoll(str, 0, 10); #endif if (errno == ERANGE) { throw std::runtime_error( std::string("overflow/underflow converting ") + str + " to...
0
[ "CWE-125" ]
qpdf
6d46346eb93d5032c08cf1e39023b5d57260a766
156,535,284,392,501,780,000,000,000,000,000,000,000
16
Detect integer overflow/underflow
bool SM_io_parser<Decorator_>::read_edge(SHalfedge_handle e) { // syntax: index { twin, prev, next, source, face, mark, circle } int n, eo, epr, ene, v, f; bool m; Sphere_circle k; if ( !(in >> n) || !check_sep("{") || !(in >> eo) || !check_sep(",") || !(in >> epr) || !check_sep(",") || ...
0
[ "CWE-269" ]
cgal
618b409b0fbcef7cb536a4134ae3a424ef5aae45
123,967,270,570,515,770,000,000,000,000,000,000,000
32
Fix Nef_2 and Nef_S2 IO
ldns_str2rdf_cert_alg(ldns_rdf **rd, const char *str) { ldns_lookup_table *lt; ldns_status st; uint8_t idd[2]; lt = ldns_lookup_by_name(ldns_cert_algorithms, str); st = LDNS_STATUS_OK; if (lt) { ldns_write_uint16(idd, (uint16_t) lt->id); *rd = ldns_rdf_new_frm_data( LDNS_RDF_TYPE_INT16, sizeof(uint16_t), ...
0
[]
ldns
3bdeed02505c9bbacb3b64a97ddcb1de967153b7
40,837,740,053,064,600,000,000,000,000,000,000,000
26
bugfix #1257: Free after reallocing to 0 size Thanks Stephan Zeisberg