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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len) /* Decode and fetch the destination operand: register or memory. */ rc = decode_operand(ctxt, &ctxt->dst, (ctxt->d >> DstShift) & OpMask); if (ctxt->rip_relative) ctxt->memopp->addr.mem.ea = address_mask(ctxt, ctxt->memopp->addr.me... | int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len) /* Decode and fetch the destination operand: register or memory. */ rc = decode_operand(ctxt, &ctxt->dst, (ctxt->d >> DstShift) & OpMask); if (ctxt->rip_relative && likely(ctxt->memopp)) ctxt->memopp->addr.mem.ea = address_mask(ctxt, ... | CVE-2016-8630 | {'CWE-476', 'CWE-284'} | 6.9 | {'https://github.com/torvalds/linux/commit/d9092f52d7e61dd1557f2db2400ddb430e85937e'} | nvd | The x86_decode_insn function in arch/x86/kvm/emulate.c in the Linux kernel before 4.8.7, when KVM is enabled, allows local users to cause a denial of service (host OS crash) via a certain use of a ModR/M byte in an undefined instruction. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/d9092f52d7e61dd1557f2db2400ddb430e85937e | d9092f52d7e61dd1557f2db2400ddb430e85937e | SINGLE | ['d9092f52d7e61dd1557f2db2400ddb430e85937e'] | {'355f4fb1405ec29d0fac49b4d41fcd78cbd455d5'} | d9092f52d7e61dd1557f2db2400ddb430e85937e | 1 | 10/27/2016, 18:25:52 | kvm: x86: Check memopp before dereference (CVE-2016-8630)
Commit 41061cdb98 ("KVM: emulate: do not initialize memopp") removes a
check for non-NULL under incorrect assumptions. An undefined instruction
with a ModR/M byte with Mod=0 and R/M-5 (e.g. 0xc7 0x15) will attempt
to dereference a null pointer here.
Fixes: 410... | Owen Hofmann | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -5045,7 +5045,7 @@ int x86_decode_insn(struct x86_emulate_ctxt *ctxt, void *insn, int insn_len)\n \t/* Decode and fetch the destination operand: register or memory. */\n \trc = decode_operand(ctxt, &ctxt->dst, (ctxt->d >> DstShift) & OpMas... | c | CWE-476 | [
"arch/x86/kvm/emulate.c"
] | arch/x86/kvm/emulate.c | 1 |
static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len, int retval; u16 ether_type; hdr.w0 = be32_to_cpu(buf[0]); lf = fwnet_get_hdr_lf(&hdr); if (lf == RFC2374_HDR_UNFRAG) { static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len, return fwnet_finish_incoming_p... | static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len, int retval; u16 ether_type; if (len <= RFC2374_UNFRAG_HDR_SIZE) return 0; hdr.w0 = be32_to_cpu(buf[0]); lf = fwnet_get_hdr_lf(&hdr); if (lf == RFC2374_HDR_UNFRAG) { static int fwnet_incoming_packet(struct fwnet_device *dev, __be... | CVE-2016-8633 | {'CWE-119', 'CWE-284'} | 10 | {'https://github.com/torvalds/linux/commit/667121ace9dbafb368618dbabcf07901c962ddac'} | nvd | drivers/firewire/net.c in the Linux kernel before 4.8.7, in certain unusual hardware configurations, allows remote attackers to execute arbitrary code via crafted fragmented packets. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/667121ace9dbafb368618dbabcf07901c962ddac | 667121ace9dbafb368618dbabcf07901c962ddac | SINGLE | ['667121ace9dbafb368618dbabcf07901c962ddac'] | {'6449e31ddebdce68508cfaf0915d31aad3835f4f'} | 667121ace9dbafb368618dbabcf07901c962ddac | 1 | 10/29/2016, 19:28:18 | firewire: net: guard against rx buffer overflows
The IP-over-1394 driver firewire-net lacked input validation when
handling incoming fragmented datagrams. A maliciously formed fragment
with a respectively large datagram_offset would cause a memcpy past the
datagram buffer.
So, drop any packets carrying a fragment wi... | Stefan Richter | null | {'additions': 35, 'deletions': 16, 'total': 51} | [
{
"additions": 35,
"changes": 51,
"deletions": 16,
"patch": "@@ -578,6 +578,9 @@ static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len,\n \tint retval;\n \tu16 ether_type;\n \n+\tif (len <= RFC2374_UNFRAG_HDR_SIZE)\n+\t\treturn 0;\n+\n \thdr.w0 = be32_to_cpu(buf[0]);\n \tlf... | c | CWE-119 | [
"drivers/firewire/net.c"
] | drivers/firewire/net.c | 1 |
int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) case RXE_MEM_TYPE_MR: case RXE_MEM_TYPE_FMR: return ((iova < mem->iova) || ((iova + length) > (mem->iova + mem->length))) ? -EFAULT : 0; default: return -EFAULT; | int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length) case RXE_MEM_TYPE_MR: case RXE_MEM_TYPE_FMR: if (iova < mem->iova || length > mem->length || iova > mem->iova + mem->length - length) return -EFAULT; return 0; default: return -EFAULT; | CVE-2016-8636 | {'CWE-190'} | 10 | {'https://github.com/torvalds/linux/commit/647bf3d8a8e5777319da92af672289b2a6c4dc66'} | nvd | Integer overflow in the mem_check_range function in drivers/infiniband/sw/rxe/rxe_mr.c in the Linux kernel before 4.9.10 allows local users to cause a denial of service (memory corruption), obtain sensitive information from kernel memory, or possibly have unspecified other impact via a write or read request involving t... | 2017-02-22 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/647bf3d8a8e5777319da92af672289b2a6c4dc66 | 647bf3d8a8e5777319da92af672289b2a6c4dc66 | SINGLE | ['647bf3d8a8e5777319da92af672289b2a6c4dc66'] | {'628f07d33c1f2e7bf31e0a4a988bb07914bd5e73'} | 647bf3d8a8e5777319da92af672289b2a6c4dc66 | 1 | 02/07/2017, 13:45:19 | IB/rxe: Fix mem_check_range integer overflow
Update the range check to avoid integer-overflow in edge case.
Resolves CVE 2016-8636.
Signed-off-by: Eyal Itkin <eyal.itkin@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <d... | Eyal Itkin | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -59,9 +59,11 @@ int mem_check_range(struct rxe_mem *mem, u64 iova, size_t length)\n \n \tcase RXE_MEM_TYPE_MR:\n \tcase RXE_MEM_TYPE_FMR:\n-\t\treturn ((iova < mem->iova) ||\n-\t\t\t((iova + length) > (mem->iova + mem->length))) ?\n-\t\t\t... | c | CWE-190 | [
"drivers/infiniband/sw/rxe/rxe_mr.c"
] | drivers/infiniband/sw/rxe/rxe_mr.c | 1 |
static int hash_accept(struct socket *sock, struct socket *newsock, int flags) struct sock *sk2; struct alg_sock *ask2; struct hash_ctx *ctx2; int err; err = crypto_ahash_export(req, state); if (err) return err; static int hash_accept(struct socket *sock, struct socket *newsock, int flags) sk2 = newsock->sk... | static int hash_accept(struct socket *sock, struct socket *newsock, int flags) struct sock *sk2; struct alg_sock *ask2; struct hash_ctx *ctx2; bool more; int err; lock_sock(sk); more = ctx->more; err = more ? crypto_ahash_export(req, state) : 0; release_sock(sk); if (err) return err; static int hash_acc... | CVE-2016-8646 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/4afa5f9617927453ac04b24b584f6c718dfb4f45'} | nvd | The hash_accept function in crypto/algif_hash.c in the Linux kernel before 4.3.6 allows local users to cause a denial of service (OOPS) by attempting to trigger use of in-kernel hash algorithms for a socket that has received zero bytes of data. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4afa5f9617927453ac04b24b584f6c718dfb4f45 | 4afa5f9617927453ac04b24b584f6c718dfb4f45 | SINGLE | ['4afa5f9617927453ac04b24b584f6c718dfb4f45'] | {'271817a3e92c0455bda5856d87eca244ad67d3a2'} | 4afa5f9617927453ac04b24b584f6c718dfb4f45 | 1 | 11/01/2015, 09:11:19 | crypto: algif_hash - Only export and import on sockets with data
The hash_accept call fails to work on sockets that have not received
any data. For some algorithm implementations it may cause crashes.
This patch fixes this by ensuring that we only export and import on
sockets that have received data.
Cc: stable@vge... | Herbert Xu | null | {'additions': 10, 'deletions': 2, 'total': 12} | [
{
"additions": 10,
"changes": 12,
"deletions": 2,
"patch": "@@ -181,9 +181,14 @@ static int hash_accept(struct socket *sock, struct socket *newsock, int flags)\n \tstruct sock *sk2;\n \tstruct alg_sock *ask2;\n \tstruct hash_ctx *ctx2;\n+\tbool more;\n \tint err;\n \n-\terr = crypto_ahash_export(req... | c | CWE-476 | [
"crypto/algif_hash.c"
] | crypto/algif_hash.c | 1 |
#include "namespace.h" #include "log.h" #include "attach.h" #include "caps.h" #include "config.h" lxc_log_define(lxc_attach, lxc); int lsm_set_label_at(int procfd, int on_exec, char* lsm_label) { int labelfd = -1; int ret = 0; const char* name; char* command = NULL; name = lsm_name(); if (strcmp(name, "nop"... | #include "namespace.h" #include "log.h" #include "af_unix.h" #include "attach.h" #include "caps.h" #include "config.h" lxc_log_define(lxc_attach, lxc); static int lsm_openat(int procfd, pid_t pid, int on_exec) { int ret = -1; int labelfd = -1; const char* name; #define __LSMATTRLEN /* /proc */ (5 + /* /pid-to-st... | CVE-2016-8649 | {'CWE-264'} | 10 | {'https://github.com/lxc/lxc/commit/81f466d05f2a89cb4f122ef7f593ff3f279b165c'} | nvd | lxc-attach in LXC before 1.0.9 and 2.x before 2.0.6 allows an attacker inside of an unprivileged container to use an inherited file descriptor, of the host's /proc, to access the rest of the host's filesystem via the openat() family of syscalls. | 2017-05-01 | 1 | https://github.com/lxc/lxc | https://github.com/lxc/lxc/commit/81f466d05f2a89cb4f122ef7f593ff3f279b165c | 81f466d05f2a89cb4f122ef7f593ff3f279b165c | SINGLE | ['81f466d05f2a89cb4f122ef7f593ff3f279b165c'] | {'8f227cdcb8cee6895e3c9f204b0a72c3d943a74d'} | 81f466d05f2a89cb4f122ef7f593ff3f279b165c | 1 | 11/08/2016, 18:21:19 | attach: do not send procfd to attached process
So far, we opened a file descriptor refering to proc on the host inside the
host namespace and handed that fd to the attached process in
attach_child_main(). This was done to ensure that LSM labels were correctly
setup. However, by exploiting a potential kernel bug, ptrac... | Christian Brauner | null | {'additions': 134, 'deletions': 50, 'total': 184} | [
{
"additions": 134,
"changes": 184,
"deletions": 50,
"patch": "@@ -53,6 +53,7 @@\n \n #include \"namespace.h\"\n #include \"log.h\"\n+#include \"af_unix.h\"\n #include \"attach.h\"\n #include \"caps.h\"\n #include \"config.h\"\n@@ -84,80 +85,103 @@\n \n lxc_log_define(lxc_attach, lxc);\n \n-int lsm_... | c | CWE-264 | [
"src/lxc/attach.c"
] | src/lxc/attach.c | 1 |
int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) if (!esize) { /* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 * depending on if MOD equals 1. */ rp[0] = 1; res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; res->sign = 0; goto leave; } | int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) if (!esize) { /* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 * depending on if MOD equals 1. */ res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; if (res->nlimbs) { if (mpi_resize(res, 1) < 0) goto enomem; rp = res->d; rp[0] = 1; }... | CVE-2016-8650 | {'CWE-20', 'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/f5527fffff3f002b0a6b376163613b82f69de073'} | nvd | The mpi_powm function in lib/mpi/mpi-pow.c in the Linux kernel through 4.8.11 does not ensure that memory is allocated for limb data, which allows local users to cause a denial of service (stack memory corruption and panic) via an add_key system call for an RSA key with a zero exponent. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f5527fffff3f002b0a6b376163613b82f69de073 | f5527fffff3f002b0a6b376163613b82f69de073 | SINGLE | ['f5527fffff3f002b0a6b376163613b82f69de073'] | {'2b95fda2c4fcb6d6625963f889247538f247fce0'} | f5527fffff3f002b0a6b376163613b82f69de073 | 1 | 11/24/2016, 13:23:10 | mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]
This fixes CVE-2016-8650.
If mpi_powm() is given a zero exponent, it wants to immediately return
either 1 or 0, depending on the modulus. However, if the result was
initalised with zero limb space, no limbs space is allocated and a
NULL-pointer exception ensues.
... | Andrey Ryabinin | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -64,8 +64,13 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)\n \tif (!esize) {\n \t\t/* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0\n \t\t * depending on if MOD equals 1. */\n-\t\trp[0] = 1;\n \t\tres->nlimbs = (msize == 1 &&... | c | CWE-20 | [
"lib/mpi/mpi-pow.c"
] | lib/mpi/mpi-pow.c | 1 |
int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) if (!esize) { /* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 * depending on if MOD equals 1. */ rp[0] = 1; res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; res->sign = 0; goto leave; } | int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) if (!esize) { /* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0 * depending on if MOD equals 1. */ res->nlimbs = (msize == 1 && mod->d[0] == 1) ? 0 : 1; if (res->nlimbs) { if (mpi_resize(res, 1) < 0) goto enomem; rp = res->d; rp[0] = 1; }... | CVE-2016-8650 | {'CWE-20', 'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/f5527fffff3f002b0a6b376163613b82f69de073'} | nvd | The mpi_powm function in lib/mpi/mpi-pow.c in the Linux kernel through 4.8.11 does not ensure that memory is allocated for limb data, which allows local users to cause a denial of service (stack memory corruption and panic) via an add_key system call for an RSA key with a zero exponent. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f5527fffff3f002b0a6b376163613b82f69de073 | f5527fffff3f002b0a6b376163613b82f69de073 | SINGLE | ['f5527fffff3f002b0a6b376163613b82f69de073'] | {'2b95fda2c4fcb6d6625963f889247538f247fce0'} | f5527fffff3f002b0a6b376163613b82f69de073 | 1 | 11/24/2016, 13:23:10 | mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]
This fixes CVE-2016-8650.
If mpi_powm() is given a zero exponent, it wants to immediately return
either 1 or 0, depending on the modulus. However, if the result was
initalised with zero limb space, no limbs space is allocated and a
NULL-pointer exception ensues.
... | Andrey Ryabinin | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -64,8 +64,13 @@ int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)\n \tif (!esize) {\n \t\t/* Exponent is zero, result is 1 mod MOD, i.e., 1 or 0\n \t\t * depending on if MOD equals 1. */\n-\t\trp[0] = 1;\n \t\tres->nlimbs = (msize == 1 &&... | c | CWE-399 | [
"lib/mpi/mpi-pow.c"
] | lib/mpi/mpi-pow.c | 1 |
packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv if (optlen != sizeof(val)) return -EINVAL; if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) return -EBUSY; if (copy_from_user(&val, optval, sizeof(val))) return -EFAULT; switch (val) { case TPACKET_V1: case TPACKET_V2: ... | packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv if (optlen != sizeof(val)) return -EINVAL; if (copy_from_user(&val, optval, sizeof(val))) return -EFAULT; switch (val) { case TPACKET_V1: case TPACKET_V2: case TPACKET_V3: break; default: return -EINVAL; } l... | CVE-2016-8655 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c'} | nvd | Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging the CAP_NET_RAW capability to change a socket version, related to the packet_set_ring and packet_setsockopt functions. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c | 84ac7260236a49c79eede91617700174c2c19b0c | SINGLE | ['84ac7260236a49c79eede91617700174c2c19b0c'] | {'2219d5ed77e8bdc2ef1f0b79f34d2cc0be802b25'} | 84ac7260236a49c79eede91617700174c2c19b0c | 1 | 11/30/2016, 22:55:36 | packet: fix race condition in packet_set_ring
When packet_set_ring creates a ring buffer it will initialize a
struct timer_list if the packet version is TPACKET_V3. This value
can then be raced by a different thread calling setsockopt to
set the version to TPACKET_V1 before packet_set_ring has finished.
This leads to... | Philip Pettersson | null | {'additions': 12, 'deletions': 6, 'total': 18} | [
{
"additions": 12,
"changes": 18,
"deletions": 6,
"patch": "@@ -3648,19 +3648,25 @@ packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv\n \n \t\tif (optlen != sizeof(val))\n \t\t\treturn -EINVAL;\n-\t\tif (po->rx_ring.pg_vec || po->tx_ring.pg_vec)\n-\t\t\treturn -EBUSY;\... | c | CWE-416 | [
"net/packet/af_packet.c"
] | net/packet/af_packet.c | 1 |
packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv if (optlen != sizeof(val)) return -EINVAL; if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) return -EBUSY; if (copy_from_user(&val, optval, sizeof(val))) return -EFAULT; switch (val) { case TPACKET_V1: case TPACKET_V2: ... | packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv if (optlen != sizeof(val)) return -EINVAL; if (copy_from_user(&val, optval, sizeof(val))) return -EFAULT; switch (val) { case TPACKET_V1: case TPACKET_V2: case TPACKET_V3: break; default: return -EINVAL; } l... | CVE-2016-8655 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c'} | nvd | Race condition in net/packet/af_packet.c in the Linux kernel through 4.8.12 allows local users to gain privileges or cause a denial of service (use-after-free) by leveraging the CAP_NET_RAW capability to change a socket version, related to the packet_set_ring and packet_setsockopt functions. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/84ac7260236a49c79eede91617700174c2c19b0c | 84ac7260236a49c79eede91617700174c2c19b0c | SINGLE | ['84ac7260236a49c79eede91617700174c2c19b0c'] | {'2219d5ed77e8bdc2ef1f0b79f34d2cc0be802b25'} | 84ac7260236a49c79eede91617700174c2c19b0c | 1 | 11/30/2016, 22:55:36 | packet: fix race condition in packet_set_ring
When packet_set_ring creates a ring buffer it will initialize a
struct timer_list if the packet version is TPACKET_V3. This value
can then be raced by a different thread calling setsockopt to
set the version to TPACKET_V1 before packet_set_ring has finished.
This leads to... | Philip Pettersson | null | {'additions': 12, 'deletions': 6, 'total': 18} | [
{
"additions": 12,
"changes": 18,
"deletions": 6,
"patch": "@@ -3648,19 +3648,25 @@ packet_setsockopt(struct socket *sock, int level, int optname, char __user *optv\n \n \t\tif (optlen != sizeof(val))\n \t\t\treturn -EINVAL;\n-\t\tif (po->rx_ring.pg_vec || po->tx_ring.pg_vec)\n-\t\t\treturn -EBUSY;\... | c | CWE-362 | [
"net/packet/af_packet.c"
] | net/packet/af_packet.c | 1 |
brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, (u8 *)&settings->beacon.head[ie_offset], settings->beacon.head_len - ie_offset, WLAN_EID_SSID); if (!ssid_ie) return -EINVAL; memcpy(ssid_le.SSID, ssid_ie->data, ssid_ie->len); | brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev, (u8 *)&settings->beacon.head[ie_offset], settings->beacon.head_len - ie_offset, WLAN_EID_SSID); if (!ssid_ie || ssid_ie->len > IEEE80211_MAX_SSID_LEN) return -EINVAL; memcpy(ssid_le.SSID, ssid_ie->data, ssid_ie->len); | CVE-2016-8658 | {'CWE-119'} | 7.8 | {'https://github.com/torvalds/linux/commit/ded89912156b1a47d940a0c954c43afbabd0c42c'} | nvd | Stack-based buffer overflow in the brcmf_cfg80211_start_ap function in drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c in the Linux kernel before 4.7.5 allows local users to cause a denial of service (system crash) or possibly have unspecified other impact via a long SSID Information Element in a command to... | 2016-10-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ded89912156b1a47d940a0c954c43afbabd0c42c | ded89912156b1a47d940a0c954c43afbabd0c42c | SINGLE | ['ded89912156b1a47d940a0c954c43afbabd0c42c'] | {'a9840c46ff9bb845d62d6f9592ab76c0e531c8f4'} | ded89912156b1a47d940a0c954c43afbabd0c42c | 1 | 09/05/2016, 09:45:47 | brcmfmac: avoid potential stack overflow in brcmf_cfg80211_start_ap()
User-space can choose to omit NL80211_ATTR_SSID and only provide raw
IE TLV data. When doing so it can provide SSID IE with length exceeding
the allowed size. The driver further processes this IE copying it
into a local variable without checking the... | Arend Van Spriel | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -4527,7 +4527,7 @@ brcmf_cfg80211_start_ap(struct wiphy *wiphy, struct net_device *ndev,\n \t\t\t\t(u8 *)&settings->beacon.head[ie_offset],\n \t\t\t\tsettings->beacon.head_len - ie_offset,\n \t\t\t\tWLAN_EID_SSID);\n-\t\tif (!ssid_ie)\n+\t... | c | CWE-119 | [
"drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c"
] | drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 1 |
static int dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len) if(remain >= len) { rlen = len; } else { if(remain == 0) { /* 2.0.34: EOF is incorrect. We use 0 for * errors and EOF, just like fileGetbuf, * which is a simple fread() wrapper. | static int dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len) if(remain >= len) { rlen = len; } else { if(remain <= 0) { /* 2.0.34: EOF is incorrect. We use 0 for * errors and EOF, just like fileGetbuf, * which is a simple fread() wrapper. | CVE-2016-8670 | {'CWE-119'} | 6.4 | {'https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9'} | nvd | Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagec... | 2017-01-04 | 1 | https://github.com/libgd/libgd | https://github.com/libgd/libgd/commit/53110871935244816bbb9d131da0bccff734bfe9 | 53110871935244816bbb9d131da0bccff734bfe9 | SINGLE | ['53110871935244816bbb9d131da0bccff734bfe9'] | {'4a03b38ca98654fcb7d1d080dc6e07be4e85c555'} | 53110871935244816bbb9d131da0bccff734bfe9 | 1 | 10/12/2016, 09:15:32 | Avoid potentially dangerous signed to unsigned conversion
We make sure to never pass a negative `rlen` as size to memcpy(). See
also <https://bugs.php.net/bug.php?id=73280>.
Patch provided by Emmanuel Law. | Christoph M. Becker | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -276,7 +276,7 @@ static int dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len)\n \tif(remain >= len) {\n \t\trlen = len;\n \t} else {\n-\t\tif(remain == 0) {\n+\t\tif(remain <= 0) {\n \t\t\t/* 2.0.34: EOF is incorrect. We use 0 for\n \t\t\t... | c | CWE-119 | [
"src/gd_io_dp.c"
] | src/gd_io_dp.c | 1 |
static int mpeg4video_probe(AVProbeData *probe_packet) for (i = 0; i < probe_packet->buf_size; i++) { temp_buffer = (temp_buffer << 8) + probe_packet->buf[i]; if ((temp_buffer & 0xffffff00) != 0x100) continue; if (temp_buffer == VOP_START_CODE) VOP++; else ... | static int mpeg4video_probe(AVProbeData *probe_packet) for (i = 0; i < probe_packet->buf_size; i++) { temp_buffer = (temp_buffer << 8) + probe_packet->buf[i]; if (temp_buffer & 0xfffffe00) continue; if (temp_buffer < 2) continue; if (temp_buffer == VOP_STAR... | CVE-2016-8675 | {'CWE-476'} | 2.9 | {'https://github.com/libav/libav/commit/e5b019725f53b79159931d3a7317107cbbfd0860'} | nvd | The get_vlc2 function in get_bits.h in Libav before 11.9 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) via a crafted mp3 file, possibly related to startcode sequences during m4v detection. | 2017-02-15 | 1 | https://github.com/libav/libav | https://github.com/libav/libav/commit/e5b019725f53b79159931d3a7317107cbbfd0860 | e5b019725f53b79159931d3a7317107cbbfd0860 | SINGLE | ['e5b019725f53b79159931d3a7317107cbbfd0860'] | {'3ccec334b8502701e72ef13bed25913c3578022e'} | e5b019725f53b79159931d3a7317107cbbfd0860 | 1 | 09/07/2014, 14:39:39 | m4vdec: Check for non-startcode 00 00 00 sequences in probe
This makes the m4v detection less trigger-happy.
Bug-Id: 949
Signed-off-by: Diego Biurrun <diego@biurrun.de> | Michael Niedermayer | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -33,16 +33,18 @@ static int mpeg4video_probe(AVProbeData *probe_packet)\n \n for (i = 0; i < probe_packet->buf_size; i++) {\n temp_buffer = (temp_buffer << 8) + probe_packet->buf[i];\n- if ((temp_buffer & 0xffffff00) != ... | c | CWE-476 | [
"libavformat/m4vdec.c"
] | libavformat/m4vdec.c | 1 |
safe_fprintf(FILE *f, const char *fmt, ...) } /* If our output buffer is full, dump it and keep going. */ if (i > (sizeof(outbuff) - 20)) { outbuff[i] = '\0'; fprintf(f, "%s", outbuff); i = 0; | safe_fprintf(FILE *f, const char *fmt, ...) } /* If our output buffer is full, dump it and keep going. */ if (i > (sizeof(outbuff) - 128)) { outbuff[i] = '\0'; fprintf(f, "%s", outbuff); i = 0; | CVE-2016-8687 | {'CWE-119'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a'} | nvd | Stack-based buffer overflow in the safe_fprintf function in tar/util.c in libarchive 3.2.1 allows remote attackers to cause a denial of service via a crafted non-printable multibyte character in a filename. | 2017-02-15 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/e37b620fe8f14535d737e89a4dcabaed4517bf1a | e37b620fe8f14535d737e89a4dcabaed4517bf1a | SINGLE | ['e37b620fe8f14535d737e89a4dcabaed4517bf1a'] | {'36bb164e221a3a76488f2ceaf808db14de6f8ca4'} | e37b620fe8f14535d737e89a4dcabaed4517bf1a | 1 | 08/21/2016, 17:51:43 | Issue #767: Buffer overflow printing a filename
The safe_fprintf function attempts to ensure clean output for an
arbitrary sequence of bytes by doing a trial conversion of the
multibyte characters to wide characters -- if the resulting wide
character is printable then we pass through the corresponding bytes
unaltered... | Tim Kientzle | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -182,7 +182,7 @@ safe_fprintf(FILE *f, const char *fmt, ...)\n \t\t}\n \n \t\t/* If our output buffer is full, dump it and keep going. */\n-\t\tif (i > (sizeof(outbuff) - 20)) {\n+\t\tif (i > (sizeof(outbuff) - 128)) {\n \t\t\toutbuff[i] =... | c | CWE-119 | [
"tar/util.c"
] | tar/util.c | 1 |
read_Header(struct archive_read *a, struct _7z_header_info *h, switch (type) { case kEmptyStream: h->emptyStreamBools = calloc((size_t)zip->numFiles, sizeof(*h->emptyStreamBools)); if (h->emptyStreamBools == NULL) read_Header(struct archive_read *a, struct _7z_header_info *h, return (-1); br... | read_Header(struct archive_read *a, struct _7z_header_info *h, switch (type) { case kEmptyStream: if (h->emptyStreamBools != NULL) return (-1); h->emptyStreamBools = calloc((size_t)zip->numFiles, sizeof(*h->emptyStreamBools)); if (h->emptyStreamBools == NULL) read_Header(struct archive_read *a... | CVE-2016-8689 | {'CWE-125'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/7f17c791dcfd8c0416e2cd2485b19410e47ef126'} | nvd | The read_Header function in archive_read_support_format_7zip.c in libarchive 3.2.1 allows remote attackers to cause a denial of service (out-of-bounds read) via multiple EmptyStream attributes in a header in a 7zip archive. | 2017-02-15 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/7f17c791dcfd8c0416e2cd2485b19410e47ef126 | 7f17c791dcfd8c0416e2cd2485b19410e47ef126 | SINGLE | ['7f17c791dcfd8c0416e2cd2485b19410e47ef126'] | {'a6dd4cc26217b9302dad59d1fcd4f5114abc10af'} | 7f17c791dcfd8c0416e2cd2485b19410e47ef126 | 1 | 09/19/2016, 01:14:58 | Issue 761: Heap overflow reading corrupted 7Zip files
The sample file that demonstrated this had multiple 'EmptyStream'
attributes. The first one ended up being used to calculate
certain statistics, then was overwritten by the second which
was incompatible with those statistics.
The fix here is to reject any header... | Tim Kientzle | null | {'additions': 10, 'deletions': 0, 'total': 10} | [
{
"additions": 10,
"changes": 10,
"deletions": 0,
"patch": "@@ -2431,6 +2431,8 @@ read_Header(struct archive_read *a, struct _7z_header_info *h,\n \n \t\tswitch (type) {\n \t\tcase kEmptyStream:\n+\t\t\tif (h->emptyStreamBools != NULL)\n+\t\t\t\treturn (-1);\n \t\t\th->emptyStreamBools = calloc((siz... | c | CWE-125 | [
"libarchive/archive_read_support_format_7zip.c"
] | libarchive/archive_read_support_format_7zip.c | 1 |
static int jpc_siz_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_free(siz->comps); return -1; } siz->comps[i].sgnd = (tmp >> 7) & 1; siz->comps[i].prec = (tmp & 0x7f) + 1; } | static int jpc_siz_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate, jas_free(siz->comps); return -1; } if (siz->comps[i].hsamp == 0 || siz->comps[i].hsamp > 255) { jas_eprintf("invalid XRsiz value %d\n", siz->comps[i].hsamp); jas_free(siz->comps); return -1; } if (siz->comps[i].vsamp == 0 || siz->co... | CVE-2016-8691 | {'CWE-369'} | 2.9 | {'https://github.com/mdadams/jasper/commit/d8c2604cd438c41ec72aff52c16ebd8183068020'} | nvd | The jpc_dec_process_siz function in libjasper/jpc/jpc_dec.c in JasPer before 1.900.4 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted XRsiz value in a BMP image to the imginfo command. | 2017-02-15 | 1 | https://github.com/mdadams/jasper | https://github.com/mdadams/jasper/commit/d8c2604cd438c41ec72aff52c16ebd8183068020 | d8c2604cd438c41ec72aff52c16ebd8183068020 | SINGLE | ['d8c2604cd438c41ec72aff52c16ebd8183068020'] | {'3c55b399c36ef46befcb21e4ebc4799367f89684'} | d8c2604cd438c41ec72aff52c16ebd8183068020 | 1 | 10/15/2016, 19:22:28 | Added range check on XRsiz and YRsiz fields of SIZ marker segment. | Michael Adams | null | {'additions': 10, 'deletions': 0, 'total': 10} | [
{
"additions": 10,
"changes": 10,
"deletions": 0,
"patch": "@@ -512,6 +512,16 @@ static int jpc_siz_getparms(jpc_ms_t *ms, jpc_cstate_t *cstate,\n \t\t\tjas_free(siz->comps);\n \t\t\treturn -1;\n \t\t}\n+\t\tif (siz->comps[i].hsamp == 0 || siz->comps[i].hsamp > 255) {\n+\t\t\tjas_eprintf(\"invalid X... | c | CWE-369 | [
"src/libjasper/jpc/jpc_cs.c"
] | src/libjasper/jpc/jpc_cs.c | 1 |
static int mem_resize(jas_stream_memobj_t *m, int bufsize) { unsigned char *buf; assert(m->buf_); assert(bufsize >= 0); if (!(buf = jas_realloc2(m->buf_, bufsize, sizeof(unsigned char)))) { return -1; } m->buf_ = buf; | static int mem_resize(jas_stream_memobj_t *m, int bufsize) { unsigned char *buf; //assert(m->buf_); assert(bufsize >= 0); if (!(buf = jas_realloc2(m->buf_, bufsize, sizeof(unsigned char))) && bufsize) { return -1; } m->buf_ = buf; | CVE-2016-8693 | {'CWE-415'} | 6.4 | {'https://github.com/mdadams/jasper/commit/44a524e367597af58d6265ae2014468b334d0309'} | nvd | Double free vulnerability in the mem_close function in jas_stream.c in JasPer before 1.900.10 allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted BMP image to the imginfo command. | 2017-02-15 | 1 | https://github.com/mdadams/jasper | https://github.com/mdadams/jasper/commit/44a524e367597af58d6265ae2014468b334d0309 | 44a524e367597af58d6265ae2014468b334d0309 | SINGLE | ['44a524e367597af58d6265ae2014468b334d0309'] | {'efb88eb83089dcbfe0ae9d0de504b6fa24c1bc27'} | 44a524e367597af58d6265ae2014468b334d0309 | 1 | 10/20/2016, 14:34:32 | The memory stream interface allows for a buffer size of zero.
The case of a zero-sized buffer was not handled correctly, as it could
lead to a double free.
This problem has now been fixed (hopefully).
One might ask whether a zero-sized buffer should be allowed at all,
but this is a question for another day. | Michael Adams | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -993,9 +993,10 @@ static int mem_resize(jas_stream_memobj_t *m, int bufsize)\n {\n \tunsigned char *buf;\n \n-\tassert(m->buf_);\n+\t//assert(m->buf_);\n \tassert(bufsize >= 0);\n-\tif (!(buf = jas_realloc2(m->buf_, bufsize, sizeof(unsigne... | c | CWE-415 | [
"src/libjasper/base/jas_stream.c"
] | src/libjasper/base/jas_stream.c | 1 |
/* $OpenBSD: kex.c,v 1.126 2016/09/28 21:44:52 djm Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * kex_input_kexinit(int type, u_int32_t seq, void *ctxt) if (kex == NULL) return SSH_ERR_INVALID_ARGUMENT; ptr = sshpkt_ptr(ssh, &dlen); if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0... | /* $OpenBSD: kex.c,v 1.127 2016/10/10 19:28:48 markus Exp $ */ /* * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. * kex_input_kexinit(int type, u_int32_t seq, void *ctxt) if (kex == NULL) return SSH_ERR_INVALID_ARGUMENT; ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL); ptr = sshpkt_ptr(ssh, &dlen... | CVE-2016-8858 | {'CWE-399'} | 6.9 | {'https://github.com/openssh/openssh-portable/commit/ec165c392ca54317dbe3064a8c200de6531e89ad'} | nvd | ** DISPUTED ** The kex_input_kexinit function in kex.c in OpenSSH 6.x and 7.x through 7.3 allows remote attackers to cause a denial of service (memory consumption) by sending many duplicate KEXINIT requests. NOTE: a third party reports that "OpenSSH upstream does not consider this as a security issue." | 2016-12-09 | 1 | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable/commit/ec165c392ca54317dbe3064a8c200de6531e89ad | ec165c392ca54317dbe3064a8c200de6531e89ad | SINGLE | ['ec165c392ca54317dbe3064a8c200de6531e89ad'] | {'29d40319392e6e19deeca9d45468aa1119846e50'} | ec165c392ca54317dbe3064a8c200de6531e89ad | 1 | 10/10/2016, 19:28:48 | upstream commit
Unregister the KEXINIT handler after message has been
received. Otherwise an unauthenticated peer can repeat the KEXINIT and cause
allocation of up to 128MB -- until the connection is closed. Reported by
shilei-c at 360.cn
Upstream-ID: 43649ae12a27ef94290db16d1a98294588b75c05 | markus@openbsd.org | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1,4 +1,4 @@\n-/* $OpenBSD: kex.c,v 1.126 2016/09/28 21:44:52 djm Exp $ */\n+/* $OpenBSD: kex.c,v 1.127 2016/10/10 19:28:48 markus Exp $ */\n /*\n * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.\n *\n@@ -481,6 +481,7 @@ k... | c | CWE-399 | [
"kex.c"
] | kex.c | 1 |
public function routeRequest() { } // do the same for the other id's foreach ($_REQUEST as $key=>$var) { if (is_string($var) && strrpos($key,'_id',-3) !== false) { if (isset($_GET[$key])) $_GET[$key] = intval($_GET[$key]); if (isse... | public function routeRequest() { } // do the same for the other id's foreach ($_REQUEST as $key=>$var) { if (is_string($var) && strlen($key) >= 3 && strrpos($key,'_id',-3) !== false) { if (isset($_GET[$key])) $_GET[$key] = intval($_GET[$key]); ... | CVE-2016-8898 | {'CWE-89'} | 6.4 | {'https://github.com/exponentcms/exponent-cms/commit/99636b2118cd9af4eb9920f6b6c228bd824593d2'} | nvd | Exponent CMS version 2.3.9 suffers from a sql injection vulnerability in framework/modules/ecommerce/controllers/cartController.php. | 2019-05-24 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/99636b2118cd9af4eb9920f6b6c228bd824593d2 | 99636b2118cd9af4eb9920f6b6c228bd824593d2 | SINGLE | ['99636b2118cd9af4eb9920f6b6c228bd824593d2'] | {'3d70ba993107274b05283a04a9360739579e6923'} | 99636b2118cd9af4eb9920f6b6c228bd824593d2 | 1 | 09/20/2016, 23:29:35 | remove warning from expRouter code | dleffler | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -209,7 +209,7 @@ public function routeRequest() {\n }\n // do the same for the other id's\n foreach ($_REQUEST as $key=>$var) {\n- if (is_string($var) && strrpos($key,'_id',-3) !== false) {\n+ ... | php | CWE-89 | [
"framework/core/subsystems/expRouter.php"
] | framework/core/subsystems/expRouter.php | 1 |
static void ion_handle_get(struct ion_handle *handle) kref_get(&handle->ref); } static int ion_handle_put(struct ion_handle *handle) { struct ion_client *client = handle->client; int ret; mutex_lock(&client->lock); ret = kref_put(&handle->ref, ion_handle_destroy); mutex_unlock(&client->lock); return ret; sta... | static void ion_handle_get(struct ion_handle *handle) kref_get(&handle->ref); } static int ion_handle_put_nolock(struct ion_handle *handle) { int ret; ret = kref_put(&handle->ref, ion_handle_destroy); return ret; } int ion_handle_put(struct ion_handle *handle) { struct ion_client *client = handle->client; in... | CVE-2016-9120 | {'CWE-416', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/9590232bb4f4cc824f3425a6e1349afbe6d6d2b7'} | nvd | Race condition in the ion_ioctl function in drivers/staging/android/ion/ion.c in the Linux kernel before 4.6 allows local users to gain privileges or cause a denial of service (use-after-free) by calling ION_IOC_FREE on two CPUs at the same time. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | 9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | SINGLE | ['9590232bb4f4cc824f3425a6e1349afbe6d6d2b7'] | {'5a20df724f712e9daa9fd41b430ff63ecd203e85'} | 9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | 1 | 02/24/2016, 04:38:06 | staging/android/ion : fix a race condition in the ion driver
There is a use-after-free problem in the ion driver.
This is caused by a race condition in the ion_ioctl()
function.
A handle has ref count of 1 and two tasks on different
cpus calls ION_IOC_FREE simultaneously.
cpu 0 cpu ... | EunTaik Lee | null | {'additions': 42, 'deletions': 13, 'total': 55} | [
{
"additions": 42,
"changes": 55,
"deletions": 13,
"patch": "@@ -387,13 +387,22 @@ static void ion_handle_get(struct ion_handle *handle)\n \tkref_get(&handle->ref);\n }\n \n-static int ion_handle_put(struct ion_handle *handle)\n+static int ion_handle_put_nolock(struct ion_handle *handle)\n+{\n+\tint... | c | CWE-416 | [
"drivers/staging/android/ion/ion.c"
] | drivers/staging/android/ion/ion.c | 1 |
static void ion_handle_get(struct ion_handle *handle) kref_get(&handle->ref); } static int ion_handle_put(struct ion_handle *handle) { struct ion_client *client = handle->client; int ret; mutex_lock(&client->lock); ret = kref_put(&handle->ref, ion_handle_destroy); mutex_unlock(&client->lock); return ret; sta... | static void ion_handle_get(struct ion_handle *handle) kref_get(&handle->ref); } static int ion_handle_put_nolock(struct ion_handle *handle) { int ret; ret = kref_put(&handle->ref, ion_handle_destroy); return ret; } int ion_handle_put(struct ion_handle *handle) { struct ion_client *client = handle->client; in... | CVE-2016-9120 | {'CWE-416', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/9590232bb4f4cc824f3425a6e1349afbe6d6d2b7'} | nvd | Race condition in the ion_ioctl function in drivers/staging/android/ion/ion.c in the Linux kernel before 4.6 allows local users to gain privileges or cause a denial of service (use-after-free) by calling ION_IOC_FREE on two CPUs at the same time. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | 9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | SINGLE | ['9590232bb4f4cc824f3425a6e1349afbe6d6d2b7'] | {'5a20df724f712e9daa9fd41b430ff63ecd203e85'} | 9590232bb4f4cc824f3425a6e1349afbe6d6d2b7 | 1 | 02/24/2016, 04:38:06 | staging/android/ion : fix a race condition in the ion driver
There is a use-after-free problem in the ion driver.
This is caused by a race condition in the ion_ioctl()
function.
A handle has ref count of 1 and two tasks on different
cpus calls ION_IOC_FREE simultaneously.
cpu 0 cpu ... | EunTaik Lee | null | {'additions': 42, 'deletions': 13, 'total': 55} | [
{
"additions": 42,
"changes": 55,
"deletions": 13,
"patch": "@@ -387,13 +387,22 @@ static void ion_handle_get(struct ion_handle *handle)\n \tkref_get(&handle->ref);\n }\n \n-static int ion_handle_put(struct ion_handle *handle)\n+static int ion_handle_put_nolock(struct ion_handle *handle)\n+{\n+\tint... | c | CWE-264 | [
"drivers/staging/android/ion/ion.c"
] | drivers/staging/android/ion/ion.c | 1 |
<li> <div class="title"> <a target="_top" href="userlog-audit-detailed.php?auditId={$aValue.auditid}"> {$aValue.desc} </a> </div> <div> | <li> <div class="title"> <a target="_top" href="userlog-audit-detailed.php?auditId={$aValue.auditid}"> {$aValue.desc|escape} </a> </div> <div> | CVE-2016-9126 | {'CWE-79'} | 2.9 | {'https://github.com/revive-adserver/revive-adserver/commit/8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec'} | nvd | Revive Adserver before 3.2.3 suffers from persistent XSS. Usernames are not properly escaped when displayed in the audit trail widget of the dashboard upon login, allowing persistent XSS attacks. An authenticated user with enough privileges to create other users could exploit the vulnerability to access the administrat... | 2017-03-28 | 1 | https://github.com/revive-adserver/revive-adserver | https://github.com/revive-adserver/revive-adserver/commit/8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec | 8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec | SINGLE | ['8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec'] | {'4910365631eabbb208961c36149f41cc8159fb39'} | 8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec | 1 | 11/20/2015, 07:27:54 | Fix h1 report 97073
Persistent XSS
--------------
Tengku Zahasman has reported via HackerOne that usernames were not properly
escaped when displayed in the audit trail widget of the dashboard upon login,
allowing persistent XSS attacks. An authenticated user with enough privileges
to create other users could exploit ... | Matteo Beccati | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -30,7 +30,7 @@\n <li>\n <div class=\"title\">\n <a target=\"_top\" href=\"userlog-audit-detailed.php?auditId={$aValue.auditid}\">\n- {$aValue.desc}\n+ ... | html | CWE-79 | [
"lib/templates/admin/dashboard/audit.html"
] | lib/templates/admin/dashboard/audit.html | 1 |
function handleGet($vars) */ function handlePost($vars) { $this->pageHeader(); if (empty($vars['id'])) { if (empty($vars['email'])) { function displayRecoveryRequestForm($errormessage = '') echo "<form method='post' action='password-recovery.php'>\n"; echo "<d... | function handleGet($vars) */ function handlePost($vars) { OA_Permission::checkSessionToken(); $this->pageHeader(); if (empty($vars['id'])) { if (empty($vars['email'])) { function displayRecoveryRequestForm($errormessage = '') echo "<form method='post' action='... | CVE-2016-9127 | {'CWE-352'} | 6.4 | {'https://github.com/revive-adserver/revive-adserver/commit/3aaebcc765797d2c684e031f2836e0a69d6b7bc2'} | nvd | Revive Adserver before 3.2.3 suffers from Cross-Site Request Forgery (CSRF). The password recovery form in Revive Adserver is vulnerable to CSRF attacks. This vulnerability could be exploited to send a large number of password recovery emails to the registered users, especially in conjunction with a bug that caused rec... | 2017-03-28 | 1 | https://github.com/revive-adserver/revive-adserver | https://github.com/revive-adserver/revive-adserver/commit/3aaebcc765797d2c684e031f2836e0a69d6b7bc2 | 3aaebcc765797d2c684e031f2836e0a69d6b7bc2 | SINGLE | ['3aaebcc765797d2c684e031f2836e0a69d6b7bc2'] | {'8d8c6df309ff5fde9dd4770abcd4ec5d2449b3ec'} | 3aaebcc765797d2c684e031f2836e0a69d6b7bc2 | 1 | 11/20/2015, 07:38:25 | Fix h1 report 99452
Cross-Site Request Forgery (CSRF)
---------------------------------
An undisclosed user has reported via HackerOne that the password recovery form
in Revive Adserver was vulnerable to CSRF attacks. Such vulnerability could be
exploited to send a large number of password recovery emails to the
regi... | Matteo Beccati | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -99,6 +99,8 @@ function handleGet($vars)\n */\n function handlePost($vars)\n {\n+ OA_Permission::checkSessionToken();\n+\n $this->pageHeader();\n if (empty($vars['id'])) {\n if (empty($vars['... | php | CWE-352 | [
"lib/OA/Admin/PasswordRecovery.php"
] | lib/OA/Admin/PasswordRecovery.php | 1 |
function __construct($src = null, $params = array()) parent:: __construct($src, $params); if (empty($this->params['editor'])) { $this->params['editor'] = SITE_WYSIWYG_EDITOR; } } function preview() $demo->skin = 'lightgray'; } } else { ... | function __construct($src = null, $params = array()) parent:: __construct($src, $params); if (empty($this->params['editor'])) { $this->params['editor'] = SITE_WYSIWYG_EDITOR; } else { $this->params['editor'] = preg_replace("/[^[:alnum:][:space:]]/u", '', $this->params['e... | CVE-2016-9184 | {'CWE-200', 'CWE-89'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/0ce8b94d745b818bd207933d9a2e7f32587c2c89'} | nvd | In /framework/modules/core/controllers/expHTMLEditorController.php of Exponent CMS 2.4.0, untrusted input is used to construct a table name, and in the selectObject method in mysqli class, table names are wrapped with a character that common filters do not filter, allowing for SQL Injection. Impact is Information Discl... | 2016-11-04 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/0ce8b94d745b818bd207933d9a2e7f32587c2c89 | 0ce8b94d745b818bd207933d9a2e7f32587c2c89 | SINGLE | ['0ce8b94d745b818bd207933d9a2e7f32587c2c89'] | {'3b3557e9f6ba193a4c23c8ce5498fa285dddf3f3'} | 0ce8b94d745b818bd207933d9a2e7f32587c2c89 | 1 | 11/03/2016, 14:59:50 | better fix security vulnerability in editor preview; reported by fyth | dleffler | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -62,6 +62,8 @@ function __construct($src = null, $params = array())\n parent:: __construct($src, $params);\n if (empty($this->params['editor'])) {\n $this->params['editor'] = SITE_WYSIWYG_EDITOR;\n+ } els... | php | CWE-200 | [
"framework/modules/core/controllers/expHTMLEditorController.php"
] | framework/modules/core/controllers/expHTMLEditorController.php | 1 |
function __construct($src = null, $params = array()) parent:: __construct($src, $params); if (empty($this->params['editor'])) { $this->params['editor'] = SITE_WYSIWYG_EDITOR; } } function preview() $demo->skin = 'lightgray'; } } else { ... | function __construct($src = null, $params = array()) parent:: __construct($src, $params); if (empty($this->params['editor'])) { $this->params['editor'] = SITE_WYSIWYG_EDITOR; } else { $this->params['editor'] = preg_replace("/[^[:alnum:][:space:]]/u", '', $this->params['e... | CVE-2016-9184 | {'CWE-200', 'CWE-89'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/0ce8b94d745b818bd207933d9a2e7f32587c2c89'} | nvd | In /framework/modules/core/controllers/expHTMLEditorController.php of Exponent CMS 2.4.0, untrusted input is used to construct a table name, and in the selectObject method in mysqli class, table names are wrapped with a character that common filters do not filter, allowing for SQL Injection. Impact is Information Discl... | 2016-11-04 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/0ce8b94d745b818bd207933d9a2e7f32587c2c89 | 0ce8b94d745b818bd207933d9a2e7f32587c2c89 | SINGLE | ['0ce8b94d745b818bd207933d9a2e7f32587c2c89'] | {'3b3557e9f6ba193a4c23c8ce5498fa285dddf3f3'} | 0ce8b94d745b818bd207933d9a2e7f32587c2c89 | 1 | 11/03/2016, 14:59:50 | better fix security vulnerability in editor preview; reported by fyth | dleffler | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -62,6 +62,8 @@ function __construct($src = null, $params = array())\n parent:: __construct($src, $params);\n if (empty($this->params['editor'])) {\n $this->params['editor'] = SITE_WYSIWYG_EDITOR;\n+ } els... | php | CWE-89 | [
"framework/modules/core/controllers/expHTMLEditorController.php"
] | framework/modules/core/controllers/expHTMLEditorController.php | 1 |
static int proc_sys_readdir(struct file *file, struct dir_context *ctx) ctl_dir = container_of(head, struct ctl_dir, header); if (!dir_emit_dots(file, ctx)) return 0; pos = 2; static int proc_sys_readdir(struct file *file, struct dir_context *ctx) break; } } sysctl_head_finish(head); return 0; } | static int proc_sys_readdir(struct file *file, struct dir_context *ctx) ctl_dir = container_of(head, struct ctl_dir, header); if (!dir_emit_dots(file, ctx)) goto out; pos = 2; static int proc_sys_readdir(struct file *file, struct dir_context *ctx) break; } } out: sysctl_head_finish(head); return 0; } | CVE-2016-9191 | {'CWE-20', 'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/93362fa47fe98b62e4a34ab408c4a418432e7939'} | nvd | The cgroup offline implementation in the Linux kernel through 4.8.11 mishandles certain drain operations, which allows local users to cause a denial of service (system hang) by leveraging access to a container environment for executing a crafted application, as demonstrated by trinity. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/93362fa47fe98b62e4a34ab408c4a418432e7939 | 93362fa47fe98b62e4a34ab408c4a418432e7939 | SINGLE | ['93362fa47fe98b62e4a34ab408c4a418432e7939'] | {'add7c65ca426b7a37184dd3d2172394e23d585d6'} | 93362fa47fe98b62e4a34ab408c4a418432e7939 | 1 | 01/06/2017, 01:32:32 | sysctl: Drop reference added by grab_header in proc_sys_readdir
Fixes CVE-2016-9191, proc_sys_readdir doesn't drop reference
added by grab_header when return from !dir_emit_dots path.
It can cause any path called unregister_sysctl_table will
wait forever.
The calltrace of CVE-2016-9191:
[ 5535.960522] Call Trace:
[ ... | Zhou Chengming | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -709,7 +709,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)\n \tctl_dir = container_of(head, struct ctl_dir, header);\n \n \tif (!dir_emit_dots(file, ctx))\n-\t\treturn 0;\n+\t\tgoto out;\n \n \tpos = 2;\n \n@@... | c | CWE-20 | [
"fs/proc/proc_sysctl.c"
] | fs/proc/proc_sysctl.c | 1 |
static int proc_sys_readdir(struct file *file, struct dir_context *ctx) ctl_dir = container_of(head, struct ctl_dir, header); if (!dir_emit_dots(file, ctx)) return 0; pos = 2; static int proc_sys_readdir(struct file *file, struct dir_context *ctx) break; } } sysctl_head_finish(head); return 0; } | static int proc_sys_readdir(struct file *file, struct dir_context *ctx) ctl_dir = container_of(head, struct ctl_dir, header); if (!dir_emit_dots(file, ctx)) goto out; pos = 2; static int proc_sys_readdir(struct file *file, struct dir_context *ctx) break; } } out: sysctl_head_finish(head); return 0; } | CVE-2016-9191 | {'CWE-20', 'CWE-399'} | 6.9 | {'https://github.com/torvalds/linux/commit/93362fa47fe98b62e4a34ab408c4a418432e7939'} | nvd | The cgroup offline implementation in the Linux kernel through 4.8.11 mishandles certain drain operations, which allows local users to cause a denial of service (system hang) by leveraging access to a container environment for executing a crafted application, as demonstrated by trinity. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/93362fa47fe98b62e4a34ab408c4a418432e7939 | 93362fa47fe98b62e4a34ab408c4a418432e7939 | SINGLE | ['93362fa47fe98b62e4a34ab408c4a418432e7939'] | {'add7c65ca426b7a37184dd3d2172394e23d585d6'} | 93362fa47fe98b62e4a34ab408c4a418432e7939 | 1 | 01/06/2017, 01:32:32 | sysctl: Drop reference added by grab_header in proc_sys_readdir
Fixes CVE-2016-9191, proc_sys_readdir doesn't drop reference
added by grab_header when return from !dir_emit_dots path.
It can cause any path called unregister_sysctl_table will
wait forever.
The calltrace of CVE-2016-9191:
[ 5535.960522] Call Trace:
[ ... | Zhou Chengming | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -709,7 +709,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx)\n \tctl_dir = container_of(head, struct ctl_dir, header);\n \n \tif (!dir_emit_dots(file, ctx))\n-\t\treturn 0;\n+\t\tgoto out;\n \n \tpos = 2;\n \n@@... | c | CWE-399 | [
"fs/proc/proc_sysctl.c"
] | fs/proc/proc_sysctl.c | 1 |
class expRatingController extends expController { static function displayname() { return gt("Ratings Manager"); } static function description() { return gt("This module is for managing ratings on records"); } static function hasSources() { return false; } function __construct($src=null, $params=array())... | class expRatingController extends expController { static function displayname() { return gt("Ratings Manager"); } static function description() { return gt("This module is for managing ratings on records"); } static function hasSources() { return false; } function __construct($src=null, $params=array()) ... | CVE-2016-9242 | {'CWE-89'} | 6.4 | {'https://github.com/exponentcms/exponent-cms/commit/6172f67620ac13fc2f4e9d650c61937d48e9ecb9'} | nvd | Multiple SQL injection vulnerabilities in the update method in framework/modules/core/controllers/expRatingController.php in Exponent CMS 2.4.0 allow remote authenticated users to execute arbitrary SQL commands via the (1) content_type or (2) subtype parameter. | 2016-11-07 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/6172f67620ac13fc2f4e9d650c61937d48e9ecb9 | 6172f67620ac13fc2f4e9d650c61937d48e9ecb9 | SINGLE | ['6172f67620ac13fc2f4e9d650c61937d48e9ecb9'] | {'0ce8b94d745b818bd207933d9a2e7f32587c2c89'} | 6172f67620ac13fc2f4e9d650c61937d48e9ecb9 | 1 | 11/03/2016, 15:00:13 | fix security vulnerability in ratings; reported by fyth | dleffler | null | {'additions': 6, 'deletions': 4, 'total': 10} | [
{
"additions": 6,
"changes": 10,
"deletions": 4,
"patch": "@@ -28,7 +28,7 @@ class expRatingController extends expController {\n static function displayname() { return gt(\"Ratings Manager\"); }\n static function description() { return gt(\"This module is for managing ratings on records\"); ... | php | CWE-89 | [
"framework/modules/core/controllers/expRatingController.php"
] | framework/modules/core/controllers/expRatingController.php | 1 |
public function manage_ranks() { $rank = 1; foreach ($this->params['rerank'] as $id) { $modelname = $this->params['model']; $obj = new $modelname($id); $obj->rank = $rank; $obj->save(false, true); $rank++; | public function manage_ranks() { $rank = 1; foreach ($this->params['rerank'] as $id) { $modelname = $this->params['model']; $obj = new $modelname(intval($id)); $obj->rank = $rank; $obj->save(false, true); $rank++; | CVE-2016-9272 | {'CWE-89'} | 4.9 | {'https://github.com/exponentcms/exponent-cms/commit/fffb2038de4c603931b785a4c3ec69cfd06181ba'} | nvd | A Blind SQL Injection Vulnerability in Exponent CMS through 2.4.0, with the rerank array parameter, can lead to site database information disclosure and denial of service. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/fffb2038de4c603931b785a4c3ec69cfd06181ba | fffb2038de4c603931b785a4c3ec69cfd06181ba | SINGLE | ['fffb2038de4c603931b785a4c3ec69cfd06181ba'] | {'4327ea96b3de89440693e06d03038121aa1fdcea'} | fffb2038de4c603931b785a4c3ec69cfd06181ba | 1 | 11/06/2016, 10:53:19 | fix sql injection security vulnerability; reported by Nicky [#1394 state:resolved] [#1395 state:resolved] | dleffler | {'com_1': {'author': 'droidsec-cn', 'datetime': '11/11/2016, 06:18:43', 'body': 'CVEID: CVE-2016-9272\r\nCredit: Nicky of Tencent Security Platform Department'}, 'com_2': {'author': 'fgeek', 'datetime': '11/19/2016, 09:21:50', 'body': 'Please use CVE-2016-9272 for this vulnerability. Assigned in: http://www.openwall.co... | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -772,7 +772,7 @@ public function manage_ranks() {\n $rank = 1;\n foreach ($this->params['rerank'] as $id) {\n $modelname = $this->params['model'];\n- $obj = new $modelname($id);\n+ $obj = n... | php | CWE-89 | [
"framework/core/controllers/expController.php"
] | framework/core/controllers/expController.php | 1 |
public function search() if (get_magic_quotes_gpc()) { $terms = stripslashes($terms); } $terms = htmlspecialchars($terms); if ($router->current_url == substr(URL_FULL, 0, -1)) { // give us a user friendly url unset($router->params['int']); | public function search() if (get_magic_quotes_gpc()) { $terms = stripslashes($terms); } $terms = expString::escape(htmlspecialchars($terms)); if ($router->current_url == substr(URL_FULL, 0, -1)) { // give us a user friendly url unset($router->params['int']); | CVE-2016-9282 | {'CWE-89'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/e83721a5b9fcc88e1141a8fb29c3d1bd522257c1'} | nvd | SQL Injection in framework/modules/search/controllers/searchController.php in Exponent CMS v2.4.0 allows remote attackers to read database information via action=search&module=search with the search_string parameter. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/e83721a5b9fcc88e1141a8fb29c3d1bd522257c1 | e83721a5b9fcc88e1141a8fb29c3d1bd522257c1 | SINGLE | ['e83721a5b9fcc88e1141a8fb29c3d1bd522257c1'] | {'e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4'} | e83721a5b9fcc88e1141a8fb29c3d1bd522257c1 | 1 | 11/03/2016, 13:45:47 | fix security vulnerability in search method, reported by pang0lin | dleffler | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -58,7 +58,7 @@ public function search()\n if (get_magic_quotes_gpc()) {\n $terms = stripslashes($terms);\n }\n- $terms = htmlspecialchars($terms);\n+ $terms = expString::escape(htmlspecialchars($te... | php | CWE-89 | [
"framework/modules/search/controllers/searchController.php"
] | framework/modules/search/controllers/searchController.php | 1 |
class expRouter { * either 'sef' or 'query' * @var string */ public $url_style = ''; public $params = array(); public $sefPath = null; function __construct() { self::getRouterMaps(); public function plainPath() { public function routeRequest() { global $user; ... | class expRouter { * either 'sef' or 'query' * @var string */ private $url_style = ''; public $params = array(); private $sefPath = null; function __construct() { self::getRouterMaps(); public function plainPath() { public function routeRequest() { global $user; ... | CVE-2016-9283 | {'CWE-89'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/559792be727f4e731bfcb3935f5beec7749e9ce9'} | nvd | SQL Injection in framework/core/subsystems/expRouter.php in Exponent CMS v2.4.0 allows remote attackers to read database information via address/addContentToSearch/id/ and a trailing string, related to a "sef URL" issue. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/559792be727f4e731bfcb3935f5beec7749e9ce9 | 559792be727f4e731bfcb3935f5beec7749e9ce9 | SINGLE | ['559792be727f4e731bfcb3935f5beec7749e9ce9'] | {'b276cf46a1e8f38cad80e47d68527eb3b1bbceea'} | 559792be727f4e731bfcb3935f5beec7749e9ce9 | 1 | 11/04/2016, 01:34:43 | fix sql injection security vulnerability which failed to account for sef urls adequately; reported by many, many users | dleffler | null | {'additions': 96, 'deletions': 39, 'total': 135} | [
{
"additions": 96,
"changes": 135,
"deletions": 39,
"patch": "@@ -38,9 +38,9 @@ class expRouter {\n * either 'sef' or 'query'\n * @var string\n */\n- public $url_style = '';\n+ private $url_style = '';\n public $params = array();\n- public $sefPath = null;\n+ privat... | php | CWE-89 | [
"framework/core/subsystems/expRouter.php"
] | framework/core/subsystems/expRouter.php | 1 |
class usersController extends expController { 'update' => 'Update Users', 'show' => 'Show User', 'showall' => 'Show Users', ); static function displayname() { | class usersController extends expController { 'update' => 'Update Users', 'show' => 'Show User', 'showall' => 'Show Users', 'getUsersByJSON' => 'Get Users', ); static function displayname() { | CVE-2016-9284 | {'CWE-200'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4'} | nvd | getUsersByJSON in framework/modules/users/controllers/usersController.php in Exponent CMS v2.4.0 allows remote attackers to read user information via users/getUsersByJSON/sort/ and a trailing string. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4 | e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4 | SINGLE | ['e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4'] | {'b7c3f879d51b045fcc8dcdd94feaf772c86ffc70'} | e7b6856ac384bf2b8ea7761a1e46d6e4186d36f4 | 1 | 11/03/2016, 13:28:08 | fix security vulnerability to get user list, reported by pang0lin | dleffler | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -39,6 +39,7 @@ class usersController extends expController {\n 'update' => 'Update Users',\n 'show' => 'Show User',\n 'showall' => 'Show Users',\n+ 'getUsersByJSON' => 'Get Us... | php | CWE-200 | [
"framework/modules/users/controllers/usersController.php"
] | framework/modules/users/controllers/usersController.php | 1 |
class addressController extends expController { ); protected $manage_permissions = array( // 'import' => 'Import External Addresses', 'process' => 'Import External Addresses' ); public $requires_login = array( 'myaddressbook'=>'You must be logged in to perform this action', )... | class addressController extends expController { ); protected $manage_permissions = array( // 'import' => 'Import External Addresses', 'process' => 'Import External Addresses', 'edit_country' => 'Edit Country', 'delete_country' => 'Delete Country', 'update_country' => 'Upd... | CVE-2016-9285 | {'CWE-200'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/9eeed1e82fb9e6d0d41e7dd10672df48045a9b59'} | nvd | framework/modules/addressbook/controllers/addressController.php in Exponent CMS v2.4.0 allows remote attackers to read user information via a modified id number, as demonstrated by address/edit/id/1, related to an "addresses, countries, and regions" issue. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/9eeed1e82fb9e6d0d41e7dd10672df48045a9b59 | 9eeed1e82fb9e6d0d41e7dd10672df48045a9b59 | SINGLE | ['9eeed1e82fb9e6d0d41e7dd10672df48045a9b59'] | {'e83721a5b9fcc88e1141a8fb29c3d1bd522257c1'} | 9eeed1e82fb9e6d0d41e7dd10672df48045a9b59 | 1 | 11/03/2016, 14:04:48 | fix security vulnerability to editing addresses, countries, and regions; reported by pang0lin | dleffler | null | {'additions': 21, 'deletions': 4, 'total': 25} | [
{
"additions": 21,
"changes": 25,
"deletions": 4,
"patch": "@@ -32,9 +32,16 @@ class addressController extends expController {\n );\n protected $manage_permissions = array(\n // 'import' => 'Import External Addresses',\n- 'process' => 'Import External Addresses'\n+ 'proc... | php | CWE-200 | [
"framework/modules/addressbook/controllers/addressController.php"
] | framework/modules/addressbook/controllers/addressController.php | 1 |
static function canImportData() { return true; } public function manage() { global $user; | static function canImportData() { return true; } public function show() { global $user; $id = !empty($this->params['id']) ? $this->params['id'] : null; // check to see if we should be editing. You either need to be an admin, or viewing own account. if ($user->isAdmin... | CVE-2016-9286 | {'CWE-200'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/e38aae66c785f08f3907aa121378caf71ca5f2d7'} | nvd | framework/modules/users/controllers/usersController.php in Exponent CMS v2.4.0patch1 does not properly restrict access to user records, which allows remote attackers to read address information, as demonstrated by an address/show/id/1 URI. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/e38aae66c785f08f3907aa121378caf71ca5f2d7 | e38aae66c785f08f3907aa121378caf71ca5f2d7 | SINGLE | ['e38aae66c785f08f3907aa121378caf71ca5f2d7'] | {'311dd938fc5fe9ac1e542c2b6a09df38d191cdba'} | e38aae66c785f08f3907aa121378caf71ca5f2d7 | 1 | 11/05/2016, 19:31:58 | Prevent logged in uses from view other user records and admins from super-admin records; thanks to pang0lin | dleffler | null | {'additions': 19, 'deletions': 0, 'total': 19} | [
{
"additions": 19,
"changes": 19,
"deletions": 0,
"patch": "@@ -62,6 +62,25 @@ static function canImportData() {\n return true;\n }\n \n+ public function show() {\n+ global $user;\n+\n+ $id = !empty($this->params['id']) ? $this->params['id'] : null;\n+\n+ // check... | php | CWE-200 | [
"framework/modules/users/controllers/usersController.php"
] | framework/modules/users/controllers/usersController.php | 1 |
static function description() { return gt("This controller handles routing to th static function hasSources() { return false; } static function hasViews() { return false; } static function hasContent() { return false; } public function handle() { global $router; $args = array_merg... | static function description() { return gt("This controller handles routing to th static function hasSources() { return false; } static function hasViews() { return false; } static function hasContent() { return false; } public function handle() { global $router; $args = array_merge(ar... | CVE-2016-9287 | {'CWE-89'} | 6.4 | {'https://github.com/exponentcms/exponent-cms/commit/4327ea96b3de89440693e06d03038121aa1fdcea'} | nvd | In /framework/modules/notfound/controllers/notfoundController.php of Exponent CMS 2.4.0 patch1, untrusted input is passed into getSearchResults. The method getSearchResults is defined in the search model with the parameter '$term' used directly in SQL. Impact is a SQL injection. | 2016-11-15 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/4327ea96b3de89440693e06d03038121aa1fdcea | 4327ea96b3de89440693e06d03038121aa1fdcea | SINGLE | ['4327ea96b3de89440693e06d03038121aa1fdcea'] | {'e38aae66c785f08f3907aa121378caf71ca5f2d7'} | 4327ea96b3de89440693e06d03038121aa1fdcea | 1 | 11/06/2016, 01:04:06 | fix sql injection issue in notfound controller; reported by pang0lin | dleffler | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -32,14 +32,14 @@ static function description() { return gt(\"This controller handles routing to th\n static function hasSources() { return false; }\n static function hasViews() { return false; }\n static function hasContent() {... | php | CWE-89 | [
"framework/modules/notfound/controllers/notfoundController.php"
] | framework/modules/notfound/controllers/notfoundController.php | 1 |
class navigationController extends expController { 'move' => 'Move Page', 'remove' => 'Remove Page', 'reparent' => 'Reparent Page', ); public $remove_configs = array( 'aggregation', public static function returnChildrenAsJSON2() { public static function DragnDropR... | class navigationController extends expController { 'move' => 'Move Page', 'remove' => 'Remove Page', 'reparent' => 'Reparent Page', 'dragndroprerank' => 'Rerank Page', 'dragndroprerank2' => 'Rerank Page', ); public $remove_configs = array( 'aggre... | CVE-2016-9288 | {'CWE-89'} | 6.4 | {'https://github.com/exponentcms/exponent-cms/commit/2ddffb2e7eafe4830e3483a4b437873022c461ba'} | nvd | In framework/modules/navigation/controllers/navigationController.php in Exponent CMS v2.4.0 or older, the parameter "target" of function "DragnDropReRank" is directly used without any filtration which caused SQL injection. The payload can be used like this: /navigation/DragnDropReRank/target/1. | 2016-11-11 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/2ddffb2e7eafe4830e3483a4b437873022c461ba | 2ddffb2e7eafe4830e3483a4b437873022c461ba | SINGLE | ['2ddffb2e7eafe4830e3483a4b437873022c461ba'] | {'9eeed1e82fb9e6d0d41e7dd10672df48045a9b59'} | 2ddffb2e7eafe4830e3483a4b437873022c461ba | 1 | 11/03/2016, 14:15:00 | fix security vulnerability to reranking pages; reported by kyohpc | dleffler | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -39,6 +39,8 @@ class navigationController extends expController {\n 'move' => 'Move Page',\n 'remove' => 'Remove Page',\n 'reparent' => 'Reparent Page',\n+ 'dragndroprerank' => 'Rerank Page',\n+... | php | CWE-89 | [
"framework/modules/navigation/controllers/navigationController.php"
] | framework/modules/navigation/controllers/navigationController.php | 1 |
* 2 of the Licence, or (at your option) any later version. */ #include <linux/init.h> #include <linux/seq_file.h> #include <linux/file.h> long big_key_read(const struct key *key, char __user *buffer, size_t buflen) */ static int __init big_key_init(void) { return register_key_type(&key_type_big_key); } /* * Ini... | * 2 of the Licence, or (at your option) any later version. */ #define pr_fmt(fmt) "big_key: "fmt #include <linux/init.h> #include <linux/seq_file.h> #include <linux/file.h> long big_key_read(const struct key *key, char __user *buffer, size_t buflen) */ static int __init big_key_init(void) { struct crypto_skcipher... | CVE-2016-9313 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb'} | nvd | security/keys/big_key.c in the Linux kernel before 4.8.7 mishandles unsuccessful crypto registration in conjunction with successful key-type registration, which allows local users to cause a denial of service (NULL pointer dereference and panic) or possibly have unspecified other impact via a crafted application that u... | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb | 7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb | SINGLE | ['7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb'] | {'03dab869b7b239c4e013ec82aea22e181e441cfc'} | 7df3e59c3d1df4f87fe874c7956ef7a3d2f4d5fb | 1 | 10/26/2016, 14:02:01 | KEYS: Sort out big_key initialisation
big_key has two separate initialisation functions, one that registers the
key type and one that registers the crypto. If the key type fails to
register, there's no problem if the crypto registers successfully because
there's no way to reach the crypto except through the key type.... | David Howells | null | {'additions': 32, 'deletions': 27, 'total': 59} | [
{
"additions": 32,
"changes": 59,
"deletions": 27,
"patch": "@@ -9,6 +9,7 @@\n * 2 of the Licence, or (at your option) any later version.\n */\n \n+#define pr_fmt(fmt) \"big_key: \"fmt\n #include <linux/init.h>\n #include <linux/seq_file.h>\n #include <linux/file.h>\n@@ -341,44 +342,48 @@ long big... | c | CWE-476 | [
"security/keys/big_key.c"
] | security/keys/big_key.c | 1 |
static int jpc_dec_process_siz(jpc_dec_t *dec, jpc_ms_t *ms) int htileno; int vtileno; jpc_dec_cmpt_t *cmpt; dec->xstart = siz->xoff; dec->ystart = siz->yoff; static int jpc_dec_process_siz(jpc_dec_t *dec, jpc_ms_t *ms) dec->numhtiles = JPC_CEILDIV(dec->xend - dec->tilexoff, dec->tilewidth); dec->numvtiles = ... | static int jpc_dec_process_siz(jpc_dec_t *dec, jpc_ms_t *ms) int htileno; int vtileno; jpc_dec_cmpt_t *cmpt; size_t size; dec->xstart = siz->xoff; dec->ystart = siz->yoff; static int jpc_dec_process_siz(jpc_dec_t *dec, jpc_ms_t *ms) dec->numhtiles = JPC_CEILDIV(dec->xend - dec->tilexoff, dec->tilewidth); dec... | CVE-2016-9387 | {'CWE-190'} | 6.4 | {'https://github.com/mdadams/jasper/commit/d91198abd00fc435a397fe6bad906a4c1748e9cf'} | nvd | Integer overflow in the jpc_dec_process_siz function in libjasper/jpc/jpc_dec.c in JasPer before 1.900.13 allows remote attackers to have unspecified impact via a crafted file, which triggers an assertion failure. | 2017-03-23 | 1 | https://github.com/mdadams/jasper | https://github.com/mdadams/jasper/commit/d91198abd00fc435a397fe6bad906a4c1748e9cf | d91198abd00fc435a397fe6bad906a4c1748e9cf | SINGLE | ['d91198abd00fc435a397fe6bad906a4c1748e9cf'] | {'b9be3d9f35fccb7811ff68bbd6a57156f0192427'} | d91198abd00fc435a397fe6bad906a4c1748e9cf | 1 | 10/23/2016, 10:34:35 | Fixed another integer overflow problem. | Michael Adams | null | {'additions': 5, 'deletions': 1, 'total': 6} | [
{
"additions": 5,
"changes": 6,
"deletions": 1,
"patch": "@@ -1195,6 +1195,7 @@ static int jpc_dec_process_siz(jpc_dec_t *dec, jpc_ms_t *ms)\n \tint htileno;\n \tint vtileno;\n \tjpc_dec_cmpt_t *cmpt;\n+\tsize_t size;\n \n \tdec->xstart = siz->xoff;\n \tdec->ystart = siz->yoff;\n@@ -1231,7 +1232,10 ... | c | CWE-190 | [
"src/libjasper/jpc/jpc_dec.c"
] | src/libjasper/jpc/jpc_dec.c | 1 |
Strgrow(Str x) { char *old = x->ptr; int newlen; newlen = x->length * 6 / 5; if (newlen == x->length) newlen += 2; x->ptr = GC_MALLOC_ATOMIC(newlen); x->area_size = newlen; | Strgrow(Str x) { char *old = x->ptr; int newlen; newlen = x->area_size * 6 / 5; if (newlen == x->area_size) newlen += 2; x->ptr = GC_MALLOC_ATOMIC(newlen); x->area_size = newlen; | CVE-2016-9442 | {'CWE-119'} | 2.9 | {'https://github.com/tats/w3m/commit/d43527cfa0dbb3ccefec4a6f7b32c1434739aa29'} | nvd | An issue was discovered in the Tatsuya Kinoshita w3m fork before 0.5.3-31. w3m allows remote attackers to cause memory corruption in certain conditions via a crafted HTML page. | 2016-12-12 | 1 | https://github.com/tats/w3m | https://github.com/tats/w3m/commit/d43527cfa0dbb3ccefec4a6f7b32c1434739aa29 | d43527cfa0dbb3ccefec4a6f7b32c1434739aa29 | SINGLE | ['d43527cfa0dbb3ccefec4a6f7b32c1434739aa29'] | {'e79a099442732711904da02cb2a661fabb007f45', 'c95a43dc92695464be11c8a51811aaa9761546e6'} | d43527cfa0dbb3ccefec4a6f7b32c1434739aa29 | 1 | 09/02/2016, 14:01:37 | Merge pull request #27 from kcwu/fix-strgrow
Fix potential heap buffer corruption due to Strgrow | Tatsuya Kinoshita | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -232,8 +232,8 @@ Strgrow(Str x)\n {\n char *old = x->ptr;\n int newlen;\n- newlen = x->length * 6 / 5;\n- if (newlen == x->length)\n+ newlen = x->area_size * 6 / 5;\n+ if (newlen == x->area_size)\n \tnewlen += 2;\n ... | c | CWE-119 | [
"Str.c"
] | Str.c | 1 |
sctp_disposition_t sctp_sf_ootb(struct net *net, return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, commands); /* Now that we know we at least have a chunk header, * do things that are type appropriate. */ sctp_disposition_t sctp_sf_ootb(struct net *net, } } /* Report violation if ... | sctp_disposition_t sctp_sf_ootb(struct net *net, return sctp_sf_violation_chunklen(net, ep, asoc, type, arg, commands); /* Report violation if chunk len overflows */ ch_end = ((__u8 *)ch) + SCTP_PAD4(ntohs(ch->length)); if (ch_end > skb_tail_pointer(skb)) return sctp_sf_violation_chunklen(net, ep,... | CVE-2016-9555 | {'CWE-125'} | 10 | {'https://github.com/torvalds/linux/commit/bf911e985d6bbaa328c20c3e05f4eb03de11fdd6'} | nvd | The sctp_sf_ootb function in net/sctp/sm_statefuns.c in the Linux kernel before 4.8.8 lacks chunk-length checking for the first chunk, which allows remote attackers to cause a denial of service (out-of-bounds slab access) or possibly have unspecified other impact via crafted SCTP data. | 2016-11-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bf911e985d6bbaa328c20c3e05f4eb03de11fdd6 | bf911e985d6bbaa328c20c3e05f4eb03de11fdd6 | SINGLE | ['bf911e985d6bbaa328c20c3e05f4eb03de11fdd6'] | {'c2e169be8ce7bde1e4189dc6e72eb9861fe9b6fb'} | bf911e985d6bbaa328c20c3e05f4eb03de11fdd6 | 1 | 10/25/2016, 16:27:39 | sctp: validate chunk len before actually using it
Andrey Konovalov reported that KASAN detected that SCTP was using a slab
beyond the boundaries. It was caused because when handling out of the
blue packets in function sctp_sf_ootb() it was checking the chunk len
only after already processing the first chunk, validatin... | Marcelo Ricardo Leitner | null | {'additions': 6, 'deletions': 6, 'total': 12} | [
{
"additions": 6,
"changes": 12,
"deletions": 6,
"patch": "@@ -3422,6 +3422,12 @@ sctp_disposition_t sctp_sf_ootb(struct net *net,\n \t\t\treturn sctp_sf_violation_chunklen(net, ep, asoc, type, arg,\n \t\t\t\t\t\t commands);\n \n+\t\t/* Report violation if chunk len overflows */\n+\t\tch_end = ((__... | c | CWE-125 | [
"net/sctp/sm_statefuns.c"
] | net/sctp/sm_statefuns.c | 1 |
static Image *ReadSGIImage(const ImageInfo *image_info,ExceptionInfo *exception) if ((iris_info.bytes_per_pixel == 0) || (iris_info.bytes_per_pixel > 2)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); iris_info.dimension=ReadBlobMSBShort(image); iris_info.columns=ReadBlobMSBShort(imag... | static Image *ReadSGIImage(const ImageInfo *image_info,ExceptionInfo *exception) if ((iris_info.bytes_per_pixel == 0) || (iris_info.bytes_per_pixel > 2)) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); iris_info.dimension=ReadBlobMSBShort(image); if ((iris_info.dimension == 0) || (iris... | CVE-2016-9556 | {'CWE-119'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99'} | nvd | The IsPixelGray function in MagickCore/pixel-accessor.h in ImageMagick 7.0.3-8 allows remote attackers to cause a denial of service (out-of-bounds heap read) via a crafted image file. | 2017-03-23 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99 | ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99 | SINGLE | ['ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99'] | {'35a9ba32f0c24b53de5f2d78504ed8870e7213b1'} | ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99 | 1 | 11/16/2016, 20:50:12 | https://github.com/ImageMagick/ImageMagick/issues/301 | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -332,6 +332,8 @@ static Image *ReadSGIImage(const ImageInfo *image_info,ExceptionInfo *exception)\n if ((iris_info.bytes_per_pixel == 0) || (iris_info.bytes_per_pixel > 2))\n ThrowReaderException(CorruptImageError,\"ImproperImage... | c | CWE-119 | [
"coders/sgi.c"
] | coders/sgi.c | 1 |
static int jpc_dec_tileinit(jpc_dec_t *dec, jpc_dec_tile_t *tile) uint_fast32_t tmpxend; uint_fast32_t tmpyend; jpc_dec_cp_t *cp; jpc_tsfb_band_t bnds[64]; jpc_pchg_t *pchg; int pchgno; jpc_dec_cmpt_t *cmpt; | static int jpc_dec_tileinit(jpc_dec_t *dec, jpc_dec_tile_t *tile) uint_fast32_t tmpxend; uint_fast32_t tmpyend; jpc_dec_cp_t *cp; jpc_tsfb_band_t bnds[JPC_MAXBANDS]; jpc_pchg_t *pchg; int pchgno; jpc_dec_cmpt_t *cmpt; | CVE-2016-9560 | {'CWE-787'} | 6.4 | {'https://github.com/mdadams/jasper/commit/1abc2e5a401a4bf1d5ca4df91358ce5df111f495'} | nvd | Stack-based buffer overflow in the jpc_tsfb_getbands2 function in jpc_tsfb.c in JasPer before 1.900.30 allows remote attackers to have unspecified impact via a crafted image. | 2017-02-15 | 1 | https://github.com/mdadams/jasper | https://github.com/mdadams/jasper/commit/1abc2e5a401a4bf1d5ca4df91358ce5df111f495 | 1abc2e5a401a4bf1d5ca4df91358ce5df111f495 | SINGLE | ['1abc2e5a401a4bf1d5ca4df91358ce5df111f495'] | {'71bbf4192bc94d5f5dcb5ad34fd675cabb6aecef'} | 1abc2e5a401a4bf1d5ca4df91358ce5df111f495 | 1 | 11/20/2016, 12:43:00 | Fixed an array overflow problem in the JPC decoder. | Michael Adams | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -712,7 +712,7 @@ static int jpc_dec_tileinit(jpc_dec_t *dec, jpc_dec_tile_t *tile)\n \tuint_fast32_t tmpxend;\n \tuint_fast32_t tmpyend;\n \tjpc_dec_cp_t *cp;\n-\tjpc_tsfb_band_t bnds[64];\n+\tjpc_tsfb_band_t bnds[JPC_MAXBANDS];\n \tjpc_pc... | c | CWE-787 | [
"src/libjasper/jpc/jpc_dec.c"
] | src/libjasper/jpc/jpc_dec.c | 1 |
int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, struct iov_iter i; int ret; if (map_data) copy = true; else if (iov_iter_alignment(iter) & align) int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, unmap_rq: __blk_rq_unmap_user(bio); rq->bio = NULL; return -EINVAL; } | int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, struct iov_iter i; int ret; if (!iter_is_iovec(iter)) goto fail; if (map_data) copy = true; else if (iov_iter_alignment(iter) & align) int blk_rq_map_user_iov(struct request_queue *q, struct request *rq, unmap_rq: __blk_rq_unmap_user(bio... | CVE-2016-9576 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/a0ac402cfcdc904f9772e1762b3fda112dcc56a0'} | nvd | The blk_rq_map_user_iov function in block/blk-map.c in the Linux kernel before 4.8.14 does not properly restrict the type of iterator, which allows local users to read or write to arbitrary kernel memory locations or cause a denial of service (use-after-free) by leveraging access to a /dev/sg device. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/a0ac402cfcdc904f9772e1762b3fda112dcc56a0 | a0ac402cfcdc904f9772e1762b3fda112dcc56a0 | SINGLE | ['a0ac402cfcdc904f9772e1762b3fda112dcc56a0'] | {'bc3913a5378cd0ddefd1dfec6917cc12eb23a946'} | a0ac402cfcdc904f9772e1762b3fda112dcc56a0 | 1 | 12/07/2016, 00:18:14 | Don't feed anything but regular iovec's to blk_rq_map_user_iov
In theory we could map other things, but there's a reason that function
is called "user_iov". Using anything else (like splice can do) just
confuses it.
Reported-and-tested-by: Johannes Thumshirn <jthumshirn@suse.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>... | Linus Torvalds | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -118,6 +118,9 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,\n \tstruct iov_iter i;\n \tint ret;\n \n+\tif (!iter_is_iovec(iter))\n+\t\tgoto fail;\n+\n \tif (map_data)\n \t\tcopy = true;\n \telse if (iov_iter_align... | c | CWE-416 | [
"block/blk-map.c"
] | block/blk-map.c | 1 |
static void tif_32sto16u(const OPJ_INT32* pSrc, OPJ_UINT16* pDst, OPJ_SIZE_T len int imagetotif(opj_image_t * image, const char *outfile) { int width, height; int bps,adjust, sgnd; int tiPhoto; TIFF *tif; tdata_t buf; tsize_t strip_size; OPJ_UINT32 i, numcomps; OPJ_SIZE_T rowStride; OPJ_INT32* buffer32s = NU... | static void tif_32sto16u(const OPJ_INT32* pSrc, OPJ_UINT16* pDst, OPJ_SIZE_T len int imagetotif(opj_image_t * image, const char *outfile) { uint32 width, height, bps, tiPhoto; int adjust, sgnd; TIFF *tif; tdata_t buf; tmsize_t strip_size, rowStride; OPJ_UINT32 i, numcomps; OPJ_INT32* buffer32s = NULL; OPJ_INT... | CVE-2016-9580 | {'CWE-190'} | 6.4 | {'https://github.com/szukw000/openjpeg/commit/cadff5fb6e73398de26a92e96d3d7cac893af255'} | nvd | An integer overflow vulnerability was found in tiftoimage function in openjpeg 2.1.2, resulting in heap buffer overflow. | 2018-08-01 | 1 | https://github.com/szukw000/openjpeg | https://github.com/szukw000/openjpeg/commit/cadff5fb6e73398de26a92e96d3d7cac893af255 | cadff5fb6e73398de26a92e96d3d7cac893af255 | SINGLE | ['cadff5fb6e73398de26a92e96d3d7cac893af255'] | {'7113c4e3bbb4b397ae0c27cbfb645ae8acfee042'} | cadff5fb6e73398de26a92e96d3d7cac893af255 | 1 | 12/09/2016, 07:29:55 | These changes repair bugs of #871 and #872 | szukw000 | null | {'additions': 70, 'deletions': 37, 'total': 107} | [
{
"additions": 70,
"changes": 107,
"deletions": 37,
"patch": "@@ -553,20 +553,18 @@ static void tif_32sto16u(const OPJ_INT32* pSrc, OPJ_UINT16* pDst, OPJ_SIZE_T len\n \n int imagetotif(opj_image_t * image, const char *outfile)\n {\n-\tint width, height;\n-\tint bps,adjust, sgnd;\n-\tint tiPhoto;\n+\... | c | CWE-190 | [
"src/bin/jp2/converttif.c"
] | src/bin/jp2/converttif.c | 1 |
xfs_attr_shortform_list(xfs_attr_list_context_t *context) sbp->namelen, sbp->valuelen, &sbp->name[sbp->namelen]); if (error) return error; if (context->seen_enough) break; cursor->offset++; xfs_attr3_leaf_list_int( args.rmtblkcnt = xfs_attr3_rmt_blocks( args.dp->i_mount, valuelen)... | xfs_attr_shortform_list(xfs_attr_list_context_t *context) sbp->namelen, sbp->valuelen, &sbp->name[sbp->namelen]); if (error) { kmem_free(sbuf); return error; } if (context->seen_enough) break; cursor->offset++; xfs_attr3_leaf_list_int( args.rmtblkcnt = xfs_attr3_rmt_blocks( a... | CVE-2016-9685 | {'CWE-400'} | 6.9 | {'https://github.com/torvalds/linux/commit/2e83b79b2d6c78bf1b4aa227938a214dcbddc83f'} | nvd | Multiple memory leaks in error paths in fs/xfs/xfs_attr_list.c in the Linux kernel before 4.5.1 allow local users to cause a denial of service (memory consumption) via crafted XFS filesystem operations. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2e83b79b2d6c78bf1b4aa227938a214dcbddc83f | 2e83b79b2d6c78bf1b4aa227938a214dcbddc83f | SINGLE | ['2e83b79b2d6c78bf1b4aa227938a214dcbddc83f'] | {'36f90b0a2ddd60823fe193a85e60ff1906c2a9b3'} | 2e83b79b2d6c78bf1b4aa227938a214dcbddc83f | 1 | 03/01/2016, 22:51:09 | xfs: fix two memory leaks in xfs_attr_list.c error paths
This plugs 2 trivial leaks in xfs_attr_shortform_list and
xfs_attr3_leaf_list_int.
Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com> | Mateusz Guzik | null | {'additions': 10, 'deletions': 9, 'total': 19} | [
{
"additions": 10,
"changes": 19,
"deletions": 9,
"patch": "@@ -202,8 +202,10 @@ xfs_attr_shortform_list(xfs_attr_list_context_t *context)\n \t\t\t\t\tsbp->namelen,\n \t\t\t\t\tsbp->valuelen,\n \t\t\t\t\t&sbp->name[sbp->namelen]);\n-\t\tif (error)\n+\t\tif (error) {\n+\t\t\tkmem_free(sbuf);\n \t\t\t... | c | CWE-400 | [
"fs/xfs/xfs_attr_list.c"
] | fs/xfs/xfs_attr_list.c | 1 |
int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size, !cpumask_test_cpu(cpu_id, buffer->cpumask)) return size; size = DIV_ROUND_UP(size, BUF_PAGE_SIZE); size *= BUF_PAGE_SIZE; /* we need a minimum of two pages */ if (size < BUF_PAGE_SIZE * 2) size = BUF_PAGE_SIZE * 2; nr_pages = DIV_R... | int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size, !cpumask_test_cpu(cpu_id, buffer->cpumask)) return size; nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); /* we need a minimum of two pages */ if (nr_pages < 2) nr_pages = 2; size = nr_pages * BUF_PAGE_SIZE; /* * Don't succeed if r... | CVE-2016-9754 | {'CWE-190'} | 10 | {'https://github.com/torvalds/linux/commit/59643d1535eb220668692a5359de22545af579f6'} | nvd | The ring_buffer_resize function in kernel/trace/ring_buffer.c in the profiling subsystem in the Linux kernel before 4.6.1 mishandles certain integer calculations, which allows local users to gain privileges by writing to the /sys/kernel/debug/tracing/buffer_size_kb file. | 2017-01-05 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/59643d1535eb220668692a5359de22545af579f6 | 59643d1535eb220668692a5359de22545af579f6 | SINGLE | ['59643d1535eb220668692a5359de22545af579f6'] | {'9b94a8fba501f38368aef6ac1b30e7335252a220'} | 59643d1535eb220668692a5359de22545af579f6 | 1 | 05/13/2016, 13:34:12 | ring-buffer: Prevent overflow of size in ring_buffer_resize()
If the size passed to ring_buffer_resize() is greater than MAX_LONG - BUF_PAGE_SIZE
then the DIV_ROUND_UP() will return zero.
Here's the details:
# echo 18014398509481980 > /sys/kernel/debug/tracing/buffer_size_kb
tracing_entries_write() processes this... | Steven Rostedt (Red Hat) | null | {'additions': 4, 'deletions': 5, 'total': 9} | [
{
"additions": 4,
"changes": 9,
"deletions": 5,
"patch": "@@ -1657,14 +1657,13 @@ int ring_buffer_resize(struct ring_buffer *buffer, unsigned long size,\n \t !cpumask_test_cpu(cpu_id, buffer->cpumask))\n \t\treturn size;\n \n-\tsize = DIV_ROUND_UP(size, BUF_PAGE_SIZE);\n-\tsize *= BUF_PAGE_SIZE;\... | c | CWE-190 | [
"kernel/trace/ring_buffer.c"
] | kernel/trace/ring_buffer.c | 1 |
static int em_iret(struct x86_emulate_ctxt *ctxt) static int em_jmp_far(struct x86_emulate_ctxt *ctxt) { int rc; unsigned short sel, old_sel; struct desc_struct old_desc, new_desc; const struct x86_emulate_ops *ops = ctxt->ops; u8 cpl = ctxt->ops->cpl(ctxt); /* Assignment of RIP may only fail in 64-bit mode */ ... | static int em_iret(struct x86_emulate_ctxt *ctxt) static int em_jmp_far(struct x86_emulate_ctxt *ctxt) { int rc; unsigned short sel; struct desc_struct new_desc; u8 cpl = ctxt->ops->cpl(ctxt); memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2); rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl, stati... | CVE-2016-9756 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/2117d5398c81554fbf803f5fd1dc55eb78216c0c'} | nvd | arch/x86/kvm/emulate.c in the Linux kernel before 4.8.12 does not properly initialize Code Segment (CS) in certain error cases, which allows local users to obtain sensitive information from kernel stack memory via a crafted application. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2117d5398c81554fbf803f5fd1dc55eb78216c0c | 2117d5398c81554fbf803f5fd1dc55eb78216c0c | SINGLE | ['2117d5398c81554fbf803f5fd1dc55eb78216c0c'] | {'444fdad88f35de9fd1c130b2c4e4550671758fd2'} | 2117d5398c81554fbf803f5fd1dc55eb78216c0c | 1 | 11/23/2016, 20:15:00 | KVM: x86: drop error recovery in em_jmp_far and em_ret_far
em_jmp_far and em_ret_far assumed that setting IP can only fail in 64
bit mode, but syzkaller proved otherwise (and SDM agrees).
Code segment was restored upon failure, but it was left uninitialized
outside of long mode, which could lead to a leak of host kern... | Radim Krčmář | null | {'additions': 11, 'deletions': 25, 'total': 36} | [
{
"additions": 11,
"changes": 36,
"deletions": 25,
"patch": "@@ -2105,16 +2105,10 @@ static int em_iret(struct x86_emulate_ctxt *ctxt)\n static int em_jmp_far(struct x86_emulate_ctxt *ctxt)\n {\n \tint rc;\n-\tunsigned short sel, old_sel;\n-\tstruct desc_struct old_desc, new_desc;\n-\tconst struct x... | c | CWE-200 | [
"arch/x86/kvm/emulate.c"
] | arch/x86/kvm/emulate.c | 1 |
int sock_setsockopt(struct socket *sock, int level, int optname, val = min_t(u32, val, sysctl_wmem_max); set_sndbuf: sk->sk_userlocks |= SOCK_SNDBUF_LOCK; sk->sk_sndbuf = max_t(u32, val * 2, SOCK_MIN_SNDBUF); /* Wake up sending tasks if we upped the value. */ sk->sk_write_space(sk); break; int sock_setsock... | int sock_setsockopt(struct socket *sock, int level, int optname, val = min_t(u32, val, sysctl_wmem_max); set_sndbuf: sk->sk_userlocks |= SOCK_SNDBUF_LOCK; sk->sk_sndbuf = max_t(int, val * 2, SOCK_MIN_SNDBUF); /* Wake up sending tasks if we upped the value. */ sk->sk_write_space(sk); break; int sock_setsock... | CVE-2016-9793 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/b98b0bc8c431e3ceb4b26b0dfc8db509518fb290'} | nvd | The sock_setsockopt function in net/core/sock.c in the Linux kernel before 4.8.14 mishandles negative values of sk_sndbuf and sk_rcvbuf, which allows local users to cause a denial of service (memory corruption and system crash) or possibly have unspecified other impact by leveraging the CAP_NET_ADMIN capability for a c... | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 | b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 | SINGLE | ['b98b0bc8c431e3ceb4b26b0dfc8db509518fb290'] | {'5b01014759991887b1e450c9def01e58c02ab81b'} | b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 | 1 | 12/02/2016, 17:44:53 | net: avoid signed overflows for SO_{SND|RCV}BUFFORCE
CAP_NET_ADMIN users should not be allowed to set negative
sk_sndbuf or sk_rcvbuf values, as it can lead to various memory
corruptions, crashes, OOM...
Note that before commit 82981930125a ("net: cleanups in
sock_setsockopt()"), the bug was even more serious, since ... | Eric Dumazet | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -715,7 +715,7 @@ int sock_setsockopt(struct socket *sock, int level, int optname,\n \t\tval = min_t(u32, val, sysctl_wmem_max);\n set_sndbuf:\n \t\tsk->sk_userlocks |= SOCK_SNDBUF_LOCK;\n-\t\tsk->sk_sndbuf = max_t(u32, val * 2, SOCK_MIN_SN... | c | CWE-119 | [
"net/core/sock.c"
] | net/core/sock.c | 1 |
void snd_pcm_period_elapsed(struct snd_pcm_substream *substream) snd_timer_interrupt(substream->timer, 1); #endif _end: snd_pcm_stream_unlock_irqrestore(substream, flags); kill_fasync(&runtime->fasync, SIGIO, POLL_IN); } EXPORT_SYMBOL(snd_pcm_period_elapsed); | void snd_pcm_period_elapsed(struct snd_pcm_substream *substream) snd_timer_interrupt(substream->timer, 1); #endif _end: kill_fasync(&runtime->fasync, SIGIO, POLL_IN); snd_pcm_stream_unlock_irqrestore(substream, flags); } EXPORT_SYMBOL(snd_pcm_period_elapsed); | CVE-2016-9794 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4'} | nvd | Race condition in the snd_pcm_period_elapsed function in sound/core/pcm_lib.c in the ALSA subsystem in the Linux kernel before 4.7 allows local users to cause a denial of service (use-after-free) or possibly have unspecified other impact via a crafted SNDRV_PCM_TRIGGER_START command. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | SINGLE | ['3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4'] | {'fa44b7ec9bc4115513e59f31da1167166bd6346a'} | 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | 1 | 04/14/2016, 16:02:37 | ALSA: pcm : Call kill_fasync() in stream lock
Currently kill_fasync() is called outside the stream lock in
snd_pcm_period_elapsed(). This is potentially racy, since the stream
may get released even during the irq handler is running. Although
snd_pcm_release_substream() calls snd_pcm_drop(), this doesn't
guarantee th... | Takashi Iwai | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1886,8 +1886,8 @@ void snd_pcm_period_elapsed(struct snd_pcm_substream *substream)\n \t\tsnd_timer_interrupt(substream->timer, 1);\n #endif\n _end:\n-\tsnd_pcm_stream_unlock_irqrestore(substream, flags);\n \tkill_fasync(&runtime->fasync,... | c | CWE-416 | [
"sound/core/pcm_lib.c"
] | sound/core/pcm_lib.c | 1 |
void snd_pcm_period_elapsed(struct snd_pcm_substream *substream) snd_timer_interrupt(substream->timer, 1); #endif _end: snd_pcm_stream_unlock_irqrestore(substream, flags); kill_fasync(&runtime->fasync, SIGIO, POLL_IN); } EXPORT_SYMBOL(snd_pcm_period_elapsed); | void snd_pcm_period_elapsed(struct snd_pcm_substream *substream) snd_timer_interrupt(substream->timer, 1); #endif _end: kill_fasync(&runtime->fasync, SIGIO, POLL_IN); snd_pcm_stream_unlock_irqrestore(substream, flags); } EXPORT_SYMBOL(snd_pcm_period_elapsed); | CVE-2016-9794 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4'} | nvd | Race condition in the snd_pcm_period_elapsed function in sound/core/pcm_lib.c in the ALSA subsystem in the Linux kernel before 4.7 allows local users to cause a denial of service (use-after-free) or possibly have unspecified other impact via a crafted SNDRV_PCM_TRIGGER_START command. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | SINGLE | ['3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4'] | {'fa44b7ec9bc4115513e59f31da1167166bd6346a'} | 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 | 1 | 04/14/2016, 16:02:37 | ALSA: pcm : Call kill_fasync() in stream lock
Currently kill_fasync() is called outside the stream lock in
snd_pcm_period_elapsed(). This is potentially racy, since the stream
may get released even during the irq handler is running. Although
snd_pcm_release_substream() calls snd_pcm_drop(), this doesn't
guarantee th... | Takashi Iwai | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1886,8 +1886,8 @@ void snd_pcm_period_elapsed(struct snd_pcm_substream *substream)\n \t\tsnd_timer_interrupt(substream->timer, 1);\n #endif\n _end:\n-\tsnd_pcm_stream_unlock_irqrestore(substream, flags);\n \tkill_fasync(&runtime->fasync,... | c | CWE-362 | [
"sound/core/pcm_lib.c"
] | sound/core/pcm_lib.c | 1 |
static int netlink_dump(struct sock *sk) struct netlink_callback *cb; struct sk_buff *skb = NULL; struct nlmsghdr *nlh; int len, err = -ENOBUFS; int alloc_min_size; int alloc_size; static int netlink_dump(struct sock *sk) cb->done(cb); nlk->cb_running = false; mutex_unlock(nlk->cb_mutex); module_put(cb->mo... | static int netlink_dump(struct sock *sk) struct netlink_callback *cb; struct sk_buff *skb = NULL; struct nlmsghdr *nlh; struct module *module; int len, err = -ENOBUFS; int alloc_min_size; int alloc_size; static int netlink_dump(struct sock *sk) cb->done(cb); nlk->cb_running = false; module = cb->module; s... | CVE-2016-9806 | {'CWE-362', 'CWE-415'} | 10 | {'https://github.com/torvalds/linux/commit/92964c79b357efd980812c4de5c1fd2ec8bb5520'} | nvd | Race condition in the netlink_dump function in net/netlink/af_netlink.c in the Linux kernel before 4.6.3 allows local users to cause a denial of service (double free) or possibly have unspecified other impact via a crafted application that makes sendmsg system calls, leading to a free operation associated with a new du... | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/92964c79b357efd980812c4de5c1fd2ec8bb5520 | 92964c79b357efd980812c4de5c1fd2ec8bb5520 | SINGLE | ['92964c79b357efd980812c4de5c1fd2ec8bb5520'] | {'45e093ae2830cd1264677d47ff9a95a71f5d9f9c'} | 92964c79b357efd980812c4de5c1fd2ec8bb5520 | 1 | 05/16/2016, 09:28:16 | netlink: Fix dump skb leak/double free
When we free cb->skb after a dump, we do it after releasing the
lock. This means that a new dump could have started in the time
being and we'll end up freeing their skb instead of ours.
This patch saves the skb and module before we unlock so we free
the right memory.
Fixes: 16... | Herbert Xu | null | {'additions': 5, 'deletions': 2, 'total': 7} | [
{
"additions": 5,
"changes": 7,
"deletions": 2,
"patch": "@@ -2059,6 +2059,7 @@ static int netlink_dump(struct sock *sk)\n \tstruct netlink_callback *cb;\n \tstruct sk_buff *skb = NULL;\n \tstruct nlmsghdr *nlh;\n+\tstruct module *module;\n \tint len, err = -ENOBUFS;\n \tint alloc_min_size;\n \tint ... | c | CWE-415 | [
"net/netlink/af_netlink.c"
] | net/netlink/af_netlink.c | 1 |
static int netlink_dump(struct sock *sk) struct netlink_callback *cb; struct sk_buff *skb = NULL; struct nlmsghdr *nlh; int len, err = -ENOBUFS; int alloc_min_size; int alloc_size; static int netlink_dump(struct sock *sk) cb->done(cb); nlk->cb_running = false; mutex_unlock(nlk->cb_mutex); module_put(cb->mo... | static int netlink_dump(struct sock *sk) struct netlink_callback *cb; struct sk_buff *skb = NULL; struct nlmsghdr *nlh; struct module *module; int len, err = -ENOBUFS; int alloc_min_size; int alloc_size; static int netlink_dump(struct sock *sk) cb->done(cb); nlk->cb_running = false; module = cb->module; s... | CVE-2016-9806 | {'CWE-362', 'CWE-415'} | 10 | {'https://github.com/torvalds/linux/commit/92964c79b357efd980812c4de5c1fd2ec8bb5520'} | nvd | Race condition in the netlink_dump function in net/netlink/af_netlink.c in the Linux kernel before 4.6.3 allows local users to cause a denial of service (double free) or possibly have unspecified other impact via a crafted application that makes sendmsg system calls, leading to a free operation associated with a new du... | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/92964c79b357efd980812c4de5c1fd2ec8bb5520 | 92964c79b357efd980812c4de5c1fd2ec8bb5520 | SINGLE | ['92964c79b357efd980812c4de5c1fd2ec8bb5520'] | {'45e093ae2830cd1264677d47ff9a95a71f5d9f9c'} | 92964c79b357efd980812c4de5c1fd2ec8bb5520 | 1 | 05/16/2016, 09:28:16 | netlink: Fix dump skb leak/double free
When we free cb->skb after a dump, we do it after releasing the
lock. This means that a new dump could have started in the time
being and we'll end up freeing their skb instead of ours.
This patch saves the skb and module before we unlock so we free
the right memory.
Fixes: 16... | Herbert Xu | null | {'additions': 5, 'deletions': 2, 'total': 7} | [
{
"additions": 5,
"changes": 7,
"deletions": 2,
"patch": "@@ -2059,6 +2059,7 @@ static int netlink_dump(struct sock *sk)\n \tstruct netlink_callback *cb;\n \tstruct sk_buff *skb = NULL;\n \tstruct nlmsghdr *nlh;\n+\tstruct module *module;\n \tint len, err = -ENOBUFS;\n \tint alloc_min_size;\n \tint ... | c | CWE-362 | [
"net/netlink/af_netlink.c"
] | net/netlink/af_netlink.c | 1 |
static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, if (__ipv6_addr_needs_scope_id(addr_type)) iif = skb->dev->ifindex; else iif = l3mdev_master_ifindex(skb_dst(skb)->dev); /* * Must not send error if the source does not uniquely | static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info, if (__ipv6_addr_needs_scope_id(addr_type)) iif = skb->dev->ifindex; else { dst = skb_dst(skb); iif = l3mdev_master_ifindex(dst ? dst->dev : skb->dev); } /* * Must not send error if the source does not uniquely | CVE-2016-9919 | {'CWE-20'} | 6.9 | {'https://github.com/torvalds/linux/commit/79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2'} | nvd | The icmp6_send function in net/ipv6/icmp.c in the Linux kernel through 4.8.12 omits a certain check of the dst data structure, which allows remote attackers to cause a denial of service (panic) via a fragmented IPv6 packet. | 2016-12-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2 | 79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2 | SINGLE | ['79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2'] | {'2fc8d112d73f604936712c02780b9a8fb402b67c'} | 79dc7e3f1cd323be4c81aa1a94faa1b3ed987fb2 | 1 | 11/28/2016, 02:52:53 | net: handle no dst on skb in icmp6_send
Andrey reported the following while fuzzing the kernel with syzkaller:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Modules linked in:
CPU: 0 PID: 3859 Comm: a.out Not tainted... | David Ahern | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -447,8 +447,10 @@ static void icmp6_send(struct sk_buff *skb, u8 type, u8 code, __u32 info,\n \n \tif (__ipv6_addr_needs_scope_id(addr_type))\n \t\tiif = skb->dev->ifindex;\n-\telse\n-\t\tiif = l3mdev_master_ifindex(skb_dst(skb)->dev);\n+\... | c | CWE-20 | [
"net/ipv6/icmp.c"
] | net/ipv6/icmp.c | 1 |
static char* tcmu_get_path( struct tcmu_device *dev) return config; } static bool glfs_check_config(const char *cfgstring, char **reason) { char *path; glfs_t *fs = NULL; glfs_fd_t *gfd = NULL; gluster_server *hosts = NULL; /* gluster server defination */ bool result = true; path = strchr(cfgstring, '/'); i... | static char* tcmu_get_path( struct tcmu_device *dev) return config; } static int tcmu_glfs_open(struct tcmu_device *dev) { struct glfs_state *gfsp; struct tcmur_handler glfs_handler = { .subtype = "glfs", .cfg_desc = glfs_cfg_desc, .open = tcmu_glfs_open, .close = tcmu_glfs_close, .read = tcmu_glfs_rea... | CVE-2017-1000198 | {'CWE-119'} | 2.9 | {'https://github.com/open-iscsi/tcmu-runner/commit/61bd03e600d2abf309173e9186f4d465bb1b7157'} | nvd | tcmu-runner daemon version 0.9.0 to 1.2.0 is vulnerable to invalid memory references in the handler_glfs.so handler resulting in denial of service | 2017-11-17 | 1 | https://github.com/open-iscsi/tcmu-runner | https://github.com/open-iscsi/tcmu-runner/commit/61bd03e600d2abf309173e9186f4d465bb1b7157 | 61bd03e600d2abf309173e9186f4d465bb1b7157 | SINGLE | ['61bd03e600d2abf309173e9186f4d465bb1b7157'] | {'1a3721db9ea5358bd8ba2776d15f3f1ebf184a97'} | 61bd03e600d2abf309173e9186f4d465bb1b7157 | 1 | 05/21/2017, 09:44:05 | glfs: discard glfs_check_config
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com> | Prasanna Kumar Kalever | null | {'additions': 0, 'deletions': 54, 'total': 54} | [
{
"additions": 0,
"changes": 54,
"deletions": 54,
"patch": "@@ -430,58 +430,6 @@ static char* tcmu_get_path( struct tcmu_device *dev)\n \treturn config;\n }\n \n-\n-static bool glfs_check_config(const char *cfgstring, char **reason)\n-{\n-\tchar *path;\n-\tglfs_t *fs = NULL;\n-\tglfs_fd_t *gfd = NUL... | c | CWE-119 | [
"glfs.c"
] | glfs.c | 1 |
on_unregister_handler(TCMUService1HandlerManager1 *interface, gpointer user_data) { struct tcmur_handler *handler = find_handler_by_subtype(subtype); struct dbus_info *info = handler->opaque; if (!handler) { g_dbus_method_invocation_return_value(invocation, | on_unregister_handler(TCMUService1HandlerManager1 *interface, gpointer user_data) { struct tcmur_handler *handler = find_handler_by_subtype(subtype); struct dbus_info *info = handler ? handler->opaque : NULL; if (!handler) { g_dbus_method_invocation_return_value(invocation, | CVE-2017-1000201 | {'CWE-20'} | 2.9 | {'https://github.com/open-iscsi/tcmu-runner/pull/200/commits/e2d953050766ac538615a811c64b34358614edce'} | nvd | The tcmu-runner daemon in tcmu-runner version 1.0.5 to 1.2.0 is vulnerable to a local denial of service attack | 2017-11-17 | 1 | https://github.com/open-iscsi/tcmu-runner | https://github.com/open-iscsi/tcmu-runner/pull/200/commits/e2d953050766ac538615a811c64b34358614edce | e2d953050766ac538615a811c64b34358614edce | SINGLE | ['e2d953050766ac538615a811c64b34358614edce'] | {'c0ea253c1b89d0e4273941893e51b1e4488c0862'} | e2d953050766ac538615a811c64b34358614edce | 1 | 07/14/2017, 12:23:05 | fixed local DoS when UnregisterHandler was called for a not existing handler
Any user with DBUS access could cause a SEGFAULT in tcmu-runner by
running something like this:
dbus-send --system --print-reply --dest=org.kernel.TCMUService1 /org/kernel/TCMUService1/HandlerManager1 org.kernel.TCMUService1.HandlerManager1.... | Matthias Gerstner | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -386,7 +386,7 @@ on_unregister_handler(TCMUService1HandlerManager1 *interface,\n \t\t gpointer user_data)\n {\n \tstruct tcmur_handler *handler = find_handler_by_subtype(subtype);\n-\tstruct dbus_info *info = handler->opaque;\n+\tstru... | c | CWE-20 | [
"main.c"
] | main.c | 1 |
using System; using System.Web.UI; using mojoPortal.Business.WebHelpers; using mojoPortal.Web.Framework; using Resources; namespace mojoPortal.Web.UI.Pages { protected void ShowHelp() Resource.HelpNoHelpAvailable; } litHelp.Text = helpText; } } }\ No newline at end of file | using mojoPortal.Business.WebHelpers; using mojoPortal.Web.Framework; using Resources; using System; using System.Web; using System.Web.UI; namespace mojoPortal.Web.UI.Pages { protected void ShowHelp() Resource.HelpNoHelpAvailable; } litHelp.Text = HttpUtility.HtmlDecode(SecurityHelper.RemoveMarkup(helpTe... | CVE-2017-1000457 | {'CWE-79'} | 2.9 | {'https://github.com/i7MEDIA/mojoportal/commit/5ea8129f74c80cbf1f68b9083c745cc8a685485d'} | nvd | Cross-site scripting (XSS) vulnerability in Help.aspx in mojoPortal version 2.5.0.0 allows remote attackers to inject arbitrary web script or HTML via the helpkey parameter. Exploitation requires authenticated reflected cross-site scripting for user accounts assigned either the "Administrators" or "Content Administrato... | 2018-01-02 | 1 | https://github.com/i7MEDIA/mojoportal | https://github.com/i7MEDIA/mojoportal/commit/5ea8129f74c80cbf1f68b9083c745cc8a685485d | 5ea8129f74c80cbf1f68b9083c745cc8a685485d | SINGLE | ['5ea8129f74c80cbf1f68b9083c745cc8a685485d'] | {'813422120f3278cf7965ab306e645c1d9b1832d1'} | 5ea8129f74c80cbf1f68b9083c745cc8a685485d | 1 | 09/06/2017, 16:31:51 | Fix possible XSS bug in help dialog | Elijah Fowler | null | {'additions': 5, 'deletions': 4, 'total': 9} | [
{
"additions": 5,
"changes": 9,
"deletions": 4,
"patch": "@@ -1,8 +1,9 @@\n-using System;\n-using System.Web.UI;\n using mojoPortal.Business.WebHelpers;\n using mojoPortal.Web.Framework;\n using Resources;\n+using System;\n+using System.Web;\n+using System.Web.UI;\n \n namespace mojoPortal.Web.UI.Pa... | cs | CWE-79 | [
"Web/Help.aspx.cs"
] | Web/Help.aspx.cs | 1 |
int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data) case '\n': if ( last_char == '\r' ) { --offset; // remove '\r' EMIT_LINE } | int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data) case '\n': if ( last_char == '\r' ) { // Weird corner-case: // this can happen if we see a \r at the end of a packet where crlf is // set to CR_as_EOL | LF_as_EOL, with the packet causing crlf to be set to // 0 and the next p... | CVE-2017-1000458 | {'CWE-787'} | 6.4 | {'https://github.com/bro/bro/commit/6c0f101a62489b1c5927b4ed63b0e1d37db40282'} | nvd | Bro before Bro v2.5.2 is vulnerable to an out of bounds write in the ContentLine analyzer allowing remote attackers to cause a denial of service (crash) and possibly other exploitation. | 2018-01-02 | 1 | https://github.com/bro/bro | https://github.com/bro/bro/commit/6c0f101a62489b1c5927b4ed63b0e1d37db40282 | 6c0f101a62489b1c5927b4ed63b0e1d37db40282 | SINGLE | ['6c0f101a62489b1c5927b4ed63b0e1d37db40282'] | {'70456d9f6bf7fe0019a008b43fe526632d72b5e3'} | 6c0f101a62489b1c5927b4ed63b0e1d37db40282 | 1 | 10/16/2017, 20:13:41 | Patch OOB write in content-line analyzer.
A combination of packets can trigger an out of bound write of '0' byte
in the content-line analyzer.
This bug was found by Frank Meier.
Addresses BIT-1856. | Johanna Amann | null | {'additions': 10, 'deletions': 0, 'total': 10} | [
{
"additions": 10,
"changes": 10,
"deletions": 0,
"patch": "@@ -250,6 +250,16 @@ int ContentLine_Analyzer::DoDeliverOnce(int len, const u_char* data)\n \t\tcase '\\n':\n \t\t\tif ( last_char == '\\r' )\n \t\t\t\t{\n+\t\t\t\t// Weird corner-case:\n+\t\t\t\t// this can happen if we see a \\r at the en... | cc | CWE-787 | [
"src/analyzer/protocol/tcp/ContentLine.cc"
] | src/analyzer/protocol/tcp/ContentLine.cc | 1 |
Note.renderNote = function(note) { if (!note) { return; } // title $("#noteTitle").val(note.Title); // 当前正在编辑的 // tags Note.renderStars = function(notes) { me.starNotesO.html(''); for (var i = 0; i < notes.length; ++i) { var note = notes[i]; var t = tt(me.starIt... | Note.renderNote = function(note) { if (!note) { return; } var title = note.Title || ''; title = title.replace(/</g, '<').replace(/>/g, '>'); // title $("#noteTitle").val(title); // 当前正在编辑的 // tags Note.renderStars = function(notes) { me.starNotesO.html(''); for (v... | CVE-2017-1000492 | {'CWE-79'} | 2.9 | {'https://github.com/leanote/desktop-app/commit/a2ed226637f8e66c9b089784b5e58eccf2e2fb30'} | nvd | Leanote-desktop version v2.5 is vulnerable to a XSS which leads to code execution due to enabled node integration | 2018-01-03 | 1 | https://github.com/leanote/desktop-app | https://github.com/leanote/desktop-app/commit/a2ed226637f8e66c9b089784b5e58eccf2e2fb30 | a2ed226637f8e66c9b089784b5e58eccf2e2fb30 | SINGLE | ['a2ed226637f8e66c9b089784b5e58eccf2e2fb30'] | {'7e2b1d0bca3fd4eb9733d1492e9f63a95177216a'} | a2ed226637f8e66c9b089784b5e58eccf2e2fb30 | 1 | 11/29/2017, 03:21:35 | Starred notes XXS | life | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -956,8 +956,10 @@ Note.renderNote = function(note) {\n if (!note) {\n return;\n }\n+ var title = note.Title || '';\n+ title = title.replace(/</g, '<').replace(/>/g, '>');\n // title\n- $(\"#noteTitle\").v... | js | CWE-79 | [
"public/js/app/note.js"
] | public/js/app/note.js | 1 |
struct timerfd_ctx { short unsigned settime_flags; /* to show in fdinfo */ struct rcu_head rcu; struct list_head clist; bool might_cancel; }; void timerfd_clock_was_set(void) rcu_read_unlock(); } static void timerfd_remove_cancel(struct timerfd_ctx *ctx) { if (ctx->might_cancel) { ctx->might_cancel = false; ... | struct timerfd_ctx { short unsigned settime_flags; /* to show in fdinfo */ struct rcu_head rcu; struct list_head clist; spinlock_t cancel_lock; bool might_cancel; }; void timerfd_clock_was_set(void) rcu_read_unlock(); } static void __timerfd_remove_cancel(struct timerfd_ctx *ctx) { if (ctx->might_cancel) { ... | CVE-2017-10661 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/1e38da300e1e395a15048b0af1e5305bd91402f6'} | nvd | Race condition in fs/timerfd.c in the Linux kernel before 4.10.15 allows local users to gain privileges or cause a denial of service (list corruption or use-after-free) via simultaneous file-descriptor operations that leverage improper might_cancel queueing. | 2017-08-19 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1e38da300e1e395a15048b0af1e5305bd91402f6 | 1e38da300e1e395a15048b0af1e5305bd91402f6 | SINGLE | ['1e38da300e1e395a15048b0af1e5305bd91402f6'] | {'7551b02b94ad1daee3a79d667dc3c46d08328f87'} | 1e38da300e1e395a15048b0af1e5305bd91402f6 | 1 | 01/31/2017, 14:24:03 | timerfd: Protect the might cancel mechanism proper
The handling of the might_cancel queueing is not properly protected, so
parallel operations on the file descriptor can race with each other and
lead to list corruptions or use after free.
Protect the context for these operations with a seperate lock.
The wait queue ... | Thomas Gleixner | null | {'additions': 14, 'deletions': 3, 'total': 17} | [
{
"additions": 14,
"changes": 17,
"deletions": 3,
"patch": "@@ -40,6 +40,7 @@ struct timerfd_ctx {\n \tshort unsigned settime_flags;\t/* to show in fdinfo */\n \tstruct rcu_head rcu;\n \tstruct list_head clist;\n+\tspinlock_t cancel_lock;\n \tbool might_cancel;\n };\n \n@@ -112,7 +113,7 @@ void time... | c | CWE-416 | [
"fs/timerfd.c"
] | fs/timerfd.c | 1 |
de_dotdot( char* file ) while ( strncmp( file, "./", 2 ) == 0 ) (void) memmove( file, file + 2, strlen( file ) - 1 ); while ( ( cp = strstr( file, "/./") ) != (char*) 0 ) (void) memmove( cp, cp + 2, strlen( file ) - 1 ); /* Alternate between removing leading ../ and removing xxx/../ */ for (;;) | de_dotdot( char* file ) while ( strncmp( file, "./", 2 ) == 0 ) (void) memmove( file, file + 2, strlen( file ) - 1 ); while ( ( cp = strstr( file, "/./") ) != (char*) 0 ) (void) memmove( cp, cp + 2, strlen( cp ) - 1 ); /* Alternate between removing leading ../ and removing xxx/../ */ for (;;) | CVE-2017-10671 | {'CWE-119'} | 6.4 | {'https://github.com/blueness/sthttpd/commit/c0dc63a49d8605649f1d8e4a96c9b468b0bff660'} | nvd | Heap-based Buffer Overflow in the de_dotdot function in libhttpd.c in sthttpd before 2.27.1 allows remote attackers to cause a denial of service (daemon crash) or possibly have unspecified other impact via a crafted filename. | 2017-06-29 | 1 | https://github.com/blueness/sthttpd | https://github.com/blueness/sthttpd/commit/c0dc63a49d8605649f1d8e4a96c9b468b0bff660 | c0dc63a49d8605649f1d8e4a96c9b468b0bff660 | SINGLE | ['c0dc63a49d8605649f1d8e4a96c9b468b0bff660'] | {'7e1576115a7a432a7741c21c93a20bf4d5eda4ae'} | c0dc63a49d8605649f1d8e4a96c9b468b0bff660 | 1 | 06/06/2017, 18:19:43 | Fix heap buffer overflow in de_dotdot | Alexandre Rebert | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2410,7 +2410,7 @@ de_dotdot( char* file )\n while ( strncmp( file, \"./\", 2 ) == 0 )\n \t(void) memmove( file, file + 2, strlen( file ) - 1 );\n while ( ( cp = strstr( file, \"/./\") ) != (char*) 0 )\n-\t(void) memmove( cp, cp + ... | c | CWE-119 | [
"src/libhttpd.c"
] | src/libhttpd.c | 1 |
and count($_POST['cat_true']) > 0) { check_pwg_token(); switch ($_GET['section']) { case 'comments' : and isset($_POST['cat_false']) and count($_POST['cat_false']) > 0) { switch ($_GET['section']) { case 'comments' : | and count($_POST['cat_true']) > 0) { check_pwg_token(); check_input_parameter('cat_true', $_POST, true, PATTERN_ID); switch ($_GET['section']) { case 'comments' : and isset($_POST['cat_false']) and count($_POST['cat_false']) > 0) { check_input_parameter('cat_false', $_POST, true, PA... | CVE-2017-10682 | {'CWE-89'} | 6.4 | {'https://github.com/Piwigo/Piwigo/commit/3dd6812412289a199564e63fffd0a9754010b9e0'} | nvd | SQL injection vulnerability in the administrative backend in Piwigo through 2.9.1 allows remote users to execute arbitrary SQL commands via the cat_false or cat_true parameter in the comments or status page to cat_options.php. | 2017-06-29 | 1 | https://github.com/Piwigo/Piwigo | https://github.com/Piwigo/Piwigo/commit/3dd6812412289a199564e63fffd0a9754010b9e0 | 3dd6812412289a199564e63fffd0a9754010b9e0 | SINGLE | ['3dd6812412289a199564e63fffd0a9754010b9e0'] | {'03a8329b89c0d196ecdb54227a8113f24555ffc0'} | 3dd6812412289a199564e63fffd0a9754010b9e0 | 1 | 06/29/2017, 14:24:15 | check input parameter for cat_options pages
solving https://github.com/Piwigo/Piwigo/issues/724 | flop25 | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -44,6 +44,7 @@\n and count($_POST['cat_true']) > 0)\n {\n check_pwg_token();\n+ check_input_parameter('cat_true', $_POST, true, PATTERN_ID);\n switch ($_GET['section'])\n {\n case 'comments' :\n@@ -82,6 +83,7 @@\n a... | php | CWE-89 | [
"admin/cat_options.php"
] | admin/cat_options.php | 1 |
grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector, if (data) { /* Just copy it! */ if (buf) grub_memcpy (buf, data + pos + real_offset, len); grub_disk_cache_unlock (disk->dev->id, disk->id, start_sector); } else | grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector, if (data) { /* Just copy it! */ if (buf) { if (pos + real_offset + len >= size) { // prevent read overflow grub_errno = GRUB_ERR_BAD_FS; return grub_errno; } grub_memcpy (buf, data + pos + ... | CVE-2017-10929 | {'CWE-119'} | 6.4 | {'https://github.com/radare/radare2/commit/c57997e76ec70862174a1b3b3aeb62a6f8570e85'} | nvd | The grub_memmove function in shlr/grub/kern/misc.c in radare2 1.5.0 allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted binary file, possibly related to a read overflow in the grub_disk_read_small_real function i... | 2017-07-05 | 1 | https://github.com/radare/radare2 | https://github.com/radare/radare2/commit/c57997e76ec70862174a1b3b3aeb62a6f8570e85 | c57997e76ec70862174a1b3b3aeb62a6f8570e85 | SINGLE | ['c57997e76ec70862174a1b3b3aeb62a6f8570e85'] | {'8c3035acc2ce879101b49b93cb28c88190543c9b'} | c57997e76ec70862174a1b3b3aeb62a6f8570e85 | 1 | 07/04/2017, 17:38:33 | Fix r2_hbo_grub_memmove ext2 crash | pancake | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -449,8 +449,14 @@ grub_disk_read (grub_disk_t disk, grub_disk_addr_t sector,\n if (data)\n \t{\n \t /* Just copy it! */\n-\t if (buf)\n+\t if (buf) {\n+\t if (pos + real_offset + len >= size) {\n+ // prevent read ... | c | CWE-119 | [
"shlr/grub/kern/disk.c"
] | shlr/grub/kern/disk.c | 1 |
static int do_mq_notify(mqd_t mqdes, const struct sigevent *notification) timeo = MAX_SCHEDULE_TIMEOUT; ret = netlink_attachskb(sock, nc, &timeo, NULL); if (ret == 1) goto retry; if (ret) { sock = NULL; nc = NULL; | static int do_mq_notify(mqd_t mqdes, const struct sigevent *notification) timeo = MAX_SCHEDULE_TIMEOUT; ret = netlink_attachskb(sock, nc, &timeo, NULL); if (ret == 1) { sock = NULL; goto retry; } if (ret) { sock = NULL; nc = NULL; | CVE-2017-11176 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/f991af3daabaecff34684fd51fac80319d1baad1'} | nvd | The mq_notify function in the Linux kernel through 4.11.9 does not set the sock pointer to NULL upon entry into the retry logic. During a user-space close of a Netlink socket, it allows attackers to cause a denial of service (use-after-free) or possibly have unspecified other impact. | 2017-07-11 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f991af3daabaecff34684fd51fac80319d1baad1 | f991af3daabaecff34684fd51fac80319d1baad1 | SINGLE | ['f991af3daabaecff34684fd51fac80319d1baad1'] | {'2b976203417cf033079e0be30cae5f41d88e385e'} | f991af3daabaecff34684fd51fac80319d1baad1 | 1 | 07/09/2017, 20:19:55 | mqueue: fix a use-after-free in sys_mq_notify()
The retry logic for netlink_attachskb() inside sys_mq_notify()
is nasty and vulnerable:
1) The sock refcnt is already released when retry is needed
2) The fd is controllable by user-space because we already
release the file refcnt
so we when retry but the fd has bee... | Cong Wang | {'com_1': {'author': 'huoju', 'datetime': '06/08/2018, 08:02:52', 'body': 'ls'}} | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -1270,8 +1270,10 @@ static int do_mq_notify(mqd_t mqdes, const struct sigevent *notification)\n \n \t\t\ttimeo = MAX_SCHEDULE_TIMEOUT;\n \t\t\tret = netlink_attachskb(sock, nc, &timeo, NULL);\n-\t\t\tif (ret == 1)\n+\t\t\tif (ret == 1) {\n... | c | CWE-416 | [
"ipc/mqueue.c"
] | ipc/mqueue.c | 1 |
public function __construct($get, $post, $files) $this->rel_path .= "/"; } if (!empty($get['query'])) { $this->query = $get['query']; } if (!empty($get['options'])) { $this->foptions = $get['options']; public function __construct($get, $post, $files) ... | public function __construct($get, $post, $files) $this->rel_path .= "/"; } if (!empty($get['query'])) { $this->query = escapeshellarg($get['query']); } if (!empty($get['options'])) { $this->foptions = $get['options']; public function __construct($get,... | CVE-2017-11366 | {'CWE-78'} | 6.4 | {'https://github.com/Codiad/Codiad/pull/1013/commits/b3645b4c6718cef6de7003f41aafe7bfcc0395d1'} | nvd | components/filemanager/class.filemanager.php in Codiad before 2.8.4 is vulnerable to remote command execution because shell commands can be embedded in parameter values, as demonstrated by search_file_type. | 2017-08-21 | 1 | https://github.com/Codiad/Codiad | https://github.com/Codiad/Codiad/pull/1013/commits/b3645b4c6718cef6de7003f41aafe7bfcc0395d1 | b3645b4c6718cef6de7003f41aafe7bfcc0395d1 | SINGLE | ['b3645b4c6718cef6de7003f41aafe7bfcc0395d1'] | {'4e47aa929b57ba0bdfd601291faf58b03e2d5b29'} | b3645b4c6718cef6de7003f41aafe7bfcc0395d1 | 1 | 07/25/2017, 13:44:07 | Escaping shell arguments | sphinx | null | {'additions': 3, 'deletions': 3, 'total': 6} | [
{
"additions": 3,
"changes": 6,
"deletions": 3,
"patch": "@@ -57,7 +57,7 @@ public function __construct($get, $post, $files)\n $this->rel_path .= \"/\";\n }\n if (!empty($get['query'])) {\n- $this->query = $get['query'];\n+ $this->query = escapeshell... | php | CWE-78 | [
"components/filemanager/class.filemanager.php"
] | components/filemanager/class.filemanager.php | 1 |
static Image *ReadJPEGImage(const ImageInfo *image_info, ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info); /* Convert JPEG pixels to pixel packets. */ | static Image *ReadJPEGImage(const ImageInfo *image_info, ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info); (void) ResetMagickMemory(jpeg_pixels,0,image->columns* jpeg_info.output_components*sizeof(*jpeg_pixels)); /* C... | CVE-2017-11448 | {'CWE-200'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/f6463ca9588579633bbaed9460899d892aa3c64a'} | nvd | The ReadJPEGImage function in coders/jpeg.c in ImageMagick before 7.0.6-1 allows remote attackers to obtain sensitive information from uninitialized memory locations via a crafted file. | 2017-07-19 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/f6463ca9588579633bbaed9460899d892aa3c64a | f6463ca9588579633bbaed9460899d892aa3c64a | SINGLE | ['f6463ca9588579633bbaed9460899d892aa3c64a'] | {'784fcac688161aeaea221e00b706c88b08196945'} | f6463ca9588579633bbaed9460899d892aa3c64a | 1 | 07/09/2017, 13:06:00 | Zero pixel buffer | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -1318,6 +1318,8 @@ static Image *ReadJPEGImage(const ImageInfo *image_info,\n ThrowReaderException(ResourceLimitError,\"MemoryAllocationFailed\");\n }\n jpeg_pixels=(JSAMPLE *) GetVirtualMemoryBlob(memory_info);\n+ (void) Rese... | c | CWE-200 | [
"coders/jpeg.c"
] | coders/jpeg.c | 1 |
box_blur_line (gint box_width, gint even_offset, kernel; it's the pixel to remove from the accumulator. */ gint *ac; /* Accumulator for each channel */ ac = g_new0 (gint, bpp); /* The algorithm differs for even and odd-sized kernels. gaussian_blur_surf... | box_blur_line (gint box_width, gint even_offset, kernel; it's the pixel to remove from the accumulator. */ gint *ac; /* Accumulator for each channel */ g_assert (box_width > 0); ac = g_new0 (gint, bpp); /* The algorithm differs for even and odd-si... | CVE-2017-11464 | {'CWE-369'} | 6.4 | {'https://github.com/GNOME/librsvg/commit/ecf9267a24b2c3c0cd211dbdfa9ef2232511972a'} | nvd | A SIGFPE is raised in the function box_blur_line of rsvg-filter.c in GNOME librsvg 2.40.17 during an attempted parse of a crafted SVG file, because of incorrect protection against division by zero. | 2017-07-19 | 1 | https://github.com/GNOME/librsvg | https://github.com/GNOME/librsvg/commit/ecf9267a24b2c3c0cd211dbdfa9ef2232511972a | ecf9267a24b2c3c0cd211dbdfa9ef2232511972a | SINGLE | ['ecf9267a24b2c3c0cd211dbdfa9ef2232511972a'] | {'818ad22366e2f1337077cee65151aef120ee77df'} | ecf9267a24b2c3c0cd211dbdfa9ef2232511972a | 1 | 06/27/2017, 22:12:51 | bgo#783835 - Don't divide by zero in box_blur_line() for gaussian blurs
We were making the decision to use box blurs, instead of a true
Gaussian kernel, based on the size of *both* x and y dimensions. Do
them individually instead. | Federico Mena Quintero | null | {'additions': 20, 'deletions': 9, 'total': 29} | [
{
"additions": 20,
"changes": 29,
"deletions": 9,
"patch": "@@ -1417,6 +1417,8 @@ box_blur_line (gint box_width, gint even_offset,\n kernel; it's the pixel to remove from the accumulator. */\n gint *ac; /* Accumulator for each channel */\n \n+... | c | CWE-369 | [
"rsvg-filter.c"
] | rsvg-filter.c | 1 |
static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, " Enter WriteOnePNGImage()"); image = CloneImage(IMimage,0,0,MagickFalse,exception); image_info=(ImageInfo *) CloneImageInfo(IMimage_info); if (image_info == (ImageInfo *) NULL) ThrowWriterException(ResourceLimitError, "MemoryAllocationFaile... | static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info, " Enter WriteOnePNGImage()"); image = CloneImage(IMimage,0,0,MagickFalse,exception); if (image == (Image *) NULL) return(MagickFalse); image_info=(ImageInfo *) CloneImageInfo(IMimage_info); if (image_info == (ImageInfo *) NULL) ThrowWri... | CVE-2017-11522 | {'CWE-476'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/816ecab6c532ae086ff4186b3eaf4aa7092d536f'} | nvd | The WriteOnePNGImage function in coders/png.c in ImageMagick through 6.9.9-0 and 7.x through 7.0.6-1 allows remote attackers to cause a denial of service (NULL pointer dereference) via a crafted file. | 2017-07-22 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/816ecab6c532ae086ff4186b3eaf4aa7092d536f | 816ecab6c532ae086ff4186b3eaf4aa7092d536f | SINGLE | ['816ecab6c532ae086ff4186b3eaf4aa7092d536f'] | {'42ab1bc2982cdca596083975a51de1bc3f22ee9a'} | 816ecab6c532ae086ff4186b3eaf4aa7092d536f | 1 | 07/18/2017, 22:12:58 | https://github.com/ImageMagick/ImageMagick/issues/58 | Cristy | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -8270,9 +8270,11 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,\n \" Enter WriteOnePNGImage()\");\n \n image = CloneImage(IMimage,0,0,MagickFalse,exception);\n+ if (image == (Image *) NULL)\n+ return(MagickFalse... | c | CWE-476 | [
"coders/png.c"
] | coders/png.c | 1 |
int ff_amf_tag_size(const uint8_t *data, const uint8_t *data_end) return bytestream2_tell(&gb); } int ff_amf_get_field_value(const uint8_t *data, const uint8_t *data_end, const uint8_t *name, uint8_t *dst, int dst_size) { int namelen = strlen(name); int len; while (*data !=... | int ff_amf_tag_size(const uint8_t *data, const uint8_t *data_end) return bytestream2_tell(&gb); } static int amf_get_field_value2(GetByteContext *gb, const uint8_t *name, uint8_t *dst, int dst_size) { int namelen = strlen(name); int len; while (bytestream2_peek_byte(gb) != ... | CVE-2017-11665 | {'CWE-20'} | 2.9 | {'https://github.com/FFmpeg/FFmpeg/commit/ffcc82219cef0928bed2d558b19ef6ea35634130'} | nvd | The ff_amf_get_field_value function in libavformat/rtmppkt.c in FFmpeg 3.3.2 allows remote RTMP servers to cause a denial of service (Segmentation Violation and application crash) via a crafted stream. | 2017-07-27 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/ffcc82219cef0928bed2d558b19ef6ea35634130 | ffcc82219cef0928bed2d558b19ef6ea35634130 | SINGLE | ['ffcc82219cef0928bed2d558b19ef6ea35634130'] | {'08c073434e25cba8c43aae5ed9554fdd594adfb0'} | ffcc82219cef0928bed2d558b19ef6ea35634130 | 1 | 07/28/2017, 12:37:26 | avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2
Fixes: out of array accesses
Found-by: JunDong Xie of Ant-financial Light-Year Security Lab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | null | {'additions': 37, 'deletions': 20, 'total': 57} | [
{
"additions": 37,
"changes": 57,
"deletions": 20,
"patch": "@@ -505,53 +505,70 @@ int ff_amf_tag_size(const uint8_t *data, const uint8_t *data_end)\n return bytestream2_tell(&gb);\n }\n \n-int ff_amf_get_field_value(const uint8_t *data, const uint8_t *data_end,\n+static int amf_get_field_value2... | c | CWE-20 | [
"libavformat/rtmppkt.c"
] | libavformat/rtmppkt.c | 1 |
<input type="hidden" name="sort" value="<?php echo $c_sort ?>" /> <input type="hidden" name="dir" value="<?php echo $c_dir ?>" /> <input type="hidden" name="save" value="1" /> <input type="hidden" name="filter" value="<?php echo $f_filter ?>" /> <label class="inline"> <input type="checkbox" class="ac... | <input type="hidden" name="sort" value="<?php echo $c_sort ?>" /> <input type="hidden" name="dir" value="<?php echo $c_dir ?>" /> <input type="hidden" name="save" value="1" /> <input type="hidden" name="filter" value="<?php echo string_attribute( $f_filter ); ?>" /> <label class="inline"> <input type... | CVE-2017-12062 | {'CWE-79'} | 2.9 | {'https://github.com/mantisbt/mantisbt/commit/9b5b71dadbeeeec27efea59f562ac5bd6d2673b7'} | nvd | An XSS issue was discovered in manage_user_page.php in MantisBT 2.x before 2.5.2. The 'filter' field is not sanitized before being rendered in the Manage User page, allowing remote attackers to execute arbitrary JavaScript code if CSP is disabled. | 2017-08-01 | 1 | https://github.com/mantisbt/mantisbt | https://github.com/mantisbt/mantisbt/commit/9b5b71dadbeeeec27efea59f562ac5bd6d2673b7 | 9b5b71dadbeeeec27efea59f562ac5bd6d2673b7 | SINGLE | ['9b5b71dadbeeeec27efea59f562ac5bd6d2673b7'] | {'063cce6182568cf2eba81e3ca59cdd67606e7bab'} | 9b5b71dadbeeeec27efea59f562ac5bd6d2673b7 | 1 | 07/27/2017, 21:14:00 | Fix XSS in manage_user_page.php (CVE-2017-12062)
trichimtrich (https://twitter.com/trichimtrich) reported this
vulnerability, allowing an attacker to inject arbitrary code through a
crafted 'filter' form variable.
Prevent the attack by sanitizing the variable before output.
Fixes #23166
Signed-off-by: Damien Regad ... | Roland Becker | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -272,7 +272,7 @@\n \t\t\t<input type=\"hidden\" name=\"sort\" value=\"<?php echo $c_sort ?>\" />\n \t\t\t<input type=\"hidden\" name=\"dir\" value=\"<?php echo $c_dir ?>\" />\n \t\t\t<input type=\"hidden\" name=\"save\" value=\"1\" />\n-\t... | php | CWE-79 | [
"manage_user_page.php"
] | manage_user_page.php | 1 |
static ssize_t driver_override_store(struct device *dev, const char *buf, size_t count) { struct platform_device *pdev = to_platform_device(dev); char *driver_override, *old = pdev->driver_override, *cp; if (count > PATH_MAX) return -EINVAL; static ssize_t driver_override_store(struct device *dev, if (... | static ssize_t driver_override_store(struct device *dev, const char *buf, size_t count) { struct platform_device *pdev = to_platform_device(dev); char *driver_override, *old, *cp; if (count > PATH_MAX) return -EINVAL; static ssize_t driver_override_store(struct device *dev, if (cp) *cp = '\0'; devi... | CVE-2017-12146 | {'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/6265539776a0810b7ce6398c27866ddb9c6bd154'} | nvd | The driver_override implementation in drivers/base/platform.c in the Linux kernel before 4.12.1 allows local users to gain privileges by leveraging a race condition between a read operation and a store operation that involve different overrides. | 2017-09-08 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/6265539776a0810b7ce6398c27866ddb9c6bd154 | 6265539776a0810b7ce6398c27866ddb9c6bd154 | SINGLE | ['6265539776a0810b7ce6398c27866ddb9c6bd154'] | {'08332893e37af6ae779367e78e444f8f9571511d'} | 6265539776a0810b7ce6398c27866ddb9c6bd154 | 1 | 04/25/2017, 23:55:26 | driver core: platform: fix race condition with driver_override
The driver_override implementation is susceptible to race condition when
different threads are reading vs storing a different driver override.
Add locking to avoid race condition.
Fixes: 3d713e0e382e ("driver core: platform: add device binding path 'drive... | Adrian Salido | null | {'additions': 9, 'deletions': 2, 'total': 11} | [
{
"additions": 9,
"changes": 11,
"deletions": 2,
"patch": "@@ -866,7 +866,7 @@ static ssize_t driver_override_store(struct device *dev,\n \t\t\t\t const char *buf, size_t count)\n {\n \tstruct platform_device *pdev = to_platform_device(dev);\n-\tchar *driver_override, *old = pdev->driver_overrid... | c | CWE-362 | [
"drivers/base/platform.c"
] | drivers/base/platform.c | 1 |
long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) key = key_ref_to_ptr(key_ref); /* see if we can read it directly */ ret = key_permission(key_ref, KEY_NEED_READ); if (ret == 0) | long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen) key = key_ref_to_ptr(key_ref); if (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) { ret = -ENOKEY; goto error2; } /* see if we can read it directly */ ret = key_permission(key_ref, KEY_NEED_READ); if (ret == 0) | CVE-2017-12192 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/37863c43b2c6464f252862bf2e9768264e961678'} | nvd | The keyctl_read_key function in security/keys/keyctl.c in the Key Management subcomponent in the Linux kernel before 4.13.5 does not properly consider that a key may be possessed but negatively instantiated, which allows local users to cause a denial of service (OOPS and system crash) via a crafted KEYCTL_READ operatio... | 2017-10-12 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/37863c43b2c6464f252862bf2e9768264e961678 | 37863c43b2c6464f252862bf2e9768264e961678 | SINGLE | ['37863c43b2c6464f252862bf2e9768264e961678'] | {'237bbd29f7a049d310d907f4b2716a7feef9abf3'} | 37863c43b2c6464f252862bf2e9768264e961678 | 1 | 09/18/2017, 18:37:23 | KEYS: prevent KEYCTL_READ on negative key
Because keyctl_read_key() looks up the key with no permissions
requested, it may find a negatively instantiated key. If the key is
also possessed, we went ahead and called ->read() on the key. But the
key payload will actually contain the ->reject_error rather than the
norma... | Eric Biggers | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -766,6 +766,11 @@ long keyctl_read_key(key_serial_t keyid, char __user *buffer, size_t buflen)\n \n \tkey = key_ref_to_ptr(key_ref);\n \n+\tif (test_bit(KEY_FLAG_NEGATIVE, &key->flags)) {\n+\t\tret = -ENOKEY;\n+\t\tgoto error2;\n+\t}\n+\n ... | c | CWE-476 | [
"security/keys/keyctl.c"
] | security/keys/keyctl.c | 1 |
static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, if ((edit->segment_cache[ASSOC_ARRAY_FAN_OUT] ^ base_seg) == 0) goto all_leaves_cluster_together; /* Otherwise we can just insert a new node ahead of the old * one. */ goto present_leaves_cluster_but_not_new_leaf; } spli... | static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, if ((edit->segment_cache[ASSOC_ARRAY_FAN_OUT] ^ base_seg) == 0) goto all_leaves_cluster_together; /* Otherwise all the old leaves cluster in the same slot, but * the new leaf wants to go into a different slot - so we * creat... | CVE-2017-12193 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/ea6789980fdaa610d7eb63602c746bf6ec70cd2b'} | nvd | The assoc_array_insert_into_terminal_node function in lib/assoc_array.c in the Linux kernel before 4.13.11 mishandles node splitting, which allows local users to cause a denial of service (NULL pointer dereference and panic) via a crafted application, as demonstrated by the keyring key type, and key addition and link c... | 2017-11-22 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ea6789980fdaa610d7eb63602c746bf6ec70cd2b | ea6789980fdaa610d7eb63602c746bf6ec70cd2b | SINGLE | ['ea6789980fdaa610d7eb63602c746bf6ec70cd2b'] | {'781402340475144bb360e32bb7437fa4b84cadc3'} | ea6789980fdaa610d7eb63602c746bf6ec70cd2b | 1 | 10/11/2017, 22:32:27 | assoc_array: Fix a buggy node-splitting case
This fixes CVE-2017-12193.
Fix a case in the assoc_array implementation in which a new leaf is
added that needs to go into a node that happens to be full, where the
existing leaves in that node cluster together at that level to the
exclusion of new leaf.
What needs to hap... | David Howells | null | {'additions': 17, 'deletions': 34, 'total': 51} | [
{
"additions": 17,
"changes": 51,
"deletions": 34,
"patch": "@@ -598,21 +598,31 @@ static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit,\n \t\tif ((edit->segment_cache[ASSOC_ARRAY_FAN_OUT] ^ base_seg) == 0)\n \t\t\tgoto all_leaves_cluster_together;\n \n-\t\t/* Otherwise we... | c | CWE-476 | [
"lib/assoc_array.c"
] | lib/assoc_array.c | 1 |
commonio_sort (struct commonio_db *db, int (*cmp) (const void *, const void *)) for (ptr = db->head; (NULL != ptr) #if KEEP_NIS_AT_END && (NULL != ptr->line) && ( ('+' != ptr->line[0]) && ('-' != ptr->line[0])) #endif ; ptr = ptr->next) { n++; } #if KEEP_NIS_AT_END if ... | commonio_sort (struct commonio_db *db, int (*cmp) (const void *, const void *)) for (ptr = db->head; (NULL != ptr) #if KEEP_NIS_AT_END && ((NULL == ptr->line) || (('+' != ptr->line[0]) && ('-' != ptr->line[0]))) #endif ; ptr = ptr->next) { n++; } #if KEEP_NIS_AT_E... | CVE-2017-12424 | {'CWE-119'} | 6.4 | {'https://github.com/shadow-maint/shadow/commit/954e3d2e7113e9ac06632aee3c69b8d818cc8952'} | nvd | In shadow before 4.5, the newusers tool could be made to manipulate internal data structures in ways unintended by the authors. Malformed input may lead to crashes (with a buffer overflow or other memory corruption) or other unspecified behaviors. This crosses a privilege boundary in, for example, certain web-hosting e... | 2017-08-04 | 1 | https://github.com/shadow-maint/shadow | https://github.com/shadow-maint/shadow/commit/954e3d2e7113e9ac06632aee3c69b8d818cc8952 | 954e3d2e7113e9ac06632aee3c69b8d818cc8952 | SINGLE | ['954e3d2e7113e9ac06632aee3c69b8d818cc8952'] | {'830ae266c4753d99c5a8b96f727ebaf19cd0cbec'} | 954e3d2e7113e9ac06632aee3c69b8d818cc8952 | 1 | 03/31/2017, 14:25:06 | Fix buffer overflow if NULL line is present in db.
If ptr->line == NULL for an entry, the first cycle will exit,
but the second one will happily write past entries buffer.
We actually do not want to exit the first cycle prematurely
on ptr->line == NULL.
Signed-off-by: Tomas Mraz <tmraz@fedoraproject.org> | Tomas Mraz | {'com_1': {'author': 'setharnold', 'datetime': '08/04/2017, 18:06:14', 'body': 'Use CVE-2017-12424.'}} | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -751,16 +751,16 @@ commonio_sort (struct commonio_db *db, int (*cmp) (const void *, const void *))\n \tfor (ptr = db->head;\n \t (NULL != ptr)\n #if KEEP_NIS_AT_END\n-\t && (NULL != ptr->line)\n-\t && ( ('+' != ptr->line[0... | c | CWE-119 | [
"lib/commonio.c"
] | lib/commonio.c | 1 |
static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, for (i=(ssize_t) first_object; i <= (ssize_t) last_object; i++) { if (mng_info->exists[i] && !mng_info->frozen[i] && (p-chunk) < (ssize_t) (length-8)) { | static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, for (i=(ssize_t) first_object; i <= (ssize_t) last_object; i++) { if ((i < 0) || (i >= MNG_MAX_OBJECTS)) continue; if (mng_info->exists[i] && !mng_info->frozen[i]... | CVE-2017-12640 | {'CWE-125'} | 6.4 | {'https://github.com/ImageMagick/ImageMagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81'} | nvd | ImageMagick 7.0.6-1 has an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c. | 2017-08-07 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81 | 307fa45d512641fcd105f0d57ca50c1437cd1b81 | SINGLE | ['307fa45d512641fcd105f0d57ca50c1437cd1b81'] | {'280e5924d3c97c916819fbfb4f7c5027dcbc20f8'} | 307fa45d512641fcd105f0d57ca50c1437cd1b81 | 1 | 07/06/2017, 23:20:57 | https://github.com/ImageMagick/ImageMagick/issues/542 | Cristy | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -5968,6 +5968,8 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,\n \n for (i=(ssize_t) first_object; i <= (ssize_t) last_object; i++)\n {\n+ if ((i < 0) || (i >= MN... | c | CWE-125 | [
"coders/png.c"
] | coders/png.c | 1 |
void FrameFactory::rebuildAggregateFrames(ID3v2::Tag *tag) const tag->frameList("TDAT").size() == 1) { TextIdentificationFrame *tdrc = static_cast<TextIdentificationFrame *>(tag->frameList("TDRC").front()); UnknownFrame *tdat = static_cast<UnknownFrame *>(tag->frameList("TDAT").front()); if(t... | void FrameFactory::rebuildAggregateFrames(ID3v2::Tag *tag) const tag->frameList("TDAT").size() == 1) { TextIdentificationFrame *tdrc = dynamic_cast<TextIdentificationFrame *>(tag->frameList("TDRC").front()); UnknownFrame *tdat = static_cast<UnknownFrame *>(tag->frameList("TDAT").front()); if(... | CVE-2017-12678 | {'CWE-434'} | 6.4 | {'https://github.com/taglib/taglib/commit/cb9f07d9dcd791b63e622da43f7b232adaec0a9a'} | nvd | In TagLib 1.11.1, the rebuildAggregateFrames function in id3v2framefactory.cpp has a pointer to cast vulnerability, which allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted audio file. | 2017-08-08 | 1 | https://github.com/taglib/taglib | https://github.com/taglib/taglib/commit/cb9f07d9dcd791b63e622da43f7b232adaec0a9a | cb9f07d9dcd791b63e622da43f7b232adaec0a9a | SINGLE | ['cb9f07d9dcd791b63e622da43f7b232adaec0a9a'] | {'0b583bafd09c29695af9e84f7e7182280411a78e'} | cb9f07d9dcd791b63e622da43f7b232adaec0a9a | 1 | 09/30/2017, 15:15:41 | Don't assume TDRC is an instance of TextIdentificationFrame (#831)
If TDRC is encrypted, FrameFactory::createFrame() returns UnknownFrame
which causes problems in rebuildAggregateFrames() when it is assumed
that TDRC is a TextIdentificationFrame | Stephen F. Booth | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -334,10 +334,11 @@ void FrameFactory::rebuildAggregateFrames(ID3v2::Tag *tag) const\n tag->frameList(\"TDAT\").size() == 1)\n {\n TextIdentificationFrame *tdrc =\n- static_cast<TextIdentificationFrame *>(tag->frameList(\"TD... | cpp | CWE-434 | [
"taglib/mpeg/id3v2/id3v2framefactory.cpp"
] | taglib/mpeg/id3v2/id3v2framefactory.cpp | 1 |
function qa_install_db_fail_handler($type, $errno=null, $error=null, $query=null // Process user handling higher up to avoid 'headers already sent' warning if (!isset($pass_failure_type) && qa_clicked('super')) { require_once QA_INCLUDE_DIR.'db/users.php'; require_once QA_INCLUDE_DIR.'app/users-edit.php'; $inemai... | function qa_install_db_fail_handler($type, $errno=null, $error=null, $query=null // Process user handling higher up to avoid 'headers already sent' warning if (!isset($pass_failure_type) && qa_clicked('super')) { require_once QA_INCLUDE_DIR.'db/admin.php'; require_once QA_INCLUDE_DIR.'db/users.php'; require_once Q... | CVE-2017-12775 | {'CWE-20'} | 2.9 | {'https://github.com/q2a/question2answer/commit/6013ca1c83bf232008f7be815c0e4821fb6b120a'} | nvd | qa-include/qa-install.php in Question2Answer before 1.7.5 allows remote attackers to create multiple user accounts. | 2017-08-29 | 1 | https://github.com/q2a/question2answer | https://github.com/q2a/question2answer/commit/6013ca1c83bf232008f7be815c0e4821fb6b120a | 6013ca1c83bf232008f7be815c0e4821fb6b120a | SINGLE | ['6013ca1c83bf232008f7be815c0e4821fb6b120a'] | {'2455ca3e4d862b1746cb662c1ec772c4611b2829'} | 6013ca1c83bf232008f7be815c0e4821fb6b120a | 1 | 08/08/2017, 15:47:32 | Security fix in qa-install.php | Scott | null | {'additions': 16, 'deletions': 13, 'total': 29} | [
{
"additions": 16,
"changes": 29,
"deletions": 13,
"patch": "@@ -65,27 +65,30 @@ function qa_install_db_fail_handler($type, $errno=null, $error=null, $query=null\n // Process user handling higher up to avoid 'headers already sent' warning\n \n if (!isset($pass_failure_type) && qa_clicked('super')) {... | php | CWE-20 | [
"qa-include/qa-install.php"
] | qa-include/qa-install.php | 1 |
public void handleRequest(Model model, @RequestParam(value = "filePath", require @RequestParam(value = "patientId", required = false) Integer pId, @RequestParam(value = "isFileUpload", required = false) boolean isFileUpload, HttpServletRe... | public void handleRequest(Model model, @RequestParam(value = "filePath", require @RequestParam(value = "patientId", required = false) Integer pId, @RequestParam(value = "isFileUpload", required = false) boolean isFileUpload, HttpServletRe... | CVE-2017-12795 | {'CWE-20'} | 6.4 | {'https://github.com/openmrs/openmrs-module-htmlformentry/commit/86f35221c8a57cdd7557ce731a56b90db216c8e0'} | nvd | OpenMRS openmrs-module-htmlformentry 3.3.2 is affected by: (Improper Input Validation). | 2019-05-10 | 1 | https://github.com/openmrs/openmrs-module-htmlformentry | https://github.com/openmrs/openmrs-module-htmlformentry/commit/86f35221c8a57cdd7557ce731a56b90db216c8e0 | 86f35221c8a57cdd7557ce731a56b90db216c8e0 | SINGLE | ['86f35221c8a57cdd7557ce731a56b90db216c8e0'] | {'3e7c350be70299a234131893a8533165bca64cb3'} | 86f35221c8a57cdd7557ce731a56b90db216c8e0 | 1 | 06/16/2017, 19:13:12 | Added privilege check when previewing an uploaded html form | wyclif | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -44,6 +44,8 @@ public void handleRequest(Model model, @RequestParam(value = \"filePath\", require\n \t @RequestParam(value = \"patientId\", required = false) Integer pId,\n \t @RequestParam... | java | CWE-20 | [
"omod/src/main/java/org/openmrs/module/htmlformentry/web/controller/HtmlFormFromFileController.java"
] | omod/src/main/java/org/openmrs/module/htmlformentry/web/controller/HtmlFormFromFileController.java | 1 |
#include "MagickCore/artifact.h" #include "MagickCore/attribute.h" #include "MagickCore/cache.h" #include "MagickCore/cache-view.h" #include "MagickCore/channel.h" #include "MagickCore/color.h" MagickExport MagickBooleanType ContrastStretchImage(Image *image, assert(image->signature == MagickCoreSignature); if (im... | #include "MagickCore/artifact.h" #include "MagickCore/attribute.h" #include "MagickCore/cache.h" #include "MagickCore/cache-private.h" #include "MagickCore/cache-view.h" #include "MagickCore/channel.h" #include "MagickCore/color.h" MagickExport MagickBooleanType ContrastStretchImage(Image *image, assert(image->signa... | CVE-2017-12876 | {'CWE-787'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e'} | nvd | Heap-based buffer overflow in enhance.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denial of service via a crafted file. | 2017-08-28 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e | 1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e | SINGLE | ['1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e'] | {'04178de2247e353fc095846784b9a10fefdbf890'} | 1cc6f0ccc92c20c7cab6c4a7335daf29c91f0d8e | 1 | 08/09/2017, 13:59:44 | https://github.com/ImageMagick/ImageMagick/issues/663
https://github.com/ImageMagick/ImageMagick/issues/655 | Cristy | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -45,6 +45,7 @@\n #include \"MagickCore/artifact.h\"\n #include \"MagickCore/attribute.h\"\n #include \"MagickCore/cache.h\"\n+#include \"MagickCore/cache-private.h\"\n #include \"MagickCore/cache-view.h\"\n #include \"MagickCore/channel.h\... | c | CWE-787 | [
"MagickCore/enhance.c"
] | MagickCore/enhance.c | 1 |
RestoreMSCWarning if (quantum_info != (QuantumInfo *) NULL) quantum_info=DestroyQuantumInfo(quantum_info); END_OF_READING: if (clone_info) clone_info=DestroyImageInfo(clone_info); CloseBlob(image); RestoreMSCWarning Image *tmp=p; if ((p->rows == 0) || (p->columns == 0)) { p=p-... | RestoreMSCWarning if (quantum_info != (QuantumInfo *) NULL) quantum_info=DestroyQuantumInfo(quantum_info); END_OF_READING: CloseBlob(image); RestoreMSCWarning Image *tmp=p; if ((p->rows == 0) || (p->columns == 0)) { p=p->previous; if (tmp == image2) image2=(Ima... | CVE-2017-12877 | {'CWE-416'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890'} | nvd | Use-after-free vulnerability in the DestroyImage function in image.c in ImageMagick before 7.0.6-6 allows remote attackers to cause a denial of service via a crafted file. | 2017-08-28 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/04178de2247e353fc095846784b9a10fefdbf890 | 04178de2247e353fc095846784b9a10fefdbf890 | SINGLE | ['04178de2247e353fc095846784b9a10fefdbf890'] | {'44c66e1521d7e3f88e64f070395e0b4de8a3964c'} | 04178de2247e353fc095846784b9a10fefdbf890 | 1 | 08/09/2017, 12:01:38 | https://github.com/ImageMagick/ImageMagick/issues/662 | Cristy | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1330,8 +1330,6 @@ RestoreMSCWarning\n if (quantum_info != (QuantumInfo *) NULL)\n quantum_info=DestroyQuantumInfo(quantum_info);\n END_OF_READING:\n- if (clone_info)\n- clone_info=DestroyImageInfo(clone_info);\n CloseBlob(imag... | c | CWE-416 | [
"coders/mat.c"
] | coders/mat.c | 1 |
static OPJ_BOOL bmp_read_info_header(FILE* IN, OPJ_BITMAPINFOHEADER* header) header->biBitCount = (OPJ_UINT16)getc(IN); header->biBitCount |= (OPJ_UINT16)((OPJ_UINT32)getc(IN) << 8); if (header->biSize >= 40U) { header->biCompression = (OPJ_UINT32)getc(IN); | static OPJ_BOOL bmp_read_info_header(FILE* IN, OPJ_BITMAPINFOHEADER* header) header->biBitCount = (OPJ_UINT16)getc(IN); header->biBitCount |= (OPJ_UINT16)((OPJ_UINT32)getc(IN) << 8); if (header->biBitCount == 0) { fprintf(stderr, "Error, invalid biBitCount %d\n", 0); return OPJ_FALSE; ... | CVE-2017-12982 | {'CWE-119'} | 2.9 | {'https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7'} | nvd | The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_m... | 2017-08-21 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/baf0c1ad4572daa89caa3b12985bdd93530f0dd7 | baf0c1ad4572daa89caa3b12985bdd93530f0dd7 | SINGLE | ['baf0c1ad4572daa89caa3b12985bdd93530f0dd7'] | {'afb308b9ccbe129608c9205cf3bb39bbefad90b9'} | baf0c1ad4572daa89caa3b12985bdd93530f0dd7 | 1 | 08/14/2017, 15:26:58 | bmp_read_info_header(): reject bmp files with biBitCount == 0 (#983) | Even Rouault | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -392,6 +392,10 @@ static OPJ_BOOL bmp_read_info_header(FILE* IN, OPJ_BITMAPINFOHEADER* header)\n \n header->biBitCount = (OPJ_UINT16)getc(IN);\n header->biBitCount |= (OPJ_UINT16)((OPJ_UINT32)getc(IN) << 8);\n+ if (header->biBi... | c | CWE-119 | [
"src/bin/jp2/convertbmp.c"
] | src/bin/jp2/convertbmp.c | 1 |
static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, for (i=(int) first_object; i <= (int) last_object; i++) { if (mng_info->exists[i] && !mng_info->frozen[i]) { MngBox | static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info, for (i=(int) first_object; i <= (int) last_object; i++) { if ((i < 0) || (i >= MNG_MAX_OBJECTS)) continue; if (mng_info->exists[i] && !mng_info->frozen... | CVE-2017-13139 | {'CWE-125'} | 6.4 | {'https://github.com/ImageMagick/ImageMagick/commit/d072ed6aff835c174e856ce3a428163c0da9e8f4'} | nvd | In ImageMagick before 6.9.9-0 and 7.x before 7.0.6-1, the ReadOneMNGImage function in coders/png.c has an out-of-bounds read with the MNG CLIP chunk. | 2017-08-23 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/d072ed6aff835c174e856ce3a428163c0da9e8f4 | d072ed6aff835c174e856ce3a428163c0da9e8f4 | SINGLE | ['d072ed6aff835c174e856ce3a428163c0da9e8f4'] | {'82e3b7cb8da22a16fc6b1b16d486b5fc40272b5e'} | d072ed6aff835c174e856ce3a428163c0da9e8f4 | 1 | 07/10/2017, 02:42:32 | Skip MNG CLIP chunk with out-of-range object IDs | Glenn Randers-Pehrson | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -5899,6 +5899,9 @@ static Image *ReadOneMNGImage(MngInfo* mng_info, const ImageInfo *image_info,\n \n for (i=(int) first_object; i <= (int) last_object; i++)\n {\n+ if ((i < 0) || (i >= MNG_... | c | CWE-125 | [
"coders/png.c"
] | coders/png.c | 1 |
RestoreMSCWarning BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double)); /* Ldblk was set in the check phase */ if (BImgBuff == NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); MinVal = 0; MaxVal = 0; | RestoreMSCWarning BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double)); /* Ldblk was set in the check phase */ if (BImgBuff == NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); (void) ResetMagickMemory(BImgBuff,0,ldblk*sizeof(double)); MinV... | CVE-2017-13143 | {'CWE-200'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/51b0ae01709adc1e4a9245e158ef17b85a110960'} | nvd | In ImageMagick before 6.9.7-6 and 7.x before 7.0.4-6, the ReadMATImage function in coders/mat.c uses uninitialized data, which might allow remote attackers to obtain sensitive information from process memory. | 2017-08-23 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/51b0ae01709adc1e4a9245e158ef17b85a110960 | 51b0ae01709adc1e4a9245e158ef17b85a110960 | SINGLE | ['51b0ae01709adc1e4a9245e158ef17b85a110960'] | {'4a44cbd6d4dad0aa5723603fe884360b5e997d6d'} | 51b0ae01709adc1e4a9245e158ef17b85a110960 | 1 | 01/26/2017, 16:22:42 | https://github.com/ImageMagick/ImageMagick/issues/362 | Cristy | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -1123,6 +1123,7 @@ RestoreMSCWarning\n BImgBuff = (unsigned char *) AcquireQuantumMemory((size_t) (ldblk),sizeof(double)); /* Ldblk was set in the check phase */\n if (BImgBuff == NULL)\n ThrowReaderException(ResourceLimit... | c | CWE-200 | [
"coders/mat.c"
] | coders/mat.c | 1 |
class CommandHelper extends AppHelper { public function convertQuotes($string) { $string = str_ireplace('[QUOTE]', '<div class="quote">', $string); $string = str_ireplace('[/QUOTE]', '</div>', $string); $string = preg_replace('%\[event\]\s*(\d*)\s*\[/event\]%isU', '<a href="' . h(Configure::read('MISP.ba... | class CommandHelper extends AppHelper { var $helpers = array('Html'); private $__replacement; private function __buildReplacements() { $this->__replacement = array( 'link' => array('type' => 'url', 'url' => '$1', 'text' => '$1'), 'thread' => array('type' => 'url', 'url' => h(Configure::read('MISP... | CVE-2017-13671 | {'CWE-79'} | 2.9 | {'https://github.com/MISP/MISP/commit/6eba658d4a648b41b357025d864c19a67412b8aa'} | nvd | app/View/Helper/CommandHelper.php in MISP before 2.4.79 has persistent XSS via comments. It only impacts the users of the same instance because the comment field is not part of the MISP synchronisation. | 2017-08-24 | 1 | https://github.com/MISP/MISP | https://github.com/MISP/MISP/commit/6eba658d4a648b41b357025d864c19a67412b8aa | 6eba658d4a648b41b357025d864c19a67412b8aa | SINGLE | ['6eba658d4a648b41b357025d864c19a67412b8aa'] | {'fa9c676463848d23dc76702d25accf3d5ee55443'} | 6eba658d4a648b41b357025d864c19a67412b8aa | 1 | 08/24/2017, 09:25:32 | fix: Fixed a potential persistent cross site scripting in the comments
- new tag parser for the comments implemented
- Parser now cleanly pre-constructs the replacement items after finding tag pairs
- This only impacts users of the same instance, as comments are not synchronised
- as reported by Jurgen Jans and Cedr... | iglocska | null | {'additions': 81, 'deletions': 7, 'total': 88} | [
{
"additions": 81,
"changes": 88,
"deletions": 7,
"patch": "@@ -6,14 +6,88 @@\n \n \n \tclass CommandHelper extends AppHelper {\n-\t\tpublic function convertQuotes($string) {\n-\t\t\t$string = str_ireplace('[QUOTE]', '<div class=\"quote\">', $string);\n-\t\t\t$string = str_ireplace('[/QUOTE]', '</di... | php | CWE-79 | [
"app/View/Helper/CommandHelper.php"
] | app/View/Helper/CommandHelper.php | 1 |
static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, if (rtm->rtm_flags & RTM_F_LOOKUP_TABLE) table_id = rt->rt_table_id; if (rtm->rtm_flags & RTM_F_FIB_MATCH) err = fib_dump_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, table_id, rt->rt_type, res.prefi... | static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, if (rtm->rtm_flags & RTM_F_LOOKUP_TABLE) table_id = rt->rt_table_id; if (rtm->rtm_flags & RTM_F_FIB_MATCH) { if (!res.fi) { err = fib_props[res.type].error; if (!err) err = -EHOSTUNREACH; goto errout_free; } err = fib_du... | CVE-2017-13686 | {'CWE-476'} | 10 | {'https://github.com/torvalds/linux/commit/bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205'} | nvd | net/ipv4/route.c in the Linux kernel 4.13-rc1 through 4.13-rc6 is too late to check for a NULL fi field when RTM_F_FIB_MATCH is set, which allows local users to cause a denial of service (NULL pointer dereference) or possibly have unspecified other impact via crafted system calls. NOTE: this does not affect any stable ... | 2017-08-24 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205 | bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205 | SINGLE | ['bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205'] | {'383143f31d7d3525a1dbff733d52fff917f82f15'} | bc3aae2bbac46dd894c89db5d5e98f7f0ef9e205 | 1 | 08/16/2017, 19:38:52 | net: check and errout if res->fi is NULL when RTM_F_FIB_MATCH is set
Syzkaller hit 'general protection fault in fib_dump_info' bug on
commit 4.13-rc5..
Guilty file: net/ipv4/fib_semantics.c
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Modules linked... | Roopa Prabhu | null | {'additions': 9, 'deletions': 2, 'total': 11} | [
{
"additions": 9,
"changes": 11,
"deletions": 2,
"patch": "@@ -2763,14 +2763,21 @@ static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh,\n \tif (rtm->rtm_flags & RTM_F_LOOKUP_TABLE)\n \t\ttable_id = rt->rt_table_id;\n \n-\tif (rtm->rtm_flags & RTM_F_FIB_MATCH)\n+\tif (rtm->rtm_f... | c | CWE-476 | [
"net/ipv4/route.c"
] | net/ipv4/route.c | 1 |
AcpiDsCreateOperands ( ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS]; UINT32 ArgCount = 0; UINT32 Index = WalkState->NumOperands; UINT32 i; AcpiDsCreateOperands ( /* Create the interpreter arguments, in reverse order */ Index--;... | AcpiDsCreateOperands ( ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS]; UINT32 ArgCount = 0; UINT32 Index = WalkState->NumOperands; UINT32 PrevNumOperands = WalkState->NumOperands; UINT32 NewNumOperands; UINT32 ... | CVE-2017-13693 | {'CWE-200'} | 6.9 | {'https://github.com/acpica/acpica/pull/295/commits/987a3b5cf7175916e2a4b6ea5b8e70f830dfe732'} | nvd | The acpi_ds_create_operands() function in drivers/acpi/acpica/dsutils.c in the Linux kernel through 4.12.9 does not flush the operand cache and causes a kernel stack dump, which allows local users to obtain sensitive information from kernel memory and bypass the KASLR protection mechanism (in the kernel through 4.9) vi... | 2017-08-25 | 1 | https://github.com/acpica/acpica | https://github.com/acpica/acpica/pull/295/commits/987a3b5cf7175916e2a4b6ea5b8e70f830dfe732 | 987a3b5cf7175916e2a4b6ea5b8e70f830dfe732 | SINGLE | ['987a3b5cf7175916e2a4b6ea5b8e70f830dfe732'] | {'b542af9a4caeb8397c08421d2a4f2f60952f9e79'} | 987a3b5cf7175916e2a4b6ea5b8e70f830dfe732 | 1 | 07/19/2017, 07:47:53 | acpi: acpica: fix acpi operand cache leak in dswstate.c
I found an ACPI cache leak in ACPI early termination and boot continuing case.
When early termination occurs due to malicious ACPI table, Linux kernel
terminates ACPI function and continues to boot process. While kernel terminates
ACPI function, kmem_cache_destr... | Seunghun Han | null | {'additions': 8, 'deletions': 1, 'total': 9} | [
{
"additions": 8,
"changes": 9,
"deletions": 1,
"patch": "@@ -868,6 +868,8 @@ AcpiDsCreateOperands (\n ACPI_PARSE_OBJECT *Arguments[ACPI_OBJ_NUM_OPERANDS];\n UINT32 ArgCount = 0;\n UINT32 Index = WalkState->NumOperands;\n+ UINT32 ... | c | CWE-200 | [
"source/components/dispatcher/dsutils.c"
] | source/components/dispatcher/dsutils.c | 1 |
AcpiPsCompleteFinalOp ( ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status) { ACPI_STATUS Status2; ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState); AcpiPsCompleteFinalOp ( { if (Op) { if (WalkState->AscendingCallback != NULL) { ... | AcpiPsCompleteFinalOp ( ACPI_PARSE_OBJECT *Op, ACPI_STATUS Status) { ACPI_STATUS ReturnStatus = AE_OK; BOOLEAN Ascending = TRUE; ACPI_FUNCTION_TRACE_PTR (PsCompleteFinalOp, WalkState); AcpiPsCompleteFinalOp ( { if (Op) { ... | CVE-2017-13694 | {'CWE-200'} | 2.9 | {'https://github.com/acpica/acpica/pull/278/commits/4a0243ecb4c94e2d73510d096c5ea4d0711fc6c0'} | nvd | The acpi_ps_complete_final_op() function in drivers/acpi/acpica/psobject.c in the Linux kernel through 4.12.9 does not flush the node and node_ext caches and causes a kernel stack dump, which allows local users to obtain sensitive information from kernel memory and bypass the KASLR protection mechanism (in the kernel t... | 2017-08-25 | 1 | https://github.com/acpica/acpica | https://github.com/acpica/acpica/pull/278/commits/4a0243ecb4c94e2d73510d096c5ea4d0711fc6c0 | 4a0243ecb4c94e2d73510d096c5ea4d0711fc6c0 | SINGLE | ['4a0243ecb4c94e2d73510d096c5ea4d0711fc6c0'] | {'2058b3bf5deecb9644d676703bd97d1bce5e612a'} | 4a0243ecb4c94e2d73510d096c5ea4d0711fc6c0 | 1 | 06/23/2017, 05:19:48 | acpi: acpica: fix acpi parse and parseext cache leaks
I'm Seunghun Han, and I work for National Security Research Institute of
South Korea.
I have been doing a research on ACPI and found an ACPI cache leak in ACPI
early abort cases.
Boot log of ACPI cache leak is as follows:
[ 0.352414] ACPI: Added _OSI(Module De... | Seunghun Han | null | {'additions': 16, 'deletions': 28, 'total': 44} | [
{
"additions": 16,
"changes": 44,
"deletions": 28,
"patch": "@@ -768,7 +768,8 @@ AcpiPsCompleteFinalOp (\n ACPI_PARSE_OBJECT *Op,\n ACPI_STATUS Status)\n {\n- ACPI_STATUS Status2;\n+ ACPI_STATUS ReturnStatus = AE_OK;\n+ BOOLEAN ... | c | CWE-200 | [
"source/components/parser/psobject.c"
] | source/components/parser/psobject.c | 1 |
AcpiNsEvaluate ( Status = AE_OK; } ACPI_DEBUG_PRINT ((ACPI_DB_NAMES, "*** Completed evaluation of object %s ***\n", | AcpiNsEvaluate ( Status = AE_OK; } else if (ACPI_FAILURE(Status)) { /* If ReturnObject exists, delete it */ if (Info->ReturnObject) { AcpiUtRemoveReference (Info->ReturnObject); Info->ReturnObject = NULL; } } ACPI_DEBUG_PRINT ((AC... | CVE-2017-13695 | {'CWE-200'} | 2.9 | {'https://github.com/acpica/acpica/pull/296/commits/37f2c716f2c6ab14c3ba557a539c3ee3224931b5'} | nvd | The acpi_ns_evaluate() function in drivers/acpi/acpica/nseval.c in the Linux kernel through 4.12.9 does not flush the operand cache and causes a kernel stack dump, which allows local users to obtain sensitive information from kernel memory and bypass the KASLR protection mechanism (in the kernel through 4.9) via a craf... | 2017-08-25 | 1 | https://github.com/acpica/acpica | https://github.com/acpica/acpica/pull/296/commits/37f2c716f2c6ab14c3ba557a539c3ee3224931b5 | 37f2c716f2c6ab14c3ba557a539c3ee3224931b5 | SINGLE | ['37f2c716f2c6ab14c3ba557a539c3ee3224931b5'] | {'b542af9a4caeb8397c08421d2a4f2f60952f9e79'} | 37f2c716f2c6ab14c3ba557a539c3ee3224931b5 | 1 | 07/19/2017, 08:04:44 | acpi: acpica: fix acpi operand cache leak in nseval.c
I found an ACPI cache leak in ACPI early termination and boot continuing case.
When early termination occurs due to malicious ACPI table, Linux kernel
terminates ACPI function and continues to boot process. While kernel terminates
ACPI function, kmem_cache_destroy... | Seunghun Han | null | {'additions': 10, 'deletions': 0, 'total': 10} | [
{
"additions": 10,
"changes": 10,
"deletions": 0,
"patch": "@@ -428,6 +428,16 @@ AcpiNsEvaluate (\n \n Status = AE_OK;\n }\n+ else if (ACPI_FAILURE(Status)) \n+ {\n+ /* If ReturnObject exists, delete it */\n+\n+ if (Info->ReturnObject) \n+ {\n+ AcpiU... | c | CWE-200 | [
"source/components/namespace/nseval.c"
] | source/components/namespace/nseval.c | 1 |
struct tga_header { }; #endif /* INFORMATION_ONLY */ static unsigned short get_ushort(const unsigned char *data) { unsigned short val = *(const unsigned short *)data; #ifdef OPJ_BIG_ENDIAN val = ((val & 0xffU) << 8) | (val >> 8); #endif return val; } #define TGA_HEADER_SIZE 18 static int tga_readheader(F... | struct tga_header { }; #endif /* INFORMATION_ONLY */ /* Returns a ushort from a little-endian serialized value */ static unsigned short get_tga_ushort(const unsigned char *data) { return data[0] | (data[1] << 8); } #define TGA_HEADER_SIZE 18 static int tga_readheader(FILE *fp, unsigned int *bits_per_pixel, i... | CVE-2017-14040 | {'CWE-787'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281'} | nvd | An invalid write access was discovered in bin/jp2/convert.c in OpenJPEG 2.2.0, triggering a crash in the tgatoimage function. The vulnerability may lead to remote denial of service or possibly unspecified other impact. | 2017-08-30 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/2cd30c2b06ce332dede81cccad8b334cde997281 | 2cd30c2b06ce332dede81cccad8b334cde997281 | SINGLE | ['2cd30c2b06ce332dede81cccad8b334cde997281'] | {'09e83407fa2b53c606d3179031b8d8b31272e20c'} | 2cd30c2b06ce332dede81cccad8b334cde997281 | 1 | 08/17/2017, 09:47:40 | tgatoimage(): avoid excessive memory allocation attempt, and fixes unaligned load (#995) | Even Rouault | null | {'additions': 27, 'deletions': 12, 'total': 39} | [
{
"additions": 27,
"changes": 39,
"deletions": 12,
"patch": "@@ -580,13 +580,10 @@ struct tga_header {\n };\n #endif /* INFORMATION_ONLY */\n \n-static unsigned short get_ushort(const unsigned char *data)\n+/* Returns a ushort from a little-endian serialized value */\n+static unsigned short get_tga_... | c | CWE-787 | [
"src/bin/jp2/convert.c"
] | src/bin/jp2/convert.c | 1 |
opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters) } fseek(f, 0, SEEK_SET); if (fscanf(f, "PG%[ \t]%c%c%[ \t+-]%d%[ \t]%d%[ \t]%d", temp, &endian1, &endian2, signtmp, &prec, temp, &w, temp, &h) != 9) { fclose(f); fprintf(stderr, | opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters) } fseek(f, 0, SEEK_SET); if (fscanf(f, "PG%31[ \t]%c%c%31[ \t+-]%d%31[ \t]%d%31[ \t]%d", temp, &endian1, &endian2, signtmp, &prec, temp, &w, temp, &h) != 9) { fclose(f); fprintf(stderr, | CVE-2017-14041 | {'CWE-787'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/e5285319229a5d77bf316bb0d3a6cbd3cb8666d9'} | nvd | A stack-based buffer overflow was discovered in the pgxtoimage function in bin/jp2/convert.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service or possibly remote code execution. | 2017-08-30 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/e5285319229a5d77bf316bb0d3a6cbd3cb8666d9 | e5285319229a5d77bf316bb0d3a6cbd3cb8666d9 | SINGLE | ['e5285319229a5d77bf316bb0d3a6cbd3cb8666d9'] | {'5597522cac96b1bc6d48a447751b1c6049248eef'} | e5285319229a5d77bf316bb0d3a6cbd3cb8666d9 | 1 | 08/18/2017, 11:39:20 | pgxtoimage(): fix write stack buffer overflow (#997) | Even Rouault | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1185,7 +1185,7 @@ opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters)\n }\n \n fseek(f, 0, SEEK_SET);\n- if (fscanf(f, \"PG%[ \\t]%c%c%[ \\t+-]%d%[ \\t]%d%[ \\t]%d\", temp, &endian1,\n+ if (fscanf(f,... | c | CWE-787 | [
"src/bin/jp2/convert.c"
] | src/bin/jp2/convert.c | 1 |
int tcp_disconnect(struct sock *sk, int flags) tcp_set_ca_state(sk, TCP_CA_Open); tcp_clear_retrans(tp); inet_csk_delack_init(sk); tcp_init_send_head(sk); memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); __sk_dst_reset(sk); | int tcp_disconnect(struct sock *sk, int flags) tcp_set_ca_state(sk, TCP_CA_Open); tcp_clear_retrans(tp); inet_csk_delack_init(sk); /* Initialize rcv_mss to TCP_MIN_MSS to avoid division by 0 * issue in __tcp_select_window() */ icsk->icsk_ack.rcv_mss = TCP_MIN_MSS; tcp_init_send_head(sk); memset(&tp->rx_opt,... | CVE-2017-14106 | {'CWE-369'} | 6.9 | {'https://github.com/torvalds/linux/commit/499350a5a6e7512d9ed369ed63a4244b6536f4f8'} | nvd | The tcp_disconnect function in net/ipv4/tcp.c in the Linux kernel before 4.12 allows local users to cause a denial of service (__tcp_select_window divide-by-zero error and system crash) by triggering a disconnect within a certain tcp_recvmsg code path. | 2017-09-01 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/499350a5a6e7512d9ed369ed63a4244b6536f4f8 | 499350a5a6e7512d9ed369ed63a4244b6536f4f8 | SINGLE | ['499350a5a6e7512d9ed369ed63a4244b6536f4f8'] | {'23416e230416a9201561f1db553b1515e9959f6a'} | 499350a5a6e7512d9ed369ed63a4244b6536f4f8 | 1 | 05/18/2017, 18:22:33 | tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0
When tcp_disconnect() is called, inet_csk_delack_init() sets
icsk->icsk_ack.rcv_mss to 0.
This could potentially cause tcp_recvmsg() => tcp_cleanup_rbuf() =>
__tcp_select_window() call path to have division by 0 issue.
So this patch initializes rcv_mss to TCP_MIN_MSS... | Wei Wang | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -2320,6 +2320,10 @@ int tcp_disconnect(struct sock *sk, int flags)\n \ttcp_set_ca_state(sk, TCP_CA_Open);\n \ttcp_clear_retrans(tp);\n \tinet_csk_delack_init(sk);\n+\t/* Initialize rcv_mss to TCP_MIN_MSS to avoid division by 0\n+\t * issue... | c | CWE-369 | [
"net/ipv4/tcp.c"
] | net/ipv4/tcp.c | 1 |
#include <linux/page_idle.h> #include <linux/page_owner.h> #include <linux/sched/mm.h> #include <asm/tlbflush.h> SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, const int __user *, nodes, int __user *, status, int, flags) { const struct cred *cred = current_cred(), *tcred; struct task_struct *... | #include <linux/page_idle.h> #include <linux/page_owner.h> #include <linux/sched/mm.h> #include <linux/ptrace.h> #include <asm/tlbflush.h> SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, const int __user *, nodes, int __user *, status, int, flags) { struct task_struct *task; struct mm_struct *... | CVE-2017-14140 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/197e7e521384a23b9e585178f3f11c9fa08274b9'} | nvd | The move_pages system call in mm/migrate.c in the Linux kernel before 4.12.9 doesn't check the effective uid of the target process, enabling a local attacker to learn the memory layout of a setuid executable despite ASLR. | 2017-09-05 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/197e7e521384a23b9e585178f3f11c9fa08274b9 | 197e7e521384a23b9e585178f3f11c9fa08274b9 | SINGLE | ['197e7e521384a23b9e585178f3f11c9fa08274b9'] | {'7f680d7ec3153dffc4d37aea517ead2b9fb9b8e9'} | 197e7e521384a23b9e585178f3f11c9fa08274b9 | 1 | 08/20/2017, 20:26:27 | Sanitize 'move_pages()' permission checks
The 'move_paghes()' system call was introduced long long ago with the
same permission checks as for sending a signal (except using
CAP_SYS_NICE instead of CAP_SYS_KILL for the overriding capability).
That turns out to not be a great choice - while the system call really
only ... | Linus Torvalds | null | {'additions': 3, 'deletions': 8, 'total': 11} | [
{
"additions": 3,
"changes": 11,
"deletions": 8,
"patch": "@@ -41,6 +41,7 @@\n #include <linux/page_idle.h>\n #include <linux/page_owner.h>\n #include <linux/sched/mm.h>\n+#include <linux/ptrace.h>\n \n #include <asm/tlbflush.h>\n \n@@ -1652,7 +1653,6 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsig... | c | CWE-200 | [
"mm/migrate.c"
] | mm/migrate.c | 1 |
static void opj_j2k_set_cinema_parameters(opj_cparameters_t *parameters, /* Precincts */ parameters->csty |= 0x01; parameters->res_spec = parameters->numresolution - 1; for (i = 0; i < parameters->res_spec; i++) { parameters->prcw_init[i] = 256; parameters->prch_init[i] = 256; } ... | static void opj_j2k_set_cinema_parameters(opj_cparameters_t *parameters, /* Precincts */ parameters->csty |= 0x01; if (parameters->numresolution == 1) { parameters->res_spec = 1; parameters->prcw_init[0] = 128; parameters->prch_init[0] = 128; } else { parameters->res_sp... | CVE-2017-14152 | {'CWE-787'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/4241ae6fbbf1de9658764a80944dc8108f2b4154'} | nvd | A mishandled zero case was discovered in opj_j2k_set_cinema_parameters in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c and opj_j2k_write_sot in lib/openjp2/j2... | 2017-09-05 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/4241ae6fbbf1de9658764a80944dc8108f2b4154 | 4241ae6fbbf1de9658764a80944dc8108f2b4154 | SINGLE | ['4241ae6fbbf1de9658764a80944dc8108f2b4154'] | {'52d5690a6fcba86b5f117eeac8aca1971cac3688'} | 4241ae6fbbf1de9658764a80944dc8108f2b4154 | 1 | 08/15/2017, 09:55:58 | Fix assertion in debug mode / heap-based buffer overflow in opj_write_bytes_LE for Cinema profiles with numresolutions = 1 (#985) | Even Rouault | null | {'additions': 10, 'deletions': 4, 'total': 14} | [
{
"additions": 10,
"changes": 14,
"deletions": 4,
"patch": "@@ -6573,10 +6573,16 @@ static void opj_j2k_set_cinema_parameters(opj_cparameters_t *parameters,\n \n /* Precincts */\n parameters->csty |= 0x01;\n- parameters->res_spec = parameters->numresolution - 1;\n- for (i = 0; i < para... | c | CWE-787 | [
"src/lib/openjp2/j2k.c"
] | src/lib/openjp2/j2k.c | 1 |
static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k, * Writes the SOT marker (Start of tile-part) * * @param p_j2k J2K codec. * @param p_data FIXME DOC * @param p_data_written FIXME DOC * @param p_stream the stream to write data to. * @param p_manager ... | static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k, * Writes the SOT marker (Start of tile-part) * * @param p_j2k J2K codec. * @param p_data Output buffer * @param p_total_data_size Output buffer size * @param p_data_written Number of bytes written into stream * @p... | CVE-2017-14164 | {'CWE-119', 'CWE-787'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a'} | nvd | A size-validation issue was discovered in opj_j2k_write_sot in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c) or possibly remote code execution. NOTE: this vul... | 2017-09-06 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a | dcac91b8c72f743bda7dbfa9032356bc8110098a | SINGLE | ['dcac91b8c72f743bda7dbfa9032356bc8110098a'] | {'af760007711bf93041d3eba3a41b9a48d365f303'} | dcac91b8c72f743bda7dbfa9032356bc8110098a | 1 | 08/16/2017, 15:09:10 | opj_j2k_write_sot(): fix potential write heap buffer overflow (#991) | Even Rouault | null | {'additions': 20, 'deletions': 5, 'total': 25} | [
{
"additions": 20,
"changes": 25,
"deletions": 5,
"patch": "@@ -832,13 +832,15 @@ static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k,\n * Writes the SOT marker (Start of tile-part)\n *\n * @param p_j2k J2K codec.\n- * @param p_data FIXME DOC\n- * @param p_da... | c | CWE-787 | [
"src/lib/openjp2/j2k.c"
] | src/lib/openjp2/j2k.c | 1 |
static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k, * Writes the SOT marker (Start of tile-part) * * @param p_j2k J2K codec. * @param p_data FIXME DOC * @param p_data_written FIXME DOC * @param p_stream the stream to write data to. * @param p_manager ... | static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k, * Writes the SOT marker (Start of tile-part) * * @param p_j2k J2K codec. * @param p_data Output buffer * @param p_total_data_size Output buffer size * @param p_data_written Number of bytes written into stream * @p... | CVE-2017-14164 | {'CWE-119', 'CWE-787'} | 6.4 | {'https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a'} | nvd | A size-validation issue was discovered in opj_j2k_write_sot in lib/openjp2/j2k.c in OpenJPEG 2.2.0. The vulnerability causes an out-of-bounds write, which may lead to remote denial of service (heap-based buffer overflow affecting opj_write_bytes_LE in lib/openjp2/cio.c) or possibly remote code execution. NOTE: this vul... | 2017-09-06 | 1 | https://github.com/uclouvain/openjpeg | https://github.com/uclouvain/openjpeg/commit/dcac91b8c72f743bda7dbfa9032356bc8110098a | dcac91b8c72f743bda7dbfa9032356bc8110098a | SINGLE | ['dcac91b8c72f743bda7dbfa9032356bc8110098a'] | {'af760007711bf93041d3eba3a41b9a48d365f303'} | dcac91b8c72f743bda7dbfa9032356bc8110098a | 1 | 08/16/2017, 15:09:10 | opj_j2k_write_sot(): fix potential write heap buffer overflow (#991) | Even Rouault | null | {'additions': 20, 'deletions': 5, 'total': 25} | [
{
"additions": 20,
"changes": 25,
"deletions": 5,
"patch": "@@ -832,13 +832,15 @@ static OPJ_BOOL opj_j2k_write_tlm(opj_j2k_t *p_j2k,\n * Writes the SOT marker (Start of tile-part)\n *\n * @param p_j2k J2K codec.\n- * @param p_data FIXME DOC\n- * @param p_da... | c | CWE-119 | [
"src/lib/openjp2/j2k.c"
] | src/lib/openjp2/j2k.c | 1 |
atol10(const char *p, size_t char_cnt) uint64_t l; int digit; l = 0; digit = *p - '0'; while (digit >= 0 && digit < 10 && char_cnt-- > 0) { atol8(const char *p, size_t char_cnt) { int64_t l; int digit; l = 0; while (char_cnt-- > 0) { if (*p >= '0' && *p <= '7') | atol10(const char *p, size_t char_cnt) uint64_t l; int digit; if (char_cnt == 0) return (0); l = 0; digit = *p - '0'; while (digit >= 0 && digit < 10 && char_cnt-- > 0) { atol8(const char *p, size_t char_cnt) { int64_t l; int digit; if (char_cnt == 0) return (0); l = 0; while (char_cnt-- > 0) { i... | CVE-2017-14166 | {'CWE-125'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/fa7438a0ff4033e4741c807394a9af6207940d71'} | nvd | libarchive 3.3.2 allows remote attackers to cause a denial of service (xml_data heap-based buffer over-read and application crash) via a crafted xar archive, related to the mishandling of empty strings in the atol8 function in archive_read_support_format_xar.c. | 2017-09-06 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/fa7438a0ff4033e4741c807394a9af6207940d71 | fa7438a0ff4033e4741c807394a9af6207940d71 | SINGLE | ['fa7438a0ff4033e4741c807394a9af6207940d71'] | {'25d20ec908a53a27a207310a874ee43d71bc916e'} | fa7438a0ff4033e4741c807394a9af6207940d71 | 1 | 09/05/2017, 16:12:19 | Do something sensible for empty strings to make fuzzers happy. | Joerg Sonnenberger | {'com_1': {'author': 'carnil', 'datetime': '09/06/2017, 19:09:05', 'body': 'This should fix https://github.com/libarchive/libarchive/issues/935'}, 'com_2': {'author': 'carnil', 'datetime': '09/06/2017, 19:09:23', 'body': 'CVE-2017-14166 was assigned for this issue.'}} | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -1040,6 +1040,9 @@ atol10(const char *p, size_t char_cnt)\n \tuint64_t l;\n \tint digit;\n \n+\tif (char_cnt == 0)\n+\t\treturn (0);\n+\n \tl = 0;\n \tdigit = *p - '0';\n \twhile (digit >= 0 && digit < 10 && char_cnt-- > 0) {\n@@ -1054,7 ... | c | CWE-125 | [
"libarchive/archive_read_support_format_xar.c"
] | libarchive/archive_read_support_format_xar.c | 1 |
static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); image->columns=width; image->rows=height; for (depth=1; (GetQuantumRange(depth)+1) < max_value; depth++) ; image->depth=depth; status=SetImageExtent(... | static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); image->columns=width; image->rows=height; for (depth=1; (GetQuantumRange(depth)+1) < max_value; depth++) if (depth >= 64) break; image->dep... | CVE-2017-14173 | {'CWE-835', 'CWE-190'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9'} | nvd | In the function ReadTXTImage() in coders/txt.c in ImageMagick 7.0.6-10, an integer overflow might occur for the addition operation "GetQuantumRange(depth)+1" when "depth" is large, producing a smaller value than expected. As a result, an infinite loop would occur for a crafted TXT file that claims a very large "max_val... | 2017-09-07 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9 | 50f54462076648ac2e36c3f58f4dadd4babbf1c9 | SINGLE | ['50f54462076648ac2e36c3f58f4dadd4babbf1c9'] | {'c5402b6e0fcf8b694ae2af6a6652ebb8ce0ccf46'} | 50f54462076648ac2e36c3f58f4dadd4babbf1c9 | 1 | 09/01/2017, 13:22:37 | https://github.com/ImageMagick/ImageMagick/issues/713 | Cristy | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -446,7 +446,9 @@ static Image *ReadTXTImage(const ImageInfo *image_info,ExceptionInfo *exception)\n ThrowReaderException(CorruptImageError,\"ImproperImageHeader\");\n image->columns=width;\n image->rows=height;\n- for (dep... | c | CWE-190 | [
"coders/txt.c"
] | coders/txt.c | 1 |
static int asf_build_simple_index(AVFormatContext *s, int stream_index) int64_t pos = s->internal->data_offset + s->packet_size * (int64_t)pktnum; int64_t index_pts = FFMAX(av_rescale(itime, i, 10000) - asf->hdr.preroll, 0); if (pos != last_pos) { av_log(s, AV... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) int64_t pos = s->internal->data_offset + s->packet_size * (int64_t)pktnum; int64_t index_pts = FFMAX(av_rescale(itime, i, 10000) - asf->hdr.preroll, 0); if (avio_feof(s->pb)) { ret = AVERR... | CVE-2017-14223 | {'CWE-400'} | 6.9 | {'https://github.com/FFmpeg/FFmpeg/commit/afc9c683ed9db01edb357bc8c19edad4282b3a97'} | nvd | In libavformat/asfdec_f.c in FFmpeg 3.3.3, a DoS in asf_build_simple_index() due to lack of an EOF (End of File) check might cause huge CPU consumption. When a crafted ASF file, which claims a large "ict" field in the header but does not contain sufficient backing data, is provided, the for loop would consume huge CPU ... | 2017-09-09 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/afc9c683ed9db01edb357bc8c19edad4282b3a97 | afc9c683ed9db01edb357bc8c19edad4282b3a97 | SINGLE | ['afc9c683ed9db01edb357bc8c19edad4282b3a97'] | {'9cb4eb772839c5e1de2855d126bf74ff16d13382'} | afc9c683ed9db01edb357bc8c19edad4282b3a97 | 1 | 09/04/2017, 22:16:29 | avformat/asfdec: Fix DoS in asf_build_simple_index()
Fixes: Missing EOF check in loop
No testcase
Found-by: Xiaohei and Wangchu from Alibaba Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'fgeek', 'datetime': '09/09/2017, 09:40:10', 'body': 'https://nvd.nist.gov/vuln/detail/CVE-2017-14223'}, 'com_2': {'author': 'shqking', 'datetime': '09/11/2017, 01:46:04', 'body': 'This is CVE-2017-14223.'}} | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -1610,6 +1610,11 @@ static int asf_build_simple_index(AVFormatContext *s, int stream_index)\n int64_t pos = s->internal->data_offset + s->packet_size * (int64_t)pktnum;\n int64_t index_pts = FFMAX(av_rescale(i... | c | CWE-400 | [
"libavformat/asfdec_f.c"
] | libavformat/asfdec_f.c | 1 |
static void print_pkt_side_data(WriterContext *w, writer_print_section_footer(w); } static void clear_log(int need_lock) { int i; static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, else print_str_opt("color_space", av_color_space_name(frame->colorspace)); i... | static void print_pkt_side_data(WriterContext *w, writer_print_section_footer(w); } static void print_primaries(WriterContext *w, enum AVColorPrimaries color_primaries) { const char *val = av_color_primaries_name(color_primaries); if (!val || color_primaries == AVCOL_PRI_UNSPECIFIED) { print_str_o... | CVE-2017-14225 | {'CWE-476'} | 6.4 | {'https://github.com/FFmpeg/FFmpeg/commit/837cb4325b712ff1aab531bf41668933f61d75d2'} | nvd | The av_color_primaries_name function in libavutil/pixdesc.c in FFmpeg 3.3.3 may return a NULL pointer depending on a value contained in a file, but callers do not anticipate this, as demonstrated by the avcodec_string function in libavcodec/utils.c, leading to a NULL pointer dereference. (It is also conceivable that th... | 2017-09-09 | 1 | https://github.com/FFmpeg/FFmpeg | https://github.com/FFmpeg/FFmpeg/commit/837cb4325b712ff1aab531bf41668933f61d75d2 | 837cb4325b712ff1aab531bf41668933f61d75d2 | SINGLE | ['837cb4325b712ff1aab531bf41668933f61d75d2'] | {'2b44dcbc44e99daf9515753e9fd4c2e1ea53a2fa'} | 837cb4325b712ff1aab531bf41668933f61d75d2 | 1 | 08/22/2017, 09:02:38 | ffprobe: Fix null pointer dereference with color primaries
Found-by: AD-lab of venustech
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> | Michael Niedermayer | {'com_1': {'author': 'fgeek', 'datetime': '09/09/2017, 09:39:12', 'body': 'https://nvd.nist.gov/vuln/detail/CVE-2017-14225'}} | {'additions': 12, 'deletions': 8, 'total': 20} | [
{
"additions": 12,
"changes": 20,
"deletions": 8,
"patch": "@@ -1925,6 +1925,16 @@ static void print_pkt_side_data(WriterContext *w,\n writer_print_section_footer(w);\n }\n \n+static void print_primaries(WriterContext *w, enum AVColorPrimaries color_primaries)\n+{\n+ const char *val = av_colo... | c | CWE-476 | [
"ffprobe.c"
] | ffprobe.c | 1 |
static int mboxlist_do_find(struct find_rock *rock, const strarray_t *patterns) if (len) len--; // trailing separator if (!strncmp(rock->namespace->prefix[NAMESPACE_USER], commonpat, MIN(len, prefixlen))) { if (prefixlen < len) { /* we match all users */ str... | static int mboxlist_do_find(struct find_rock *rock, const strarray_t *patterns) if (len) len--; // trailing separator if (!strncmp(rock->namespace->prefix[NAMESPACE_USER], commonpat, MIN(len, prefixlen))) { if (prefixlen <= len) { /* we match all users */ st... | CVE-2017-14230 | {'CWE-20'} | 4.9 | {'https://github.com/cyrusimap/cyrus-imapd/commit/6bd33275368edfa71ae117de895488584678ac79'} | nvd | In the mboxlist_do_find function in imap/mboxlist.c in Cyrus IMAP before 3.0.4, an off-by-one error in prefix calculation for the LIST command caused use of uninitialized memory, which might allow remote attackers to obtain sensitive information or cause a denial of service (daemon crash) via a 'LIST "" "Other Users"' ... | 2017-09-10 | 1 | https://github.com/cyrusimap/cyrus-imapd | https://github.com/cyrusimap/cyrus-imapd/commit/6bd33275368edfa71ae117de895488584678ac79 | 6bd33275368edfa71ae117de895488584678ac79 | SINGLE | ['6bd33275368edfa71ae117de895488584678ac79'] | {'b7677ebda00374b4064fad6783ba8a1308407a27'} | 6bd33275368edfa71ae117de895488584678ac79 | 1 | 08/31/2017, 02:43:09 | mboxlist: fix uninitialised memory use where pattern is "Other Users" | Bron Gondwana | {'com_1': {'author': 'carnil', 'datetime': '09/10/2017, 18:52:54', 'body': 'See: [CVE-2017-14230](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-14230)'}} | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2851,7 +2851,7 @@ static int mboxlist_do_find(struct find_rock *rock, const strarray_t *patterns)\n if (len) len--; // trailing separator\n \n if (!strncmp(rock->namespace->prefix[NAMESPACE_USER], commonpat, MIN(len, prefi... | c | CWE-20 | [
"imap/mboxlist.c"
] | imap/mboxlist.c | 1 |
function shibboleth_update_user_data($user_id, $force_update = false) { function shibboleth_login_form() { $login_url = add_query_arg('action', 'shibboleth'); $login_url = remove_query_arg('reauth', $login_url); echo '<p id="shibboleth_login"><a href="' . $login_url . '">' . __('Login with Shibboleth', 'shibboleth'... | function shibboleth_update_user_data($user_id, $force_update = false) { function shibboleth_login_form() { $login_url = add_query_arg('action', 'shibboleth'); $login_url = remove_query_arg('reauth', $login_url); echo '<p id="shibboleth_login"><a href="' . esc_url($login_url) . '">' . __('Login with Shibboleth', 'sh... | CVE-2017-14313 | {'CWE-79'} | 2.9 | {'https://github.com/michaelryanmcneill/shibboleth/commit/1d65ad6786282d23ba1865f56e2fd19188e7c26a'} | nvd | The shibboleth_login_form function in shibboleth.php in the Shibboleth plugin before 1.8 for WordPress is prone to an XSS vulnerability due to improper use of add_query_arg(). | 2017-09-12 | 1 | https://github.com/michaelryanmcneill/shibboleth | https://github.com/michaelryanmcneill/shibboleth/commit/1d65ad6786282d23ba1865f56e2fd19188e7c26a | 1d65ad6786282d23ba1865f56e2fd19188e7c26a | SINGLE | ['1d65ad6786282d23ba1865f56e2fd19188e7c26a'] | {'897a2140e9574a31d4fa38f23d407d91111e3476'} | 1d65ad6786282d23ba1865f56e2fd19188e7c26a | 1 | 03/20/2016, 15:41:37 | escape url after add_query_arg | Michael Yoshitaka Erlewine | {'com_1': {'author': 'carnil', 'datetime': '09/12/2017, 18:21:15', 'body': 'CVE-2017-14313'}} | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -460,7 +460,7 @@ function shibboleth_update_user_data($user_id, $force_update = false) {\n function shibboleth_login_form() {\n \t$login_url = add_query_arg('action', 'shibboleth');\n \t$login_url = remove_query_arg('reauth', $login_url);\... | php | CWE-79 | [
"shibboleth.php"
] | shibboleth.php | 1 |
public function getUser(CakeRequest $request) // If $sync is true, allow the creation of the user from the certificate $sync = Configure::read('CertAuth.syncUser'); if ($sync) { self::getRestUser(); } // find and fill user with model $userModelKey = empty(Configure::read('CertAuth.userMod... | public function getUser(CakeRequest $request) // If $sync is true, allow the creation of the user from the certificate $sync = Configure::read('CertAuth.syncUser'); if ($sync) { if (!self::getRestUser()) return false; } // find and fill user with model $userModelKey = empty(Configure::rea... | CVE-2017-14337 | {'CWE-287'} | 6.4 | {'https://github.com/MISP/MISP/commit/be111a470204a974c50682054c9c7d4b94396ed9'} | nvd | When MISP before 2.4.80 is configured with X.509 certificate authentication (CertAuth) in conjunction with a non-MISP external user management ReST API, if an external user provides X.509 certificate authentication and this API returns an empty value, the unauthenticated user can be granted access as an arbitrary user. | 2017-09-12 | 1 | https://github.com/MISP/MISP | https://github.com/MISP/MISP/commit/be111a470204a974c50682054c9c7d4b94396ed9 | be111a470204a974c50682054c9c7d4b94396ed9 | SINGLE | ['be111a470204a974c50682054c9c7d4b94396ed9'] | {'eef0f84ec347fe4f0507e8282e9f8d0cafeb1964'} | be111a470204a974c50682054c9c7d4b94396ed9 | 1 | 09/08/2017, 12:25:36 | fix: Fix to certauth pains | iglocska | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -133,17 +133,19 @@ public function getUser(CakeRequest $request)\n \t\t\t\t// If $sync is true, allow the creation of the user from the certificate\n \t\t\t\t$sync = Configure::read('CertAuth.syncUser');\n \t\t\t\tif ($sync) {\n-\t\t\t\t\... | php | CWE-287 | [
"app/Plugin/CertAuth/Controller/Component/Auth/CertificateAuthenticate.php"
] | app/Plugin/CertAuth/Controller/Component/Auth/CertificateAuthenticate.php | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.