prior_version stringlengths 69 33.8k | after_version stringlengths 27 34.8k | vuln_id stringlengths 13 19 | cwe_id stringclasses 137
values | score float64 0 10 | chain stringlengths 78 111 | dataset stringclasses 2
values | summary stringlengths 44 6.88k | published_date stringdate 2009-05-11 00:00:00 2022-08-11 00:00:00 | chain_len int64 1 1 | project stringlengths 26 59 | commit_href stringlengths 74 107 | commit_sha stringlengths 40 40 | patch stringclasses 1
value | chain_ord stringlengths 44 44 | before_first_fix_commit stringlengths 44 88 | last_fix_commit stringlengths 40 40 | chain_ord_pos int64 1 1 | commit_datetime stringlengths 20 20 | message stringlengths 2 8.66k | author stringlengths 2 44 | comments stringclasses 155
values | stats stringclasses 474
values | files listlengths 1 1 | file_extension stringclasses 14
values | cwe stringclasses 25
values | file_paths listlengths 1 1 | file_paths_str stringlengths 4 162 | num_files int64 1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) spin_lock_irqsave(&dgnc_global_lock, flags); ddi.dinfo_nboards = dgnc_NumBoards; sprintf(ddi.dinfo_version, "%s", DG_PART); | long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) spin_lock_irqsave(&dgnc_global_lock, flags); memset(&ddi, 0, sizeof(ddi)); ddi.dinfo_nboards = dgnc_NumBoards; sprintf(ddi.dinfo_version, "%s", DG_PART); | CVE-2015-7885 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/4b6184336ebb5c8dc1eae7f7ab46ee608a748b05'} | nvd | The dgnc_mgmt_ioctl function in drivers/staging/dgnc/dgnc_mgmt.c in the Linux kernel through 4.3.3 does not initialize a certain structure member, which allows local users to obtain sensitive information from kernel memory via a crafted application. | 2015-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4b6184336ebb5c8dc1eae7f7ab46ee608a748b05 | 4b6184336ebb5c8dc1eae7f7ab46ee608a748b05 | SINGLE | ['4b6184336ebb5c8dc1eae7f7ab46ee608a748b05'] | {'561e2967346af25aca786df77a339888574caec2'} | 4b6184336ebb5c8dc1eae7f7ab46ee608a748b05 | 1 | 10/14/2015, 15:48:02 | staging/dgnc: fix info leak in ioctl
The dgnc_mgmt_ioctl() code fails to initialize the 16 _reserved bytes of
struct digi_dinfo after the ->dinfo_nboards member. Add an explicit
memset(0) before filling the structure to avoid the info leak.
Signed-off-by: Salva Peiró <speirofr@gmail.com>
Signed-off-by: Greg Kroah-Har... | Salva Peiró | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -110,6 +110,7 @@ long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)\n \n \t\tspin_lock_irqsave(&dgnc_global_lock, flags);\n \n+\t\tmemset(&ddi, 0, sizeof(ddi));\n \t\tddi.dinfo_nboards = dgnc_NumBoards;\n \t\tspri... | c | CWE-200 | [
"drivers/staging/dgnc/dgnc_mgmt.c"
] | drivers/staging/dgnc/dgnc_mgmt.c | 1 |
lldp_decode(struct lldpd *cfg, char *frame, int s, case LLDP_TLV_MGMT_ADDR: CHECK_TLV_SIZE(1, "Management address"); addr_str_length = PEEK_UINT8; CHECK_TLV_SIZE(1 + addr_str_length, "Management address"); PEEK_BYTES(addr_str_buffer, addr_str_length); addr_length = addr_str_length - 1; lldp_decode(str... | lldp_decode(struct lldpd *cfg, char *frame, int s, case LLDP_TLV_MGMT_ADDR: CHECK_TLV_SIZE(1, "Management address"); addr_str_length = PEEK_UINT8; if (addr_str_length > sizeof(addr_str_buffer)) { log_warnx("lldp", "too large management address on %s", hardware->h_ifname); goto malformed; ... | CVE-2015-8011 | {'CWE-120'} | 6.4 | {'https://github.com/vincentbernat/lldpd/commit/dd4f16e7e816f2165fba76e3d162cd8d2978dcb2'} | nvd | Buffer overflow in the lldp_decode function in daemon/protocols/lldp.c in lldpd before 0.8.0 allows remote attackers to cause a denial of service (daemon crash) and possibly execute arbitrary code via vectors involving large management addresses and TLV boundaries. | 2020-01-28 | 1 | https://github.com/vincentbernat/lldpd | https://github.com/vincentbernat/lldpd/commit/dd4f16e7e816f2165fba76e3d162cd8d2978dcb2 | dd4f16e7e816f2165fba76e3d162cd8d2978dcb2 | SINGLE | ['dd4f16e7e816f2165fba76e3d162cd8d2978dcb2'] | {'3ca100866133aef2d21cdb193ed8d9c39bf56cc0'} | dd4f16e7e816f2165fba76e3d162cd8d2978dcb2 | 1 | 10/03/2015, 23:50:38 | lldp: fix a buffer overflow when handling management address TLV
When a remote device was advertising a too large management address
while still respecting TLV boundaries, lldpd would crash due to a buffer
overflow. However, the buffer being a static one, this buffer overflow
is not exploitable if hardening was not di... | Vincent Bernat | null | {'additions': 7, 'deletions': 2, 'total': 9} | [
{
"additions": 7,
"changes": 9,
"deletions": 2,
"patch": "@@ -726,6 +726,11 @@ lldp_decode(struct lldpd *cfg, char *frame, int s,\n \t\tcase LLDP_TLV_MGMT_ADDR:\n \t\t\tCHECK_TLV_SIZE(1, \"Management address\");\n \t\t\taddr_str_length = PEEK_UINT8;\n+\t\t\tif (addr_str_length > sizeof(addr_str_buff... | c | CWE-120 | [
"src/daemon/protocols/lldp.c"
] | src/daemon/protocols/lldp.c | 1 |
int exfat_mount(struct exfat* ef, const char* spec, const char* options) exfat_error("exFAT file system is not found"); return -EIO; } ef->zero_cluster = malloc(CLUSTER_SIZE(*ef->sb)); if (ef->zero_cluster == NULL) { int exfat_mount(struct exfat* ef, const char* spec, const char* options) free(ef->sb); ret... | int exfat_mount(struct exfat* ef, const char* spec, const char* options) exfat_error("exFAT file system is not found"); return -EIO; } /* sector cannot be smaller than 512 bytes */ if (ef->sb->sector_bits < 9) { exfat_close(ef->dev); exfat_error("too small sector size: 2^%hhd", ef->sb->sector_bits); free... | CVE-2015-8026 | {'CWE-119'} | 6.4 | {'https://github.com/relan/exfat/commit/2e86ae5f81da11f11673d0546efb525af02b7786'} | nvd | Heap-based buffer overflow in the verify_vbr_checksum function in exfatfsck in exfat-utils before 1.2.1 allows remote attackers to cause a denial of service (infinite loop) or possibly execute arbitrary code via a crafted filesystem. | 2017-03-27 | 1 | https://github.com/relan/exfat | https://github.com/relan/exfat/commit/2e86ae5f81da11f11673d0546efb525af02b7786 | 2e86ae5f81da11f11673d0546efb525af02b7786 | SINGLE | ['2e86ae5f81da11f11673d0546efb525af02b7786'] | {'b36d87dd131a58ae2f91deecf7d58cd7d7a76ca1'} | 2e86ae5f81da11f11673d0546efb525af02b7786 | 1 | 09/09/2015, 13:58:44 | Check sector and cluster size before use.
Otherwise malformed FS can cause heap corruption. | relan | null | {'additions': 17, 'deletions': 10, 'total': 27} | [
{
"additions": 17,
"changes": 27,
"deletions": 10,
"patch": "@@ -206,6 +206,23 @@ int exfat_mount(struct exfat* ef, const char* spec, const char* options)\n \t\texfat_error(\"exFAT file system is not found\");\n \t\treturn -EIO;\n \t}\n+\t/* sector cannot be smaller than 512 bytes */\n+\tif (ef->sb-... | c | CWE-119 | [
"libexfat/mount.c"
] | libexfat/mount.c | 1 |
static void init_vmcb(struct vcpu_svm *svm) set_exception_intercept(svm, UD_VECTOR); set_exception_intercept(svm, MC_VECTOR); set_exception_intercept(svm, AC_VECTOR); set_intercept(svm, INTERCEPT_INTR); set_intercept(svm, INTERCEPT_NMI); static void svm_set_segment(struct kvm_vcpu *vcpu, mark_dirty(svm->vmcb, V... | static void init_vmcb(struct vcpu_svm *svm) set_exception_intercept(svm, UD_VECTOR); set_exception_intercept(svm, MC_VECTOR); set_exception_intercept(svm, AC_VECTOR); set_exception_intercept(svm, DB_VECTOR); set_intercept(svm, INTERCEPT_INTR); set_intercept(svm, INTERCEPT_NMI); static void svm_set_segment(struc... | CVE-2015-8104 | {'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/cbdb967af3d54993f5814f1cee0ed311a055377d'} | nvd | The KVM subsystem in the Linux kernel through 4.2.6, and Xen 4.3.x through 4.6.x, allows guest OS users to cause a denial of service (host OS panic or hang) by triggering many #DB (aka Debug) exceptions, related to svm.c. | 2015-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cbdb967af3d54993f5814f1cee0ed311a055377d | cbdb967af3d54993f5814f1cee0ed311a055377d | SINGLE | ['cbdb967af3d54993f5814f1cee0ed311a055377d'] | {'54a20552e1eae07aa240fa370a0293e006b5faed'} | cbdb967af3d54993f5814f1cee0ed311a055377d | 1 | 11/10/2015, 08:14:39 | KVM: svm: unconditionally intercept #DB
This is needed to avoid the possibility that the guest triggers
an infinite stream of #DB exceptions (CVE-2015-8104).
VMX is not affected: because it does not save DR6 in the VMCS,
it already intercepts #DB unconditionally.
Reported-by: Jan Beulich <jbeulich@suse.com>
Cc: stab... | Paolo Bonzini | null | {'additions': 3, 'deletions': 11, 'total': 14} | [
{
"additions": 3,
"changes": 14,
"deletions": 11,
"patch": "@@ -1020,6 +1020,7 @@ static void init_vmcb(struct vcpu_svm *svm)\n \tset_exception_intercept(svm, UD_VECTOR);\n \tset_exception_intercept(svm, MC_VECTOR);\n \tset_exception_intercept(svm, AC_VECTOR);\n+\tset_exception_intercept(svm, DB_VEC... | c | CWE-399 | [
"arch/x86/kvm/svm.c"
] | arch/x86/kvm/svm.c | 1 |
int addrconf_sysctl_forward(struct ctl_table *ctl, int write, return ret; } static void dev_disable_change(struct inet6_dev *idev) { struct netdev_notifier_info info; static struct addrconf_sysctl_table .data = &ipv6_devconf.mtu6, .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec, ... | int addrconf_sysctl_forward(struct ctl_table *ctl, int write, return ret; } static int addrconf_sysctl_mtu(struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) { struct inet6_dev *idev = ctl->extra1; int min_mtu = IPV6_MIN_MTU; struct ctl_table lctl; lctl = *ctl; lctl.extra1 = ... | CVE-2015-8215 | {'CWE-20'} | 2.9 | {'https://github.com/torvalds/linux/commit/77751427a1ff25b27d47a4c36b12c3c8667855ac'} | nvd | net/ipv6/addrconf.c in the IPv6 stack in the Linux kernel before 4.0 does not validate attempted changes to the MTU value, which allows context-dependent attackers to cause a denial of service (packet loss) via a value that is (1) smaller than the minimum compliant value or (2) larger than the MTU of an interface, as d... | 2015-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/77751427a1ff25b27d47a4c36b12c3c8667855ac | 77751427a1ff25b27d47a4c36b12c3c8667855ac | SINGLE | ['77751427a1ff25b27d47a4c36b12c3c8667855ac'] | {'8d4ac39df09c6f8078af60cd0ddd7b2435728e72'} | 77751427a1ff25b27d47a4c36b12c3c8667855ac | 1 | 02/23/2015, 14:17:13 | ipv6: addrconf: validate new MTU before applying it
Currently we don't check if the new MTU is valid or not and this allows
one to configure a smaller than minimum allowed by RFCs or even bigger
than interface own MTU, which is a problem as it may lead to packet
drops.
If you have a daemon like NetworkManager running... | Marcelo Leitner | null | {'additions': 16, 'deletions': 1, 'total': 17} | [
{
"additions": 16,
"changes": 17,
"deletions": 1,
"patch": "@@ -4903,6 +4903,21 @@ int addrconf_sysctl_forward(struct ctl_table *ctl, int write,\n \treturn ret;\n }\n \n+static\n+int addrconf_sysctl_mtu(struct ctl_table *ctl, int write,\n+\t\t\tvoid __user *buffer, size_t *lenp, loff_t *ppos)\n+{\n+... | c | CWE-20 | [
"net/ipv6/addrconf.c"
] | net/ipv6/addrconf.c | 1 |
static int truncate_space_check(struct btrfs_trans_handle *trans, } /* * this can truncate away extent items, csum items and directory items. * It starts at a high offset and removes keys until it can't find int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans, * special encodings */ if (!del... | static int truncate_space_check(struct btrfs_trans_handle *trans, } static int truncate_inline_extent(struct inode *inode, struct btrfs_path *path, struct btrfs_key *found_key, const u64 item_end, const u64 new_size) { struct extent_buffer *leaf = path->nodes[0]; int slot = path->slots[0]; ... | CVE-2015-8374 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/0305cd5f7fca85dae392b9ba85b116896eb7c1c7'} | nvd | fs/btrfs/inode.c in the Linux kernel before 4.3.3 mishandles compressed inline extents, which allows local users to obtain sensitive pre-truncation information from a file via a clone action. | 2015-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/0305cd5f7fca85dae392b9ba85b116896eb7c1c7 | 0305cd5f7fca85dae392b9ba85b116896eb7c1c7 | SINGLE | ['0305cd5f7fca85dae392b9ba85b116896eb7c1c7'] | {'5e6ecb362bd5950a3d8ce19c32829e4f8c7917d9'} | 0305cd5f7fca85dae392b9ba85b116896eb7c1c7 | 1 | 10/16/2015, 11:34:25 | Btrfs: fix truncation of compressed and inlined extents
When truncating a file to a smaller size which consists of an inline
extent that is compressed, we did not discard (or made unusable) the
data between the new file size and the old file size, wasting metadata
space and allowing for the truncated data to be leaked... | Filipe Manana | null | {'additions': 68, 'deletions': 14, 'total': 82} | [
{
"additions": 68,
"changes": 82,
"deletions": 14,
"patch": "@@ -4217,6 +4217,47 @@ static int truncate_space_check(struct btrfs_trans_handle *trans,\n \n }\n \n+static int truncate_inline_extent(struct inode *inode,\n+\t\t\t\t struct btrfs_path *path,\n+\t\t\t\t struct btrfs_key *found_key,\n+\t\... | c | CWE-200 | [
"fs/btrfs/inode.c"
] | fs/btrfs/inode.c | 1 |
static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr, struct pptp_opt *opt = &po->proto.pptp; int error = 0; lock_sock(sk); opt->src_addr = sp->sa_addr.pptp; static int pptp_connect(struct socket *sock, struct sockaddr *uservaddr, struct flowi4 fl4; int error = 0; if (sp->sa_protocol != PX_PR... | static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr, struct pptp_opt *opt = &po->proto.pptp; int error = 0; if (sockaddr_len < sizeof(struct sockaddr_pppox)) return -EINVAL; lock_sock(sk); opt->src_addr = sp->sa_addr.pptp; static int pptp_connect(struct socket *sock, struct sockaddr *uservad... | CVE-2015-8569 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/09ccfd238e5a0e670d8178cf50180ea81ae09ae1'} | nvd | The (1) pptp_bind and (2) pptp_connect functions in drivers/net/ppp/pptp.c in the Linux kernel through 4.3.3 do not verify an address length, which allows local users to obtain sensitive information from kernel memory and bypass the KASLR protection mechanism via a crafted application. | 2015-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/09ccfd238e5a0e670d8178cf50180ea81ae09ae1 | 09ccfd238e5a0e670d8178cf50180ea81ae09ae1 | SINGLE | ['09ccfd238e5a0e670d8178cf50180ea81ae09ae1'] | {'54499969c94362d4bd28ff2999ffdf0b6f359586'} | 09ccfd238e5a0e670d8178cf50180ea81ae09ae1 | 1 | 12/14/2015, 21:48:36 | pptp: verify sockaddr_len in pptp_bind() and pptp_connect()
Reported-by: Dmitry Vyukov <dvyukov@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net> | WANG Cong | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -419,6 +419,9 @@ static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr,\n \tstruct pptp_opt *opt = &po->proto.pptp;\n \tint error = 0;\n \n+\tif (sockaddr_len < sizeof(struct sockaddr_pppox))\n+\t\treturn -EINVAL;\n+\n \tloc... | c | CWE-200 | [
"drivers/net/ppp/pptp.c"
] | drivers/net/ppp/pptp.c | 1 |
static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, if (!addr || addr->sa_family != AF_BLUETOOTH) return -EINVAL; lock_sock(sk); if (sk->sk_state != BT_OPEN) { | static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, if (!addr || addr->sa_family != AF_BLUETOOTH) return -EINVAL; if (addr_len < sizeof(struct sockaddr_sco)) return -EINVAL; lock_sock(sk); if (sk->sk_state != BT_OPEN) { | CVE-2015-8575 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/5233252fce714053f0151680933571a2da9cbfb4'} | nvd | The sco_sock_bind function in net/bluetooth/sco.c in the Linux kernel before 4.3.4 does not verify an address length, which allows local users to obtain sensitive information from kernel memory and bypass the KASLR protection mechanism via a crafted application. | 2016-02-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5233252fce714053f0151680933571a2da9cbfb4 | 5233252fce714053f0151680933571a2da9cbfb4 | SINGLE | ['5233252fce714053f0151680933571a2da9cbfb4'] | {'225734de70cd0a9e0b978f3583a4a87939271d5e'} | 5233252fce714053f0151680933571a2da9cbfb4 | 1 | 12/15/2015, 20:39:08 | bluetooth: Validate socket address length in sco_sock_bind().
Signed-off-by: David S. Miller <davem@davemloft.net> | David S. Miller | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -526,6 +526,9 @@ static int sco_sock_bind(struct socket *sock, struct sockaddr *addr,\n \tif (!addr || addr->sa_family != AF_BLUETOOTH)\n \t\treturn -EINVAL;\n \n+\tif (addr_len < sizeof(struct sockaddr_sco))\n+\t\treturn -EINVAL;\n+\n \tl... | c | CWE-200 | [
"net/bluetooth/sco.c"
] | net/bluetooth/sco.c | 1 |
bool_t xdr_nullstring(XDR *xdrs, char **objp) return FALSE; } } return (xdr_opaque(xdrs, *objp, size)); case XDR_ENCODE: if (size != 0) | bool_t xdr_nullstring(XDR *xdrs, char **objp) return FALSE; } } if (!xdr_opaque(xdrs, *objp, size)) return FALSE; /* Check that the unmarshalled bytes are a C string. */ if ((*objp)[size - 1] != '\0') return FALSE; if (memchr(*objp, '\0', size - 1) != NULL) return FALSE; ret... | CVE-2015-8629 | {'CWE-125'} | 2.9 | {'https://github.com/krb5/krb5/commit/df17a1224a3406f57477bcd372c61e04c0e5a5bb'} | nvd | The xdr_nullstring function in lib/kadm5/kadm_rpc_xdr.c in kadmind in MIT Kerberos 5 (aka krb5) before 1.13.4 and 1.14.x before 1.14.1 does not verify whether '\0' characters exist as expected, which allows remote authenticated users to obtain sensitive information or cause a denial of service (out-of-bounds read) via ... | 2016-02-13 | 1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/df17a1224a3406f57477bcd372c61e04c0e5a5bb | df17a1224a3406f57477bcd372c61e04c0e5a5bb | SINGLE | ['df17a1224a3406f57477bcd372c61e04c0e5a5bb'] | {'c546a30c7c9299a419f757768a3349bde09c9cd4'} | df17a1224a3406f57477bcd372c61e04c0e5a5bb | 1 | 01/08/2016, 17:45:25 | Verify decoded kadmin C strings [CVE-2015-8629]
In xdr_nullstring(), check that the decoded string is terminated with
a zero byte and does not contain any internal zero bytes.
CVE-2015-8629:
In all versions of MIT krb5, an authenticated attacker can cause
kadmind to read beyond the end of allocated memory by sending... | Greg Hudson | null | {'additions': 8, 'deletions': 1, 'total': 9} | [
{
"additions": 8,
"changes": 9,
"deletions": 1,
"patch": "@@ -64,7 +64,14 @@ bool_t xdr_nullstring(XDR *xdrs, char **objp)\n \t\t return FALSE;\n \t }\n \t }\n-\t return (xdr_opaque(xdrs, *objp, size));\n+\t if (!xdr_opaque(xdrs, *objp, size))\n+\t\t return FALSE;\n+\t /* Check that th... | c | CWE-125 | [
"src/lib/kadm5/kadm_rpc_xdr.c"
] | src/lib/kadm5/kadm_rpc_xdr.c | 1 |
int ovl_setattr(struct dentry *dentry, struct iattr *attr) if (err) goto out; upperdentry = ovl_dentry_upper(dentry); if (upperdentry) { mutex_lock(&upperdentry->d_inode->i_mutex); err = notify_change(upperdentry, attr, NULL); mutex_unlock(&upperdentry->d_inode->i_mutex); } else { err = ovl_copy_up_last... | int ovl_setattr(struct dentry *dentry, struct iattr *attr) if (err) goto out; err = ovl_copy_up(dentry); if (!err) { upperdentry = ovl_dentry_upper(dentry); mutex_lock(&upperdentry->d_inode->i_mutex); err = notify_change(upperdentry, attr, NULL); mutex_unlock(&upperdentry->d_inode->i_mutex); } ovl_dro... | CVE-2015-8660 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/acff81ec2c79492b180fade3c2894425cd35a545'} | nvd | The ovl_setattr function in fs/overlayfs/inode.c in the Linux kernel through 4.3.3 attempts to merge distinct setattr operations, which allows local users to bypass intended access restrictions and modify the attributes of arbitrary overlay files via a crafted application. | 2015-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/acff81ec2c79492b180fade3c2894425cd35a545 | acff81ec2c79492b180fade3c2894425cd35a545 | SINGLE | ['acff81ec2c79492b180fade3c2894425cd35a545'] | {'31ade3b83e1821da5fbb2f11b5b3d4ab2ec39db8'} | acff81ec2c79492b180fade3c2894425cd35a545 | 1 | 12/04/2015, 18:18:48 | ovl: fix permission checking for setattr
[Al Viro] The bug is in being too enthusiastic about optimizing ->setattr()
away - instead of "copy verbatim with metadata" + "chmod/chown/utimes"
(with the former being always safe and the latter failing in case of
insufficient permissions) it tries to combine these two. Note... | Miklos Szeredi | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -49,13 +49,13 @@ int ovl_setattr(struct dentry *dentry, struct iattr *attr)\n \tif (err)\n \t\tgoto out;\n \n-\tupperdentry = ovl_dentry_upper(dentry);\n-\tif (upperdentry) {\n+\terr = ovl_copy_up(dentry);\n+\tif (!err) {\n+\t\tupperdentry... | c | CWE-264 | [
"fs/overlayfs/inode.c"
] | fs/overlayfs/inode.c | 1 |
<?php /* Copyright (C) 2000-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org> * Copyright (C) 2004... | <?php /* Copyright (C) 2000-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org> * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressourc... | CVE-2015-8685 | {'CWE-79'} | 2.9 | {'https://github.com/GPCsolutions/dolibarr/commit/0d3181324c816bdf664ca5e1548dfe8eb05c54f8'} | nvd | Multiple cross-site scripting (XSS) vulnerabilities in Dolibarr ERP/CRM 3.8.3 and earlier allow remote attackers to inject arbitrary web script or HTML via the (1) external calendar url or (2) the bank name field in the "import external calendar" page. | 2016-01-15 | 1 | https://github.com/GPCsolutions/dolibarr | https://github.com/GPCsolutions/dolibarr/commit/0d3181324c816bdf664ca5e1548dfe8eb05c54f8 | 0d3181324c816bdf664ca5e1548dfe8eb05c54f8 | SINGLE | ['0d3181324c816bdf664ca5e1548dfe8eb05c54f8'] | {'0cad938e095358a08848e033accc6aab133daf01'} | 0d3181324c816bdf664ca5e1548dfe8eb05c54f8 | 1 | 01/08/2016, 05:09:15 | FIX #2857, #4291 & #4341 Escape GETPOST alpha data by default
This should mitigate most HTML injections allowing XSS. | Raphaël Doursenaud | {'com_1': {'author': 'eldy', 'datetime': '01/08/2016, 13:28:36', 'body': "This break a lot of thing.\nIf you want to submit a last name like\nmaison de l'ile\nit would fails.\n\nIf goal is to fix #4341, i provide another fix that does not introduce this regression."}} | {'additions': 16, 'deletions': 15, 'total': 31} | [
{
"additions": 16,
"changes": 31,
"deletions": 15,
"patch": "@@ -1,16 +1,17 @@\n <?php\n-/* Copyright (C) 2000-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>\n- * Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>\n- * Copyright (C) 2004-2013 Laurent Destailleur <eldy@users.sourceforg... | php | CWE-79 | [
"htdocs/core/lib/functions.lib.php"
] | htdocs/core/lib/functions.lib.php | 1 |
DNSResult DNS::GetResult() /* Identical handling to PTR */ case DNS_QUERY_PTR: /* Reverse lookups just come back as char* */ resultstr = std::string((const char*)data.first); break; default: | DNSResult DNS::GetResult() /* Identical handling to PTR */ case DNS_QUERY_PTR: { /* Reverse lookups just come back as char* */ resultstr = std::string((const char*)data.first); if (resultstr.find_first_not_of("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-") != std::string::npo... | CVE-2015-8702 | {'CWE-20'} | 6.9 | {'https://github.com/inspircd/inspircd/commit/6058483d9fbc1b904d5ae7cfea47bfcde5c5b559'} | nvd | The DNS::GetResult function in dns.cpp in InspIRCd before 2.0.19 allows remote DNS servers to cause a denial of service (netsplit) via an invalid character in a PTR response, as demonstrated by a "\032" (whitespace) character in a hostname. | 2016-04-12 | 1 | https://github.com/inspircd/inspircd | https://github.com/inspircd/inspircd/commit/6058483d9fbc1b904d5ae7cfea47bfcde5c5b559 | 6058483d9fbc1b904d5ae7cfea47bfcde5c5b559 | SINGLE | ['6058483d9fbc1b904d5ae7cfea47bfcde5c5b559'] | {'4dd7fb60a8e46856cb2df3fcda56b9b119072552'} | 6058483d9fbc1b904d5ae7cfea47bfcde5c5b559 | 1 | 04/16/2015, 16:04:03 | Reject replies to DNS PTR requests that contain invalid characters
Fixes issue #1033 reported by @ping86 | Attila Molnar | null | {'additions': 8, 'deletions': 0, 'total': 8} | [
{
"additions": 8,
"changes": 8,
"deletions": 0,
"patch": "@@ -700,8 +700,16 @@ DNSResult DNS::GetResult()\n \t\t\t\t/* Identical handling to PTR */\n \n \t\t\tcase DNS_QUERY_PTR:\n+\t\t\t{\n \t\t\t\t/* Reverse lookups just come back as char* */\n \t\t\t\tresultstr = std::string((const char*)data.fir... | cpp | CWE-20 | [
"src/dns.cpp"
] | src/dns.cpp | 1 |
public function action() Symphony::ExtensionManager()->notifyMembers('CustomActions', '/system/preferences/'); if (isset($_POST['action']['save'])) { $settings = $_POST['settings']; /** * Just prior to saving the preferences and writing them to the `CONFIG` public... | public function action() Symphony::ExtensionManager()->notifyMembers('CustomActions', '/system/preferences/'); if (isset($_POST['action']['save'])) { $settings = filter_var_array($_POST['settings'], FILTER_SANITIZE_STRING); /** * Just prior to saving the preferenc... | CVE-2015-8766 | {'CWE-79'} | 2.9 | {'https://github.com/symphonycms/symphony-2/commit/651e150091c61fb60ad1dff2bc2166185a83d9d6'} | nvd | Multiple cross-site scripting (XSS) vulnerabilities in content/content.systempreferences.php in Symphony CMS before 2.6.4 allow remote attackers to inject arbitrary web script or HTML via the (1) email_sendmail[from_name], (2) email_sendmail[from_address], (3) email_smtp[from_name], (4) email_smtp[from_address], (5) em... | 2016-01-08 | 1 | https://github.com/symphonycms/symphony-2 | https://github.com/symphonycms/symphony-2/commit/651e150091c61fb60ad1dff2bc2166185a83d9d6 | 651e150091c61fb60ad1dff2bc2166185a83d9d6 | SINGLE | ['651e150091c61fb60ad1dff2bc2166185a83d9d6'] | {'16dc3b8f9eeddb2057de639aabc10e4bb74c5d9f'} | 651e150091c61fb60ad1dff2bc2166185a83d9d6 | 1 | 11/05/2015, 12:55:45 | Sanitize the POST for the system/preferences/ | Brendan Abbott | null | {'additions': 5, 'deletions': 2, 'total': 7} | [
{
"additions": 5,
"changes": 7,
"deletions": 2,
"patch": "@@ -196,7 +196,7 @@ public function action()\n Symphony::ExtensionManager()->notifyMembers('CustomActions', '/system/preferences/');\n \n if (isset($_POST['action']['save'])) {\n- $settings = $_POST['settings'];\n+ ... | php | CWE-79 | [
"symphony/content/content.systempreferences.php"
] | symphony/content/content.systempreferences.php | 1 |
void sctp_generate_t3_rtx_event(unsigned long peer) int error; struct sctp_transport *transport = (struct sctp_transport *) peer; struct sctp_association *asoc = transport->asoc; struct net *net = sock_net(asoc->base.sk); /* Check whether a task is in the sock. */ bh_lock_sock(asoc->base.sk); if (sock_owned_... | void sctp_generate_t3_rtx_event(unsigned long peer) int error; struct sctp_transport *transport = (struct sctp_transport *) peer; struct sctp_association *asoc = transport->asoc; struct sock *sk = asoc->base.sk; struct net *net = sock_net(sk); /* Check whether a task is in the sock. */ bh_lock_sock(sk); if ... | CVE-2015-8767 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/635682a14427d241bab7bbdeebb48a7d7b91638e'} | nvd | net/sctp/sm_sideeffect.c in the Linux kernel before 4.3 does not properly manage the relationship between a lock and a socket, which allows local users to cause a denial of service (deadlock) via a crafted sctp_accept call. | 2016-02-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/635682a14427d241bab7bbdeebb48a7d7b91638e | 635682a14427d241bab7bbdeebb48a7d7b91638e | SINGLE | ['635682a14427d241bab7bbdeebb48a7d7b91638e'] | {'f05940e61845951517eda02a28ccc091888aaab9'} | 635682a14427d241bab7bbdeebb48a7d7b91638e | 1 | 09/24/2015, 16:15:07 | sctp: Prevent soft lockup when sctp_accept() is called during a timeout event
A case can occur when sctp_accept() is called by the user during
a heartbeat timeout event after the 4-way handshake. Since
sctp_assoc_migrate() changes both assoc->base.sk and assoc->ep, the
bh_sock_lock in sctp_generate_heartbeat_event() ... | Karl Heiss | null | {'additions': 23, 'deletions': 19, 'total': 42} | [
{
"additions": 23,
"changes": 42,
"deletions": 19,
"patch": "@@ -244,12 +244,13 @@ void sctp_generate_t3_rtx_event(unsigned long peer)\n \tint error;\n \tstruct sctp_transport *transport = (struct sctp_transport *) peer;\n \tstruct sctp_association *asoc = transport->asoc;\n-\tstruct net *net = sock... | c | CWE-362 | [
"net/sctp/sm_sideeffect.c"
] | net/sctp/sm_sideeffect.c | 1 |
nf_nat_redirect_ipv4(struct sk_buff *skb, rcu_read_lock(); indev = __in_dev_get_rcu(skb->dev); if (indev != NULL) { ifa = indev->ifa_list; newdst = ifa->ifa_local; } | nf_nat_redirect_ipv4(struct sk_buff *skb, rcu_read_lock(); indev = __in_dev_get_rcu(skb->dev); if (indev && indev->ifa_list) { ifa = indev->ifa_list; newdst = ifa->ifa_local; } | CVE-2015-8787 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/94f9cd81436c85d8c3a318ba92e236ede73752fc'} | nvd | The nf_nat_redirect_ipv4 function in net/netfilter/nf_nat_redirect.c in the Linux kernel before 4.4 allows remote attackers to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by sending certain IPv4 packets to an incompletely configured interface, a relate... | 2016-02-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/94f9cd81436c85d8c3a318ba92e236ede73752fc | 94f9cd81436c85d8c3a318ba92e236ede73752fc | SINGLE | ['94f9cd81436c85d8c3a318ba92e236ede73752fc'] | {'45efccdbec3cd465c4776ed9ca1d7b1bba1b7e34'} | 94f9cd81436c85d8c3a318ba92e236ede73752fc | 1 | 10/27/2015, 02:10:52 | netfilter: nf_nat_redirect: add missing NULL pointer check
Commit 8b13eddfdf04cbfa561725cfc42d6868fe896f56 ("netfilter: refactor NAT
redirect IPv4 to use it from nf_tables") has introduced a trivial logic
change which can result in the following crash.
BUG: unable to handle kernel NULL pointer dereference at 00000000... | Munehisa Kamata | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -55,7 +55,7 @@ nf_nat_redirect_ipv4(struct sk_buff *skb,\n \n \t\trcu_read_lock();\n \t\tindev = __in_dev_get_rcu(skb->dev);\n-\t\tif (indev != NULL) {\n+\t\tif (indev && indev->ifa_list) {\n \t\t\tifa = indev->ifa_list;\n \t\t\tnewdst = i... | c | CWE-476 | [
"net/netfilter/nf_nat_redirect.c"
] | net/netfilter/nf_nat_redirect.c | 1 |
protected function _renderVarInput_number($form, &$var, &$vars) return sprintf('<input type="text" size="5" name="%s" id="%s" value="%s"%s />', htmlspecialchars($var->getVarName()), $this->_genID($var->getVarName(), false), $value, ... | protected function _renderVarInput_number($form, &$var, &$vars) return sprintf('<input type="text" size="5" name="%s" id="%s" value="%s"%s />', htmlspecialchars($var->getVarName()), $this->_genID($var->getVarName(), false), htmlspecialchars($... | CVE-2015-8807 | {'CWE-79'} | 2.9 | {'https://github.com/horde/horde/commit/11d74fa5a22fe626c5e5a010b703cd46a136f253'} | nvd | Cross-site scripting (XSS) vulnerability in the _renderVarInput_number function in horde/framework/Core/lib/Horde/Core/Ui/VarRenderer/Html.php in Horde Groupware before 5.2.12 and Horde Groupware Webmail Edition before 5.2.12 allows remote attackers to inject arbitrary web script or HTML via vectors involving numeric f... | 2016-04-13 | 1 | https://github.com/horde/horde | https://github.com/horde/horde/commit/11d74fa5a22fe626c5e5a010b703cd46a136f253 | 11d74fa5a22fe626c5e5a010b703cd46a136f253 | SINGLE | ['11d74fa5a22fe626c5e5a010b703cd46a136f253'] | {'8ecffa133da6b621367f95f249ea486a54199741'} | 11d74fa5a22fe626c5e5a010b703cd46a136f253 | 1 | 12/14/2015, 14:27:09 | Escape form value.
Even though this is a numeric field, this isn't enforced until
the form is submitted. | Michael J Rubinsky | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -48,7 +48,7 @@ protected function _renderVarInput_number($form, &$var, &$vars)\n return sprintf('<input type=\"text\" size=\"5\" name=\"%s\" id=\"%s\" value=\"%s\"%s />',\n htmlspecialchars($var->getVarName()... | php | CWE-79 | [
"framework/Core/lib/Horde/Core/Ui/VarRenderer/Html.php"
] | framework/Core/lib/Horde/Core/Ui/VarRenderer/Html.php | 1 |
static pfunc stream_token(struct jv_parser* p, char ch) { static void tokenadd(struct jv_parser* p, char c) { assert(p->tokenpos <= p->tokenlen); if (p->tokenpos == p->tokenlen) { p->tokenlen = p->tokenlen*2 + 256; p->tokenbuf = jv_mem_realloc(p->tokenbuf, p->tokenlen); } static pfunc check_literal(stru... | static pfunc stream_token(struct jv_parser* p, char ch) { static void tokenadd(struct jv_parser* p, char c) { assert(p->tokenpos <= p->tokenlen); if (p->tokenpos >= (p->tokenlen - 1)) { p->tokenlen = p->tokenlen*2 + 256; p->tokenbuf = jv_mem_realloc(p->tokenbuf, p->tokenlen); } static pfunc check_litera... | CVE-2015-8863 | {'CWE-119'} | 10 | {'https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd'} | nvd | Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (crash) via a long JSON-encoded number, which triggers a heap-based buffer overflow. | 2016-05-06 | 1 | https://github.com/stedolan/jq | https://github.com/stedolan/jq/commit/8eb1367ca44e772963e704a700ef72ae2e12babd | 8eb1367ca44e772963e704a700ef72ae2e12babd | SINGLE | ['8eb1367ca44e772963e704a700ef72ae2e12babd'] | {'2f79004f856532c479b79e226798a3dcc0a127f0'} | 8eb1367ca44e772963e704a700ef72ae2e12babd | 1 | 10/24/2015, 22:24:57 | Heap buffer overflow in tokenadd() (fix #105)
This was an off-by one: the NUL terminator byte was not allocated on
resize. This was triggered by JSON-encoded numbers longer than 256
bytes. | Nicolas Williams | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -383,7 +383,7 @@ static pfunc stream_token(struct jv_parser* p, char ch) {\n \n static void tokenadd(struct jv_parser* p, char c) {\n assert(p->tokenpos <= p->tokenlen);\n- if (p->tokenpos == p->tokenlen) {\n+ if (p->tokenpos >= (p->to... | c | CWE-119 | [
"src/jv_parse.c"
] | src/jv_parse.c | 1 |
#include "file.h" #ifndef lint FILE_RCSID("@(#)$File: funcs.c,v 1.80 2015/01/02 21:29:39 christos Exp $") #endif /* lint */ #include "magic.h" file_check_mem(struct magic_set *ms, unsigned int level) size_t len; if (level >= ms->c.len) { len = (ms->c.len += 20) * sizeof(*ms->c.li); ms->c.li = CAST(struct leve... | #include "file.h" #ifndef lint FILE_RCSID("@(#)$File: funcs.c,v 1.81 2015/05/28 19:26:59 christos Exp $") #endif /* lint */ #include "magic.h" file_check_mem(struct magic_set *ms, unsigned int level) size_t len; if (level >= ms->c.len) { len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); ms->c.li = CAST(stru... | CVE-2015-8865 | {'CWE-119'} | 6.4 | {'https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36'} | nvd | The file_check_mem function in funcs.c in file before 5.23, as used in the Fileinfo component in PHP before 5.5.34, 5.6.x before 5.6.20, and 7.x before 7.0.5, mishandles continuation-level jumps, which allows context-dependent attackers to cause a denial of service (buffer overflow and application crash) or possibly ex... | 2016-05-20 | 1 | https://github.com/file/file | https://github.com/file/file/commit/6713ca45e7757297381f4b4cdb9cf5e624a9ad36 | 6713ca45e7757297381f4b4cdb9cf5e624a9ad36 | SINGLE | ['6713ca45e7757297381f4b4cdb9cf5e624a9ad36'] | {'b6e84378a2836acde91e9181a99ea90d044c90af'} | 6713ca45e7757297381f4b4cdb9cf5e624a9ad36 | 1 | 06/03/2015, 18:01:20 | PR/454: Fix memory corruption when the continuation level jumps by more than
20 in a single step. | Christos Zoulas | {'com_1': {'author': 'fgeek', 'datetime': '04/25/2016, 06:12:23', 'body': 'CVE request in oss-security mailing list can be seen in http://www.openwall.com/lists/oss-security/2016/04/11/7 (url here for cross-reference).'}, 'com_2': {'author': 'glensc', 'datetime': '04/25/2016, 08:31:35', 'body': 'please re-post that to ... | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -27,7 +27,7 @@\n #include \"file.h\"\n \n #ifndef\tlint\n-FILE_RCSID(\"@(#)$File: funcs.c,v 1.80 2015/01/02 21:29:39 christos Exp $\")\n+FILE_RCSID(\"@(#)$File: funcs.c,v 1.81 2015/05/28 19:26:59 christos Exp $\")\n #endif\t/* lint */\n \n... | c | CWE-119 | [
"src/funcs.c"
] | src/funcs.c | 1 |
static OPJ_BOOL opj_j2k_write_mco( opj_j2k_t *p_j2k, assert(p_stream != 00); l_tcp =&(p_j2k->m_cp.tcps[p_j2k->m_current_tile_number]); l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; l_mco_size = 5 + l_tcp->m_nb_mcc_records; if (l_mco_size > p_j2k->m... | static OPJ_BOOL opj_j2k_write_mco( opj_j2k_t *p_j2k, assert(p_stream != 00); l_tcp =&(p_j2k->m_cp.tcps[p_j2k->m_current_tile_number]); l_mco_size = 5 + l_tcp->m_nb_mcc_records; if (l_mco_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { static OPJ_BOOL opj_j2k_... | CVE-2015-8871 | {'CWE-416'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/940100c28ae28931722290794889cf84a92c5f6f'} | nvd | Use-after-free vulnerability in the opj_j2k_write_mco function in j2k.c in OpenJPEG before 2.1.1 allows remote attackers to have unspecified impact via unknown vectors. | 2016-09-21 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/940100c28ae28931722290794889cf84a92c5f6f | 940100c28ae28931722290794889cf84a92c5f6f | SINGLE | ['940100c28ae28931722290794889cf84a92c5f6f'] | {'c31fb68ccc0e53d70b21fd068b04b2c1ca4d933f'} | 940100c28ae28931722290794889cf84a92c5f6f | 1 | 09/06/2015, 15:24:03 | Fix potential use-after-free in opj_j2k_write_mco function
Fixes #563 | mayeut | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -5559,8 +5559,7 @@ static OPJ_BOOL opj_j2k_write_mco( opj_j2k_t *p_j2k,\n assert(p_stream != 00);\n \n l_tcp =&(p_j2k->m_cp.tcps[p_j2k->m_current_tile_number]);\n- l_current_data = p_j2k->m_specific_param.m_encod... | c | CWE-416 | [
"src/lib/openjp2/j2k.c"
] | src/lib/openjp2/j2k.c | 1 |
void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new) data[1] = new >> 4; } else { FAT_ENTRY subseqEntry; if (cluster != fs->clusters - 1) get_fat(&subseqEntry, fs->fat, cluster + 1, fs); else subseqEntry.value = 0; | void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new) data[1] = new >> 4; } else { FAT_ENTRY subseqEntry; if (cluster != fs->clusters + 1) get_fat(&subseqEntry, fs->fat, cluster + 1, fs); else subseqEntry.value = 0; | CVE-2015-8872 | {'CWE-189'} | 2.9 | {'https://github.com/dosfstools/dosfstools/commit/07908124838afcc99c577d1d3e84cef2dbd39cb7'} | nvd | The set_fat function in fat.c in dosfstools before 4.0 might allow attackers to corrupt a FAT12 filesystem or cause a denial of service (invalid memory read and crash) by writing an odd number of clusters to the third to last entry on a FAT12 filesystem, which triggers an "off-by-two error." | 2016-06-03 | 1 | https://github.com/dosfstools/dosfstools | https://github.com/dosfstools/dosfstools/commit/07908124838afcc99c577d1d3e84cef2dbd39cb7 | 07908124838afcc99c577d1d3e84cef2dbd39cb7 | SINGLE | ['07908124838afcc99c577d1d3e84cef2dbd39cb7'] | {'39ce90fe75661ed8842551cd44ea7fec278a60a1'} | 07908124838afcc99c577d1d3e84cef2dbd39cb7 | 1 | 09/11/2015, 17:47:29 | set_fat(): Fix off-by-2 error leading to corruption in FAT12
In FAT12 two 12 bit entries are combined to a 24 bit value (three
bytes). Therefore, when an even numbered FAT entry is set in FAT12, it
must be be combined with the following entry. To prevent accessing
beyond the end of the FAT array, it must be checked th... | Andreas Bombe | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -205,7 +205,7 @@ void set_fat(DOS_FS * fs, uint32_t cluster, int32_t new)\n \t data[1] = new >> 4;\n \t} else {\n \t FAT_ENTRY subseqEntry;\n-\t if (cluster != fs->clusters - 1)\n+\t if (cluster != fs->clusters + 1)\n \t\tget_f... | c | CWE-189 | [
"src/fat.c"
] | src/fat.c | 1 |
gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width, }/* if */ if (src != tmp_im) { gdFree(tmp_im); }/* if */ return dst; | gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width, }/* if */ if (src != tmp_im) { gdImageDestroy(tmp_im); }/* if */ return dst; | CVE-2015-8877 | {'CWE-399'} | 2.9 | {'https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24'} | nvd | The gdImageScaleTwoPass function in gd_interpolation.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in PHP before 5.6.12, uses inconsistent allocate and free approaches, which allows remote attackers to cause a denial of service (memory consumption) via a crafted call, as demonstrated by a call to the P... | 2016-05-22 | 1 | https://github.com/libgd/libgd | https://github.com/libgd/libgd/commit/4751b606fa38edc456d627140898a7ec679fcc24 | 4751b606fa38edc456d627140898a7ec679fcc24 | SINGLE | ['4751b606fa38edc456d627140898a7ec679fcc24'] | {'4e1ce6609ac13db17b0543dcd850b888b37b7da0'} | 4751b606fa38edc456d627140898a7ec679fcc24 | 1 | 08/05/2015, 01:01:06 | gdImageScaleTwoPass memory leak fix
Fixing memory leak in gdImageScaleTwoPass, as reported by @cmb69 and
confirmed by @vapier. This bug actually bit me in production and I'm
very thankful that it was reported with an easy fix.
Fixes #173. | Vladimir Mitrovic | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1087,7 +1087,7 @@ gdImageScaleTwoPass(const gdImagePtr src, const unsigned int new_width,\n }/* if */\n \n if (src != tmp_im) {\n- gdFree(tmp_im);\n+ gdImageDestroy(tmp_im);\n }/* if */\n \n \treturn dst;",
"... | c | CWE-399 | [
"src/gd_interpolation.c"
] | src/gd_interpolation.c | 1 |
static Image *ReadTGAImage(const ImageInfo *image_info, /* Read TGA raster colormap. */ if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); for (i=0; i < (ssize_t) tga_info.colormap_index; i++... | static Image *ReadTGAImage(const ImageInfo *image_info, /* Read TGA raster colormap. */ if (image->colors < tga_info.colormap_index) image->colors=tga_info.colormap_index; if (AcquireImageColormap(image,image->colors,exception) == MagickFalse) ThrowReaderException(Resour... | CVE-2015-8894 | {'CWE-415'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/4f68e9661518463fca523c9726bb5d940a2aa6d8'} | nvd | Double free vulnerability in coders/tga.c in ImageMagick 7.0.0 and later allows remote attackers to cause a denial of service (application crash) via a crafted tga file. | 2017-03-15 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/4f68e9661518463fca523c9726bb5d940a2aa6d8 | 4f68e9661518463fca523c9726bb5d940a2aa6d8 | SINGLE | ['4f68e9661518463fca523c9726bb5d940a2aa6d8'] | {'17435e6477f4c9dee1240319e86bee7785242078'} | 4f68e9661518463fca523c9726bb5d940a2aa6d8 | 1 | 08/31/2015, 20:19:40 | https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1490362 | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -315,6 +315,8 @@ static Image *ReadTGAImage(const ImageInfo *image_info,\n /*\n Read TGA raster colormap.\n */\n+ if (image->colors < tga_info.colormap_index)\n+ image->colors=tga_info.colormap_index;\n ... | c | CWE-415 | [
"coders/tga.c"
] | coders/tga.c | 1 |
MagickExport Image *SpliceImage(const Image *image, splice_geometry; ssize_t y; /* MagickExport Image *SpliceImage(const Image *image, */ status=MagickTrue; progress=0; image_view=AcquireVirtualCacheView(image,exception); splice_view=AcquireAuthenticCacheView(splice_image,exception); #if define... | MagickExport Image *SpliceImage(const Image *image, splice_geometry; ssize_t columns, y; /* MagickExport Image *SpliceImage(const Image *image, */ status=MagickTrue; progress=0; columns=MagickMin(splice_geometry.x,(ssize_t) splice_image->columns); image_view=AcquireVirtualCacheView(image,ex... | CVE-2015-8897 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/7b1cf5784b5bcd85aa9293ecf56769f68c037231'} | nvd | The SpliceImage function in MagickCore/transform.c in ImageMagick before 6.9.2-4 allows remote attackers to cause a denial of service (application crash) via a crafted png file. | 2017-03-15 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/7b1cf5784b5bcd85aa9293ecf56769f68c037231 | 7b1cf5784b5bcd85aa9293ecf56769f68c037231 | SINGLE | ['7b1cf5784b5bcd85aa9293ecf56769f68c037231'] | {'0ccbde849cd582307bf57ffb41169dd8d9d44fe7'} | 7b1cf5784b5bcd85aa9293ecf56769f68c037231 | 1 | 10/09/2015, 08:07:51 | Fixed out of bounds error in SpliceImage. | dirk | null | {'additions': 9, 'deletions': 6, 'total': 15} | [
{
"additions": 9,
"changes": 15,
"deletions": 6,
"patch": "@@ -1722,6 +1722,7 @@ MagickExport Image *SpliceImage(const Image *image,\n splice_geometry;\n \n ssize_t\n+ columns,\n y;\n \n /*\n@@ -1810,6 +1811,7 @@ MagickExport Image *SpliceImage(const Image *image,\n */\n status=Ma... | c | CWE-125 | [
"MagickCore/transform.c"
] | MagickCore/transform.c | 1 |
MagickExport MagickBooleanType WriteImages(const ImageInfo *image_info, (void) CopyMagickString(write_info->magick,images->magick,MagickPathExtent); p=images; for ( ; GetNextImageInList(p) != (Image *) NULL; p=GetNextImageInList(p)) if (p->scene >= GetNextImageInList(p)->scene) { register ssi... | MagickExport MagickBooleanType WriteImages(const ImageInfo *image_info, (void) CopyMagickString(write_info->magick,images->magick,MagickPathExtent); p=images; for ( ; GetNextImageInList(p) != (Image *) NULL; p=GetNextImageInList(p)) { register Image *next; next=GetNextImageInList(p); i... | CVE-2015-8898 | {'CWE-476'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/5b4bebaa91849c592a8448bc353ab25a54ff8c44'} | nvd | The WriteImages function in magick/constitute.c in ImageMagick before 6.9.2-4 allows remote attackers to cause a denial of service (NULL pointer dereference) via a crafted image file. | 2017-03-15 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/5b4bebaa91849c592a8448bc353ab25a54ff8c44 | 5b4bebaa91849c592a8448bc353ab25a54ff8c44 | SINGLE | ['5b4bebaa91849c592a8448bc353ab25a54ff8c44'] | {'52ec99e1511bdf61dbe568526a93441545ff4371'} | 5b4bebaa91849c592a8448bc353ab25a54ff8c44 | 1 | 09/24/2015, 13:36:17 | https://github.com/ImageMagick/ImageMagick/pull/34 | Cristy | null | {'additions': 9, 'deletions': 1, 'total': 10} | [
{
"additions": 9,
"changes": 10,
"deletions": 1,
"patch": "@@ -1272,7 +1272,14 @@ MagickExport MagickBooleanType WriteImages(const ImageInfo *image_info,\n (void) CopyMagickString(write_info->magick,images->magick,MagickPathExtent);\n p=images;\n for ( ; GetNextImageInList(p) != (Image *) NU... | c | CWE-476 | [
"MagickCore/constitute.c"
] | MagickCore/constitute.c | 1 |
static int my_login(pTHX_ SV* dbh, imp_dbh_t *imp_dbh) } result = mysql_dr_connect(dbh, imp_dbh->pmysql, mysql_socket, host, port, user, password, dbname, imp_dbh) ? TRUE : FALSE; if (fresh && !result) { /* Prevent leaks, but do not free in case of a reconnect. See #97625 */ Safefree(imp_dbh->pm... | static int my_login(pTHX_ SV* dbh, imp_dbh_t *imp_dbh) } result = mysql_dr_connect(dbh, imp_dbh->pmysql, mysql_socket, host, port, user, password, dbname, imp_dbh) ? TRUE : FALSE; return result; } int dbd_db_login(SV* dbh, imp_dbh_t* imp_dbh, char* dbname, char* user, if (!my_login(aTHX_ dbh, imp_dbh)) ... | CVE-2015-8949 | {'CWE-416'} | 10 | {'https://github.com/perl5-dbi/DBD-mysql/commit/cf0aa7751f6ef8445e9310a64b14dc81460ca156'} | nvd | Use-after-free vulnerability in the my_login function in DBD::mysql before 4.033_01 allows attackers to have unspecified impact by leveraging a call to mysql_errno after a failure of my_login. | 2016-08-19 | 1 | https://github.com/perl5-dbi/DBD-mysql | https://github.com/perl5-dbi/DBD-mysql/commit/cf0aa7751f6ef8445e9310a64b14dc81460ca156 | cf0aa7751f6ef8445e9310a64b14dc81460ca156 | SINGLE | ['cf0aa7751f6ef8445e9310a64b14dc81460ca156'] | {'2e1cbd0034cf0041f832ba81d07c24db886782d8', '90a5ab519805acb6c5d1ae91d8e3f494ec179db4'} | cf0aa7751f6ef8445e9310a64b14dc81460ca156 | 1 | 11/22/2015, 14:22:05 | Merge pull request #45 from hannob/master
Fix use after free error. | Michiel Beijen | null | {'additions': 4, 'deletions': 5, 'total': 9} | [
{
"additions": 4,
"changes": 9,
"deletions": 5,
"patch": "@@ -2085,10 +2085,6 @@ static int my_login(pTHX_ SV* dbh, imp_dbh_t *imp_dbh)\n }\n result = mysql_dr_connect(dbh, imp_dbh->pmysql, mysql_socket, host, port, user,\n \t\t\t password, dbname, imp_dbh) ? TRUE : FALSE;\n- if (fresh && !res... | c | CWE-416 | [
"dbdimp.c"
] | dbdimp.c | 1 |
static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) *ret_page = phys_to_page(phys); ptr = (void *)val; if (flags & __GFP_ZERO) memset(ptr, 0, size); } return ptr; static void *__dma_alloc_coherent(struct device *dev, size_t size, *dma_handle = phys_to_dma(dev, page_to_phys(... | static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags) *ret_page = phys_to_page(phys); ptr = (void *)val; memset(ptr, 0, size); } return ptr; static void *__dma_alloc_coherent(struct device *dev, size_t size, *dma_handle = phys_to_dma(dev, page_to_phys(page)); addr = page_addre... | CVE-2015-8950 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/6829e274a623187c24f7cfc0e3d35f25d087fcc5'} | nvd | arch/arm64/mm/dma-mapping.c in the Linux kernel before 4.0.3, as used in the ION subsystem in Android and other products, does not initialize certain data structures, which allows local users to obtain sensitive information from kernel memory by triggering a dma_mmap call. | 2016-10-10 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6829e274a623187c24f7cfc0e3d35f25d087fcc5 | 6829e274a623187c24f7cfc0e3d35f25d087fcc5 | SINGLE | ['6829e274a623187c24f7cfc0e3d35f25d087fcc5'] | {'6544e67bfb1bf55bcf3c0f6b37631917e9acfb74'} | 6829e274a623187c24f7cfc0e3d35f25d087fcc5 | 1 | 04/23/2015, 11:46:16 | arm64: dma-mapping: always clear allocated buffers
Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha,
ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures.
It turned out that some drivers rely on this 'feature'. Allocated buffer
might be also exposed to userspace with dma_mmap() c... | Marek Szyprowski | null | {'additions': 2, 'deletions': 4, 'total': 6} | [
{
"additions": 2,
"changes": 6,
"deletions": 4,
"patch": "@@ -67,8 +67,7 @@ static void *__alloc_from_pool(size_t size, struct page **ret_page, gfp_t flags)\n \n \t\t*ret_page = phys_to_page(phys);\n \t\tptr = (void *)val;\n-\t\tif (flags & __GFP_ZERO)\n-\t\t\tmemset(ptr, 0, size);\n+\t\tmemset(ptr,... | c | CWE-200 | [
"arch/arm64/mm/dma-mapping.c"
] | arch/arm64/mm/dma-mapping.c | 1 |
static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, out_cleanup: ovl_cleanup(wdir, newdentry); goto out; } /* | static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir, out_cleanup: ovl_cleanup(wdir, newdentry); goto out2; } /* | CVE-2015-8953 | {'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/ab79efab0a0ba01a74df782eb7fa44b044dae8b5'} | nvd | fs/overlayfs/copy_up.c in the Linux kernel before 4.2.6 uses an incorrect cleanup code path, which allows local users to cause a denial of service (dentry reference leak) via filesystem operations on a large file in a lower overlayfs layer. | 2016-10-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ab79efab0a0ba01a74df782eb7fa44b044dae8b5 | ab79efab0a0ba01a74df782eb7fa44b044dae8b5 | SINGLE | ['ab79efab0a0ba01a74df782eb7fa44b044dae8b5'] | {'0480334fa60488d12ae101a02d7d9e1a3d03d7dd'} | ab79efab0a0ba01a74df782eb7fa44b044dae8b5 | 1 | 09/18/2015, 10:45:22 | ovl: fix dentry reference leak
In ovl_copy_up_locked(), newdentry is leaked if the function exits through
out_cleanup as this just to out after calling ovl_cleanup() - which doesn't
actually release the ref on newdentry.
The out_cleanup segment should instead exit through out2 as certainly
newdentry leaks - and possi... | David Howells | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -267,7 +267,7 @@ static int ovl_copy_up_locked(struct dentry *workdir, struct dentry *upperdir,\n \n out_cleanup:\n \tovl_cleanup(wdir, newdentry);\n-\tgoto out;\n+\tgoto out2;\n }\n \n /*",
"path": "fs/overlayfs/copy_up.c",
"raw_u... | c | CWE-399 | [
"fs/overlayfs/copy_up.c"
] | fs/overlayfs/copy_up.c | 1 |
armpmu_add(struct perf_event *event, int flags) } static int validate_event(struct pmu_hw_events *hw_events, struct perf_event *event) { struct arm_pmu *armpmu = to_arm_pmu(event->pmu); struct hw_perf_event fake_event = event->hw; struct pmu *leader_pmu = event->group_leader->pmu; if (is_software_event(e... | armpmu_add(struct perf_event *event, int flags) } static int validate_event(struct pmu *pmu, struct pmu_hw_events *hw_events, struct perf_event *event) { struct arm_pmu *armpmu; struct hw_perf_event fake_event = event->hw; struct pmu *leader_pmu = event->group_leader->pmu; if (is_software_event(event)) ret... | CVE-2015-8955 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/8fff105e13041e49b82f92eef034f363a6b1c071'} | nvd | arch/arm64/kernel/perf_event.c in the Linux kernel before 4.1 on arm64 platforms allows local users to gain privileges or cause a denial of service (invalid pointer dereference) via vectors involving events that are mishandled during a span of multiple HW PMUs. | 2016-10-10 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8fff105e13041e49b82f92eef034f363a6b1c071 | 8fff105e13041e49b82f92eef034f363a6b1c071 | SINGLE | ['8fff105e13041e49b82f92eef034f363a6b1c071'] | {'4a97abd44329bf7b9c57f020224da5f823c9c9ea'} | 8fff105e13041e49b82f92eef034f363a6b1c071 | 1 | 03/17/2015, 18:14:59 | 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... | Suzuki K. Poulose | null | {'additions': 15, 'deletions': 6, 'total': 21} | [
{
"additions": 15,
"changes": 21,
"deletions": 6,
"patch": "@@ -322,22 +322,31 @@ armpmu_add(struct perf_event *event, int flags)\n }\n \n static int\n-validate_event(struct pmu_hw_events *hw_events,\n-\t struct perf_event *event)\n+validate_event(struct pmu *pmu, struct pmu_hw_events *hw_even... | c | CWE-264 | [
"arch/arm64/kernel/perf_event.c"
] | arch/arm64/kernel/perf_event.c | 1 |
static int rfcomm_sock_create(struct net *net, struct socket *sock, static int rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) { struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; struct sock *sk = sock->sk; int chan = sa->rc_channel; int err = 0; BT_DBG("sk %p %pMR", sk, &sa->rc_b... | static int rfcomm_sock_create(struct net *net, struct socket *sock, static int rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len) { struct sockaddr_rc sa; struct sock *sk = sock->sk; int len, err = 0; if (!addr || addr->sa_family != AF_BLUETOOTH) return -EINVAL; memset(&sa, 0, sizeof(... | CVE-2015-8956 | {'CWE-476'} | 4.9 | {'https://github.com/torvalds/linux/commit/951b6a0717db97ce420547222647bcc40bf1eacd'} | nvd | The rfcomm_sock_bind function in net/bluetooth/rfcomm/sock.c in the Linux kernel before 4.2 allows local users to obtain sensitive information or cause a denial of service (NULL pointer dereference) via vectors involving a bind system call on a Bluetooth RFCOMM socket. | 2016-10-10 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/951b6a0717db97ce420547222647bcc40bf1eacd | 951b6a0717db97ce420547222647bcc40bf1eacd | SINGLE | ['951b6a0717db97ce420547222647bcc40bf1eacd'] | {'6be09b48ae8bcce8426877b5f89e6218ffb657b0'} | 951b6a0717db97ce420547222647bcc40bf1eacd | 1 | 05/14/2015, 07:28:08 | Bluetooth: Fix potential NULL dereference in RFCOMM bind callback
addr can be NULL and it should not be dereferenced before NULL checking.
Signed-off-by: Jaganath Kanakkassery <jaganath.k@samsung.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org> | Jaganath Kanakkassery | null | {'additions': 12, 'deletions': 8, 'total': 20} | [
{
"additions": 12,
"changes": 20,
"deletions": 8,
"patch": "@@ -334,16 +334,19 @@ static int rfcomm_sock_create(struct net *net, struct socket *sock,\n \n static int rfcomm_sock_bind(struct socket *sock, struct sockaddr *addr, int addr_len)\n {\n-\tstruct sockaddr_rc *sa = (struct sockaddr_rc *) add... | c | CWE-476 | [
"net/bluetooth/rfcomm/sock.c"
] | net/bluetooth/rfcomm/sock.c | 1 |
int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) return 0; } if (!handle->h_transaction) { err = jbd2_journal_stop(handle); return handle->h_err ? handle->h_err : err; } sb = handle->h_transaction->t_journal->j_private; err = handle->h_err; rc = jbd2_journal_stop(handle); ... | int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle) return 0; } err = handle->h_err; if (!handle->h_transaction) { rc = jbd2_journal_stop(handle); return err ? err : rc; } sb = handle->h_transaction->t_journal->j_private; rc = jbd2_journal_stop(handle); if (!err) | CVE-2015-8961 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/6934da9238da947628be83635e365df41064b09b'} | nvd | The __ext4_journal_stop function in fs/ext4/ext4_jbd2.c in the Linux kernel before 4.3.3 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging improper access to a certain error field. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6934da9238da947628be83635e365df41064b09b | 6934da9238da947628be83635e365df41064b09b | SINGLE | ['6934da9238da947628be83635e365df41064b09b'] | {'33d14975e5ac469963d5d63856b61698ad0bff07'} | 6934da9238da947628be83635e365df41064b09b | 1 | 10/18/2015, 02:57:06 | ext4: fix potential use after free in __ext4_journal_stop
There is a use-after-free possibility in __ext4_journal_stop() in the
case that we free the handle in the first jbd2_journal_stop() because
we're referencing handle->h_err afterwards. This was introduced in
9705acd63b125dee8b15c705216d7186daea4625 and it is wro... | Lukas Czerner | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -88,13 +88,13 @@ int __ext4_journal_stop(const char *where, unsigned int line, handle_t *handle)\n \t\treturn 0;\n \t}\n \n+\terr = handle->h_err;\n \tif (!handle->h_transaction) {\n-\t\terr = jbd2_journal_stop(handle);\n-\t\treturn handle... | c | CWE-416 | [
"fs/ext4/ext4_jbd2.c"
] | fs/ext4/ext4_jbd2.c | 1 |
sg_common_write(Sg_fd * sfp, Sg_request * srp, return k; /* probably out of space --> ENOMEM */ } if (atomic_read(&sdp->detaching)) { if (srp->bio) blk_end_request_all(srp->rq, -EIO); sg_finish_rem_req(srp); return -ENODEV; } | sg_common_write(Sg_fd * sfp, Sg_request * srp, return k; /* probably out of space --> ENOMEM */ } if (atomic_read(&sdp->detaching)) { if (srp->bio) { if (srp->rq->cmd != srp->rq->__cmd) kfree(srp->rq->cmd); blk_end_request_all(srp->rq, -EIO); srp->rq = NULL; } sg_finish_rem_req(srp); return ... | CVE-2015-8962 | {'CWE-415'} | 10 | {'https://github.com/torvalds/linux/commit/f3951a3709ff50990bf3e188c27d346792103432'} | nvd | Double free vulnerability in the sg_common_write function in drivers/scsi/sg.c in the Linux kernel before 4.4 allows local users to gain privileges or cause a denial of service (memory corruption and system crash) by detaching a device during an SG_IO ioctl call. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f3951a3709ff50990bf3e188c27d346792103432 | f3951a3709ff50990bf3e188c27d346792103432 | SINGLE | ['f3951a3709ff50990bf3e188c27d346792103432'] | {'c913df3f3d6f7f5e5ed845e2786b0fc98a41482f'} | f3951a3709ff50990bf3e188c27d346792103432 | 1 | 10/30/2015, 23:57:00 | sg: Fix double-free when drives detach during SG_IO
In sg_common_write(), we free the block request and return -ENODEV if
the device is detached in the middle of the SG_IO ioctl().
Unfortunately, sg_finish_rem_req() also tries to free srp->rq, so we
end up freeing rq->cmd in the already free rq object, and then free
... | Calvin Owens | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -787,8 +787,14 @@ sg_common_write(Sg_fd * sfp, Sg_request * srp,\n \t\treturn k;\t/* probably out of space --> ENOMEM */\n \t}\n \tif (atomic_read(&sdp->detaching)) {\n-\t\tif (srp->bio)\n+\t\tif (srp->bio) {\n+\t\t\tif (srp->rq->cmd != sr... | c | CWE-415 | [
"drivers/scsi/sg.c"
] | drivers/scsi/sg.c | 1 |
struct swevent_htable { /* Recursion avoidance in each contexts */ int recursion[PERF_NR_CONTEXTS]; /* Keeps track of cpu being initialized/exited */ bool online; }; static DEFINE_PER_CPU(struct swevent_htable, swevent_htable); static int perf_swevent_add(struct perf_event *event, int flags) hwc->state =... | struct swevent_htable { /* Recursion avoidance in each contexts */ int recursion[PERF_NR_CONTEXTS]; }; static DEFINE_PER_CPU(struct swevent_htable, swevent_htable); static int perf_swevent_add(struct perf_event *event, int flags) hwc->state = !(flags & PERF_EF_START); head = find_swevent_head(swhash, event);... | CVE-2015-8963 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/12ca6ad2e3a896256f086497a7c7406a547ee373'} | nvd | Race condition in kernel/events/core.c in the Linux kernel before 4.4 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging incorrect handling of an swevent data structure during a CPU unplug operation. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/12ca6ad2e3a896256f086497a7c7406a547ee373 | 12ca6ad2e3a896256f086497a7c7406a547ee373 | SINGLE | ['12ca6ad2e3a896256f086497a7c7406a547ee373'] | {'c127449944659543e5e2423002f08f0af98dba5c'} | 12ca6ad2e3a896256f086497a7c7406a547ee373 | 1 | 12/15/2015, 12:49:05 | perf: Fix race in swevent hash
There's a race on CPU unplug where we free the swevent hash array
while it can still have events on. This will result in a
use-after-free which is BAD.
Simply do not free the hash array on unplug. This leaves the thing
around and no use-after-free takes place.
When the last swevent die... | Peter Zijlstra | null | {'additions': 1, 'deletions': 19, 'total': 20} | [
{
"additions": 1,
"changes": 20,
"deletions": 19,
"patch": "@@ -6488,9 +6488,6 @@ struct swevent_htable {\n \n \t/* Recursion avoidance in each contexts */\n \tint\t\t\t\trecursion[PERF_NR_CONTEXTS];\n-\n-\t/* Keeps track of cpu being initialized/exited */\n-\tbool\t\t\t\tonline;\n };\n \n static DE... | c | CWE-416 | [
"kernel/events/core.c"
] | kernel/events/core.c | 1 |
struct swevent_htable { /* Recursion avoidance in each contexts */ int recursion[PERF_NR_CONTEXTS]; /* Keeps track of cpu being initialized/exited */ bool online; }; static DEFINE_PER_CPU(struct swevent_htable, swevent_htable); static int perf_swevent_add(struct perf_event *event, int flags) hwc->state =... | struct swevent_htable { /* Recursion avoidance in each contexts */ int recursion[PERF_NR_CONTEXTS]; }; static DEFINE_PER_CPU(struct swevent_htable, swevent_htable); static int perf_swevent_add(struct perf_event *event, int flags) hwc->state = !(flags & PERF_EF_START); head = find_swevent_head(swhash, event);... | CVE-2015-8963 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/12ca6ad2e3a896256f086497a7c7406a547ee373'} | nvd | Race condition in kernel/events/core.c in the Linux kernel before 4.4 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging incorrect handling of an swevent data structure during a CPU unplug operation. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/12ca6ad2e3a896256f086497a7c7406a547ee373 | 12ca6ad2e3a896256f086497a7c7406a547ee373 | SINGLE | ['12ca6ad2e3a896256f086497a7c7406a547ee373'] | {'c127449944659543e5e2423002f08f0af98dba5c'} | 12ca6ad2e3a896256f086497a7c7406a547ee373 | 1 | 12/15/2015, 12:49:05 | perf: Fix race in swevent hash
There's a race on CPU unplug where we free the swevent hash array
while it can still have events on. This will result in a
use-after-free which is BAD.
Simply do not free the hash array on unplug. This leaves the thing
around and no use-after-free takes place.
When the last swevent die... | Peter Zijlstra | null | {'additions': 1, 'deletions': 19, 'total': 20} | [
{
"additions": 1,
"changes": 20,
"deletions": 19,
"patch": "@@ -6488,9 +6488,6 @@ struct swevent_htable {\n \n \t/* Recursion avoidance in each contexts */\n \tint\t\t\t\trecursion[PERF_NR_CONTEXTS];\n-\n-\t/* Keeps track of cpu being initialized/exited */\n-\tbool\t\t\t\tonline;\n };\n \n static DE... | c | CWE-362 | [
"kernel/events/core.c"
] | kernel/events/core.c | 1 |
EXPORT_SYMBOL_GPL(tty_ldisc_flush); * they are not on hot paths so a little discipline won't do * any harm. * * Locking: takes termios_rwsem */ static void tty_set_termios_ldisc(struct tty_struct *tty, int num) down_write(&tty->termios_rwsem); tty->termios.c_line = num; up_write(&tty->termios_rwsem); } /** | EXPORT_SYMBOL_GPL(tty_ldisc_flush); * they are not on hot paths so a little discipline won't do * any harm. * * The line discipline-related tty_struct fields are reset to * prevent the ldisc driver from re-using stale information for * the new ldisc instance. * * Locking: takes termios_rwsem */ static void t... | CVE-2015-8964 | {'CWE-200'} | 6.9 | {'https://github.com/torvalds/linux/commit/dd42bf1197144ede075a9d4793123f7689e164bc'} | nvd | The tty_set_termios_ldisc function in drivers/tty/tty_ldisc.c in the Linux kernel before 4.5 allows local users to obtain sensitive information from kernel memory by reading a tty data structure. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/dd42bf1197144ede075a9d4793123f7689e164bc | dd42bf1197144ede075a9d4793123f7689e164bc | SINGLE | ['dd42bf1197144ede075a9d4793123f7689e164bc'] | {'39469654db20a14915a7fb33ca2ec67547011ece'} | dd42bf1197144ede075a9d4793123f7689e164bc | 1 | 11/27/2015, 19:30:21 | tty: Prevent ldisc drivers from re-using stale tty fields
Line discipline drivers may mistakenly misuse ldisc-related fields
when initializing. For example, a failure to initialize tty->receive_room
in the N_GIGASET_M101 line discipline was recently found and fixed [1].
Now, the N_X25 line discipline has been discover... | Peter Hurley | null | {'additions': 7, 'deletions': 0, 'total': 7} | [
{
"additions": 7,
"changes": 7,
"deletions": 0,
"patch": "@@ -417,6 +417,10 @@ EXPORT_SYMBOL_GPL(tty_ldisc_flush);\n *\tthey are not on hot paths so a little discipline won't do\n *\tany harm.\n *\n+ *\tThe line discipline-related tty_struct fields are reset to\n+ *\tprevent the ldisc driver from... | c | CWE-200 | [
"drivers/tty/tty_ldisc.c"
] | drivers/tty/tty_ldisc.c | 1 |
struct oabi_flock64 { pid_t l_pid; } __attribute__ ((packed,aligned(4))); asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg) { struct oabi_flock64 user; struct flock64 kernel; mm_segment_t fs = USER_DS; /* initialized to kill a warning */ unsigned long local_arg = arg; i... | struct oabi_flock64 { pid_t l_pid; } __attribute__ ((packed,aligned(4))); static long do_locks(unsigned int fd, unsigned int cmd, unsigned long arg) { struct flock64 kernel; struct oabi_flock64 user; mm_segment_t fs; long ret; if (copy_from_user(&user, (struct oabi_flock64 __user *)arg, sizeof(user)... | CVE-2015-8966 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/76cc404bfdc0d419c720de4daaf2584542734f42'} | nvd | arch/arm/kernel/sys_oabi-compat.c in the Linux kernel before 4.4 allows local users to gain privileges via a crafted (1) F_OFD_GETLK, (2) F_OFD_SETLK, or (3) F_OFD_SETLKW command in an fcntl64 system call. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/76cc404bfdc0d419c720de4daaf2584542734f42 | 76cc404bfdc0d419c720de4daaf2584542734f42 | SINGLE | ['76cc404bfdc0d419c720de4daaf2584542734f42'] | {'74bf8efb5fa6e958d2d7c7917b8bb672085ec0c6'} | 76cc404bfdc0d419c720de4daaf2584542734f42 | 1 | 12/29/2015, 01:47:08 | [PATCH] arm: fix handling of F_OFD_... in oabi_fcntl64()
Cc: stable@vger.kernel.org # 3.15+
Reviewed-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> | Al Viro | null | {'additions': 37, 'deletions': 36, 'total': 73} | [
{
"additions": 37,
"changes": 73,
"deletions": 36,
"patch": "@@ -193,55 +193,56 @@ struct oabi_flock64 {\n \tpid_t\tl_pid;\n } __attribute__ ((packed,aligned(4)));\n \n-asmlinkage long sys_oabi_fcntl64(unsigned int fd, unsigned int cmd,\n+static long do_locks(unsigned int fd, unsigned int cmd,\n \t\... | c | CWE-264 | [
"arch/arm/kernel/sys_oabi-compat.c"
] | arch/arm/kernel/sys_oabi-compat.c | 1 |
asmlinkage long sys_rt_sigreturn_wrapper(void); * The sys_call_table array must be 4K aligned to be accessible from * kernel/entry.S. */ void *sys_call_table[__NR_syscalls] __aligned(4096) = { [0 ... __NR_syscalls - 1] = sys_ni_syscall, #include <asm/unistd.h> }; | asmlinkage long sys_rt_sigreturn_wrapper(void); * The sys_call_table array must be 4K aligned to be accessible from * kernel/entry.S. */ void * const sys_call_table[__NR_syscalls] __aligned(4096) = { [0 ... __NR_syscalls - 1] = sys_ni_syscall, #include <asm/unistd.h> }; | CVE-2015-8967 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/c623b33b4e9599c6ac5076f7db7369eb9869aa04'} | nvd | arch/arm64/kernel/sys.c in the Linux kernel before 4.0 allows local users to bypass the "strict page permissions" protection mechanism and modify the system-call table, and consequently gain privileges, by leveraging write access. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/c623b33b4e9599c6ac5076f7db7369eb9869aa04 | c623b33b4e9599c6ac5076f7db7369eb9869aa04 | SINGLE | ['c623b33b4e9599c6ac5076f7db7369eb9869aa04'] | {'9648606946b3b0c608846dddb30482b48a6f5c68'} | c623b33b4e9599c6ac5076f7db7369eb9869aa04 | 1 | 01/08/2015, 11:42:59 | arm64: make sys_call_table const
As with x86, mark the sys_call_table const such that it will be placed
in the .rodata section. This will cause attempts to modify the table
(accidental or deliberate) to fail when strict page permissions are in
place. In the absence of strict page permissions, there should be no
functi... | Mark Rutland | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -49,7 +49,7 @@ asmlinkage long sys_rt_sigreturn_wrapper(void);\n * The sys_call_table array must be 4K aligned to be accessible from\n * kernel/entry.S.\n */\n-void *sys_call_table[__NR_syscalls] __aligned(4096) = {\n+void * const sys_c... | c | CWE-264 | [
"arch/arm64/kernel/sys.c"
] | arch/arm64/kernel/sys.c | 1 |
struct skcipher_sg_list { struct scatterlist sg[0]; }; struct skcipher_ctx { struct list_head tsgl; struct af_alg_sgl rsgl; static struct proto_ops algif_skcipher_ops = { static void *skcipher_bind(const char *name, u32 type, u32 mask) { return crypto_alloc_skcipher(name, type, mask); } static void skcipher_rel... | struct skcipher_sg_list { struct scatterlist sg[0]; }; struct skcipher_tfm { struct crypto_skcipher *skcipher; bool has_key; }; struct skcipher_ctx { struct list_head tsgl; struct af_alg_sgl rsgl; static struct proto_ops algif_skcipher_ops = { static void *skcipher_bind(const char *name, u32 type, u32 mask) { ... | CVE-2015-8970 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/dd504589577d8e8e70f51f997ad487a4cb6c026f'} | nvd | crypto/algif_skcipher.c in the Linux kernel before 4.4.2 does not verify that a setkey operation has been performed on an AF_ALG socket before an accept system call is processed, which allows local users to cause a denial of service (NULL pointer dereference and system crash) via a crafted application that does not sup... | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/dd504589577d8e8e70f51f997ad487a4cb6c026f | dd504589577d8e8e70f51f997ad487a4cb6c026f | SINGLE | ['dd504589577d8e8e70f51f997ad487a4cb6c026f'] | {'c597b6bcd5c624534afc3df65cdc42bb05173bca'} | dd504589577d8e8e70f51f997ad487a4cb6c026f | 1 | 12/25/2015, 07:40:05 | crypto: algif_skcipher - Require setkey before accept(2)
Some cipher implementations will crash if you try to use them
without calling setkey first. This patch adds a check so that
the accept(2) call will fail with -ENOKEY if setkey hasn't been
done on the socket yet.
Cc: stable@vger.kernel.org
Reported-by: Dmitry V... | Herbert Xu | null | {'additions': 41, 'deletions': 7, 'total': 48} | [
{
"additions": 41,
"changes": 48,
"deletions": 7,
"patch": "@@ -31,6 +31,11 @@ struct skcipher_sg_list {\n \tstruct scatterlist sg[0];\n };\n \n+struct skcipher_tfm {\n+\tstruct crypto_skcipher *skcipher;\n+\tbool has_key;\n+};\n+\n struct skcipher_ctx {\n \tstruct list_head tsgl;\n \tstruct af_alg_... | c | CWE-476 | [
"crypto/algif_skcipher.c"
] | crypto/algif_skcipher.c | 1 |
static int cx24116_send_diseqc_msg(struct dvb_frontend *fe, struct cx24116_state *state = fe->demodulator_priv; int i, ret; /* Dump DiSEqC message */ if (debug) { printk(KERN_INFO "cx24116: %s(", __func__); static int cx24116_send_diseqc_msg(struct dvb_frontend *fe, printk(") toneburst=%d\n", toneburst); } ... | static int cx24116_send_diseqc_msg(struct dvb_frontend *fe, struct cx24116_state *state = fe->demodulator_priv; int i, ret; /* Validate length */ if (d->msg_len > sizeof(d->msg)) return -EINVAL; /* Dump DiSEqC message */ if (debug) { printk(KERN_INFO "cx24116: %s(", __func__); static int cx24... | CVE-2015-9289 | {'CWE-125'} | 6.9 | {'https://github.com/torvalds/linux/commit/1fa2337a315a2448c5434f41e00d56b01a22283c'} | nvd | In the Linux kernel before 4.1.4, a buffer overflow occurs when checking userspace params in drivers/media/dvb-frontends/cx24116.c. The maximum size for a DiSEqC command is 6, according to the userspace API. However, the code allows larger values such as 23. | 2019-07-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1fa2337a315a2448c5434f41e00d56b01a22283c | 1fa2337a315a2448c5434f41e00d56b01a22283c | SINGLE | ['1fa2337a315a2448c5434f41e00d56b01a22283c'] | {'12f4543f5d6811f864e6c4952eb27253c7466c02'} | 1fa2337a315a2448c5434f41e00d56b01a22283c | 1 | 04/28/2015, 21:51:17 | [media] cx24116: fix a buffer overflow when checking userspace params
The maximum size for a DiSEqC command is 6, according to the
userspace API. However, the code allows to write up much more values:
drivers/media/dvb-frontends/cx24116.c:983 cx24116_send_diseqc_msg() error: buffer overflow 'd->msg' 6 <= 23
Cc: stab... | Mauro Carvalho Chehab | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -963,6 +963,10 @@ static int cx24116_send_diseqc_msg(struct dvb_frontend *fe,\n \tstruct cx24116_state *state = fe->demodulator_priv;\n \tint i, ret;\n \n+\t/* Validate length */\n+\tif (d->msg_len > sizeof(d->msg))\n+ retur... | c | CWE-125 | [
"drivers/media/dvb-frontends/cx24116.c"
] | drivers/media/dvb-frontends/cx24116.c | 1 |
static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass } /* 16*N maps to itself */ memset(hashed, 0, length); memcpy(hashed, password, strlen(password)); attr = find_attribute(request, PW_PASSWORD); | static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass } /* 16*N maps to itself */ memset(hashed, 0, length); memcpy(hashed, password, length); attr = find_attribute(request, PW_PASSWORD); | CVE-2015-9542 | {'CWE-787'} | 2.9 | {'https://github.com/FreeRADIUS/pam_radius/commit/01173ec2426627dbb1e0d96c06c3ffa0b14d36d0'} | nvd | add_password in pam_radius_auth.c in pam_radius 1.4.0 does not correctly check the length of the input password, and is vulnerable to a stack-based buffer overflow during memcpy(). An attacker could send a crafted password to an application (loading the pam_radius library) and crash it. Arbitrary code execution might b... | 2020-02-24 | 1 | https://github.com/FreeRADIUS/pam_radius | https://github.com/FreeRADIUS/pam_radius/commit/01173ec2426627dbb1e0d96c06c3ffa0b14d36d0 | 01173ec2426627dbb1e0d96c06c3ffa0b14d36d0 | SINGLE | ['01173ec2426627dbb1e0d96c06c3ffa0b14d36d0'] | {'160b2bcc2abc9ba96a11ad22b3b9e8fa9e4460e5'} | 01173ec2426627dbb1e0d96c06c3ffa0b14d36d0 | 1 | 05/21/2015, 19:40:11 | Use "length", which has been limited in size | Alan T. DeKok | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -536,7 +536,7 @@ static void add_password(AUTH_HDR *request, unsigned char type, CONST char *pass\n \t}\t\t\t\t\t\t/* 16*N maps to itself */\n \n \tmemset(hashed, 0, length);\n-\tmemcpy(hashed, password, strlen(password));\n+\tmemcpy(hashe... | c | CWE-787 | [
"src/pam_radius_auth.c"
] | src/pam_radius_auth.c | 1 |
def generate_cookie_secret helpers do def protected! if not PCSAuth.loginByToken(session, cookies) and not PCSAuth.isLoggedIn(session) # If we're on /managec/<cluster_name>/main we redirect match_expr = "/managec/(.*)/(.*)" mymatch = request.path.match(match_expr) on_managec_main = false... | def generate_cookie_secret helpers do def protected! gui_request = ( # these are URLs for web pages request.path == '/' or request.path == '/manage' or request.path == '/permissions' or request.path.match('/managec/.+/main') ) if request.path.start_with?('/remote/') or request.pa... | CVE-2016-0720 | {'CWE-352'} | 6.4 | {'https://github.com/ClusterLabs/pcs/commit/b9e7f061788c3b86a0c67d2d4158f067ec5eb625'} | nvd | Cross-site request forgery (CSRF) vulnerability in pcsd web UI in pcs before 0.9.149. | 2017-04-21 | 1 | https://github.com/ClusterLabs/pcs | https://github.com/ClusterLabs/pcs/commit/b9e7f061788c3b86a0c67d2d4158f067ec5eb625 | b9e7f061788c3b86a0c67d2d4158f067ec5eb625 | SINGLE | ['b9e7f061788c3b86a0c67d2d4158f067ec5eb625'] | {'d49435de20f71bd0816c42b445ed484dd21fbe96'} | b9e7f061788c3b86a0c67d2d4158f067ec5eb625 | 1 | 01/29/2016, 13:31:37 | fix CSRF vulnerability
* requests /remote/* (GET and POST) and /run_pcs are accessible only with token authentication
* all web UI requests are accessible only with session authentication
* all web UI requests (except for /manage, /managec/<cluster>/main, /permissions ) must
include header: X-Requested-With: XML... | Ondrej Mular | null | {'additions': 22, 'deletions': 17, 'total': 39} | [
{
"additions": 22,
"changes": 39,
"deletions": 17,
"patch": "@@ -121,26 +121,31 @@ def generate_cookie_secret\n \n helpers do\n def protected!\n- if not PCSAuth.loginByToken(session, cookies) and not PCSAuth.isLoggedIn(session)\n- # If we're on /managec/<cluster_name>/main we redirect\n- ... | rb | CWE-352 | [
"pcsd/pcsd.rb"
] | pcsd/pcsd.rb | 1 |
static int tiocsetd(struct tty_struct *tty, int __user *p) return ret; } /** * send_break - performed time break * @tty: device to break on long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case TIOCGSID: return tiocgsid(tty, real_tty, p); case TIOCGETD: return put_user(tty->ldisc->ops->... | static int tiocsetd(struct tty_struct *tty, int __user *p) return ret; } /** * tiocgetd - get line discipline * @tty: tty device * @p: pointer to user data * * Retrieves the line discipline id directly from the ldisc. * * Locking: waits for ldisc reference (in case the line discipline * is changing or the t... | CVE-2016-0723 | {'CWE-200', 'NVD-CWE-Other', 'CWE-362'} | 7.8 | {'https://github.com/torvalds/linux/commit/5c17c861a357e9458001f021a7afa7aab9937439'} | nvd | Race condition in the tty_ioctl function in drivers/tty/tty_io.c in the Linux kernel through 4.4.1 allows local users to obtain sensitive information from kernel memory or cause a denial of service (use-after-free and system crash) by making a TIOCGETD ioctl call during processing of a TIOCSETD ioctl call. | 2016-02-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5c17c861a357e9458001f021a7afa7aab9937439 | 5c17c861a357e9458001f021a7afa7aab9937439 | SINGLE | ['5c17c861a357e9458001f021a7afa7aab9937439'] | {'7f22f6c935cda600660e623a411fe380015d28d9'} | 5c17c861a357e9458001f021a7afa7aab9937439 | 1 | 01/11/2016, 06:40:55 | tty: Fix unsafe ldisc reference via ioctl(TIOCGETD)
ioctl(TIOCGETD) retrieves the line discipline id directly from the
ldisc because the line discipline id (c_line) in termios is untrustworthy;
userspace may have set termios via ioctl(TCSETS*) without actually
changing the line discipline via ioctl(TIOCSETD).
However... | Peter Hurley | null | {'additions': 23, 'deletions': 1, 'total': 24} | [
{
"additions": 23,
"changes": 24,
"deletions": 1,
"patch": "@@ -2658,6 +2658,28 @@ static int tiocsetd(struct tty_struct *tty, int __user *p)\n \treturn ret;\n }\n \n+/**\n+ *\ttiocgetd\t-\tget line discipline\n+ *\t@tty: tty device\n+ *\t@p: pointer to user data\n+ *\n+ *\tRetrieves the line discip... | c | CWE-200 | [
"drivers/tty/tty_io.c"
] | drivers/tty/tty_io.c | 1 |
static int tiocsetd(struct tty_struct *tty, int __user *p) return ret; } /** * send_break - performed time break * @tty: device to break on long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case TIOCGSID: return tiocgsid(tty, real_tty, p); case TIOCGETD: return put_user(tty->ldisc->ops->... | static int tiocsetd(struct tty_struct *tty, int __user *p) return ret; } /** * tiocgetd - get line discipline * @tty: tty device * @p: pointer to user data * * Retrieves the line discipline id directly from the ldisc. * * Locking: waits for ldisc reference (in case the line discipline * is changing or the t... | CVE-2016-0723 | {'CWE-200', 'NVD-CWE-Other', 'CWE-362'} | 7.8 | {'https://github.com/torvalds/linux/commit/5c17c861a357e9458001f021a7afa7aab9937439'} | nvd | Race condition in the tty_ioctl function in drivers/tty/tty_io.c in the Linux kernel through 4.4.1 allows local users to obtain sensitive information from kernel memory or cause a denial of service (use-after-free and system crash) by making a TIOCGETD ioctl call during processing of a TIOCSETD ioctl call. | 2016-02-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5c17c861a357e9458001f021a7afa7aab9937439 | 5c17c861a357e9458001f021a7afa7aab9937439 | SINGLE | ['5c17c861a357e9458001f021a7afa7aab9937439'] | {'7f22f6c935cda600660e623a411fe380015d28d9'} | 5c17c861a357e9458001f021a7afa7aab9937439 | 1 | 01/11/2016, 06:40:55 | tty: Fix unsafe ldisc reference via ioctl(TIOCGETD)
ioctl(TIOCGETD) retrieves the line discipline id directly from the
ldisc because the line discipline id (c_line) in termios is untrustworthy;
userspace may have set termios via ioctl(TCSETS*) without actually
changing the line discipline via ioctl(TIOCSETD).
However... | Peter Hurley | null | {'additions': 23, 'deletions': 1, 'total': 24} | [
{
"additions": 23,
"changes": 24,
"deletions": 1,
"patch": "@@ -2658,6 +2658,28 @@ static int tiocsetd(struct tty_struct *tty, int __user *p)\n \treturn ret;\n }\n \n+/**\n+ *\ttiocgetd\t-\tget line discipline\n+ *\t@tty: tty device\n+ *\t@p: pointer to user data\n+ *\n+ *\tRetrieves the line discip... | c | CWE-362 | [
"drivers/tty/tty_io.c"
] | drivers/tty/tty_io.c | 1 |
static ssize_t pagemap_read(struct file *file, char __user *buf, static int pagemap_open(struct inode *inode, struct file *file) { pr_warn_once("Bits 55-60 of /proc/PID/pagemap entries are about " "to stop being page-shift some time soon. See the " "linux/Documentation/vm/pagemap.txt for details.\n"); | static ssize_t pagemap_read(struct file *file, char __user *buf, static int pagemap_open(struct inode *inode, struct file *file) { /* do not disclose physical addresses: attack vector */ if (!capable(CAP_SYS_ADMIN)) return -EPERM; pr_warn_once("Bits 55-60 of /proc/PID/pagemap entries are about " "to stop bein... | CVE-2016-0823 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce'} | nvd | The pagemap_open function in fs/proc/task_mmu.c in the Linux kernel before 3.19.3, as used in Android 6.0.1 before 2016-03-01, allows local users to obtain sensitive physical-address information by reading a pagemap file, aka Android internal bug 25739721. | 2016-03-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce | ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce | SINGLE | ['ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce'] | {'06e5801b8cb3fc057d88cb4dc03c0b64b2744cda'} | ab676b7d6fbf4b294bf198fb27ade5b0e865c7ce | 1 | 03/09/2015, 21:11:12 | pagemap: do not leak physical addresses to non-privileged userspace
As pointed by recent post[1] on exploiting DRAM physical imperfection,
/proc/PID/pagemap exposes sensitive information which can be used to do
attacks.
This disallows anybody without CAP_SYS_ADMIN to read the pagemap.
[1] http://googleprojectzero.bl... | Kirill A. Shutemov | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -1325,6 +1325,9 @@ static ssize_t pagemap_read(struct file *file, char __user *buf,\n \n static int pagemap_open(struct inode *inode, struct file *file)\n {\n+\t/* do not disclose physical addresses: attack vector */\n+\tif (!capable(CAP_S... | c | CWE-200 | [
"fs/proc/task_mmu.c"
] | fs/proc/task_mmu.c | 1 |
/* $OpenBSD: serverloop.c,v 1.188 2016/11/30 03:00:05 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland server_request_direct_streamlocal(void) /* XXX fine grained permissions */ if ((options.allow_streamlocal_forwarding & FORWARD_LOCAL) != 0 &&... | /* $OpenBSD: serverloop.c,v 1.189 2016/12/14 00:36:34 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland server_request_direct_streamlocal(void) /* XXX fine grained permissions */ if ((options.allow_streamlocal_forwarding & FORWARD_LOCAL) != 0 &&... | CVE-2016-10010 | {'CWE-264'} | 10 | {'https://github.com/openbsd/src/commit/c76fac666ea038753294f2ac94d310f8adece9ce'} | nvd | sshd in OpenSSH before 7.4, when privilege separation is not used, creates forwarded Unix-domain sockets as root, which might allow local users to gain privileges via unspecified vectors, related to serverloop.c. | 2017-01-05 | 1 | https://github.com/openbsd/src | https://github.com/openbsd/src/commit/c76fac666ea038753294f2ac94d310f8adece9ce | c76fac666ea038753294f2ac94d310f8adece9ce | SINGLE | ['c76fac666ea038753294f2ac94d310f8adece9ce'] | {'022c978178f84bd9df4050e0f8ef31880724f3cc'} | c76fac666ea038753294f2ac94d310f8adece9ce | 1 | 12/14/2016, 00:36:34 | disable Unix-domain socket forwarding when privsep is disabled | djm | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -1,4 +1,4 @@\n-/* $OpenBSD: serverloop.c,v 1.188 2016/11/30 03:00:05 djm Exp $ */\n+/* $OpenBSD: serverloop.c,v 1.189 2016/12/14 00:36:34 djm Exp $ */\n /*\n * Author: Tatu Ylonen <ylo@cs.hut.fi>\n * Copyright (c) 1995 Tatu Ylonen <ylo@c... | c | CWE-264 | [
"usr.bin/ssh/serverloop.c"
] | usr.bin/ssh/serverloop.c | 1 |
static struct dentry *aio_mount(struct file_system_type *fs_type, static const struct dentry_operations ops = { .d_dname = simple_dname, }; return mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC); } /* aio_setup | static struct dentry *aio_mount(struct file_system_type *fs_type, static const struct dentry_operations ops = { .d_dname = simple_dname, }; struct dentry *root = mount_pseudo(fs_type, "aio:", NULL, &ops, AIO_RING_MAGIC); if (!IS_ERR(root)) root->d_sb->s_iflags |= SB_I_NOEXEC; return root; } /* aio_s... | CVE-2016-10044 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/22f6b4d34fcf039c63a94e7670e0da24f8575a5a'} | nvd | The aio_mount function in fs/aio.c in the Linux kernel before 4.7.7 does not properly restrict execute access, which makes it easier for local users to bypass intended SELinux W^X policy restrictions, and consequently gain privileges, via an io_setup system call. | 2017-02-07 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/22f6b4d34fcf039c63a94e7670e0da24f8575a5a | 22f6b4d34fcf039c63a94e7670e0da24f8575a5a | SINGLE | ['22f6b4d34fcf039c63a94e7670e0da24f8575a5a'] | {'024c7e3756d8a42fc41fe8a9488488b9b09d1dcc'} | 22f6b4d34fcf039c63a94e7670e0da24f8575a5a | 1 | 09/15/2016, 22:31:22 | aio: mark AIO pseudo-fs noexec
This ensures that do_mmap() won't implicitly make AIO memory mappings
executable if the READ_IMPLIES_EXEC personality flag is set. Such
behavior is problematic because the security_mmap_file LSM hook doesn't
catch this case, potentially permitting an attacker to bypass a W^X
policy enfo... | Jann Horn | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -239,7 +239,12 @@ static struct dentry *aio_mount(struct file_system_type *fs_type,\n \tstatic const struct dentry_operations ops = {\n \t\t.d_dname\t= simple_dname,\n \t};\n-\treturn mount_pseudo(fs_type, \"aio:\", NULL, &ops, AIO_RING_MA... | c | CWE-264 | [
"fs/aio.c"
] | fs/aio.c | 1 |
MATLAB_KO: ThrowReaderException(CorruptImageError,"ImproperImageHeader"); case 16: z2=z = ReadBlobXXXLong(image2); /* 4D matrix animation */ if(z!=3 && z!=1) ThrowReaderException(CoderError, "MultidimensionalMatricesAreNotSupported"); Frames = ReadBlobXXXLong(image2); brea... | MATLAB_KO: ThrowReaderException(CorruptImageError,"ImproperImageHeader"); case 16: z2=z = ReadBlobXXXLong(image2); /* 4D matrix animation */ if(z!=3 && z!=1) ThrowReaderException(CoderError, "MultidimensionalMatricesAreNotSupported"); Frames = ReadBlobXXXLong(image2); if (F... | CVE-2016-10069 | {'CWE-20'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/8a370f9ab120faf182aa160900ba692ba8e2bcf0'} | nvd | coders/mat.c in ImageMagick before 6.9.4-5 allows remote attackers to cause a denial of service (application crash) via a mat file with an invalid number of frames. | 2017-03-02 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/8a370f9ab120faf182aa160900ba692ba8e2bcf0 | 8a370f9ab120faf182aa160900ba692ba8e2bcf0 | SINGLE | ['8a370f9ab120faf182aa160900ba692ba8e2bcf0'] | {'36ad94e7cbe55cb824b9fb311ec38627e2e31379'} | 8a370f9ab120faf182aa160900ba692ba8e2bcf0 | 1 | 05/29/2016, 06:15:48 | Added check for invalid number of frames. | dirk | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -942,7 +942,9 @@ MATLAB_KO: ThrowReaderException(CorruptImageError,\"ImproperImageHeader\");\n case 16: z2=z = ReadBlobXXXLong(image2); /* 4D matrix animation */\n if(z!=3 && z!=1)\n ThrowReaderException(CoderErr... | c | CWE-20 | [
"coders/mat.c"
] | coders/mat.c | 1 |
} else { die('Missing file '.$filename); } ?>\ No newline at end of file | } else { die('Missing file '.htmlentities($filename)); } ?>\ No newline at end of file | CVE-2016-10083 | {'CWE-79'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/7df3830c81716b959a2d0d3a0d8216b860ae0dc7'} | nvd | Cross-site scripting (XSS) vulnerability in admin/plugin.php in Piwigo through 2.8.3 allows remote attackers to inject arbitrary web script or HTML via a crafted filename that is mishandled in a certain error case. | 2016-12-30 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/7df3830c81716b959a2d0d3a0d8216b860ae0dc7 | 7df3830c81716b959a2d0d3a0d8216b860ae0dc7 | SINGLE | ['7df3830c81716b959a2d0d3a0d8216b860ae0dc7'] | {'b5c036ebfbf5217c2cfbe424917702edf3afea22'} | 7df3830c81716b959a2d0d3a0d8216b860ae0dc7 | 1 | 12/24/2016, 18:53:49 | fixes #575, sanitize user input before display on die() | plegall | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -63,6 +63,6 @@\n }\n else\n {\n- die('Missing file '.$filename);\n+ die('Missing file '.htmlentities($filename));\n }\n ?>\n\\ No newline at end of file",
"path": "admin/plugin.php",
"raw_url": "https://github.com/Piwigo/Piwigo/r... | php | CWE-79 | [
"admin/plugin.php"
] | admin/plugin.php | 1 |
static Image *ExtractPostscript(Image *image,const ImageInfo *image_info, if(exception->severity != UndefinedException) goto FINISH_UNL; if(magic_info->name == (char *) NULL) goto FINISH_UNL; (void) strncpy(clone_info->magick,magic_info->name,MaxTextExtent); /* Read nested image */ /*FormatString(clone_i... | static Image *ExtractPostscript(Image *image,const ImageInfo *image_info, if(exception->severity != UndefinedException) goto FINISH_UNL; if(magic_info->name == (char *) NULL) goto FINISH_UNL; (void) strncpy(clone_info->magick,magic_info->name,MaxTextExtent-1); /* Read nested image */ /*FormatString(clone... | CVE-2016-10145 | {'CWE-189'} | 6.4 | {'https://github.com/ImageMagick/ImageMagick/commit/d23beebe7b1179fb75db1e85fbca3100e49593d9'} | nvd | Off-by-one error in coders/wpg.c in ImageMagick allows remote attackers to have unspecified impact via vectors related to a string copy. | 2017-03-24 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/d23beebe7b1179fb75db1e85fbca3100e49593d9 | d23beebe7b1179fb75db1e85fbca3100e49593d9 | SINGLE | ['d23beebe7b1179fb75db1e85fbca3100e49593d9'] | {'ef678782b3531977c2dac53277ac68573f69a9f2'} | d23beebe7b1179fb75db1e85fbca3100e49593d9 | 1 | 12/24/2016, 16:44:42 | ... | Cristy | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -803,7 +803,7 @@ static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,\n if(exception->severity != UndefinedException) goto FINISH_UNL;\n if(magic_info->name == (char *) NULL) goto FINISH_UNL;\n \n- (void) strncpy(... | c | CWE-189 | [
"coders/wpg.c"
] | coders/wpg.c | 1 |
static void *mcryptd_alloc_instance(struct crypto_alg *alg, unsigned int head, goto out; } static inline void mcryptd_check_internal(struct rtattr **tb, u32 *type, u32 *mask) { struct crypto_attr_type *algt; algt = crypto_get_attr_type(tb); if (IS_ERR(algt)) return; if ((algt->type & CRYPTO_ALG_INTERNA... | static void *mcryptd_alloc_instance(struct crypto_alg *alg, unsigned int head, goto out; } static inline bool mcryptd_check_internal(struct rtattr **tb, u32 *type, u32 *mask) { struct crypto_attr_type *algt; algt = crypto_get_attr_type(tb); if (IS_ERR(algt)) return false; *type |= algt->type & CRYPTO_... | CVE-2016-10147 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/48a992727d82cb7db076fa15d372178743b1f4cd'} | nvd | crypto/mcryptd.c in the Linux kernel before 4.8.15 allows local users to cause a denial of service (NULL pointer dereference and system crash) by using an AF_ALG socket with an incompatible algorithm, as demonstrated by mcryptd(md5). | 2017-01-18 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/48a992727d82cb7db076fa15d372178743b1f4cd | 48a992727d82cb7db076fa15d372178743b1f4cd | SINGLE | ['48a992727d82cb7db076fa15d372178743b1f4cd'] | {'0c1e16cd1ec41987cc6671a2bff46ac958c41eb5'} | 48a992727d82cb7db076fa15d372178743b1f4cd | 1 | 12/05/2016, 19:46:31 | crypto: mcryptd - Check mcryptd algorithm compatibility
Algorithms not compatible with mcryptd could be spawned by mcryptd
with a direct crypto_alloc_tfm invocation using a "mcryptd(alg)" name
construct. This causes mcryptd to crash the kernel if an arbitrary
"alg" is incompatible and not intended to be used with mcr... | tim | null | {'additions': 12, 'deletions': 7, 'total': 19} | [
{
"additions": 12,
"changes": 19,
"deletions": 7,
"patch": "@@ -254,18 +254,22 @@ static void *mcryptd_alloc_instance(struct crypto_alg *alg, unsigned int head,\n \tgoto out;\n }\n \n-static inline void mcryptd_check_internal(struct rtattr **tb, u32 *type,\n+static inline bool mcryptd_check_internal... | c | CWE-476 | [
"crypto/mcryptd.c"
] | crypto/mcryptd.c | 1 |
static int kvm_ioctl_create_device(struct kvm *kvm, ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { ops->destroy(dev); mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); return ret; } | static int kvm_ioctl_create_device(struct kvm *kvm, ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(dev); return ret; } | CVE-2016-10150 | {'CWE-416', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/a0f1d21c1ccb1da66629627a74059dd7f5ac9c61'} | nvd | Use-after-free vulnerability in the kvm_ioctl_create_device function in virt/kvm/kvm_main.c in the Linux kernel before 4.8.13 allows host OS users to cause a denial of service (host OS crash) or possibly gain privileges via crafted ioctl calls on the /dev/kvm device. | 2017-02-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | SINGLE | ['a0f1d21c1ccb1da66629627a74059dd7f5ac9c61'] | {'0f4828a1da3342be81e812b28fbcf29261146d25'} | a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | 1 | 11/30/2016, 19:21:05 | KVM: use after free in kvm_ioctl_create_device()
We should move the ops->destroy(dev) after the list_del(&dev->vm_node)
so that we don't use "dev" after freeing it.
Fixes: a28ebea2adc4 ("KVM: Protect device ops->create and list_add with kvm->lock")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: ... | Dan Carpenter | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2889,10 +2889,10 @@ static int kvm_ioctl_create_device(struct kvm *kvm,\n \n \tret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC);\n \tif (ret < 0) {\n-\t\tops->destroy(dev);\n \t\tmutex_lock(&kvm->lock);\n \t\tl... | c | CWE-416 | [
"virt/kvm/kvm_main.c"
] | virt/kvm/kvm_main.c | 1 |
static int kvm_ioctl_create_device(struct kvm *kvm, ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { ops->destroy(dev); mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); return ret; } | static int kvm_ioctl_create_device(struct kvm *kvm, ret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC); if (ret < 0) { mutex_lock(&kvm->lock); list_del(&dev->vm_node); mutex_unlock(&kvm->lock); ops->destroy(dev); return ret; } | CVE-2016-10150 | {'CWE-416', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/a0f1d21c1ccb1da66629627a74059dd7f5ac9c61'} | nvd | Use-after-free vulnerability in the kvm_ioctl_create_device function in virt/kvm/kvm_main.c in the Linux kernel before 4.8.13 allows host OS users to cause a denial of service (host OS crash) or possibly gain privileges via crafted ioctl calls on the /dev/kvm device. | 2017-02-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | SINGLE | ['a0f1d21c1ccb1da66629627a74059dd7f5ac9c61'] | {'0f4828a1da3342be81e812b28fbcf29261146d25'} | a0f1d21c1ccb1da66629627a74059dd7f5ac9c61 | 1 | 11/30/2016, 19:21:05 | KVM: use after free in kvm_ioctl_create_device()
We should move the ops->destroy(dev) after the list_del(&dev->vm_node)
so that we don't use "dev" after freeing it.
Fixes: a28ebea2adc4 ("KVM: Protect device ops->create and list_add with kvm->lock")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: ... | Dan Carpenter | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2889,10 +2889,10 @@ static int kvm_ioctl_create_device(struct kvm *kvm,\n \n \tret = anon_inode_getfd(ops->name, &kvm_device_fops, dev, O_RDWR | O_CLOEXEC);\n \tif (ret < 0) {\n-\t\tops->destroy(dev);\n \t\tmutex_lock(&kvm->lock);\n \t\tl... | c | CWE-264 | [
"virt/kvm/kvm_main.c"
] | virt/kvm/kvm_main.c | 1 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <crypto/skcipher.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/fs.h> str_to_key(unsigned char *str, unsigned char *key) static int smbhash(unsigned char *out, const unsigned char *in, unsigned char *key) { int rc; unsign... | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/crypto.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/fs.h> str_to_key(unsigned char *str, unsigned char *key) static int smbhash(unsigned char *out, const unsigned char *in, unsigned char *key) { unsigned char key2... | CVE-2016-10154 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/06deeec77a5a689cc94b21a8a91a76e42176685d'} | nvd | The smbhash function in fs/cifs/smbencrypt.c in the Linux kernel 4.9.x before 4.9.1 interacts incorrectly with the CONFIG_VMAP_STACK option, which allows local users to cause a denial of service (system crash or memory corruption) or possibly have unspecified other impact by leveraging use of more than one virtual page... | 2017-02-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/06deeec77a5a689cc94b21a8a91a76e42176685d | 06deeec77a5a689cc94b21a8a91a76e42176685d | SINGLE | ['06deeec77a5a689cc94b21a8a91a76e42176685d'] | {'96a988ffeb90dba33a71c3826086fe67c897a183'} | 06deeec77a5a689cc94b21a8a91a76e42176685d | 1 | 12/12/2016, 20:54:37 | cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack
smbencrypt() points a scatterlist to the stack, which is breaks if
CONFIG_VMAP_STACK=y.
Fix it by switching to crypto_cipher_encrypt_one(). The new code
should be considerably faster as an added benefit.
This code is nearly identical to some code th... | Andy Lutomirski | null | {'additions': 8, 'deletions': 32, 'total': 40} | [
{
"additions": 8,
"changes": 40,
"deletions": 32,
"patch": "@@ -23,7 +23,7 @@\n Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n */\n \n-#include <crypto/skcipher.h>\n+#include <linux/crypto.h>\n #include <linux/module.h>\n #include <linux/slab.h>\n #include <linux/fs.h>\n@@ -69,46 +69... | c | CWE-119 | [
"fs/cifs/smbencrypt.c"
] | fs/cifs/smbencrypt.c | 1 |
void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU // Check for overflow if (Offset < (SizeOfHeader + 8)) goto Error; // True begin of the string BeginOfThisString = Offset - SizeOfHeader - 8; | void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU // Check for overflow if (Offset < (SizeOfHeader + 8)) goto Error; if ((Offset + Len) > SizeOfTag + 8) goto Error; // True begin of the string BeginOfThisString = Offset - SizeOfHeader - 8; | CVE-2016-10165 | {'CWE-125'} | 4.9 | {'https://github.com/mm2/Little-CMS/commit/5ca71a7bc18b6897ab21d815d15e218e204581e2'} | nvd | The Type_MLU_Read function in cmstypes.c in Little CMS (aka lcms2) allows remote attackers to obtain sensitive information or cause a denial of service via an image with a crafted ICC profile, which triggers an out-of-bounds heap read. | 2017-02-03 | 1 | https://github.com/mm2/Little-CMS | https://github.com/mm2/Little-CMS/commit/5ca71a7bc18b6897ab21d815d15e218e204581e2 | 5ca71a7bc18b6897ab21d815d15e218e204581e2 | SINGLE | ['5ca71a7bc18b6897ab21d815d15e218e204581e2'] | {'696d6b171fd8c270aeaa2cd1a69f6211426fd6b1'} | 5ca71a7bc18b6897ab21d815d15e218e204581e2 | 1 | 08/15/2016, 21:31:39 | Added an extra check to MLU bounds
Thanks to Ibrahim el-sayed for spotting the bug | Marti | {'com_1': {'author': 'yqxxbomb', 'datetime': '08/15/2016, 21:59:48', 'body': '没怎么看懂呵呵'}, 'com_2': {'author': 'carnil', 'datetime': '01/25/2017, 18:14:40', 'body': 'FTR, this is [CVE-2016-10165](http://www.openwall.com/lists/oss-security/2017/01/25/14)'}} | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -1460,6 +1460,7 @@ void *Type_MLU_Read(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, cmsU\n \n // Check for overflow\n if (Offset < (SizeOfHeader + 8)) goto Error;\n+ if ((Offset + Len) > SizeOfTag + 8) got... | c | CWE-125 | [
"src/cmstypes.c"
] | src/cmstypes.c | 1 |
file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch bee_t *bee = ic->bee; bee_user_t *bu = bee_user_by_handle(bee, ic, handle); if (bee->ui->ft_in_start) { return bee->ui->ft_in_start(bee, bu, file_name, file_size); } else { return NULL; | file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch bee_t *bee = ic->bee; bee_user_t *bu = bee_user_by_handle(bee, ic, handle); if (bee->ui->ft_in_start && bu) { return bee->ui->ft_in_start(bee, bu, file_name, file_size); } else { return NULL; | CVE-2016-10189 | {'CWE-476'} | 2.9 | {'https://github.com/bitlbee/bitlbee/commit/701ab8129ba9ea64f569daedca9a8603abad740f'} | nvd | BitlBee before 3.5 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) and possibly execute arbitrary code via a file transfer request for a contact that is not in the contact list. | 2017-03-14 | 1 | https://github.com/bitlbee/bitlbee | https://github.com/bitlbee/bitlbee/commit/701ab8129ba9ea64f569daedca9a8603abad740f | 701ab8129ba9ea64f569daedca9a8603abad740f | SINGLE | ['701ab8129ba9ea64f569daedca9a8603abad740f'] | {'fca468311f1fd9880ed2ae4991b2ecc261fd34d5'} | 701ab8129ba9ea64f569daedca9a8603abad740f | 1 | 11/13/2016, 19:52:43 | imcb_file_send_start: handle ft attempts from non-existing users | dequis | {'com_1': {'author': 'carnil', 'datetime': '01/31/2017, 07:38:52', 'body': 'CVE Request: http://www.openwall.com/lists/oss-security/2017/01/30/4'}, 'com_2': {'author': 'dequis', 'datetime': '01/31/2017, 15:55:06', 'body': 'CVE-2016-10189 has been assigned for this\r\n\r\n(see also 30d598ce7cd3f136ee9d7097f39fa9818a2724... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -30,7 +30,7 @@ file_transfer_t *imcb_file_send_start(struct im_connection *ic, char *handle, ch\n \tbee_t *bee = ic->bee;\n \tbee_user_t *bu = bee_user_by_handle(bee, ic, handle);\n \n-\tif (bee->ui->ft_in_start) {\n+\tif (bee->ui->ft_in_s... | c | CWE-476 | [
"protocols/bee_ft.c"
] | protocols/bee_ft.c | 1 |
typedef struct HTTPContext { int line_count; int http_code; /* Used if "Transfer-Encoding: chunked" otherwise -1. */ int64_t chunksize; int64_t off, end_off, filesize; char *location; HTTPAuthState auth_state; HTTPAuthState proxy_auth_state; typedef struct HTTPContext { AVDictionary... | typedef struct HTTPContext { int line_count; int http_code; /* Used if "Transfer-Encoding: chunked" otherwise -1. */ uint64_t chunksize; uint64_t off, end_off, filesize; char *location; HTTPAuthState auth_state; HTTPAuthState proxy_auth_state; typedef struct HTTPContext { AVDictiona... | CVE-2016-10190 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/2a05c8f813de6f2278827734bf8102291e7484aa'} | nvd | Heap-based buffer overflow in libavformat/http.c in FFmpeg before 2.8.10, 3.0.x before 3.0.5, 3.1.x before 3.1.6, and 3.2.x before 3.2.2 allows remote web servers to execute arbitrary code via a negative chunk size in an HTTP response. | 2017-02-09 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/2a05c8f813de6f2278827734bf8102291e7484aa | 2a05c8f813de6f2278827734bf8102291e7484aa | SINGLE | ['2a05c8f813de6f2278827734bf8102291e7484aa'] | {'51020adcecf4004c1586a708d96acc6cbddd050a'} | 2a05c8f813de6f2278827734bf8102291e7484aa | 1 | 12/05/2016, 13:02:33 | http: make length/offset-related variables unsigned.
Fixes #5992, reported and found by Paul Cher <paulcher@icloud.com>. | Ronald S. Bultje | {'com_1': {'author': 'carnil', 'datetime': '02/14/2017, 05:54:01', 'body': 'This is [CVE-2016-10190](http://www.openwall.com/lists/oss-security/2017/02/02/1)'}} | {'additions': 38, 'deletions': 32, 'total': 70} | [
{
"additions": 38,
"changes": 70,
"deletions": 32,
"patch": "@@ -62,8 +62,8 @@ typedef struct HTTPContext {\n int line_count;\n int http_code;\n /* Used if \"Transfer-Encoding: chunked\" otherwise -1. */\n- int64_t chunksize;\n- int64_t off, end_off, filesize;\n+ uint64_t chunks... | c | CWE-119 | [
"libavformat/http.c"
] | libavformat/http.c | 1 |
static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p, if (hdr != RTMP_PS_TWELVEBYTES) timestamp += prev_pkt[channel_id].timestamp; if (!prev_pkt[channel_id].read) { if ((ret = ff_rtmp_packet_create(p, channel_id, type, timestamp, size)) < ... | static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p, if (hdr != RTMP_PS_TWELVEBYTES) timestamp += prev_pkt[channel_id].timestamp; if (prev_pkt[channel_id].read && size != prev_pkt[channel_id].size) { av_log(NULL, AV_LOG_ERROR, "RTMP packet size mismatch %d != %d\n", ... | CVE-2016-10191 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/7d57ca4d9a75562fa32e40766211de150f8b3ee7'} | nvd | Heap-based buffer overflow in libavformat/rtmppkt.c in FFmpeg before 2.8.10, 3.0.x before 3.0.5, 3.1.x before 3.1.6, and 3.2.x before 3.2.2 allows remote attackers to execute arbitrary code by leveraging failure to check for RTMP packet size mismatches. | 2017-02-09 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/7d57ca4d9a75562fa32e40766211de150f8b3ee7 | 7d57ca4d9a75562fa32e40766211de150f8b3ee7 | SINGLE | ['7d57ca4d9a75562fa32e40766211de150f8b3ee7'] | {'d903b4e3ad4a81b3dd79f12c2f3b9cb16e511173'} | 7d57ca4d9a75562fa32e40766211de150f8b3ee7 | 1 | 12/05/2016, 10:14:51 | avformat/rtmppkt: Check for packet size mismatches
Fixes out of array access
Found-by: Paul Cher <paulcher@icloud.com>
Reviewed-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'carnil', 'datetime': '02/14/2017, 06:00:58', 'body': 'This is [CVE-2016-10191](http://www.openwall.com/lists/oss-security/2017/02/02/1)'}} | {'additions': 8, 'deletions': 0, 'total': 8} | [
{
"additions": 8,
"changes": 8,
"deletions": 0,
"patch": "@@ -235,6 +235,14 @@ static int rtmp_packet_read_one_chunk(URLContext *h, RTMPPacket *p,\n if (hdr != RTMP_PS_TWELVEBYTES)\n timestamp += prev_pkt[channel_id].timestamp;\n \n+ if (prev_pkt[channel_id].read && size != prev_pkt[c... | c | CWE-119 | [
"libavformat/rtmppkt.c"
] | libavformat/rtmppkt.c | 1 |
static int http_receive_data(HTTPContext *c) } else if (c->buffer_ptr - c->buffer >= 2 && !memcmp(c->buffer_ptr - 1, "\r\n", 2)) { c->chunk_size = strtol(c->buffer, 0, 16); if (c->chunk_size == 0) // end of stream goto fail; c->buffer_ptr =... | static int http_receive_data(HTTPContext *c) } else if (c->buffer_ptr - c->buffer >= 2 && !memcmp(c->buffer_ptr - 1, "\r\n", 2)) { c->chunk_size = strtol(c->buffer, 0, 16); if (c->chunk_size <= 0) { // end of stream or invalid chunk size c->chunk_size ... | CVE-2016-10192 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/a5d25faa3f4b18dac737fdb35d0dd68eb0dc2156'} | nvd | Heap-based buffer overflow in ffserver.c in FFmpeg before 2.8.10, 3.0.x before 3.0.5, 3.1.x before 3.1.6, and 3.2.x before 3.2.2 allows remote attackers to execute arbitrary code by leveraging failure to check chunk size. | 2017-02-09 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/a5d25faa3f4b18dac737fdb35d0dd68eb0dc2156 | a5d25faa3f4b18dac737fdb35d0dd68eb0dc2156 | SINGLE | ['a5d25faa3f4b18dac737fdb35d0dd68eb0dc2156'] | {'a5f27a9c3aa973c543bd8bbf2a78363700bbc03e'} | a5d25faa3f4b18dac737fdb35d0dd68eb0dc2156 | 1 | 12/05/2016, 16:27:45 | ffserver: Check chunk size
Fixes out of array access
Fixes: poc_ffserver.py
Found-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'carnil', 'datetime': '02/14/2017, 06:01:24', 'body': 'This is [CVE-2016-10192](http://www.openwall.com/lists/oss-security/2017/02/02/1)'}} | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -2738,8 +2738,10 @@ static int http_receive_data(HTTPContext *c)\n } else if (c->buffer_ptr - c->buffer >= 2 &&\n !memcmp(c->buffer_ptr - 1, \"\\r\\n\", 2)) {\n c->chunk_size = strtol(c->buffer, 0, 16... | c | CWE-119 | [
"ffserver.c"
] | ffserver.c | 1 |
name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) { for (;;) { u8 label_len; if (j >= length) return -1; GET8(label_len); if (!label_len) break; if (label_len & 0xc0) { name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) { *cp++ = '.'; } if (cp... | name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) { for (;;) { u8 label_len; GET8(label_len); if (!label_len) break; if (label_len & 0xc0) { name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) { *cp++ = '.'; } if (cp + label_len >= end) return -1... | CVE-2016-10195 | {'CWE-125'} | 6.4 | {'https://github.com/libevent/libevent/commit/96f64a022014a208105ead6c8a7066018449d86d'} | nvd | The name_parse function in evdns.c in libevent before 2.1.6-beta allows remote attackers to have unspecified impact via vectors involving the label_len variable, which triggers an out-of-bounds stack read. | 2017-03-15 | 1 | https://github.com/libevent/libevent | https://github.com/libevent/libevent/commit/96f64a022014a208105ead6c8a7066018449d86d | 96f64a022014a208105ead6c8a7066018449d86d | SINGLE | ['96f64a022014a208105ead6c8a7066018449d86d'] | {'329acc18a0768c21ba22522f01a5c7f46cacc4d5'} | 96f64a022014a208105ead6c8a7066018449d86d | 1 | 02/01/2016, 14:32:09 | evdns: name_parse(): fix remote stack overread
@asn-the-goblin-slayer:
"the name_parse() function in libevent's DNS code is vulnerable to a buffer overread.
971 if (cp != name_out) {
972 if (cp + 1 >= end) return -1;
973 *cp++ = '.';
974 }
975 if (cp + ... | Azat Khuzhin | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -976,7 +976,6 @@ name_parse(u8 *packet, int length, int *idx, char *name_out, int name_out_len) {\n \n \tfor (;;) {\n \t\tu8 label_len;\n-\t\tif (j >= length) return -1;\n \t\tGET8(label_len);\n \t\tif (!label_len) break;\n \t\tif (label_l... | c | CWE-125 | [
"evdns.c"
] | evdns.c | 1 |
evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int * cp = strchr(ip_as_string, ':'); if (*ip_as_string == '[') { int len; if (!(cp = strchr(ip_as_string, ']'))) { return -1; } len = (int) ( cp-(ip_as_string + 1) ); if (len > (int)sizeof(buf)-1) { return -1; } memcpy(b... | evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int * cp = strchr(ip_as_string, ':'); if (*ip_as_string == '[') { size_t len; if (!(cp = strchr(ip_as_string, ']'))) { return -1; } len = ( cp-(ip_as_string + 1) ); if (len > sizeof(buf)-1) { return -1; } memcpy(buf, ip_a... | CVE-2016-10196 | {'CWE-787'} | 2.9 | {'https://github.com/libevent/libevent/commit/329acc18a0768c21ba22522f01a5c7f46cacc4d5'} | nvd | Stack-based buffer overflow in the evutil_parse_sockaddr_port function in evutil.c in libevent before 2.1.6-beta allows attackers to cause a denial of service (segmentation fault) via vectors involving a long string in brackets in the ip_as_string argument. | 2017-03-15 | 1 | https://github.com/libevent/libevent | https://github.com/libevent/libevent/commit/329acc18a0768c21ba22522f01a5c7f46cacc4d5 | 329acc18a0768c21ba22522f01a5c7f46cacc4d5 | SINGLE | ['329acc18a0768c21ba22522f01a5c7f46cacc4d5'] | {'49bd79047bc9aca3ca43fb79eac3901e7805c0df'} | 329acc18a0768c21ba22522f01a5c7f46cacc4d5 | 1 | 01/30/2016, 21:57:16 | evutil_parse_sockaddr_port(): fix buffer overflow
@asn-the-goblin-slayer:
"Length between '[' and ']' is cast to signed 32 bit integer on line 1815. Is
the length is more than 2<<31 (INT_MAX), len will hold a negative value.
Consequently, it will pass the check at line 1816. Segfault happens at line
1819.
... | Azat Khuzhin | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -2058,12 +2058,12 @@ evutil_parse_sockaddr_port(const char *ip_as_string, struct sockaddr *out, int *\n \n \tcp = strchr(ip_as_string, ':');\n \tif (*ip_as_string == '[') {\n-\t\tint len;\n+\t\tsize_t len;\n \t\tif (!(cp = strchr(ip_as_str... | c | CWE-787 | [
"evutil.c"
] | evutil.c | 1 |
search_set_from_hostname(struct evdns_base *base) { static char * search_make_new(const struct search_state *const state, int n, const char *const base_name) { const size_t base_len = strlen(base_name); const char need_to_append_dot = base_name[base_len - 1] == '.' ? 0 : 1; struct search_domain *dom; for (dom = s... | search_set_from_hostname(struct evdns_base *base) { static char * search_make_new(const struct search_state *const state, int n, const char *const base_name) { const size_t base_len = strlen(base_name); char need_to_append_dot; struct search_domain *dom; if (!base_len) return NULL; need_to_append_dot = base_name... | CVE-2016-10197 | {'CWE-125'} | 2.9 | {'https://github.com/libevent/libevent/commit/ec65c42052d95d2c23d1d837136d1cf1d9ecef9e'} | nvd | The search_make_new function in evdns.c in libevent before 2.1.6-beta allows attackers to cause a denial of service (out-of-bounds read) via an empty hostname. | 2017-03-15 | 1 | https://github.com/libevent/libevent | https://github.com/libevent/libevent/commit/ec65c42052d95d2c23d1d837136d1cf1d9ecef9e | ec65c42052d95d2c23d1d837136d1cf1d9ecef9e | SINGLE | ['ec65c42052d95d2c23d1d837136d1cf1d9ecef9e'] | {'d7348bab602cf4dbdf65b9eeba2fb9ce4646bc0b'} | ec65c42052d95d2c23d1d837136d1cf1d9ecef9e | 1 | 03/24/2016, 21:33:47 | evdns: fix searching empty hostnames
From #332:
Here follows a bug report by **Guido Vranken** via the _Tor bug bounty program_. Please credit Guido accordingly.
## Bug report
The DNS code of Libevent contains this rather obvious OOB read:
```c
static char *
search_make_new(const struct search_state *co... | Azat Khuzhin | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -3175,9 +3175,12 @@ search_set_from_hostname(struct evdns_base *base) {\n static char *\n search_make_new(const struct search_state *const state, int n, const char *const base_name) {\n \tconst size_t base_len = strlen(base_name);\n-\tcons... | c | CWE-125 | [
"evdns.c"
] | evdns.c | 1 |
static int ext4_fill_super(struct super_block *sb, void *data, int silent) (EXT4_MAX_BLOCK_FILE_PHYS / EXT4_BLOCKS_PER_GROUP(sb))); db_count = (sbi->s_groups_count + EXT4_DESC_PER_BLOCK(sb) - 1) / EXT4_DESC_PER_BLOCK(sb); sbi->s_group_desc = ext4_kvmalloc(db_count * sizeof(struct buffer_head *), ... | static int ext4_fill_super(struct super_block *sb, void *data, int silent) (EXT4_MAX_BLOCK_FILE_PHYS / EXT4_BLOCKS_PER_GROUP(sb))); db_count = (sbi->s_groups_count + EXT4_DESC_PER_BLOCK(sb) - 1) / EXT4_DESC_PER_BLOCK(sb); if (ext4_has_feature_meta_bg(sb)) { if (le32_to_cpu(es->s_first_meta_bg) >= db_count)... | CVE-2016-10208 | {'CWE-125'} | 6.9 | {'https://github.com/torvalds/linux/commit/3a4b77cd47bb837b8557595ec7425f281f2ca1fe'} | nvd | The ext4_fill_super function in fs/ext4/super.c in the Linux kernel through 4.9.8 does not properly validate meta block groups, which allows physically proximate attackers to cause a denial of service (out-of-bounds read and system crash) via a crafted ext4 image. | 2017-02-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3a4b77cd47bb837b8557595ec7425f281f2ca1fe | 3a4b77cd47bb837b8557595ec7425f281f2ca1fe | SINGLE | ['3a4b77cd47bb837b8557595ec7425f281f2ca1fe'] | {'d7614cc16146e3f0b4c33e71875c19607602aed5'} | 3a4b77cd47bb837b8557595ec7425f281f2ca1fe | 1 | 12/01/2016, 20:08:37 | ext4: validate s_first_meta_bg at mount time
Ralf Spenneberg reported that he hit a kernel crash when mounting a
modified ext4 image. And it turns out that kernel crashed when
calculating fs overhead (ext4_calculate_overhead()), this is because
the image has very large s_first_meta_bg (debug code shows it's
842150400)... | Eryu Guan | null | {'additions': 9, 'deletions': 0, 'total': 9} | [
{
"additions": 9,
"changes": 9,
"deletions": 0,
"patch": "@@ -3842,6 +3842,15 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent)\n \t\t\t(EXT4_MAX_BLOCK_FILE_PHYS / EXT4_BLOCKS_PER_GROUP(sb)));\n \tdb_count = (sbi->s_groups_count + EXT4_DESC_PER_BLOCK(sb) - 1) /\n \t\t E... | c | CWE-125 | [
"fs/ext4/super.c"
] | fs/ext4/super.c | 1 |
$mode = array_key_exists('v', $_GET)?$_GET['v']:""; $query = array_key_exists('query', $_GET)?$_GET['query']:""; $query_results = run_query($query); | $mode = array_key_exists('v', $_GET)?$_GET['v']:""; $query = array_key_exists('query', $_GET)?$_GET['query']:""; $query = preg_replace("/[^a-zA-Z0-9\-\_\.\x80-\xFF]/i", " ", $query ); $query_results = run_query($query); | CVE-2016-10245 | {'CWE-79'} | 2.9 | {'https://github.com/doxygen/doxygen/commit/1cc1adad2de03a0f013881b8960daf89aa155081'} | nvd | Insufficient sanitization of the query parameter in templates/html/search_opensearch.php could lead to reflected cross-site scripting or iframe injection. | 2019-05-24 | 1 | https://github.com/doxygen/doxygen | https://github.com/doxygen/doxygen/commit/1cc1adad2de03a0f013881b8960daf89aa155081 | 1cc1adad2de03a0f013881b8960daf89aa155081 | SINGLE | ['1cc1adad2de03a0f013881b8960daf89aa155081'] | {'9abcad810b8d41d338d501ff5b32524e1ced7f33'} | 1cc1adad2de03a0f013881b8960daf89aa155081 | 1 | 03/25/2016, 18:55:20 | Bug 762934 - External search does not properly escape user supplied data, resulting in vulnerability | Dimitri van Heesch | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -3,6 +3,7 @@\n \n $mode = array_key_exists('v', $_GET)?$_GET['v']:\"\";\n $query = array_key_exists('query', $_GET)?$_GET['query']:\"\";\n+$query = preg_replace(\"/[^a-zA-Z0-9\\-\\_\\.\\x80-\\xFF]/i\", \" \", $query );\n \n $query_results ... | php | CWE-79 | [
"templates/html/search_opensearch.php"
] | templates/html/search_opensearch.php | 1 |
jp2_box_t *jp2_box_get(jas_stream_t *in) if (!(box = jas_malloc(sizeof(jp2_box_t)))) { goto error; } box->ops = &jp2_boxinfo_unk.ops; if (jp2_getuint32(in, &len) || jp2_getuint32(in, &box->type)) { goto error; } boxinfo = jp2_boxinfolookup(box->type); box->info = boxinfo; box->ops = &boxinfo->ops; box->le... | jp2_box_t *jp2_box_get(jas_stream_t *in) if (!(box = jas_malloc(sizeof(jp2_box_t)))) { goto error; } // Mark the box data as never having been constructed // so that we will not errantly attempt to destroy it later. box->ops = &jp2_boxinfo_unk.ops; if (jp2_getuint32(in, &len) || jp2_getuint32(in, &box->type)... | CVE-2016-10250 | {'CWE-476'} | 2.9 | {'https://github.com/mdadams/jasper/commit/bdfe95a6e81ffb4b2fad31a76b57943695beed20'} | nvd | The jp2_colr_destroy function in jp2_cod.c in JasPer before 1.900.13 allows remote attackers to cause a denial of service (NULL pointer dereference) by leveraging incorrect cleanup of JP2 box data on error. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-8887. | 2017-03-15 | 1 | https://github.com/mdadams/jasper | https://github.com/mdadams/jasper/commit/bdfe95a6e81ffb4b2fad31a76b57943695beed20 | bdfe95a6e81ffb4b2fad31a76b57943695beed20 | SINGLE | ['bdfe95a6e81ffb4b2fad31a76b57943695beed20'] | {'d91198abd00fc435a397fe6bad906a4c1748e9cf'} | bdfe95a6e81ffb4b2fad31a76b57943695beed20 | 1 | 10/23/2016, 10:52:29 | Fixed another problem with incorrect cleanup of JP2 box data upon error. | Michael Adams | null | {'additions': 10, 'deletions': 6, 'total': 16} | [
{
"additions": 10,
"changes": 16,
"deletions": 6,
"patch": "@@ -251,13 +251,16 @@ jp2_box_t *jp2_box_get(jas_stream_t *in)\n \tif (!(box = jas_malloc(sizeof(jp2_box_t)))) {\n \t\tgoto error;\n \t}\n+\n+\t// Mark the box data as never having been constructed\n+\t// so that we will not errantly attemp... | c | CWE-476 | [
"src/libjasper/jp2/jp2_cod.c"
] | src/libjasper/jp2/jp2_cod.c | 1 |
static int create_encryption_context_from_policy(struct inode *inode, int fscrypt_process_policy(struct inode *inode, const struct fscrypt_policy *policy) { if (policy->version != 0) return -EINVAL; | static int create_encryption_context_from_policy(struct inode *inode, int fscrypt_process_policy(struct inode *inode, const struct fscrypt_policy *policy) { if (!inode_owner_or_capable(inode)) return -EACCES; if (policy->version != 0) return -EINVAL; | CVE-2016-10318 | {'CWE-264'} | 2.9 | {'https://github.com/torvalds/linux/commit/163ae1c6ad6299b19e22b4a35d5ab24a89791a98'} | nvd | A missing authorization check in the fscrypt_process_policy function in fs/crypto/policy.c in the ext4 and f2fs filesystem encryption support in the Linux kernel before 4.7.4 allows a user to assign an encryption policy to a directory owned by a different user, potentially creating a denial of service. | 2017-04-04 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/163ae1c6ad6299b19e22b4a35d5ab24a89791a98 | 163ae1c6ad6299b19e22b4a35d5ab24a89791a98 | SINGLE | ['163ae1c6ad6299b19e22b4a35d5ab24a89791a98'] | {'c6935931c1894ff857616ff8549b61236a19148f'} | 163ae1c6ad6299b19e22b4a35d5ab24a89791a98 | 1 | 09/08/2016, 17:57:08 | fscrypto: add authorization check for setting encryption policy
On an ext4 or f2fs filesystem with file encryption supported, a user
could set an encryption policy on any empty directory(*) to which they
had readonly access. This is obviously problematic, since such a
directory might be owned by another user and the ... | Eric Biggers | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -95,6 +95,9 @@ static int create_encryption_context_from_policy(struct inode *inode,\n int fscrypt_process_policy(struct inode *inode,\n \t\t\t\tconst struct fscrypt_policy *policy)\n {\n+\tif (!inode_owner_or_capable(inode))\n+\t\treturn ... | c | CWE-264 | [
"fs/crypto/policy.c"
] | fs/crypto/policy.c | 1 |
static OPJ_BOOL opj_tcd_code_block_enc_allocate_data(opj_tcd_cblk_enc_t * { OPJ_UINT32 l_data_size; l_data_size = (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) * (p_code_block->y1 - p_code_block->y0) * (OPJ_INT32)sizeof(OPJ_UINT32)); if (l_data_size > p_code_block->dat... | static OPJ_BOOL opj_tcd_code_block_enc_allocate_data(opj_tcd_cblk_enc_t * { OPJ_UINT32 l_data_size; /* The +1 is needed for https://github.com/uclouvain/openjpeg/issues/835 */ l_data_size = 1 + (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) * (p_code_block->y1 - p_co... | CVE-2016-10504 | {'CWE-119'} | 2.9 | {'https://github.com/uclouvain/openjpeg/commit/397f62c0a838e15d667ef50e27d5d011d2c79c04'} | nvd | Heap-based buffer overflow vulnerability in the opj_mqc_byteout function in mqc.c in OpenJPEG before 2.2.0 allows remote attackers to cause a denial of service (application crash) via a crafted bmp file. | 2017-08-30 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/397f62c0a838e15d667ef50e27d5d011d2c79c04 | 397f62c0a838e15d667ef50e27d5d011d2c79c04 | SINGLE | ['397f62c0a838e15d667ef50e27d5d011d2c79c04'] | {'11445eddad7e7fa5b273d1c83c91011c44e5d586'} | 397f62c0a838e15d667ef50e27d5d011d2c79c04 | 1 | 07/29/2017, 17:13:49 | Fix write heap buffer overflow in opj_mqc_byteout(). Discovered by Ke Liu of Tencent's Xuanwu LAB (#835) | Even Rouault | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -1182,8 +1182,9 @@ static OPJ_BOOL opj_tcd_code_block_enc_allocate_data(opj_tcd_cblk_enc_t *\n {\n OPJ_UINT32 l_data_size;\n \n- l_data_size = (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) *\n- (p_... | c | CWE-119 | [
"src/lib/openjp2/tcd.c"
] | src/lib/openjp2/tcd.c | 1 |
static OPJ_BOOL opj_pi_next_rpcl(opj_pi_iterator_t * pi) try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno)); rpx = res->pdx + levelno; rpy = res->pdy + levelno; if (!((pi->y % (OPJ_INT32)(comp->dy << rpy) == 0) || ((pi->y ==... | static OPJ_BOOL opj_pi_next_rpcl(opj_pi_iterator_t * pi) try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno)); rpx = res->pdx + levelno; rpy = res->pdy + levelno; /* To avoid divisions by zero / undefined behaviour on shift *... | CVE-2016-10506 | {'CWE-369'} | 2.9 | {'https://github.com/uclouvain/openjpeg/commit/d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b'} | nvd | Division-by-zero vulnerabilities in the functions opj_pi_next_cprl, opj_pi_next_pcrl, and opj_pi_next_rpcl in pi.c in OpenJPEG before 2.2.0 allow remote attackers to cause a denial of service (application crash) via crafted j2k files. | 2017-08-30 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b | d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b | SINGLE | ['d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b'] | {'39e962a0ca5e53722f6badda8e93681aad412cf1'} | d27ccf01c68a31ad62b33d2dc1ba2bb1eeaafe7b | 1 | 07/26/2017, 09:30:56 | Avoid division by zero in opj_pi_next_rpcl, opj_pi_next_pcrl and opj_pi_next_cprl (#938)
Fixes issues with id:000026,sig:08,src:002419,op:int32,pos:60,val:+32 and
id:000019,sig:08,src:001098,op:flip1,pos:49 | Even Rouault | null | {'additions': 33, 'deletions': 0, 'total': 33} | [
{
"additions": 33,
"changes": 33,
"deletions": 0,
"patch": "@@ -369,6 +369,17 @@ static OPJ_BOOL opj_pi_next_rpcl(opj_pi_iterator_t * pi)\n try1 = opj_int_ceildiv(pi->ty1, (OPJ_INT32)(comp->dy << levelno));\n rpx = res->pdx + levelno;\n rpy... | c | CWE-369 | [
"src/lib/openjp2/pi.c"
] | src/lib/openjp2/pi.c | 1 |
opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) } } stride = ((Info_h.biWidth * Info_h.biBitCount + 31U) / 32U) * 4U; /* rows are aligned on 32bits */ if (Info_h.biBitCount == 4 && Info_h.biCompression == 2) { /* RLE 4 gets decoded as 8 bits data for now... */ stride = ((Info_h.bi... | opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) } } if (Info_h.biWidth == 0 || Info_h.biHeight == 0) { fclose(IN); return NULL; } if (Info_h.biBitCount > (((OPJ_UINT32)-1) - 31) / Info_h.biWidth) { fclose(IN); return NULL; } stride = ((Info_h.biWidth * Info_h.biBitCount... | CVE-2016-10507 | {'CWE-190'} | 2.9 | {'https://github.com/uclouvain/openjpeg/commit/da940424816e11d624362ce080bc026adffa26e8'} | nvd | Integer overflow vulnerability in the bmp24toimage function in convertbmp.c in OpenJPEG before 2.2.0 allows remote attackers to cause a denial of service (heap-based buffer over-read and application crash) via a crafted bmp file. | 2017-08-30 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/da940424816e11d624362ce080bc026adffa26e8 | da940424816e11d624362ce080bc026adffa26e8 | SINGLE | ['da940424816e11d624362ce080bc026adffa26e8'] | {'893143c8e13e491d0e884eb757580ec9575bbc8f', '31d44f02807a6ce02feead4326e58fac9681c045'} | da940424816e11d624362ce080bc026adffa26e8 | 1 | 09/20/2016, 16:59:30 | Merge pull request #834 from trylab/issue833
Fix issue 833. | Antonin Descampe | null | {'additions': 18, 'deletions': 0, 'total': 18} | [
{
"additions": 18,
"changes": 18,
"deletions": 0,
"patch": "@@ -675,10 +675,28 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters)\n \t\t}\n \t}\n \t\n+\tif (Info_h.biWidth == 0 || Info_h.biHeight == 0) {\n+\t\tfclose(IN);\n+\t\treturn NULL;\n+\t}\n+\t\n+\tif (Info_h.biBi... | c | CWE-190 | [
"src/bin/jp2/convertbmp.c"
] | src/bin/jp2/convertbmp.c | 1 |
function CrossBrowserResizeInnerWindowTo(newWidth, newHeight) { <script type="text/javascript" src="javascript_api.js"></script> <?php function SafeStripSlashes($string) { return (get_magic_quotes_gpc() ? stripslashes($string) : $string); } require_once('../phpThumb.config.php'); $additionalparameters = array(); fo... | function CrossBrowserResizeInnerWindowTo(newWidth, newHeight) { <script type="text/javascript" src="javascript_api.js"></script> <?php require_once('../phpThumb.config.php'); $allowedGETparameters = array('src','new','w','h','wp','hp','wl','hl','ws','hs','f','q','sx','sy','sw','sh','zc','bc','bg','bgt','fltr','xto','... | CVE-2016-10508 | {'CWE-79'} | 2.9 | {'https://github.com/JamesHeinrich/phpThumb/commit/162ae709162be3e6c4d942313a278ca5cbdb8e92'} | nvd | Multiple cross-site scripting (XSS) vulnerabilities in phpThumb() before 1.7.14 allow remote attackers to inject arbitrary web script or HTML via parameters in demo/phpThumb.demo.showpic.php. | 2017-08-31 | 1 | https://github.com/JamesHeinrich/phpThumb | https://github.com/JamesHeinrich/phpThumb/commit/162ae709162be3e6c4d942313a278ca5cbdb8e92 | 162ae709162be3e6c4d942313a278ca5cbdb8e92 | SINGLE | ['162ae709162be3e6c4d942313a278ca5cbdb8e92'] | {'7603dc16951ef7db9f943e3657267b4cd1ae507f'} | 162ae709162be3e6c4d942313a278ca5cbdb8e92 | 1 | 04/11/2016, 16:58:29 | demo.showpic security fix
Sanitize input data to prevent Reflected XSS problems | James Heinrich | null | {'additions': 20, 'deletions': 20, 'total': 40} | [
{
"additions": 20,
"changes": 40,
"deletions": 20,
"patch": "@@ -76,47 +76,47 @@ function CrossBrowserResizeInnerWindowTo(newWidth, newHeight) {\n <script type=\"text/javascript\" src=\"javascript_api.js\"></script>\n \n <?php\n-function SafeStripSlashes($string) {\n-\treturn (get_magic_quotes_gpc()... | php | CWE-79 | [
"demo/phpThumb.demo.showpic.php"
] | demo/phpThumb.demo.showpic.php | 1 |
public function getOrderStatusString($order_id) { public function updateAmazonOrderTracking($order_id, $courier_id, $courier_from_list, $tracking_no) { $this->db->query(" UPDATE `" . DB_PREFIX . "amazon_order` SET `courier_id` = '" . $courier_id . "', `courier_other` = " . (int)!$courier_from_list . ", ... | public function getOrderStatusString($order_id) { public function updateAmazonOrderTracking($order_id, $courier_id, $courier_from_list, $tracking_no) { $this->db->query(" UPDATE `" . DB_PREFIX . "amazon_order` SET `courier_id` = '" . $this->db->escape($courier_id) . "', `courier_other` = " . (int)!$courie... | CVE-2016-10509 | {'CWE-89'} | 6.4 | {'https://github.com/opencart/opencart/commit/b95044da6ac608e7239f7949ff21d3b65be68f82'} | nvd | SQL injection vulnerability in the updateAmazonOrderTracking function in upload/admin/model/openbay/amazon.php in OpenCart before version 2.3.0.0 allows remote authenticated administrators to execute arbitrary SQL commands via a carrier (aka courier_id) parameter to openbay.php. | 2017-08-31 | 1 | https://github.com/opencart/opencart | https://github.com/opencart/opencart/commit/b95044da6ac608e7239f7949ff21d3b65be68f82 | b95044da6ac608e7239f7949ff21d3b65be68f82 | SINGLE | ['b95044da6ac608e7239f7949ff21d3b65be68f82'] | {'5c49d5dcb435e8eb0daba396c5c97e939ff2038f'} | b95044da6ac608e7239f7949ff21d3b65be68f82 | 1 | 03/14/2016, 12:19:45 | https://github.com/opencart/opencart/issues/4114 | Daniel Kerr | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -493,9 +493,9 @@ public function getOrderStatusString($order_id) {\n \tpublic function updateAmazonOrderTracking($order_id, $courier_id, $courier_from_list, $tracking_no) {\n \t\t$this->db->query(\"\n \t\t\tUPDATE `\" . DB_PREFIX . \"amazo... | php | CWE-89 | [
"upload/admin/model/openbay/amazon.php"
] | upload/admin/model/openbay/amazon.php | 1 |
function get_quick_search_results_no_cache($q, $options) $ids = qsearch_eval($expression, $qsr, $tmp, $search_results['qs']['unmatched_terms']); $debug[] = "<!--\nparsed: ".$expression; $debug[] = count($expression->stokens).' tokens'; for ($i=0; $i<count($expression->stokens); $i++) { $debug[] = $expr... | function get_quick_search_results_no_cache($q, $options) $ids = qsearch_eval($expression, $qsr, $tmp, $search_results['qs']['unmatched_terms']); $debug[] = "<!--\nparsed: ".htmlspecialchars($expression); $debug[] = count($expression->stokens).' tokens'; for ($i=0; $i<count($expression->stokens); $i++) { ... | CVE-2016-10513 | {'CWE-79'} | 2.9 | {'https://github.com/Piwigo/Piwigo/commit/9a93d1f44b06605af84520509e7a0e8b64ab0c05'} | nvd | Cross Site Scripting (XSS) exists in Piwigo before 2.8.3 via a crafted search expression to include/functions_search.inc.php. | 2017-10-10 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/9a93d1f44b06605af84520509e7a0e8b64ab0c05 | 9a93d1f44b06605af84520509e7a0e8b64ab0c05 | SINGLE | ['9a93d1f44b06605af84520509e7a0e8b64ab0c05'] | {'b3157cbfd859c914911b114d4edbba4654758b57'} | 9a93d1f44b06605af84520509e7a0e8b64ab0c05 | 1 | 11/17/2016, 13:10:27 | fixes #548, escape HTML chars from search expression
before sending them to HTML comment on frontend | plegall | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -1284,13 +1284,13 @@ function get_quick_search_results_no_cache($q, $options)\n \n $ids = qsearch_eval($expression, $qsr, $tmp, $search_results['qs']['unmatched_terms']);\n \n- $debug[] = \"<!--\\nparsed: \".$expression;\n+ $debug[] = ... | php | CWE-79 | [
"include/functions_search.inc.php"
] | include/functions_search.inc.php | 1 |
/* Locate user in database */ $user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE username = ? AND realm = 2', array($username)); if (!$user && read_config_option('user_template') == '0') { cacti_log("ERROR: User '" . $username . "' authenticated by Web Server, but a Template User is not defined in ... | /* Locate user in database */ $user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE username = ? AND realm = 2', array($username)); if (!$user && read_config_option('user_template') == '0' && read_config_option('guest_user') == '0') { cacti_log("ERROR: User '" . $username . "' authenticated by Web Ser... | CVE-2016-10700 | {'CWE-264'} | 6.4 | {'https://github.com/Cacti/cacti/commit/69983495cd41bf0903fe02baeef84b1fa85f2846'} | nvd | auth_login.php in Cacti before 1.0.0 allows remote authenticated users who use web authentication to bypass intended access restrictions by logging in as a user not in the cacti database, because the guest user is not considered. NOTE: this vulnerability exists because of an incomplete fix for CVE-2016-2313. | 2017-11-24 | 1 | https://github.com/Cacti/cacti | https://github.com/Cacti/cacti/commit/69983495cd41bf0903fe02baeef84b1fa85f2846 | 69983495cd41bf0903fe02baeef84b1fa85f2846 | SINGLE | ['69983495cd41bf0903fe02baeef84b1fa85f2846'] | {'125b58bac00097b7956689d6954dbdce0c6dbdad'} | 69983495cd41bf0903fe02baeef84b1fa85f2846 | 1 | 08/14/2016, 19:21:11 | fixing bug #2697
web basic for guest accounts | cigamit | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -91,10 +91,10 @@\n \t\t/* Locate user in database */\n \t\t$user = db_fetch_row_prepared('SELECT * FROM user_auth WHERE username = ? AND realm = 2', array($username));\n \n-\t\tif (!$user && read_config_option('user_template') == '0') {\n-... | php | CWE-264 | [
"auth_login.php"
] | auth_login.php | 1 |
__xfs_get_blocks( if (error) goto out_unlock; /* for DAX, we convert unwritten extents directly */ if (create && (!nimaps || __xfs_get_blocks( (new || ISUNWRITTEN(&imap)))) set_buffer_new(bh_result); BUG_ON(direct && imap.br_startblock == DELAYSTARTBLOCK); return 0; out_unlock: | __xfs_get_blocks( if (error) goto out_unlock; /* * The only time we can ever safely find delalloc blocks on direct I/O * is a dio write to post-eof speculative preallocation. All other * scenarios are indicative of a problem or misuse (such as mixing * direct and mapped I/O). * * The file may be unmap... | CVE-2016-10741 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/04197b341f23b908193308b8d63d17ff23232598'} | nvd | In the Linux kernel before 4.9.3, fs/xfs/xfs_aops.c allows local users to cause a denial of service (system crash) because there is a race condition between direct and memory-mapped I/O (associated with a hole) that is handled with BUG_ON instead of an I/O failure. | 2019-02-01 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/04197b341f23b908193308b8d63d17ff23232598 | 04197b341f23b908193308b8d63d17ff23232598 | SINGLE | ['04197b341f23b908193308b8d63d17ff23232598'] | {'399372349a7f9b2d7e56e4fa4467c69822d07024'} | 04197b341f23b908193308b8d63d17ff23232598 | 1 | 11/08/2016, 01:54:14 | xfs: don't BUG() on mixed direct and mapped I/O
We've had reports of generic/095 causing XFS to BUG() in
__xfs_get_blocks() due to the existence of delalloc blocks on a
direct I/O read. generic/095 issues a mix of various types of I/O,
including direct and memory mapped I/O to a single file. This is
clearly not suppor... | Brian Foster | null | {'additions': 20, 'deletions': 2, 'total': 22} | [
{
"additions": 20,
"changes": 22,
"deletions": 2,
"patch": "@@ -1361,6 +1361,26 @@ __xfs_get_blocks(\n \tif (error)\n \t\tgoto out_unlock;\n \n+\t/*\n+\t * The only time we can ever safely find delalloc blocks on direct I/O\n+\t * is a dio write to post-eof speculative preallocation. All other\n+\t ... | c | CWE-362 | [
"fs/xfs/xfs_aops.c"
] | fs/xfs/xfs_aops.c | 1 |
static const char *parse_string(cJSON *item,const char *str,const char **ep) { const char *ptr=str+1,*end_ptr=str+1;char *ptr2;char *out;int len=0;unsigned uc,uc2; if (*str!='\"') {*ep=str;return 0;} /* not a string! */ while (*end_ptr!='\"' && *end_ptr && ++len) if (*end_ptr++ == '\\') end_ptr++; /* Skip escaped... | static const char *parse_string(cJSON *item,const char *str,const char **ep) { const char *ptr=str+1,*end_ptr=str+1;char *ptr2;char *out;int len=0;unsigned uc,uc2; if (*str!='\"') {*ep=str;return 0;} /* not a string! */ while (*end_ptr!='\"' && *end_ptr && ++len) { if (*end_ptr++ == '\\') { if (*end_p... | CVE-2016-10749 | {'CWE-125'} | 6.4 | {'https://github.com/DaveGamble/cJSON/commit/94df772485c92866ca417d92137747b2e3b0a917'} | nvd | parse_string in cJSON.c in cJSON before 2016-10-02 has a buffer over-read, as demonstrated by a string that begins with a " character and ends with a \ character. | 2019-04-29 | 1 | https://github.com/DaveGamble/cJSON | https://github.com/DaveGamble/cJSON/commit/94df772485c92866ca417d92137747b2e3b0a917 | 94df772485c92866ca417d92137747b2e3b0a917 | SINGLE | ['94df772485c92866ca417d92137747b2e3b0a917'] | {'3a7bd6924a67c301b8811f521de6ed07c7cf0c3c'} | 94df772485c92866ca417d92137747b2e3b0a917 | 1 | 10/02/2016, 11:56:53 | fix buffer overflow (#30) | Max Bruckner | null | {'additions': 14, 'deletions': 3, 'total': 17} | [
{
"additions": 14,
"changes": 17,
"deletions": 3,
"patch": "@@ -194,9 +194,20 @@ static const char *parse_string(cJSON *item,const char *str,const char **ep)\n {\n \tconst char *ptr=str+1,*end_ptr=str+1;char *ptr2;char *out;int len=0;unsigned uc,uc2;\n \tif (*str!='\\\"') {*ep=str;return 0;}\t/* not... | c | CWE-125 | [
"cJSON.c"
] | cJSON.c | 1 |
static int cqspi_setup_flash(struct cqspi_st *cqspi, struct device_node *np) goto err; } if (cs > CQSPI_MAX_CHIPSELECT) { dev_err(dev, "Chip select %d out of range.\n", cs); goto err; } | static int cqspi_setup_flash(struct cqspi_st *cqspi, struct device_node *np) goto err; } if (cs >= CQSPI_MAX_CHIPSELECT) { dev_err(dev, "Chip select %d out of range.\n", cs); goto err; } | CVE-2016-10764 | {'CWE-119'} | 6.4 | {'https://github.com/torvalds/linux/commit/193e87143c290ec16838f5368adc0e0bc94eb931'} | nvd | In the Linux kernel before 4.9.6, there is an off by one in the drivers/mtd/spi-nor/cadence-quadspi.c cqspi_setup_flash() function. There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the ">" should be ">=" instead. | 2019-07-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/193e87143c290ec16838f5368adc0e0bc94eb931 | 193e87143c290ec16838f5368adc0e0bc94eb931 | SINGLE | ['193e87143c290ec16838f5368adc0e0bc94eb931'] | {'022a400f90ceeb26405edd5e077d56e2f38c8123'} | 193e87143c290ec16838f5368adc0e0bc94eb931 | 1 | 10/13/2016, 08:06:47 | mtd: spi-nor: Off by one in cqspi_setup_flash()
There are CQSPI_MAX_CHIPSELECT elements in the ->f_pdata array so the >
should be >=.
Fixes: 140623410536 ('mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Marek Vasut <marex@denx.de>
... | Dan Carpenter | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1082,7 +1082,7 @@ static int cqspi_setup_flash(struct cqspi_st *cqspi, struct device_node *np)\n \t\t\tgoto err;\n \t\t}\n \n-\t\tif (cs > CQSPI_MAX_CHIPSELECT) {\n+\t\tif (cs >= CQSPI_MAX_CHIPSELECT) {\n \t\t\tdev_err(dev, \"Chip select ... | c | CWE-119 | [
"drivers/mtd/spi-nor/cadence-quadspi.c"
] | drivers/mtd/spi-nor/cadence-quadspi.c | 1 |
public function render_meta_box_details_actions() { * A box that appears at the top */ public function meta_box_subject() { $placeholder = __( 'What is your conversation about?', 'supportflow' ); echo '<h4>' . __( 'Subject', 'supportflow' ) . '</h4>'; echo '<input type="text" id="subject" name="post_title"... | public function render_meta_box_details_actions() { * A box that appears at the top */ public function meta_box_subject() { ?> <h4><?php _e( 'Subject', 'supportflow' ); ?></h4> <input type="text" id="subject" name="post_title" class="sf_autosave" placeholder="<?php _e( 'What is your convers... | CVE-2016-10969 | {'CWE-79'} | 2.9 | {'https://github.com/SupportFlow/supportflow/commit/c08d376072f093b650c49dcb44124f43ea0177b1'} | nvd | The supportflow plugin before 0.7 for WordPress has XSS via a discussion ticket title. | 2019-09-16 | 1 | https://github.com/SupportFlow/supportflow | https://github.com/SupportFlow/supportflow/commit/c08d376072f093b650c49dcb44124f43ea0177b1 | c08d376072f093b650c49dcb44124f43ea0177b1 | SINGLE | ['c08d376072f093b650c49dcb44124f43ea0177b1'] | {'71a6053848c523f7b50b61a1f3770013badc76c0'} | c08d376072f093b650c49dcb44124f43ea0177b1 | 1 | 06/20/2016, 16:25:37 | Admin: Escape ticket title on Discussion screen to avoid XSS.
If `run_wptexturize` is disabled, the following subject title would allow an attacker to perform cross-site scripting:
`"><script>alert('hi');</script>`
That attack has a CVSS score of 4.7 - https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:H/PR:... | Ian Dunn | null | {'additions': 17, 'deletions': 4, 'total': 21} | [
{
"additions": 17,
"changes": 21,
"deletions": 4,
"patch": "@@ -899,12 +899,25 @@ public function render_meta_box_details_actions() {\n \t * A box that appears at the top\n \t */\n \tpublic function meta_box_subject() {\n+\t\t?>\n+\n+\t\t<h4><?php _e( 'Subject', 'supportflow' ); ?></h4>\n \n-\t\t$pl... | php | CWE-79 | [
"classes/class-supportflow-admin.php"
] | classes/class-supportflow-admin.php | 1 |
function action_manage_posts_custom_column( $column_name, $ticket_id ) { if ( strlen( $first_reply ) > 50 ) { $first_reply = substr( $first_reply, 0, 50 ); } echo $first_reply; break; case 'customers': $customers = SupportFlow()->get_ticket_customers( $ticket_id, array( 'fields' => 'emails'... | function action_manage_posts_custom_column( $column_name, $ticket_id ) { if ( strlen( $first_reply ) > 50 ) { $first_reply = substr( $first_reply, 0, 50 ); } echo esc_html( $first_reply ); break; case 'customers': $customers = SupportFlow()->get_ticket_customers( $ticket_id, array( 'fields'... | CVE-2016-10970 | {'CWE-79'} | 2.9 | {'https://github.com/SupportFlow/supportflow/commit/c507cc863d161f87c28d0682714bf188ffac1a67'} | nvd | The supportflow plugin before 0.7 for WordPress has XSS via a ticket excerpt. | 2019-09-16 | 1 | https://github.com/SupportFlow/supportflow | https://github.com/SupportFlow/supportflow/commit/c507cc863d161f87c28d0682714bf188ffac1a67 | c507cc863d161f87c28d0682714bf188ffac1a67 | SINGLE | ['c507cc863d161f87c28d0682714bf188ffac1a67'] | {'c08d376072f093b650c49dcb44124f43ea0177b1'} | c507cc863d161f87c28d0682714bf188ffac1a67 | 1 | 06/20/2016, 16:34:45 | Admin: Escape ticket excerpt on Tickets screen to avoid XSS.
An attacker could submit the following payload via `[supportflow_submissionform]` to perform cross-site-scripting:
`<script>alert('XSS');</script>`
That attack has a CVSS score of 6.1 - https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:N/UI:R... | Ian Dunn | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1185,7 +1185,7 @@ function action_manage_posts_custom_column( $column_name, $ticket_id ) {\n \t\t\t\tif ( strlen( $first_reply ) > 50 ) {\n \t\t\t\t\t$first_reply = substr( $first_reply, 0, 50 );\n \t\t\t\t}\n-\t\t\t\techo $first_reply;\n... | php | CWE-79 | [
"classes/class-supportflow-admin.php"
] | classes/class-supportflow-admin.php | 1 |
rtadv_read (struct thread *thread) /* Register myself. */ rtadv_event (zvrf, RTADV_READ, sock); len = rtadv_recv_packet (sock, buf, BUFSIZ, &from, &ifindex, &hoplimit); if (len < 0) { | rtadv_read (struct thread *thread) /* Register myself. */ rtadv_event (zvrf, RTADV_READ, sock); len = rtadv_recv_packet (sock, buf, sizeof (buf), &from, &ifindex, &hoplimit); if (len < 0) { | CVE-2016-1245 | {'CWE-119'} | 6.4 | {'https://github.com/Quagga/quagga/commit/cfb1fae25f8c092e0d17073eaf7bd428ce1cd546'} | nvd | It was discovered that the zebra daemon in Quagga before 1.0.20161017 suffered from a stack-based buffer overflow when processing IPv6 Neighbor Discovery messages. The root cause was relying on BUFSIZ to be compatible with a message size; however, BUFSIZ is system-dependent. | 2017-02-22 | 1 | https://github.com/Quagga/quagga | https://github.com/Quagga/quagga/commit/cfb1fae25f8c092e0d17073eaf7bd428ce1cd546 | cfb1fae25f8c092e0d17073eaf7bd428ce1cd546 | SINGLE | ['cfb1fae25f8c092e0d17073eaf7bd428ce1cd546'] | {'ef9bc88981570ef8ea744f0ab96730d192328a49'} | cfb1fae25f8c092e0d17073eaf7bd428ce1cd546 | 1 | 08/31/2016, 11:31:16 | zebra: stack overrun in IPv6 RA receive code (CVE-2016-1245)
The IPv6 RA code also receives ICMPv6 RS and RA messages.
Unfortunately, by bad coding practice, the buffer size specified on
receiving such messages mixed up 2 constants that in fact have
different values.
The code itself has:
#define RTADV_MSG_SIZE 4096
... | David Lamparter | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -482,7 +482,7 @@ rtadv_read (struct thread *thread)\n /* Register myself. */\n rtadv_event (zvrf, RTADV_READ, sock);\n \n- len = rtadv_recv_packet (sock, buf, BUFSIZ, &from, &ifindex, &hoplimit);\n+ len = rtadv_recv_packet (sock, buf... | c | CWE-119 | [
"zebra/rtadv.c"
] | zebra/rtadv.c | 1 |
int dbd_bind_ph(SV *sth, imp_sth_t *imp_sth, SV *param, SV *value, int rc; int param_num= SvIV(param); int idx= param_num - 1; char err_msg[64]; D_imp_xxh(sth); #if MYSQL_VERSION_ID >= SERVER_PREPARE_VERSION int dbd_bind_ph(SV *sth, imp_sth_t *imp_sth, SV *param, SV *value, { if (! looks_like_number(v... | int dbd_bind_ph(SV *sth, imp_sth_t *imp_sth, SV *param, SV *value, int rc; int param_num= SvIV(param); int idx= param_num - 1; char *err_msg; D_imp_xxh(sth); #if MYSQL_VERSION_ID >= SERVER_PREPARE_VERSION int dbd_bind_ph(SV *sth, imp_sth_t *imp_sth, SV *param, SV *value, { if (! looks_like_number(valu... | CVE-2016-1246 | {'CWE-119'} | 2.9 | {'https://github.com/perl5-dbi/DBD-mysql/commit/7c164a0c86cec6ee95df1d141e67b0e85dfdefd2'} | nvd | Buffer overflow in the DBD::mysql module before 4.037 for Perl allows context-dependent attackers to cause a denial of service (crash) via vectors related to an error message. | 2016-10-05 | 1 | https://github.com/perl5-dbi/DBD-mysql | https://github.com/perl5-dbi/DBD-mysql/commit/7c164a0c86cec6ee95df1d141e67b0e85dfdefd2 | 7c164a0c86cec6ee95df1d141e67b0e85dfdefd2 | SINGLE | ['7c164a0c86cec6ee95df1d141e67b0e85dfdefd2'] | {'9162255af21aded87b597d1ce98e3f8cbe835dff'} | 7c164a0c86cec6ee95df1d141e67b0e85dfdefd2 | 1 | 10/02/2016, 20:09:26 | Do not use unsafe sprintf w/variable length input
This can cause a buffer overflow to occur when reporting error
message about validation of (untrusted) user input parameters. | Pali | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -4783,7 +4783,7 @@ int dbd_bind_ph(SV *sth, imp_sth_t *imp_sth, SV *param, SV *value,\n int rc;\n int param_num= SvIV(param);\n int idx= param_num - 1;\n- char err_msg[64];\n+ char *err_msg;\n D_imp_xxh(sth);\n \n #if MYSQL_VERSI... | c | CWE-119 | [
"dbdimp.c"
] | dbdimp.c | 1 |
zip_read_mac_metadata(struct archive_read *a, struct archive_entry *entry, switch(rsrc->compression) { case 0: /* No compression. */ #ifdef HAVE_ZLIB_H case 8: /* Deflate compression. */ #endif zip_read_mac_metadata(struct archive_read *a, struct archive_entry *entry, (intmax_t)rsrc->uncompressed_size); r... | zip_read_mac_metadata(struct archive_read *a, struct archive_entry *entry, switch(rsrc->compression) { case 0: /* No compression. */ if (rsrc->uncompressed_size != rsrc->compressed_size) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Malformed OS X metadata entry: inconsistent size"); ... | CVE-2016-1541 | {'CWE-20'} | 6.4 | {'https://github.com/libarchive/libarchive/commit/d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7'} | nvd | Heap-based buffer overflow in the zip_read_mac_metadata function in archive_read_support_format_zip.c in libarchive before 3.2.0 allows remote attackers to execute arbitrary code via crafted entry-size values in a ZIP archive. | 2016-05-07 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7 | d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7 | SINGLE | ['d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7'] | {'11855358b842491568afd3e37203e4879c351c47'} | d0331e8e5b05b475f20b1f3101fe1ad772d7e7e7 | 1 | 04/25/2016, 00:13:45 | Issue #656: Fix CVE-2016-1541, VU#862384
When reading OS X metadata entries in Zip archives that were stored
without compression, libarchive would use the uncompressed entry size
to allocate a buffer but would use the compressed entry size to limit
the amount of data copied into that buffer. Since the compressed
and... | Tim Kientzle | null | {'additions': 13, 'deletions': 0, 'total': 13} | [
{
"additions": 13,
"changes": 13,
"deletions": 0,
"patch": "@@ -2778,6 +2778,11 @@ zip_read_mac_metadata(struct archive_read *a, struct archive_entry *entry,\n \n \tswitch(rsrc->compression) {\n \tcase 0: /* No compression. */\n+\t\tif (rsrc->uncompressed_size != rsrc->compressed_size) {\n+\t\t\tar... | c | CWE-20 | [
"libarchive/archive_read_support_format_zip.c"
] | libarchive/archive_read_support_format_zip.c | 1 |
PHPAPI zend_string *php_escape_shell_cmd(char *str) #endif cmd = zend_string_alloc(2 * l, 0); for (x = 0, y = 0; x < l; x++) { int mb_len = php_mblen(str + x, (l - x)); PHPAPI zend_string *php_escape_shell_arg(char *str) size_t estimate = (4 * l) + 3; cmd = zend_string_alloc(4 * l + 2, 0); /* worst case */ ... | PHPAPI zend_string *php_escape_shell_cmd(char *str) #endif cmd = zend_string_safe_alloc(2, l, 0, 0); for (x = 0, y = 0; x < l; x++) { int mb_len = php_mblen(str + x, (l - x)); PHPAPI zend_string *php_escape_shell_arg(char *str) size_t estimate = (4 * l) + 3; cmd = zend_string_safe_alloc(4, l, 2, 0); /* wors... | CVE-2016-1904 | {'CWE-189'} | 6.4 | {'https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b'} | nvd | Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) php_escape_shell_cmd or (2) php_escape_shell_arg function, leading to a heap-based buffer overflow. | 2016-01-19 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b | 2871c70efaaaa0f102557a17c727fd4d5204dd4b | SINGLE | ['2871c70efaaaa0f102557a17c727fd4d5204dd4b'] | {'e2565eb614e3c8b938c1dc50a0bd6470fab64921'} | 2871c70efaaaa0f102557a17c727fd4d5204dd4b | 1 | 01/03/2016, 23:27:27 | Patch for Heap Buffer Overflow in EscapeShell
Proposed patch for bug #71270 | libnex | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -253,7 +253,7 @@ PHPAPI zend_string *php_escape_shell_cmd(char *str)\n #endif\n \n \n-\tcmd = zend_string_alloc(2 * l, 0);\n+\tcmd = zend_string_safe_alloc(2, l, 0, 0);\n \n \tfor (x = 0, y = 0; x < l; x++) {\n \t\tint mb_len = php_mblen(s... | c | CWE-189 | [
"ext/standard/exec.c"
] | ext/standard/exec.c | 1 |
function goToFinish1NF() } $("#mainContent legend").html(PMA_messages.strEndStep); $("#mainContent h4").html( "<h3>" + PMA_sprintf(PMA_messages.strFinishMsg, PMA_commonParams.get('table')) + "</h3>" ); $("#mainContent p").html(''); $("#mainContent #extra").html(''); | function goToFinish1NF() } $("#mainContent legend").html(PMA_messages.strEndStep); $("#mainContent h4").html( "<h3>" + PMA_sprintf(PMA_messages.strFinishMsg, escapeHtml(PMA_commonParams.get('table'))) + "</h3>" ); $("#mainContent p").html(''); $("#mainContent #extra").html(''); | CVE-2016-2043 | {'CWE-79'} | 2.9 | {'https://github.com/phpmyadmin/phpmyadmin/commit/019c4f25d500ec5db9ba3b84cc961a7e4e850738'} | nvd | Cross-site scripting (XSS) vulnerability in the goToFinish1NF function in js/normalization.js in phpMyAdmin 4.4.x before 4.4.15.3 and 4.5.x before 4.5.4 allows remote authenticated users to inject arbitrary web script or HTML via a table name to the normalization page. | 2016-02-20 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/019c4f25d500ec5db9ba3b84cc961a7e4e850738 | 019c4f25d500ec5db9ba3b84cc961a7e4e850738 | SINGLE | ['019c4f25d500ec5db9ba3b84cc961a7e4e850738'] | {'5aee5035646c4fc617564cb0d3d58c0435d64d81'} | 019c4f25d500ec5db9ba3b84cc961a7e4e850738 | 1 | 01/18/2016, 04:24:30 | Fix XSS in normalization.php
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com> | Madhura Jayaratne | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -102,7 +102,7 @@ function goToFinish1NF()\n }\n $(\"#mainContent legend\").html(PMA_messages.strEndStep);\n $(\"#mainContent h4\").html(\n- \"<h3>\" + PMA_sprintf(PMA_messages.strFinishMsg, PMA_commonParams.get('table'))... | js | CWE-79 | [
"js/normalization.js"
] | js/normalization.js | 1 |
namespace SqlParser\Autoload; if (!class_exists('SqlParser\\Autoload\\ClassLoader')) { include_once './libraries/sql-parser/ClassLoader.php'; } | namespace SqlParser\Autoload; if (!class_exists('SqlParser\\Autoload\\ClassLoader')) { if (! file_exists('./libraries/sql-parser/ClassLoader.php')) { die('Invalid invocation'); } include_once './libraries/sql-parser/ClassLoader.php'; } | CVE-2016-2044 | {'CWE-200'} | 2.9 | {'https://github.com/phpmyadmin/phpmyadmin/commit/c57d3cc7b97b5f32801032f7bb222297aa97dfea'} | nvd | libraries/sql-parser/autoload.php in the SQL parser in phpMyAdmin 4.5.x before 4.5.4 allows remote attackers to obtain sensitive information via a crafted request, which reveals the full path in an error message. | 2016-02-20 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/c57d3cc7b97b5f32801032f7bb222297aa97dfea | c57d3cc7b97b5f32801032f7bb222297aa97dfea | SINGLE | ['c57d3cc7b97b5f32801032f7bb222297aa97dfea'] | {'76b10187c38634a29d6780f99f6dcd796191073b'} | c57d3cc7b97b5f32801032f7bb222297aa97dfea | 1 | 01/26/2016, 14:10:18 | Avoid invalid invocation of SQL parser
Signed-off-by: Michal Čihař <michal@cihar.com> | Michal Čihař | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -14,6 +14,9 @@\n namespace SqlParser\\Autoload;\n \n if (!class_exists('SqlParser\\\\Autoload\\\\ClassLoader')) {\n+ if (! file_exists('./libraries/sql-parser/ClassLoader.php')) {\n+ die('Invalid invocation');\n+ }\n inclu... | php | CWE-200 | [
"libraries/sql-parser/autoload.php"
] | libraries/sql-parser/autoload.php | 1 |
static void tcp_cwnd_reduction(struct sock *sk, const int prior_unsacked, int newly_acked_sacked = prior_unsacked - (tp->packets_out - tp->sacked_out); tp->prr_delivered += newly_acked_sacked; if (delta < 0) { u64 dividend = (u64)tp->snd_ssthresh * tp->prr_delivered + | static void tcp_cwnd_reduction(struct sock *sk, const int prior_unsacked, int newly_acked_sacked = prior_unsacked - (tp->packets_out - tp->sacked_out); if (newly_acked_sacked <= 0 || WARN_ON_ONCE(!tp->prior_cwnd)) return; tp->prr_delivered += newly_acked_sacked; if (delta < 0) { u64 dividend = (u64)tp->... | CVE-2016-2070 | {'CWE-189'} | 6.9 | {'https://github.com/torvalds/linux/commit/8b8a321ff72c785ed5e8b4cf6eda20b35d427390'} | nvd | The tcp_cwnd_reduction function in net/ipv4/tcp_input.c in the Linux kernel before 4.3.5 allows remote attackers to cause a denial of service (divide-by-zero error and system crash) via crafted TCP traffic. | 2016-05-02 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8b8a321ff72c785ed5e8b4cf6eda20b35d427390 | 8b8a321ff72c785ed5e8b4cf6eda20b35d427390 | SINGLE | ['8b8a321ff72c785ed5e8b4cf6eda20b35d427390'] | {'58caf637365fef97c8e84ea5699a8e34d68fce93'} | 8b8a321ff72c785ed5e8b4cf6eda20b35d427390 | 1 | 01/06/2016, 20:42:38 | tcp: fix zero cwnd in tcp_cwnd_reduction
Patch 3759824da87b ("tcp: PRR uses CRB mode by default and SS mode
conditionally") introduced a bug that cwnd may become 0 when both
inflight and sndcnt are 0 (cwnd = inflight + sndcnt). This may lead
to a div-by-zero if the connection starts another cwnd reduction
phase by set... | Yuchung Cheng | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -2478,6 +2478,9 @@ static void tcp_cwnd_reduction(struct sock *sk, const int prior_unsacked,\n \tint newly_acked_sacked = prior_unsacked -\n \t\t\t\t (tp->packets_out - tp->sacked_out);\n \n+\tif (newly_acked_sacked <= 0 || WARN_ON_ONCE(!t... | c | CWE-189 | [
"net/ipv4/tcp_input.c"
] | net/ipv4/tcp_input.c | 1 |
static int atl2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err = -EIO; netdev->hw_features = NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX; netdev->features |= (NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX); /* Init PHY as early as possible due to power saving issue */ | static int atl2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) err = -EIO; netdev->hw_features = NETIF_F_HW_VLAN_CTAG_RX; netdev->features |= (NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX); /* Init PHY as early as possible due to power saving issue */ | CVE-2016-2117 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/f43bfaeddc79effbf3d0fcb53ca477cca66f3db8'} | nvd | The atl2_probe function in drivers/net/ethernet/atheros/atlx/atl2.c in the Linux kernel through 4.5.2 incorrectly enables scatter/gather I/O, which allows remote attackers to obtain sensitive information from kernel memory by reading packet data. | 2016-05-02 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f43bfaeddc79effbf3d0fcb53ca477cca66f3db8 | f43bfaeddc79effbf3d0fcb53ca477cca66f3db8 | SINGLE | ['f43bfaeddc79effbf3d0fcb53ca477cca66f3db8'] | {'669c00c009ba0db81e840fd7e11faff7be8c8123'} | f43bfaeddc79effbf3d0fcb53ca477cca66f3db8 | 1 | 04/20/2016, 22:23:08 | 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... | Ben Hutchings | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1412,7 +1412,7 @@ static int atl2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)\n \n \terr = -EIO;\n \n-\tnetdev->hw_features = NETIF_F_SG | NETIF_F_HW_VLAN_CTAG_RX;\n+\tnetdev->hw_features = NETIF_F_HW_VLAN_CTAG_RX;\n \tne... | c | CWE-200 | [
"drivers/net/ethernet/atheros/atlx/atl2.c"
] | drivers/net/ethernet/atheros/atlx/atl2.c | 1 |
int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) { char obj_txt[128]; int len = OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0); BIO_write(bio, obj_txt, len); BIO_write(bio, "\n", 1); return 1; } | int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj) { char obj_txt[128]; OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0); BIO_printf(bio, "%s\n", obj_txt); return 1; } | CVE-2016-2180 | {'CWE-125'} | 2.9 | {'https://github.com/openssl/openssl/commit/0ed26acce328ec16a3aa635f1ca37365e8c7403a'} | nvd | The TS_OBJ_print_bio function in crypto/ts/ts_lib.c in the X.509 Public Key Infrastructure Time-Stamp Protocol (TSP) implementation in OpenSSL through 1.0.2h allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted time-stamp file that is mishandled by the "openssl t... | 2016-08-01 | 1 | https://github.com/openssl/openssl | https://github.com/openssl/openssl/commit/0ed26acce328ec16a3aa635f1ca37365e8c7403a | 0ed26acce328ec16a3aa635f1ca37365e8c7403a | SINGLE | ['0ed26acce328ec16a3aa635f1ca37365e8c7403a'] | {'d0c4415de5eaa555ead6eb99660e46410b45e181'} | 0ed26acce328ec16a3aa635f1ca37365e8c7403a | 1 | 07/21/2016, 14:24:16 | Fix OOB read in TS_OBJ_print_bio().
TS_OBJ_print_bio() misuses OBJ_txt2obj: it should print the result
as a null terminated buffer. The length value returned is the total
length the complete text reprsentation would need not the amount of
data written.
CVE-2016-2180
Thanks to Shi Lei for reporting this bug.
Reviewe... | Dr. Stephen Henson | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -40,9 +40,8 @@ int TS_OBJ_print_bio(BIO *bio, const ASN1_OBJECT *obj)\n {\n char obj_txt[128];\n \n- int len = OBJ_obj2txt(obj_txt, sizeof(obj_txt), obj, 0);\n- BIO_write(bio, obj_txt, len);\n- BIO_write(bio, \"\\n\", 1);\n+ ... | c | CWE-125 | [
"crypto/ts/ts_lib.c"
] | crypto/ts/ts_lib.c | 1 |
static uint8_t *extend_raw_data(LHAFileHeader **header, size_t new_raw_len; uint8_t *result; // Reallocate the header and raw_data area to be larger. new_raw_len = RAW_DATA_LEN(header) + nbytes; static int decode_level3_header(LHAFileHeader **header, LHAInputStream *stream) header_len = lha_decode_uint32(&RAW_... | static uint8_t *extend_raw_data(LHAFileHeader **header, size_t new_raw_len; uint8_t *result; if (nbytes > LEVEL_3_MAX_HEADER_LEN) { return NULL; } // Reallocate the header and raw_data area to be larger. new_raw_len = RAW_DATA_LEN(header) + nbytes; static int decode_level3_header(LHAFileHeader **header, LHA... | CVE-2016-2347 | {'CWE-190'} | 6.4 | {'https://github.com/fragglet/lhasa/commit/6fcdb8f1f538b9d63e63a5fa199c5514a15d4564'} | nvd | Integer underflow in the decode_level3_header function in lib/lha_file_header.c in Lhasa before 0.3.1 allows remote attackers to execute arbitrary code via a crafted archive. | 2017-04-21 | 1 | https://github.com/fragglet/lhasa | https://github.com/fragglet/lhasa/commit/6fcdb8f1f538b9d63e63a5fa199c5514a15d4564 | 6fcdb8f1f538b9d63e63a5fa199c5514a15d4564 | SINGLE | ['6fcdb8f1f538b9d63e63a5fa199c5514a15d4564'] | {'2a6cc7f93cd97521bc46ca8ee286ce1d83feb185'} | 6fcdb8f1f538b9d63e63a5fa199c5514a15d4564 | 1 | 03/17/2016, 04:40:19 | Fix integer underflow vulnerability in L3 decode.
Marcin 'Icewall' Noga of Cisco TALOS discovered that the level 3 header
decoding routines were vulnerable to an integer underflow, if the 32-bit
header length was less than the base level 3 header length. This could
lead to an exploitable heap corruption condition.
Th... | Simon Howard | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -351,6 +351,10 @@ static uint8_t *extend_raw_data(LHAFileHeader **header,\n \tsize_t new_raw_len;\n \tuint8_t *result;\n \n+\tif (nbytes > LEVEL_3_MAX_HEADER_LEN) {\n+\t\treturn NULL;\n+\t}\n+\n \t// Reallocate the header and raw_data area... | c | CWE-190 | [
"lib/lha_file_header.c"
] | lib/lha_file_header.c | 1 |
int encode_msg(struct sip_msg *msg,char *payload,int len) if(len < MAX_ENCODED_MSG + MAX_MESSAGE_LEN) return -1; if(parse_headers(msg,HDR_EOH_F,0)<0){ myerror="in parse_headers"; goto error; int encode_msg(struct sip_msg *msg,char *payload,int len) /*j+=k;*/ /*pkg_free(payload2);*/ /*... | int encode_msg(struct sip_msg *msg,char *payload,int len) if(len < MAX_ENCODED_MSG + MAX_MESSAGE_LEN) return -1; if(parse_headers(msg,HDR_EOH_F,0)<0){ myerror="in parse_headers"; goto error; int encode_msg(struct sip_msg *msg,char *payload,int len) /*j+=k;*/ /*pkg_free(payload2);*/ /... | CVE-2016-2385 | {'CWE-119'} | 10 | {'https://github.com/kamailio/kamailio/commit/f50c9c853e7809810099c970780c30b0765b0643'} | nvd | Heap-based buffer overflow in the encode_msg function in encode_msg.c in the SEAS module in Kamailio (formerly OpenSER and SER) before 4.3.5 allows remote attackers to cause a denial of service (memory corruption and process crash) or possibly execute arbitrary code via a large SIP packet. | 2016-04-11 | 1 | https://github.com/kamailio/kamailio | https://github.com/kamailio/kamailio/commit/f50c9c853e7809810099c970780c30b0765b0643 | f50c9c853e7809810099c970780c30b0765b0643 | SINGLE | ['f50c9c853e7809810099c970780c30b0765b0643'] | {'f39d144e385f1fbf8759ba03e28e69aeb56d6e6a'} | f50c9c853e7809810099c970780c30b0765b0643 | 1 | 02/12/2016, 17:04:19 | seas: safety check for target buffer size before copying message in encode_msg()
- avoid buffer overflow for large SIP messages
- reported by Stelios Tsampas | Daniel-Constantin Mierla | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -158,6 +158,7 @@ int encode_msg(struct sip_msg *msg,char *payload,int len)\n \n if(len < MAX_ENCODED_MSG + MAX_MESSAGE_LEN)\n return -1;\n+\n if(parse_headers(msg,HDR_EOH_F,0)<0){\n myerror=\"in parse_headers\";\n g... | c | CWE-119 | [
"modules/seas/encode_msg.c"
] | modules/seas/encode_msg.c | 1 |
static struct snd_seq_queue *queue_new(int owner, int locked) static void queue_delete(struct snd_seq_queue *q) { /* stop and release the timer */ snd_seq_timer_stop(q->timer); snd_seq_timer_close(q); /* wait until access free */ snd_use_lock_sync(&q->use_lock); /* release resources... */ | static struct snd_seq_queue *queue_new(int owner, int locked) static void queue_delete(struct snd_seq_queue *q) { /* stop and release the timer */ mutex_lock(&q->timer_mutex); snd_seq_timer_stop(q->timer); snd_seq_timer_close(q); mutex_unlock(&q->timer_mutex); /* wait until access free */ snd_use_lock_sync(&q->... | CVE-2016-2544 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/3567eb6af614dac436c4b16a8d426f9faed639b3'} | nvd | Race condition in the queue_delete function in sound/core/seq/seq_queue.c in the Linux kernel before 4.4.1 allows local users to cause a denial of service (use-after-free and system crash) by making an ioctl call at a certain time. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3567eb6af614dac436c4b16a8d426f9faed639b3 | 3567eb6af614dac436c4b16a8d426f9faed639b3 | SINGLE | ['3567eb6af614dac436c4b16a8d426f9faed639b3'] | {'030e2c78d3a91dd0d27fef37e91950dde333eba1'} | 3567eb6af614dac436c4b16a8d426f9faed639b3 | 1 | 01/12/2016, 14:36:27 | ALSA: seq: Fix race at timer setup and close
ALSA sequencer code has an open race between the timer setup ioctl and
the close of the client. This was triggered by syzkaller fuzzer, and
a use-after-free was caught there as a result.
This patch papers over it by adding a proper queue->timer_mutex lock
around the timer... | Takashi Iwai | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -142,8 +142,10 @@ static struct snd_seq_queue *queue_new(int owner, int locked)\n static void queue_delete(struct snd_seq_queue *q)\n {\n \t/* stop and release the timer */\n+\tmutex_lock(&q->timer_mutex);\n \tsnd_seq_timer_stop(q->timer);... | c | CWE-362 | [
"sound/core/seq/seq_queue.c"
] | sound/core/seq/seq_queue.c | 1 |
void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left) } else { ti->flags &= ~SNDRV_TIMER_IFLG_RUNNING; if (--timer->running) list_del(&ti->active_list); } if ((timer->hw.flags & SNDRV_TIMER_HW_TASKLET) || (ti->flags & SNDRV_TIMER_IFLG_FAST)) | void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left) } else { ti->flags &= ~SNDRV_TIMER_IFLG_RUNNING; if (--timer->running) list_del_init(&ti->active_list); } if ((timer->hw.flags & SNDRV_TIMER_HW_TASKLET) || (ti->flags & SNDRV_TIMER_IFLG_FAST)) | CVE-2016-2545 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/ee8413b01045c74340aa13ad5bdf905de32be736'} | nvd | The snd_timer_interrupt function in sound/core/timer.c in the Linux kernel before 4.4.1 does not properly maintain a certain linked list, which allows local users to cause a denial of service (race condition and system crash) via a crafted ioctl call. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ee8413b01045c74340aa13ad5bdf905de32be736 | ee8413b01045c74340aa13ad5bdf905de32be736 | SINGLE | ['ee8413b01045c74340aa13ad5bdf905de32be736'] | {'c4a359a0049f2e17b012b31e801e96566f6391e5'} | ee8413b01045c74340aa13ad5bdf905de32be736 | 1 | 01/13/2016, 20:35:06 | ALSA: timer: Fix double unlink of active_list
ALSA timer instance object has a couple of linked lists and they are
unlinked unconditionally at snd_timer_stop(). Meanwhile
snd_timer_interrupt() unlinks it, but it calls list_del() which leaves
the element list itself unchanged. This ends up with unlinking twice,
and i... | Takashi Iwai | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -694,7 +694,7 @@ void snd_timer_interrupt(struct snd_timer * timer, unsigned long ticks_left)\n \t\t} else {\n \t\t\tti->flags &= ~SNDRV_TIMER_IFLG_RUNNING;\n \t\t\tif (--timer->running)\n-\t\t\t\tlist_del(&ti->active_list);\n+\t\t\t\tlist... | c | CWE-362 | [
"sound/core/timer.c"
] | sound/core/timer.c | 1 |
struct snd_timer_user { struct timespec tstamp; /* trigger tstamp */ wait_queue_head_t qchange_sleep; struct fasync_struct *fasync; struct mutex tread_sem; }; /* list of timers */ static int snd_timer_user_open(struct inode *inode, struct file *file) return -ENOMEM; spin_lock_init(&tu->qlock); init_waitqueue... | struct snd_timer_user { struct timespec tstamp; /* trigger tstamp */ wait_queue_head_t qchange_sleep; struct fasync_struct *fasync; struct mutex ioctl_lock; }; /* list of timers */ static int snd_timer_user_open(struct inode *inode, struct file *file) return -ENOMEM; spin_lock_init(&tu->qlock); init_waitqueu... | CVE-2016-2546 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/af368027a49a751d6ff4ee9e3f9961f35bb4fede'} | nvd | sound/core/timer.c in the Linux kernel before 4.4.1 uses an incorrect type of mutex, which allows local users to cause a denial of service (race condition, use-after-free, and system crash) via a crafted ioctl call. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/af368027a49a751d6ff4ee9e3f9961f35bb4fede | af368027a49a751d6ff4ee9e3f9961f35bb4fede | SINGLE | ['af368027a49a751d6ff4ee9e3f9961f35bb4fede'] | {'91815d8aa7e2f45d30e51caa297061ad893628d9'} | af368027a49a751d6ff4ee9e3f9961f35bb4fede | 1 | 01/13/2016, 16:48:01 | ALSA: timer: Fix race among timer ioctls
ALSA timer ioctls have an open race and this may lead to a
use-after-free of timer instance object. A simplistic fix is to make
each ioctl exclusive. We have already tread_sem for controlling the
tread, and extend this as a global mutex to be applied to each ioctl.
The downs... | Takashi Iwai | null | {'additions': 19, 'deletions': 13, 'total': 32} | [
{
"additions": 19,
"changes": 32,
"deletions": 13,
"patch": "@@ -73,7 +73,7 @@ struct snd_timer_user {\n \tstruct timespec tstamp;\t\t/* trigger tstamp */\n \twait_queue_head_t qchange_sleep;\n \tstruct fasync_struct *fasync;\n-\tstruct mutex tread_sem;\n+\tstruct mutex ioctl_lock;\n };\n \n /* list... | c | CWE-362 | [
"sound/core/timer.c"
] | sound/core/timer.c | 1 |
static void snd_timer_check_master(struct snd_timer_instance *master) slave->slave_id == master->slave_id) { list_move_tail(&slave->open_list, &master->slave_list_head); spin_lock_irq(&slave_active_lock); slave->master = master; slave->timer = master->timer; if (slave->flags & SNDRV_TIMER_IFLG_RUN... | static void snd_timer_check_master(struct snd_timer_instance *master) slave->slave_id == master->slave_id) { list_move_tail(&slave->open_list, &master->slave_list_head); spin_lock_irq(&slave_active_lock); spin_lock(&master->timer->lock); slave->master = master; slave->timer = master->timer; if ... | CVE-2016-2547 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/b5a663aa426f4884c71cd8580adae73f33570f0d'} | nvd | sound/core/timer.c in the Linux kernel before 4.4.1 employs a locking approach that does not consider slave timer instances, which allows local users to cause a denial of service (race condition, use-after-free, and system crash) via a crafted ioctl call. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b5a663aa426f4884c71cd8580adae73f33570f0d | b5a663aa426f4884c71cd8580adae73f33570f0d | SINGLE | ['b5a663aa426f4884c71cd8580adae73f33570f0d'] | {'cf52103a218744f3fd18111325c28e95aa9cd226'} | b5a663aa426f4884c71cd8580adae73f33570f0d | 1 | 01/14/2016, 15:30:58 | ALSA: timer: Harden slave timer list handling
A slave timer instance might be still accessible in a racy way while
operating the master instance as it lacks of locking. Since the
master operation is mostly protected with timer->lock, we should cope
with it while changing the slave instance, too. Also, some linked
li... | Takashi Iwai | null | {'additions': 14, 'deletions': 4, 'total': 18} | [
{
"additions": 14,
"changes": 18,
"deletions": 4,
"patch": "@@ -215,11 +215,13 @@ static void snd_timer_check_master(struct snd_timer_instance *master)\n \t\t slave->slave_id == master->slave_id) {\n \t\t\tlist_move_tail(&slave->open_list, &master->slave_list_head);\n \t\t\tspin_lock_irq(&slave_a... | c | CWE-362 | [
"sound/core/timer.c"
] | sound/core/timer.c | 1 |
static int snd_hrtimer_start(struct snd_timer *t) struct snd_hrtimer *stime = t->private_data; atomic_set(&stime->running, 0); hrtimer_cancel(&stime->hrt); hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), HRTIMER_MODE_REL); atomic_set(&stime->running, 1); static int snd_hrtimer_stop(struct... | static int snd_hrtimer_start(struct snd_timer *t) struct snd_hrtimer *stime = t->private_data; atomic_set(&stime->running, 0); hrtimer_try_to_cancel(&stime->hrt); hrtimer_start(&stime->hrt, ns_to_ktime(t->sticks * resolution), HRTIMER_MODE_REL); atomic_set(&stime->running, 1); static int snd_hrtimer_stop... | CVE-2016-2549 | {'CWE-20'} | 2.9 | {'https://github.com/torvalds/linux/commit/2ba1fe7a06d3624f9a7586d672b55f08f7c670f3'} | nvd | sound/core/hrtimer.c in the Linux kernel before 4.4.1 does not prevent recursive callback access, which allows local users to cause a denial of service (deadlock) via a crafted ioctl call. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2ba1fe7a06d3624f9a7586d672b55f08f7c670f3 | 2ba1fe7a06d3624f9a7586d672b55f08f7c670f3 | SINGLE | ['2ba1fe7a06d3624f9a7586d672b55f08f7c670f3'] | {'db8948e653e12b218058bb6696f4a33fa7845f64'} | 2ba1fe7a06d3624f9a7586d672b55f08f7c670f3 | 1 | 01/18/2016, 12:52:47 | ALSA: hrtimer: Fix stall by hrtimer_cancel()
hrtimer_cancel() waits for the completion from the callback, thus it
must not be called inside the callback itself. This was already a
problem in the past with ALSA hrtimer driver, and the early commit
[fcfdebe70759: ALSA: hrtimer - Fix lock-up] tried to address it.
Howev... | Takashi Iwai | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -90,7 +90,7 @@ static int snd_hrtimer_start(struct snd_timer *t)\n \tstruct snd_hrtimer *stime = t->private_data;\n \n \tatomic_set(&stime->running, 0);\n-\thrtimer_cancel(&stime->hrt);\n+\thrtimer_try_to_cancel(&stime->hrt);\n \thrtimer_s... | c | CWE-20 | [
"sound/core/hrtimer.c"
] | sound/core/hrtimer.c | 1 |
public static function format( ++$i, $err[0], $err[1], $err[2], $err[3] ); } | public static function format( ++$i, $err[0], $err[1], htmlspecialchars($err[2]), $err[3] ); } | CVE-2016-2559 | {'CWE-79'} | 2.9 | {'https://github.com/phpmyadmin/phpmyadmin/commit/3a6a9a807d99371ee126635e1a505fc1fe0df32c'} | nvd | Cross-site scripting (XSS) vulnerability in the format function in libraries/sql-parser/src/Utils/Error.php in the SQL parser in phpMyAdmin 4.5.x before 4.5.5.1 allows remote authenticated users to inject arbitrary web script or HTML via a crafted query. | 2016-03-01 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/3a6a9a807d99371ee126635e1a505fc1fe0df32c | 3a6a9a807d99371ee126635e1a505fc1fe0df32c | SINGLE | ['3a6a9a807d99371ee126635e1a505fc1fe0df32c'] | {'2b1a68cc4eb935ef3df5c7401d0d1338df09bc72'} | 3a6a9a807d99371ee126635e1a505fc1fe0df32c | 1 | 02/25/2016, 08:06:52 | Escape query when displaying
Signed-off-by: Michal Čihař <michal@cihar.com> | Michal Čihař | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -90,7 +90,7 @@ public static function format(\n ++$i,\n $err[0],\n $err[1],\n- $err[2],\n+ htmlspecialchars($err[2]),\n $err[3]\n );\... | php | CWE-79 | [
"libraries/sql-parser/src/Utils/Error.php"
] | libraries/sql-parser/src/Utils/Error.php | 1 |
static int treo_attach(struct usb_serial *serial) (serial->num_interrupt_in == 0)) return 0; /* * It appears that Treos and Kyoceras want to use the * 1st bulk in endpoint to communicate with the 2nd bulk out endpoint, | static int treo_attach(struct usb_serial *serial) (serial->num_interrupt_in == 0)) return 0; if (serial->num_bulk_in < 2 || serial->num_interrupt_in < 2) { dev_err(&serial->interface->dev, "missing endpoints\n"); return -ENODEV; } /* * It appears that Treos and Kyoceras want to use the * 1st bulk in end... | CVE-2016-2782 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/cac9b50b0d75a1d50d6c056ff65c005f3224c8e0'} | nvd | The treo_attach function in drivers/usb/serial/visor.c in the Linux kernel before 4.5 allows physically proximate attackers to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by inserting a USB device that lacks a (1) bulk-in or (2) interrupt-in endpoint. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cac9b50b0d75a1d50d6c056ff65c005f3224c8e0 | cac9b50b0d75a1d50d6c056ff65c005f3224c8e0 | SINGLE | ['cac9b50b0d75a1d50d6c056ff65c005f3224c8e0'] | {'f487c54ddd544e1c9172cd510954f697b77b76e3'} | cac9b50b0d75a1d50d6c056ff65c005f3224c8e0 | 1 | 01/12/2016, 11:05:20 | USB: visor: fix null-deref at probe
Fix null-pointer dereference at probe should a (malicious) Treo device
lack the expected endpoints.
Specifically, the Treo port-setup hack was dereferencing the bulk-in and
interrupt-in urbs without first making sure they had been allocated by
core.
Fixes: 1da177e4c3f4 ("Linux-2.6... | Johan Hovold | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -544,6 +544,11 @@ static int treo_attach(struct usb_serial *serial)\n \t\t(serial->num_interrupt_in == 0))\n \t\treturn 0;\n \n+\tif (serial->num_bulk_in < 2 || serial->num_interrupt_in < 2) {\n+\t\tdev_err(&serial->interface->dev, \"missi... | c | CWE-476 | [
"drivers/usb/serial/visor.c"
] | drivers/usb/serial/visor.c | 1 |
static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom) if (entries >= UINT_MAX / sizeof(*sc->drefs)) return AVERROR_INVALIDDATA; av_free(sc->drefs); sc->drefs = av_mallocz(entries * sizeof(*sc->drefs)); if (!sc->drefs) return AVERROR(ENOMEM); | static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom) if (entries >= UINT_MAX / sizeof(*sc->drefs)) return AVERROR_INVALIDDATA; av_free(sc->drefs); sc->drefs_count = 0; sc->drefs = av_mallocz(entries * sizeof(*sc->drefs)); if (!sc->drefs) return AVERROR(ENOMEM); | CVE-2016-3062 | {'CWE-119'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/689e59b7ffed34eba6159dcc78e87133862e3746'} | nvd | The mov_read_dref function in libavformat/mov.c in Libav before 11.7 and FFmpeg before 0.11 allows remote attackers to cause a denial of service (memory corruption) or execute arbitrary code via the entries value in a dref box in an MP4 file. | 2016-06-16 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/689e59b7ffed34eba6159dcc78e87133862e3746 | 689e59b7ffed34eba6159dcc78e87133862e3746 | SINGLE | ['689e59b7ffed34eba6159dcc78e87133862e3746'] | {'35e0496a7bb7243ce3574ab971bd489c7f7a0876'} | 689e59b7ffed34eba6159dcc78e87133862e3746 | 1 | 04/15/2012, 21:37:09 | mov: reset dref_count on realloc to keep values consistent.
This fixes a potential crash.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> | Michael Niedermayer | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -401,6 +401,7 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom)\n if (entries >= UINT_MAX / sizeof(*sc->drefs))\n return AVERROR_INVALIDDATA;\n av_free(sc->drefs);\n+ sc->drefs_count = 0;\n sc... | c | CWE-119 | [
"libavformat/mov.c"
] | libavformat/mov.c | 1 |
#include <linux/mempolicy.h> #include <linux/vmalloc.h> #include <linux/security.h> #include <linux/syscalls.h> #include <linux/hugetlb.h> #include <linux/hugetlb_cgroup.h> int migrate_page_move_mapping(struct address_space *mapping, struct buffer_head *head, enum migrate_mode mode, int extra_count) { int expecte... | #include <linux/mempolicy.h> #include <linux/vmalloc.h> #include <linux/security.h> #include <linux/backing-dev.h> #include <linux/syscalls.h> #include <linux/hugetlb.h> #include <linux/hugetlb_cgroup.h> int migrate_page_move_mapping(struct address_space *mapping, struct buffer_head *head, enum migrate_mode mode, ... | CVE-2016-3070 | {'CWE-476'} | 6.4 | {'https://github.com/torvalds/linux/commit/42cb14b110a5698ccf26ce59c4441722605a3743'} | nvd | The trace_writeback_dirty_page implementation in include/trace/events/writeback.h in the Linux kernel before 4.4 improperly interacts with mm/migrate.c, which allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by triggering a certain pag... | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/42cb14b110a5698ccf26ce59c4441722605a3743 | 42cb14b110a5698ccf26ce59c4441722605a3743 | SINGLE | ['42cb14b110a5698ccf26ce59c4441722605a3743'] | {'cf4b769abb8aef01f887543cb8308c0d8671367c'} | 42cb14b110a5698ccf26ce59c4441722605a3743 | 1 | 11/06/2015, 02:50:05 | mm: migrate dirty page without clear_page_dirty_for_io etc
clear_page_dirty_for_io() has accumulated writeback and memcg subtleties
since v2.6.16 first introduced page migration; and the set_page_dirty()
which completed its migration of PageDirty, later had to be moderated to
__set_page_dirty_nobuffers(); then PageSwa... | Hugh Dickins | null | {'additions': 31, 'deletions': 20, 'total': 51} | [
{
"additions": 31,
"changes": 51,
"deletions": 20,
"patch": "@@ -30,6 +30,7 @@\n #include <linux/mempolicy.h>\n #include <linux/vmalloc.h>\n #include <linux/security.h>\n+#include <linux/backing-dev.h>\n #include <linux/syscalls.h>\n #include <linux/hugetlb.h>\n #include <linux/hugetlb_cgroup.h>\n@@... | c | CWE-476 | [
"mm/migrate.c"
] | mm/migrate.c | 1 |
static PHP_NAMED_FUNCTION(zif_zip_entry_read) } if (zr_rsrc->zf) { buffer = zend_string_alloc(len, 0); n = zip_fread(zr_rsrc->zf, ZSTR_VAL(buffer), ZSTR_LEN(buffer)); if (n > 0) { ZSTR_VAL(buffer)[n] = '\0'; static void php_zip_get_from(INTERNAL_FUNCTION_PARAMETERS, int type) /* {{{ */ RETURN_FALSE; } ... | static PHP_NAMED_FUNCTION(zif_zip_entry_read) } if (zr_rsrc->zf) { buffer = zend_string_safe_alloc(1, len, 0, 0); n = zip_fread(zr_rsrc->zf, ZSTR_VAL(buffer), ZSTR_LEN(buffer)); if (n > 0) { ZSTR_VAL(buffer)[n] = '\0'; static void php_zip_get_from(INTERNAL_FUNCTION_PARAMETERS, int type) /* {{{ */ RETURN_... | CVE-2016-3078 | {'CWE-190'} | 6.4 | {'https://github.com/php/php-src/commit/3b8d4de300854b3517c7acb239b84f7726c1353c'} | nvd | Multiple integer overflows in php_zip.c in the zip extension in PHP before 7.0.6 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted call to (1) getFromIndex or (2) getFromName in the ZipArchive class. | 2016-08-07 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/3b8d4de300854b3517c7acb239b84f7726c1353c | 3b8d4de300854b3517c7acb239b84f7726c1353c | SINGLE | ['3b8d4de300854b3517c7acb239b84f7726c1353c'] | {'7133f28df57cef51076d5045b006c5c75c664728'} | 3b8d4de300854b3517c7acb239b84f7726c1353c | 1 | 04/20/2016, 06:49:22 | Fix bug #71923 - integer overflow in ZipArchive::getFrom* | Stanislav Malyshev | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1281,7 +1281,7 @@ static PHP_NAMED_FUNCTION(zif_zip_entry_read)\n \t}\n \n \tif (zr_rsrc->zf) {\n-\t\tbuffer = zend_string_alloc(len, 0);\n+\t\tbuffer = zend_string_safe_alloc(1, len, 0, 0);\n \t\tn = zip_fread(zr_rsrc->zf, ZSTR_VAL(buffe... | c | CWE-190 | [
"ext/zip/php_zip.c"
] | ext/zip/php_zip.c | 1 |
struct xt_table_info *xt_alloc_table_info(unsigned int size) struct xt_table_info *info = NULL; size_t sz = sizeof(*info) + size; /* Pedantry: prevent them from hitting BUG() in vmalloc.c --RR */ if ((SMP_ALIGN(size) >> PAGE_SHIFT) + 2 > totalram_pages) return NULL; | struct xt_table_info *xt_alloc_table_info(unsigned int size) struct xt_table_info *info = NULL; size_t sz = sizeof(*info) + size; if (sz < sizeof(*info)) return NULL; /* Pedantry: prevent them from hitting BUG() in vmalloc.c --RR */ if ((SMP_ALIGN(size) >> PAGE_SHIFT) + 2 > totalram_pages) return NULL; | CVE-2016-3135 | {'CWE-189', 'NVD-CWE-Other'} | 10 | {'https://github.com/torvalds/linux/commit/d157bd761585605b7882935ffb86286919f62ea1'} | nvd | Integer overflow in the xt_alloc_table_info function in net/netfilter/x_tables.c in the Linux kernel through 4.5.2 on 32-bit platforms allows local users to gain privileges or cause a denial of service (heap memory corruption) via an IPT_SO_SET_REPLACE setsockopt call. | 2016-04-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/d157bd761585605b7882935ffb86286919f62ea1 | d157bd761585605b7882935ffb86286919f62ea1 | SINGLE | ['d157bd761585605b7882935ffb86286919f62ea1'] | {'f0716cd6eb89f769bff3b37120219720c994bb7e'} | d157bd761585605b7882935ffb86286919f62ea1 | 1 | 03/10/2016, 00:56:23 | netfilter: x_tables: check for size overflow
Ben Hawkes says:
integer overflow in xt_alloc_table_info, which on 32-bit systems can
lead to small structure allocation and a copy_from_user based heap
corruption.
Reported-by: Ben Hawkes <hawkes@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by:... | Florian Westphal | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -659,6 +659,9 @@ struct xt_table_info *xt_alloc_table_info(unsigned int size)\n \tstruct xt_table_info *info = NULL;\n \tsize_t sz = sizeof(*info) + size;\n \n+\tif (sz < sizeof(*info))\n+\t\treturn NULL;\n+\n \t/* Pedantry: prevent them f... | c | CWE-189 | [
"net/netfilter/x_tables.c"
] | net/netfilter/x_tables.c | 1 |
void processRequest(struct reqelem * req) syslog(LOG_ERR, "cannot allocate memory"); goto error; } if(containsForbiddenChars(p, l)) { syslog(LOG_ERR, "bad request (st contains forbidden chars)"); goto error; | void processRequest(struct reqelem * req) syslog(LOG_ERR, "cannot allocate memory"); goto error; } memset(newserv, 0, sizeof(struct service)); /* set pointers to NULL */ if(containsForbiddenChars(p, l)) { syslog(LOG_ERR, "bad request (st contains forbidden chars)"); goto error; | CVE-2016-3179 | {'CWE-416'} | 2.9 | {'https://github.com/miniupnp/miniupnp/commit/140ee8d2204b383279f854802b27bdb41c1d5d1a'} | nvd | The processRequest function in minissdpd.c in MiniSSDPd 1.2.20130907-3 allows local users to cause a denial of service (invalid free and daemon crash) via vectors related to error handling. | 2017-03-24 | 1 | https://github.com/miniupnp/miniupnp | https://github.com/miniupnp/miniupnp/commit/140ee8d2204b383279f854802b27bdb41c1d5d1a | 140ee8d2204b383279f854802b27bdb41c1d5d1a | SINGLE | ['140ee8d2204b383279f854802b27bdb41c1d5d1a'] | {'4f230c809b3b66fafa34d387eead32fe242c49ee'} | 140ee8d2204b383279f854802b27bdb41c1d5d1a | 1 | 04/12/2014, 08:05:42 | minissdpd.c: Initialize pointers to NULL (fix) | Thomas BERNARD | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -658,6 +658,7 @@ void processRequest(struct reqelem * req)\n \t\t\tsyslog(LOG_ERR, \"cannot allocate memory\");\n \t\t\tgoto error;\n \t\t}\n+\t\tmemset(newserv, 0, sizeof(struct service));\t/* set pointers to NULL */\n \t\tif(containsForb... | c | CWE-416 | [
"minissdpd/minissdpd.c"
] | minissdpd/minissdpd.c | 1 |
int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb) if (!(size > 0)) return 0; ret = usbip_recv(ud->tcp_socket, urb->transfer_buffer, size); if (ret != size) { dev_err(&urb->dev->dev, "recv xbuf, %d\n", ret); | int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb) if (!(size > 0)) return 0; if (size > urb->transfer_buffer_length) { /* should not happen, probably malicious packet */ if (ud->side == USBIP_STUB) { usbip_event_add(ud, SDEV_EVENT_ERROR_TCP); return 0; } else { usbip_event_add(ud, VDEV... | CVE-2016-3955 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb'} | nvd | The usbip_recv_xbuff function in drivers/usb/usbip/usbip_common.c in the Linux kernel before 4.5.3 allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact via a crafted length value in a USB/IP packet. | 2016-07-03 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb | b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb | SINGLE | ['b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb'] | {'8ef34aa5a1b4fd940df6cba185fd28d3b750b727'} | b348d7dddb6c4fbfc810b7a0626e8ec9e29f7cbb | 1 | 03/17/2016, 18:00:29 | USB: usbip: fix potential out-of-bounds write
Fix potential out-of-bounds write to urb->transfer_buffer
usbip handles network communication directly in the kernel. When receiving a
packet from its peer, usbip code parses headers according to protocol. As
part of this parsing urb->actual_length is filled. Since the inp... | Ignat Korchagin | null | {'additions': 11, 'deletions': 0, 'total': 11} | [
{
"additions": 11,
"changes": 11,
"deletions": 0,
"patch": "@@ -741,6 +741,17 @@ int usbip_recv_xbuff(struct usbip_device *ud, struct urb *urb)\n \tif (!(size > 0))\n \t\treturn 0;\n \n+\tif (size > urb->transfer_buffer_length) {\n+\t\t/* should not happen, probably malicious packet */\n+\t\tif (ud-... | c | CWE-119 | [
"drivers/usb/usbip/usbip_common.c"
] | drivers/usb/usbip/usbip_common.c | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.