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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
read_SubStreamsInfo(struct archive_read *a, struct _7z_substream_info *ss, return (-1); if (UMAX_ENTRY < f[i].numUnpackStreams) return (-1); unpack_streams += (size_t)f[i].numUnpackStreams; } if ((p = header_bytes(a, 1)) == NULL) | read_SubStreamsInfo(struct archive_read *a, struct _7z_substream_info *ss, return (-1); if (UMAX_ENTRY < f[i].numUnpackStreams) return (-1); if (unpack_streams > SIZE_MAX - UMAX_ENTRY) { return (-1); } unpack_streams += (size_t)f[i].numUnpackStreams; } if ((p = header_bytes(a, 1)) == NULL) | CVE-2016-4300 | {'CWE-190'} | 6.4 | {'https://github.com/libarchive/libarchive/commit/e79ef306afe332faf22e9b442a2c6b59cb175573'} | nvd | Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a 7zip file with a large number of substreams, which triggers a heap-based buffer overflow. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/e79ef306afe332faf22e9b442a2c6b59cb175573 | e79ef306afe332faf22e9b442a2c6b59cb175573 | SINGLE | ['e79ef306afe332faf22e9b442a2c6b59cb175573'] | {'d85976e7ff4a062e1de6e04dab7bb78e3344768f'} | e79ef306afe332faf22e9b442a2c6b59cb175573 | 1 | 06/19/2016, 21:14:09 | Issue #718: Fix TALOS-CAN-152
If a 7-Zip archive declares a rediculously large number of substreams,
it can overflow an internal counter, leading a subsequent memory
allocation to be too small for the substream data.
Thanks to the Open Source and Threat Intelligence project at Cisco
for reporting this issue. | Tim Kientzle | {'com_1': {'author': 'mmatuska', 'datetime': '06/21/2016, 10:20:52', 'body': '[TALOS-2016-0152](http://www.talosintel.com/reports/TALOS-2016-0152)\nCVE-2016-4300'}} | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -2153,6 +2153,9 @@ read_SubStreamsInfo(struct archive_read *a, struct _7z_substream_info *ss,\n \t\t\t\treturn (-1);\n \t\t\tif (UMAX_ENTRY < f[i].numUnpackStreams)\n \t\t\t\treturn (-1);\n+\t\t\tif (unpack_streams > SIZE_MAX - UMAX_ENTRY)... | c | CWE-190 | [
"libarchive/archive_read_support_format_7zip.c"
] | libarchive/archive_read_support_format_7zip.c | 1 |
parse_device(dev_t *pdev, struct archive *a, char *val) "Missing number"); return ARCHIVE_WARN; } numbers[argc++] = (unsigned long)mtree_atol(&p); if (argc > MAX_PACK_ARGS) { archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT, "Too many arguments"); return ARCHIVE_WARN; } } if (... | parse_device(dev_t *pdev, struct archive *a, char *val) "Missing number"); return ARCHIVE_WARN; } if (argc >= MAX_PACK_ARGS) { archive_set_error(a, ARCHIVE_ERRNO_FILE_FORMAT, "Too many arguments"); return ARCHIVE_WARN; } numbers[argc++] = (unsigned long)mtree_atol(&p); } if ... | CVE-2016-4301 | {'CWE-119'} | 6.4 | {'https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77'} | nvd | Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a crafted mtree file. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/a550daeecf6bc689ade371349892ea17b5b97c77 | a550daeecf6bc689ade371349892ea17b5b97c77 | SINGLE | ['a550daeecf6bc689ade371349892ea17b5b97c77'] | {'74fe16d0a12b5ace3889dca24b586f13a6036a08'} | a550daeecf6bc689ade371349892ea17b5b97c77 | 1 | 06/10/2016, 14:54:43 | Fix libarchive/archive_read_support_format_mtree.c:1388:11: error: array subscript is above array bounds | mfont | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1385,12 +1385,12 @@ parse_device(dev_t *pdev, struct archive *a, char *val)\n \t\t\t\t \"Missing number\");\n \t\t\t\treturn ARCHIVE_WARN;\n \t\t\t}\n-\t\t\tnumbers[argc++] = (unsigned long)mtree_atol(&p);\n-\t\t\tif (argc > MAX_PACK_A... | c | CWE-119 | [
"libarchive/archive_read_support_format_mtree.c"
] | libarchive/archive_read_support_format_mtree.c | 1 |
parse_codes(struct archive_read *a) rar->range_dec.Stream = &rar->bytein; __archive_ppmd7_functions.Ppmd7_Construct(&rar->ppmd7_context); if (!__archive_ppmd7_functions.Ppmd7_Alloc(&rar->ppmd7_context, rar->dictionary_size, &g_szalloc)) { | parse_codes(struct archive_read *a) rar->range_dec.Stream = &rar->bytein; __archive_ppmd7_functions.Ppmd7_Construct(&rar->ppmd7_context); if (rar->dictionary_size == 0) { archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, "Invalid zero dictionary size"); ... | CVE-2016-4302 | {'CWE-119'} | 6.4 | {'https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700'} | nvd | Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 allows remote attackers to execute arbitrary code via a RAR file with a zero-sized dictionary. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/05caadc7eedbef471ac9610809ba683f0c698700 | 05caadc7eedbef471ac9610809ba683f0c698700 | SINGLE | ['05caadc7eedbef471ac9610809ba683f0c698700'] | {'e79ef306afe332faf22e9b442a2c6b59cb175573'} | 05caadc7eedbef471ac9610809ba683f0c698700 | 1 | 06/19/2016, 21:21:42 | Issue 719: Fix for TALOS-CAN-154
A RAR file with an invalid zero dictionary size was not being
rejected, leading to a zero-sized allocation for the dictionary
storage which was then overwritten during the dictionary initialization.
Thanks to the Open Source and Threat Intelligence project at Cisco for
reporting this... | Tim Kientzle | {'com_1': {'author': 'mmatuska', 'datetime': '06/21/2016, 10:22:17', 'body': '[TALOS-2016-0154](http://www.talosintel.com/reports/TALOS-2016-0154)\nCVE-2016-4302'}} | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -2127,6 +2127,12 @@ parse_codes(struct archive_read *a)\n rar->range_dec.Stream = &rar->bytein;\n __archive_ppmd7_functions.Ppmd7_Construct(&rar->ppmd7_context);\n \n+ if (rar->dictionary_size == 0) {\n+\t archive_set... | c | CWE-119 | [
"libarchive/archive_read_support_format_rar.c"
] | libarchive/archive_read_support_format_rar.c | 1 |
public static function start($lifetime = 0, $path = '/', $domain = null, $httpOn if (session_id() == '') { ini_set('session.save_handler', 'user'); ini_set('session.gc_maxlifetime', $lifetime); ini_set('session.gc_probability', '1'); ini_set(... | public static function start($lifetime = 0, $path = '/', $domain = null, $httpOn if (session_id() == '') { ini_set('session.save_handler', 'user'); ini_set('session.use_trans_sid', '0'); ini_set('session.use_strict_mode', '1'); ini_set('sessi... | CVE-2016-4309 | {'NVD-CWE-Other', 'CWE-362'} | 10 | {'https://github.com/symphonycms/symphony-2/commit/b329a14adc40868965076a77210452e396243dcd'} | nvd | Session fixation vulnerability in Symphony CMS 2.6.7, when session.use_only_cookies is disabled, allows remote attackers to hijack web sessions via the PHPSESSID parameter. | 2016-06-30 | 1 | https://github.com/symphonycms/symphony-2 | https://github.com/symphonycms/symphony-2/commit/b329a14adc40868965076a77210452e396243dcd | b329a14adc40868965076a77210452e396243dcd | SINGLE | ['b329a14adc40868965076a77210452e396243dcd'] | {'6c73f63d80d1c536d2f7f1c6ef2c516eacf68308'} | b329a14adc40868965076a77210452e396243dcd | 1 | 05/23/2016, 18:09:34 | Better php.ini overrides for insecure setups
This change is to protect our users against a poorly setup server. PHP
can allow pretty scary things security-wise, so it's best to make sure
things that can only have one valid setting should be enforced.
Thanks to @hyp3rlinx for this. | nitriques | {'com_1': {'author': 'nitriques', 'datetime': '05/23/2016, 18:15:44', 'body': 'cc @michael-e do you see any problems with that commit ?'}, 'com_2': {'author': 'michael-e', 'datetime': '05/23/2016, 18:51:12', 'body': "I have always switched off `trans_sid` if possible. Regarding the other two parameters, I don't know mu... | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -58,6 +58,9 @@ public static function start($lifetime = 0, $path = '/', $domain = null, $httpOn\n \n if (session_id() == '') {\n ini_set('session.save_handler', 'user');\n+ ini_set('session.use_tr... | php | CWE-362 | [
"symphony/lib/core/class.session.php"
] | symphony/lib/core/class.session.php | 1 |
static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu) if (is_guest_mode(vcpu)) msr_bitmap = vmx_msr_bitmap_nested; else if (vcpu->arch.apic_base & X2APIC_ENABLE) { if (is_long_mode(vcpu)) msr_bitmap = vmx_msr_bitmap_longmode_x2apic; else static void vmx_refresh_apicv_exec_ctrl(struct kvm_vcpu *vcpu) struc... | static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu) if (is_guest_mode(vcpu)) msr_bitmap = vmx_msr_bitmap_nested; else if (cpu_has_secondary_exec_ctrls() && (vmcs_read32(SECONDARY_VM_EXEC_CONTROL) & SECONDARY_EXEC_VIRTUALIZE_X2APIC_MODE)) { if (is_long_mode(vcpu)) msr_bitmap = vmx_msr_bitmap_longmode... | CVE-2016-4440 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/3ce424e45411cf5a13105e0386b6ecf6eeb4f66f'} | nvd | arch/x86/kvm/vmx.c in the Linux kernel through 4.6.3 mishandles the APICv on/off state, which allows guest OS users to obtain direct APIC MSR access on the host OS, and consequently cause a denial of service (host OS crash) or possibly execute arbitrary code on the host OS, via x2APIC mode. | 2016-06-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/3ce424e45411cf5a13105e0386b6ecf6eeb4f66f | 3ce424e45411cf5a13105e0386b6ecf6eeb4f66f | SINGLE | ['3ce424e45411cf5a13105e0386b6ecf6eeb4f66f'] | {'079d08555cd116e3e04cb588aad1fd6f08b2a31b'} | 3ce424e45411cf5a13105e0386b6ecf6eeb4f66f | 1 | 05/18/2016, 14:48:20 | kvm:vmx: more complete state update on APICv on/off
The function to update APICv on/off state (in particular, to deactivate
it when enabling Hyper-V SynIC) is incomplete: it doesn't adjust
APICv-related fields among secondary processor-based VM-execution
controls. As a result, Windows 2012 guests get stuck when SynIC... | Roman Kagan | null | {'additions': 30, 'deletions': 18, 'total': 48} | [
{
"additions": 30,
"changes": 48,
"deletions": 18,
"patch": "@@ -2418,7 +2418,9 @@ static void vmx_set_msr_bitmap(struct kvm_vcpu *vcpu)\n \n \tif (is_guest_mode(vcpu))\n \t\tmsr_bitmap = vmx_msr_bitmap_nested;\n-\telse if (vcpu->arch.apic_base & X2APIC_ENABLE) {\n+\telse if (cpu_has_secondary_exec_... | c | CWE-264 | [
"arch/x86/kvm/vmx.c"
] | arch/x86/kvm/vmx.c | 1 |
void xmlrpc_char_encode(char *outbuffer, const char *s1) s->append_char(s, c); } } memcpy(outbuffer, s->str, XMLRPC_BUFSIZE); } static void xmlrpc_append_char_encode(mowgli_string_t *s, const char *s1) | void xmlrpc_char_encode(char *outbuffer, const char *s1) s->append_char(s, c); } } s->append_char(s, 0); strncpy(outbuffer, s->str, XMLRPC_BUFSIZE); } static void xmlrpc_append_char_encode(mowgli_string_t *s, const char *s1) | CVE-2016-4478 | {'CWE-119'} | 2.9 | {'https://github.com/atheme/atheme/commit/87580d767868360d2fed503980129504da84b63e'} | nvd | Buffer overflow in the xmlrpc_char_encode function in modules/transport/xmlrpc/xmlrpclib.c in Atheme before 7.2.7 allows remote attackers to cause a denial of service via vectors related to XMLRPC response encoding. | 2016-06-13 | 1 | https://github.com/atheme/atheme | https://github.com/atheme/atheme/commit/87580d767868360d2fed503980129504da84b63e | 87580d767868360d2fed503980129504da84b63e | SINGLE | ['87580d767868360d2fed503980129504da84b63e'] | {'2d4af7aa0608ccb66627f585f082c52f8dc4e4d2'} | 87580d767868360d2fed503980129504da84b63e | 1 | 01/09/2016, 18:58:58 | Do not copy more bytes than were allocated | Hans-Christian Esperer | {'com_1': {'author': 'kaniini', 'datetime': '02/02/2018, 20:44:42', 'body': "this is wrong.\r\n\r\nshould be something like:\r\n\r\n```\r\n*((char *) mempcpy (outbuffer, s->str, s->pos)) = '\\0';\r\n```\r\n\r\ndo not just change it to strlcpy, that is wrong too\r\n\r\nalso, you do not need the `s->append_char(s, 0)` th... | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -777,8 +777,9 @@ void xmlrpc_char_encode(char *outbuffer, const char *s1)\n \t\t\ts->append_char(s, c);\n \t\t}\n \t}\n+\ts->append_char(s, 0);\n \n-\tmemcpy(outbuffer, s->str, XMLRPC_BUFSIZE);\n+\tstrncpy(outbuffer, s->str, XMLRPC_BUFSIZE... | c | CWE-119 | [
"modules/transport/xmlrpc/xmlrpclib.c"
] | modules/transport/xmlrpc/xmlrpclib.c | 1 |
static int proc_getdriver(struct usb_dev_state *ps, void __user *arg) static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg) { struct usbdevfs_connectinfo ci = { .devnum = ps->dev->devnum, .slow = ps->dev->speed == USB_SPEED_LOW }; if (copy_to_user(arg, &ci, sizeof(ci))) return -EFAULT; | static int proc_getdriver(struct usb_dev_state *ps, void __user *arg) static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg) { struct usbdevfs_connectinfo ci; memset(&ci, 0, sizeof(ci)); ci.devnum = ps->dev->devnum; ci.slow = ps->dev->speed == USB_SPEED_LOW; if (copy_to_user(arg, &ci, sizeof(c... | CVE-2016-4482 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/681fef8380eb818c0b845fca5d2ab1dcbab114ee'} | nvd | The proc_connectinfo function in drivers/usb/core/devio.c in the Linux kernel through 4.6 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via a crafted USBDEVFS_CONNECTINFO ioctl call. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/681fef8380eb818c0b845fca5d2ab1dcbab114ee | 681fef8380eb818c0b845fca5d2ab1dcbab114ee | SINGLE | ['681fef8380eb818c0b845fca5d2ab1dcbab114ee'] | {'973986126a4152ab83d09263a02bf7d2d1bf3b6e'} | 681fef8380eb818c0b845fca5d2ab1dcbab114ee | 1 | 05/03/2016, 20:32:16 | USB: usbfs: fix potential infoleak in devio
The stack object “ci” has a total size of 8 bytes. Its last 3 bytes
are padding bytes which are not initialized and leaked to userland
via “copy_to_user”.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Kangjie Lu | null | {'additions': 5, 'deletions': 4, 'total': 9} | [
{
"additions": 5,
"changes": 9,
"deletions": 4,
"patch": "@@ -1316,10 +1316,11 @@ static int proc_getdriver(struct usb_dev_state *ps, void __user *arg)\n \n static int proc_connectinfo(struct usb_dev_state *ps, void __user *arg)\n {\n-\tstruct usbdevfs_connectinfo ci = {\n-\t\t.devnum = ps->dev->dev... | c | CWE-200 | [
"drivers/usb/core/devio.c"
] | drivers/usb/core/devio.c | 1 |
static void llc_cmsg_rcv(struct msghdr *msg, struct sk_buff *skb) if (llc->cmsg_flags & LLC_CMSG_PKTINFO) { struct llc_pktinfo info; info.lpi_ifindex = llc_sk(skb->sk)->dev->ifindex; llc_pdu_decode_dsap(skb, &info.lpi_sap); llc_pdu_decode_da(skb, info.lpi_mac); | static void llc_cmsg_rcv(struct msghdr *msg, struct sk_buff *skb) if (llc->cmsg_flags & LLC_CMSG_PKTINFO) { struct llc_pktinfo info; memset(&info, 0, sizeof(info)); info.lpi_ifindex = llc_sk(skb->sk)->dev->ifindex; llc_pdu_decode_dsap(skb, &info.lpi_sap); llc_pdu_decode_da(skb, info.lpi_mac); | CVE-2016-4485 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/b8670c09f37bdf2847cc44f36511a53afc6161fd'} | nvd | The llc_cmsg_rcv function in net/llc/af_llc.c in the Linux kernel before 4.5.5 does not initialize a certain data structure, which allows attackers to obtain sensitive information from kernel stack memory by reading a message. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/b8670c09f37bdf2847cc44f36511a53afc6161fd | b8670c09f37bdf2847cc44f36511a53afc6161fd | SINGLE | ['b8670c09f37bdf2847cc44f36511a53afc6161fd'] | {'1c021bb717a70aaeaa4b25c91f43c2aeddd922de'} | b8670c09f37bdf2847cc44f36511a53afc6161fd | 1 | 05/03/2016, 20:35:05 | net: fix infoleak in llc
The stack object “info” has a total size of 12 bytes. Its last byte
is padding which is not initialized and leaked via “put_cmsg”.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net> | Kangjie Lu | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -626,6 +626,7 @@ static void llc_cmsg_rcv(struct msghdr *msg, struct sk_buff *skb)\n \tif (llc->cmsg_flags & LLC_CMSG_PKTINFO) {\n \t\tstruct llc_pktinfo info;\n \n+\t\tmemset(&info, 0, sizeof(info));\n \t\tinfo.lpi_ifindex = llc_sk(skb->s... | c | CWE-200 | [
"net/llc/af_llc.c"
] | net/llc/af_llc.c | 1 |
static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb, static int rtnl_fill_link_ifmap(struct sk_buff *skb, struct net_device *dev) { struct rtnl_link_ifmap map = { .mem_start = dev->mem_start, .mem_end = dev->mem_end, .base_addr = dev->base_addr, .irq = dev->irq, .dma ... | static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb, static int rtnl_fill_link_ifmap(struct sk_buff *skb, struct net_device *dev) { struct rtnl_link_ifmap map; memset(&map, 0, sizeof(map)); map.mem_start = dev->mem_start; map.mem_end = dev->mem_end; map.base_addr = dev->base_addr; map.ir... | CVE-2016-4486 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/5f8e44741f9f216e33736ea4ec65ca9ac03036e6'} | nvd | The rtnl_fill_link_ifmap function in net/core/rtnetlink.c in the Linux kernel before 4.5.5 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory by reading a Netlink message. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f8e44741f9f216e33736ea4ec65ca9ac03036e6 | 5f8e44741f9f216e33736ea4ec65ca9ac03036e6 | SINGLE | ['5f8e44741f9f216e33736ea4ec65ca9ac03036e6'] | {'b8670c09f37bdf2847cc44f36511a53afc6161fd'} | 5f8e44741f9f216e33736ea4ec65ca9ac03036e6 | 1 | 05/03/2016, 20:46:24 | net: fix infoleak in rtnetlink
The stack object “map” has a total size of 32 bytes. Its last 4
bytes are padding generated by compiler. These padding bytes are
not initialized and sent out via “nla_put”.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net> | Kangjie Lu | null | {'additions': 10, 'deletions': 8, 'total': 18} | [
{
"additions": 10,
"changes": 18,
"deletions": 8,
"patch": "@@ -1180,14 +1180,16 @@ static noinline_for_stack int rtnl_fill_vfinfo(struct sk_buff *skb,\n \n static int rtnl_fill_link_ifmap(struct sk_buff *skb, struct net_device *dev)\n {\n-\tstruct rtnl_link_ifmap map = {\n-\t\t.mem_start = dev->m... | c | CWE-200 | [
"net/core/rtnetlink.c"
] | net/core/rtnetlink.c | 1 |
static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer return 0; } /** * __verify_length() - Verify that the bytesused value for each plane fits in * the plane length and that the data offset doesn't exceed the bytesused value. static int __fill_vb2_buffer(struct vb2_buffer *vb, } static... | static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer return 0; } static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb) { return __verify_planes_array(vb, pb); } /** * __verify_length() - Verify that the bytesused value for each plane fits in * the plane length a... | CVE-2016-4568 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab'} | nvd | drivers/media/v4l2-core/videobuf2-v4l2.c in the Linux kernel before 4.5.3 allows local users to cause a denial of service (kernel memory write operation) or possibly have unspecified other impact via a crafted number of planes in a VIDIOC_DQBUF ioctl call. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab | 2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab | SINGLE | ['2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab'] | {'e7e0c3e26587749b62d17b9dd0532874186c77f7'} | 2c1f6951a8a82e6de0d82b1158b5e493fc6c54ab | 1 | 04/03/2016, 19:31:03 | [media] videobuf2-v4l2: Verify planes array in buffer dequeueing
When a buffer is being dequeued using VIDIOC_DQBUF IOCTL, the exact buffer
which will be dequeued is not known until the buffer has been removed from
the queue. The number of planes is specific to a buffer, not to the queue.
This does lead to the situat... | Sakari Ailus | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -74,6 +74,11 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_buffer\n \treturn 0;\n }\n \n+static int __verify_planes_array_core(struct vb2_buffer *vb, const void *pb)\n+{\n+\treturn __verify_planes_array(vb, p... | c | CWE-119 | [
"drivers/media/v4l2-core/videobuf2-v4l2.c"
] | drivers/media/v4l2-core/videobuf2-v4l2.c | 1 |
static int snd_timer_user_params(struct file *file, if (tu->timeri->flags & SNDRV_TIMER_IFLG_EARLY_EVENT) { if (tu->tread) { struct snd_timer_tread tread; tread.event = SNDRV_TIMER_EVENT_EARLY; tread.tstamp.tv_sec = 0; tread.tstamp.tv_nsec = 0; | static int snd_timer_user_params(struct file *file, if (tu->timeri->flags & SNDRV_TIMER_IFLG_EARLY_EVENT) { if (tu->tread) { struct snd_timer_tread tread; memset(&tread, 0, sizeof(tread)); tread.event = SNDRV_TIMER_EVENT_EARLY; tread.tstamp.tv_sec = 0; tread.tstamp.tv_nsec = 0; | CVE-2016-4569 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/cec8f96e49d9be372fdb0c3836dcf31ec71e457e'} | nvd | The snd_timer_user_params function in sound/core/timer.c in the Linux kernel through 4.6 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via crafted use of the ALSA timer interface. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/cec8f96e49d9be372fdb0c3836dcf31ec71e457e | cec8f96e49d9be372fdb0c3836dcf31ec71e457e | SINGLE | ['cec8f96e49d9be372fdb0c3836dcf31ec71e457e'] | {'242658ff99ab9d87e704475ef78c3102ead344cf'} | cec8f96e49d9be372fdb0c3836dcf31ec71e457e | 1 | 05/03/2016, 20:44:07 | ALSA: timer: Fix leak in SNDRV_TIMER_IOCTL_PARAMS
The stack object “tread” has a total size of 32 bytes. Its field
“event” and “val” both contain 4 bytes padding. These 8 bytes
padding bytes are sent to user without being initialized.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Takashi Iwai <tiwai@suse... | Kangjie Lu | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -1737,6 +1737,7 @@ static int snd_timer_user_params(struct file *file,\n \tif (tu->timeri->flags & SNDRV_TIMER_IFLG_EARLY_EVENT) {\n \t\tif (tu->tread) {\n \t\t\tstruct snd_timer_tread tread;\n+\t\t\tmemset(&tread, 0, sizeof(tread));\n \t\... | c | CWE-200 | [
"sound/core/timer.c"
] | sound/core/timer.c | 1 |
int x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk, memset(&theirs, 0, sizeof(theirs)); memcpy(new, ours, sizeof(*new)); len = x25_parse_facilities(skb, &theirs, dte, &x25->vc_facil_mask); if (len < 0) | int x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk, memset(&theirs, 0, sizeof(theirs)); memcpy(new, ours, sizeof(*new)); memset(dte, 0, sizeof(*dte)); len = x25_parse_facilities(skb, &theirs, dte, &x25->vc_facil_mask); if (len < 0) | CVE-2016-4580 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/79e48650320e6fba48369fccf13fd045315b19b8'} | nvd | The x25_negotiate_facilities function in net/x25/x25_facilities.c in the Linux kernel before 4.5.5 does not properly initialize a certain data structure, which allows attackers to obtain sensitive information from kernel stack memory via an X.25 Call Request. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/79e48650320e6fba48369fccf13fd045315b19b8 | 79e48650320e6fba48369fccf13fd045315b19b8 | SINGLE | ['79e48650320e6fba48369fccf13fd045315b19b8'] | {'7fa816b92c52e2c304f2ff6401e0d51e1d229ca5'} | 79e48650320e6fba48369fccf13fd045315b19b8 | 1 | 05/08/2016, 16:10:14 | net: fix a kernel infoleak in x25 module
Stack object "dte_facilities" is allocated in x25_rx_call_request(),
which is supposed to be initialized in x25_negotiate_facilities.
However, 5 fields (8 bytes in total) are not initialized. This
object is then copied to userland via copy_to_user, thus infoleak
occurs.
Signed... | Kangjie Lu | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -277,6 +277,7 @@ int x25_negotiate_facilities(struct sk_buff *skb, struct sock *sk,\n \n \tmemset(&theirs, 0, sizeof(theirs));\n \tmemcpy(new, ours, sizeof(*new));\n+\tmemset(dte, 0, sizeof(*dte));\n \n \tlen = x25_parse_facilities(skb, &t... | c | CWE-200 | [
"net/x25/x25_facilities.c"
] | net/x25/x25_facilities.c | 1 |
int ppp_register_net_channel(struct net *net, struct ppp_channel *chan) pch->ppp = NULL; pch->chan = chan; pch->chan_net = net; chan->ppp = pch; init_ppp_file(&pch->file, CHANNEL); pch->file.hdrlen = chan->hdrlen; ppp_unregister_channel(struct ppp_channel *chan) spin_lock_bh(&pn->all_channels_lock); list_del(... | int ppp_register_net_channel(struct net *net, struct ppp_channel *chan) pch->ppp = NULL; pch->chan = chan; pch->chan_net = get_net(net); chan->ppp = pch; init_ppp_file(&pch->file, CHANNEL); pch->file.hdrlen = chan->hdrlen; ppp_unregister_channel(struct ppp_channel *chan) spin_lock_bh(&pn->all_channels_lock); ... | CVE-2016-4805 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/1f461dcdd296eecedaffffc6bae2bfa90bd7eb89'} | nvd | Use-after-free vulnerability in drivers/net/ppp/ppp_generic.c in the Linux kernel before 4.5.2 allows local users to cause a denial of service (memory corruption and system crash, or spinlock) or possibly have unspecified other impact by removing a network namespace, related to the ppp_register_net_channel and ppp_unre... | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1f461dcdd296eecedaffffc6bae2bfa90bd7eb89 | 1f461dcdd296eecedaffffc6bae2bfa90bd7eb89 | SINGLE | ['1f461dcdd296eecedaffffc6bae2bfa90bd7eb89'] | {'5197f3499c470ccc4b247db66ff883e597e3adda'} | 1f461dcdd296eecedaffffc6bae2bfa90bd7eb89 | 1 | 03/23/2016, 15:38:55 | ppp: take reference on channels netns
Let channels hold a reference on their network namespace.
Some channel types, like ppp_async and ppp_synctty, can have their
userspace controller running in a different namespace. Therefore they
can't rely on them to preclude their netns from being removed from
under them.
======... | Guillaume Nault | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -2307,7 +2307,7 @@ int ppp_register_net_channel(struct net *net, struct ppp_channel *chan)\n \n \tpch->ppp = NULL;\n \tpch->chan = chan;\n-\tpch->chan_net = net;\n+\tpch->chan_net = get_net(net);\n \tchan->ppp = pch;\n \tinit_ppp_file(&pch... | c | CWE-416 | [
"drivers/net/ppp/ppp_generic.c"
] | drivers/net/ppp/ppp_generic.c | 1 |
archive_read_format_cpio_read_header(struct archive_read *a, /* If this is a symlink, read the link contents. */ if (archive_entry_filetype(entry) == AE_IFLNK) { h = __archive_read_ahead(a, (size_t)cpio->entry_bytes_remaining, NULL); if (h == NULL) | archive_read_format_cpio_read_header(struct archive_read *a, /* If this is a symlink, read the link contents. */ if (archive_entry_filetype(entry) == AE_IFLNK) { if (cpio->entry_bytes_remaining > 1024 * 1024) { archive_set_error(&a->archive, ENOMEM, "Rejecting malformed cpio archive: symlink contents ex... | CVE-2016-4809 | {'CWE-20'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/fd7e0c02e272913a0a8b6d492c7260dfca0b1408'} | nvd | The archive_read_format_cpio_read_header function in archive_read_support_format_cpio.c in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) via a CPIO archive with a large symlink. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/fd7e0c02e272913a0a8b6d492c7260dfca0b1408 | fd7e0c02e272913a0a8b6d492c7260dfca0b1408 | SINGLE | ['fd7e0c02e272913a0a8b6d492c7260dfca0b1408'] | {'f48d99b56c525c3035de63a36e3321701b58b3c1'} | fd7e0c02e272913a0a8b6d492c7260dfca0b1408 | 1 | 05/14/2016, 19:37:37 | Reject cpio symlinks that exceed 1MB | Tim Kientzle | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -401,6 +401,11 @@ archive_read_format_cpio_read_header(struct archive_read *a,\n \n \t/* If this is a symlink, read the link contents. */\n \tif (archive_entry_filetype(entry) == AE_IFLNK) {\n+\t\tif (cpio->entry_bytes_remaining > 1024 * 1... | c | CWE-20 | [
"libarchive/archive_read_support_format_cpio.c"
] | libarchive/archive_read_support_format_cpio.c | 1 |
* License (version 3) as published by the FSF - Free Software * Foundation */ /* OS PHP init */ if (!function_exists('os_handle_start')) { /* Getting search id */ if(isset($_POST['searchid'])) { if(preg_match('/[a-z0-9]+/', $_POST['searchid'])) { $USER_searchid = $_POST['searchid']; } /*... | * License (version 3) as published by the FSF - Free Software * Foundation */ /* OS PHP init */ if (!function_exists('os_handle_start')) { /* Getting search id */ if(isset($_POST['searchid'])) { if(preg_match('/^[a-z0-9]+$/', $_POST['searchid'])) { $USER_searchid = $_POST['searchid']; } /* Read... | CVE-2016-4847 | {'CWE-79'} | 2.9 | {'https://github.com/ossec/ossec-wui/commit/b4dcbba7a8eb09ba9d38fc69807a8861255736d0'} | nvd | Cross-site scripting (XSS) vulnerability in site/search.php in OSSEC Web UI before 0.9 allows remote attackers to inject arbitrary web script or HTML by leveraging an unanchored regex. | 2017-04-20 | 1 | https://github.com/ossec/ossec-wui | https://github.com/ossec/ossec-wui/commit/b4dcbba7a8eb09ba9d38fc69807a8861255736d0 | b4dcbba7a8eb09ba9d38fc69807a8861255736d0 | SINGLE | ['b4dcbba7a8eb09ba9d38fc69807a8861255736d0'] | {'3bc1d49b9bbdbbca71aa21f6cc7bc570b6355bf9'} | b4dcbba7a8eb09ba9d38fc69807a8861255736d0 | 1 | 12/29/2015, 19:20:30 | Unanchored regex would allow badness through. This patch eliminates a
XSS identified by JPCERT Reference number: JVN#58455472 | Brad Lhotsky | null | {'additions': 36, 'deletions': 36, 'total': 72} | [
{
"additions": 36,
"changes": 72,
"deletions": 36,
"patch": "@@ -9,7 +9,7 @@\n * License (version 3) as published by the FSF - Free Software\n * Foundation\n */\n- \n+\n /* OS PHP init */\n if (!function_exists('os_handle_start'))\n {\n@@ -54,7 +54,7 @@\n /* Getting search id */\n if(isset(... | php | CWE-79 | [
"site/search.php"
] | site/search.php | 1 |
int get_rock_ridge_filename(struct iso_directory_record *de, int retnamlen = 0; int truncate = 0; int ret = 0; if (!ISOFS_SB(inode->i_sb)->s_rock) return 0; int get_rock_ridge_filename(struct iso_directory_record *de, rr->u.NM.flags); break; } if ((strlen(retname) + rr->len - 5) >= 254) { tru... | int get_rock_ridge_filename(struct iso_directory_record *de, int retnamlen = 0; int truncate = 0; int ret = 0; char *p; int len; if (!ISOFS_SB(inode->i_sb)->s_rock) return 0; int get_rock_ridge_filename(struct iso_directory_record *de, rr->u.NM.flags); break; } len = rr->len - 5; if (retnaml... | CVE-2016-4913 | {'CWE-200'} | 10 | {'https://github.com/torvalds/linux/commit/99d825822eade8d827a1817357cbf3f889a552d6'} | nvd | The get_rock_ridge_filename function in fs/isofs/rock.c in the Linux kernel before 4.5.5 mishandles NM (aka alternate name) entries containing \0 characters, which allows local users to obtain sensitive information from kernel memory or possibly have unspecified other impact via a crafted isofs filesystem. | 2016-05-23 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/99d825822eade8d827a1817357cbf3f889a552d6 | 99d825822eade8d827a1817357cbf3f889a552d6 | SINGLE | ['99d825822eade8d827a1817357cbf3f889a552d6'] | {'6a480a7842545ec520a91730209ec0bae41694c1'} | 99d825822eade8d827a1817357cbf3f889a552d6 | 1 | 05/05/2016, 20:25:35 | get_rock_ridge_filename(): handle malformed NM entries
Payloads of NM entries are not supposed to contain NUL. When we run
into such, only the part prior to the first NUL goes into the
concatenation (i.e. the directory entry name being encoded by a bunch
of NM entries). We do stop when the amount collected so far + ... | Al Viro | null | {'additions': 10, 'deletions': 3, 'total': 13} | [
{
"additions": 10,
"changes": 13,
"deletions": 3,
"patch": "@@ -203,6 +203,8 @@ int get_rock_ridge_filename(struct iso_directory_record *de,\n \tint retnamlen = 0;\n \tint truncate = 0;\n \tint ret = 0;\n+\tchar *p;\n+\tint len;\n \n \tif (!ISOFS_SB(inode->i_sb)->s_rock)\n \t\treturn 0;\n@@ -267,12 ... | c | CWE-200 | [
"fs/isofs/rock.c"
] | fs/isofs/rock.c | 1 |
static inline unsigned int get_next_char( else MB_FAILURE(pos, 4); } this_char = ((c & 0x07) << 18) | ((str[pos + 1] & 0x3f) << 12) | ((str[pos + 2] & 0x3f) << 6) | (str[pos + 3] & 0x3f); if (this_char < 0x10000 || this_char > 0x10FFFF) { /* non-shortest form or outside range */ MB_FAI... | static inline unsigned int get_next_char( else MB_FAILURE(pos, 4); } this_char = ((c & 0x07) << 18) | ((str[pos + 1] & 0x3f) << 12) | ((str[pos + 2] & 0x3f) << 6) | (str[pos + 3] & 0x3f); if (this_char < 0x10000 || this_char > 0x10FFFF) { /* non-shortest form or outside range */ MB_FAILURE... | CVE-2016-5094 | {'CWE-190'} | 6.4 | {'https://github.com/php/php-src/commit/0da8b8b801f9276359262f1ef8274c7812d3dfda'} | nvd | Integer overflow in the php_html_entities function in ext/standard/html.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact by triggering a large output string from the htmlspecialchars function. | 2016-08-07 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/0da8b8b801f9276359262f1ef8274c7812d3dfda | 0da8b8b801f9276359262f1ef8274c7812d3dfda | SINGLE | ['0da8b8b801f9276359262f1ef8274c7812d3dfda'] | {'41fc3c76e97a36ff3b505da7d704ca17bb171fdf'} | 0da8b8b801f9276359262f1ef8274c7812d3dfda | 1 | 05/16/2016, 06:26:51 | Fix bug #72135 - don't create strings with lengths outside int range | Stanislav Malyshev | null | {'additions': 27, 'deletions': 23, 'total': 50} | [
{
"additions": 27,
"changes": 50,
"deletions": 23,
"patch": "@@ -163,7 +163,7 @@ static inline unsigned int get_next_char(\n \t\t\t\t\telse\n \t\t\t\t\t\tMB_FAILURE(pos, 4);\n \t\t\t\t}\n-\t\t\t\t\n+\n \t\t\t\tthis_char = ((c & 0x07) << 18) | ((str[pos + 1] & 0x3f) << 12) | ((str[pos + 2] & 0x3f) <<... | c | CWE-190 | [
"ext/standard/html.c"
] | ext/standard/html.c | 1 |
function PMA_countLines($filename) foreach (explode('/', $filename) as $part) { if ($part == '..') { $depath--; } elseif ($part != '.') { $depath++; } if ($depath < 0) { | function PMA_countLines($filename) foreach (explode('/', $filename) as $part) { if ($part == '..') { $depath--; } elseif ($part != '.' || $part === '') { $depath++; } if ($depath < 0) { | CVE-2016-5098 | {'CWE-22'} | 2.9 | {'https://github.com/phpmyadmin/phpmyadmin/commit/d2dc9481d2af25b035778c67eaf0bfd2d2c59dd8'} | nvd | Directory traversal vulnerability in libraries/error_report.lib.php in phpMyAdmin before 4.6.2-prerelease allows remote attackers to determine the existence of arbitrary files by triggering an error. | 2016-07-05 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/d2dc9481d2af25b035778c67eaf0bfd2d2c59dd8 | d2dc9481d2af25b035778c67eaf0bfd2d2c59dd8 | SINGLE | ['d2dc9481d2af25b035778c67eaf0bfd2d2c59dd8'] | {'94ec333a35f534d258c178f3ed8cc9d8974a7b7a'} | d2dc9481d2af25b035778c67eaf0bfd2d2c59dd8 | 1 | 04/29/2016, 13:28:32 | Fix possible path existence disclossure
On non released versions (where line counts are not precalculated) it
was possible to check for file existence due to limited checks for
supplied path.
Signed-off-by: Michal Čihař <michal@cihar.com> | Michal Čihař | {'com_1': {'author': 'madhuracj', 'datetime': '04/29/2016, 23:37:55', 'body': "Shouldn't this be `&& $part != ''`?"}, 'com_2': {'author': 'nijel', 'datetime': '05/10/2016, 12:45:52', 'body': 'No, we need to skip both empty string and . as both mean current directory.'}} | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -238,7 +238,7 @@ function PMA_countLines($filename)\n foreach (explode('/', $filename) as $part) {\n if ($part == '..') {\n $depath--;\n- } elseif ($part != '.') {\n+ } elseif ($part != '.' || $part ==... | php | CWE-22 | [
"libraries/error_report.lib.php"
] | libraries/error_report.lib.php | 1 |
int fpm_log_write(char *log_format) /* {{{ */ b += len2; len += len2; } continue; } | int fpm_log_write(char *log_format) /* {{{ */ b += len2; len += len2; } if (len >= FPM_LOG_BUFFER) { zlog(ZLOG_NOTICE, "the log buffer is full (%d). The access log request has been truncated.", FPM_LOG_BUFFER); len = FPM_LOG_BUFFER; break; } continue; } | CVE-2016-5114 | {'CWE-119', 'CWE-125'} | 4.9 | {'http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f'} | nvd | sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows attackers to obtain sensitive information from process memory or cause a denial of service (out-of-bounds read and buffer overflow) via a long string, as demonstr... | 2016-08-07 | 1 | http://github.com/php/php-src | http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f | 2721a0148649e07ed74468f097a28899741eb58f | SINGLE | ['2721a0148649e07ed74468f097a28899741eb58f'] | {'56839f5a76fe76c2856aef3ea2bdce98de847891'} | 2721a0148649e07ed74468f097a28899741eb58f | 1 | 12/08/2015, 08:10:07 | Fixed bug #70755: fpm_log.c memory leak and buffer overflow | Stanislav Malyshev | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -448,6 +448,11 @@ int fpm_log_write(char *log_format) /* {{{ */\n \t\t\t\tb += len2;\n \t\t\t\tlen += len2;\n \t\t\t}\n+\t\t\tif (len >= FPM_LOG_BUFFER) {\n+\t\t\t\tzlog(ZLOG_NOTICE, \"the log buffer is full (%d). The access log request ha... | c | CWE-125 | [
"sapi/fpm/fpm/fpm_log.c"
] | sapi/fpm/fpm/fpm_log.c | 1 |
int fpm_log_write(char *log_format) /* {{{ */ b += len2; len += len2; } continue; } | int fpm_log_write(char *log_format) /* {{{ */ b += len2; len += len2; } if (len >= FPM_LOG_BUFFER) { zlog(ZLOG_NOTICE, "the log buffer is full (%d). The access log request has been truncated.", FPM_LOG_BUFFER); len = FPM_LOG_BUFFER; break; } continue; } | CVE-2016-5114 | {'CWE-119', 'CWE-125'} | 4.9 | {'http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f'} | nvd | sapi/fpm/fpm/fpm_log.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows attackers to obtain sensitive information from process memory or cause a denial of service (out-of-bounds read and buffer overflow) via a long string, as demonstr... | 2016-08-07 | 1 | http://github.com/php/php-src | http://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f | 2721a0148649e07ed74468f097a28899741eb58f | SINGLE | ['2721a0148649e07ed74468f097a28899741eb58f'] | {'56839f5a76fe76c2856aef3ea2bdce98de847891'} | 2721a0148649e07ed74468f097a28899741eb58f | 1 | 12/08/2015, 08:10:07 | Fixed bug #70755: fpm_log.c memory leak and buffer overflow | Stanislav Malyshev | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -448,6 +448,11 @@ int fpm_log_write(char *log_format) /* {{{ */\n \t\t\t\tb += len2;\n \t\t\t\tlen += len2;\n \t\t\t}\n+\t\t\tif (len >= FPM_LOG_BUFFER) {\n+\t\t\t\tzlog(ZLOG_NOTICE, \"the log buffer is full (%d). The access log request ha... | c | CWE-119 | [
"sapi/fpm/fpm/fpm_log.c"
] | sapi/fpm/fpm/fpm_log.c | 1 |
BGD_DECLARE(gdImagePtr) gdImageCreateFromXbm(FILE * fd) /* {{{ gdCtxPrintf */ static void gdCtxPrintf(gdIOCtx * out, const char *format, ...) { char buf[4096]; int len; va_list args; static void gdCtxPrintf(gdIOCtx * out, const char *format, ...) } /* }}} */ /* {{{ gdImageXbmCtx */ BGD_DECLARE(void) gdImageXbmCtx... | BGD_DECLARE(gdImagePtr) gdImageCreateFromXbm(FILE * fd) /* {{{ gdCtxPrintf */ static void gdCtxPrintf(gdIOCtx * out, const char *format, ...) { char buf[1024]; int len; va_list args; static void gdCtxPrintf(gdIOCtx * out, const char *format, ...) } /* }}} */ /* The compiler will optimize strlen(constant) to a con... | CVE-2016-5116 | {'CWE-119'} | 4.9 | {'https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4'} | nvd | gd_xbm.c in the GD Graphics Library (aka libgd) before 2.2.0, as used in certain custom PHP 5.5.x configurations, allows context-dependent attackers to obtain sensitive information from process memory or cause a denial of service (stack-based buffer under-read and application crash) via a long name. | 2016-08-07 | 1 | https://github.com/libgd/libgd | https://github.com/libgd/libgd/commit/4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 | 4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 | SINGLE | ['4dc1a2d7931017d3625f2d7cff70a17ce58b53b4'] | {'b083ec17ad9cba4ad9fe7fac1c6a168d90dd1a31'} | 4dc1a2d7931017d3625f2d7cff70a17ce58b53b4 | 1 | 05/14/2016, 05:38:18 | xbm: avoid stack overflow (read) with large names #211
We use the name passed in to printf into a local stack buffer which is
limited to 4000 bytes. So given a large enough value, lots of stack
data is leaked. Rewrite the code to do simple memory copies with most
of the strings to avoid that issue, and only use stac... | Mike Frysinger | null | {'additions': 27, 'deletions': 7, 'total': 34} | [
{
"additions": 27,
"changes": 34,
"deletions": 7,
"patch": "@@ -180,7 +180,7 @@ BGD_DECLARE(gdImagePtr) gdImageCreateFromXbm(FILE * fd)\n /* {{{ gdCtxPrintf */\n static void gdCtxPrintf(gdIOCtx * out, const char *format, ...)\n {\n-\tchar buf[4096];\n+\tchar buf[1024];\n \tint len;\n \tva_list args;... | c | CWE-119 | [
"src/gd_xbm.c"
] | src/gd_xbm.c | 1 |
static int tipc_nl_compat_link_dump(struct tipc_nl_compat_msg *msg, link_info.dest = nla_get_flag(link[TIPC_NLA_LINK_DEST]); link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); strcpy(link_info.str, nla_data(link[TIPC_NLA_LINK_NAME])); return tipc_add_tlv(msg->rep, TIPC_TLV_LINK_INFO, &link_info, ... | static int tipc_nl_compat_link_dump(struct tipc_nl_compat_msg *msg, link_info.dest = nla_get_flag(link[TIPC_NLA_LINK_DEST]); link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); nla_strlcpy(link_info.str, nla_data(link[TIPC_NLA_LINK_NAME]), TIPC_MAX_LINK_NAME); return tipc_add_tlv(msg->rep, TIPC_TLV... | CVE-2016-5243 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/5d2be1422e02ccd697ccfcd45c85b4a26e6178e2'} | nvd | The tipc_nl_compat_link_dump function in net/tipc/netlink_compat.c in the Linux kernel through 4.6.3 does not properly copy a certain string, which allows local users to obtain sensitive information from kernel stack memory by reading a Netlink message. | 2016-06-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 | 5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 | SINGLE | ['5d2be1422e02ccd697ccfcd45c85b4a26e6178e2'] | {'ce25d66ad5f8d921bac5fe2d32d62fa30c0f9a70'} | 5d2be1422e02ccd697ccfcd45c85b4a26e6178e2 | 1 | 06/02/2016, 08:04:56 | tipc: fix an infoleak in tipc_nl_compat_link_dump
link_info.str is a char array of size 60. Memory after the NULL
byte is not initialized. Sending the whole object out can cause
a leak.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net> | Kangjie Lu | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -604,7 +604,8 @@ static int tipc_nl_compat_link_dump(struct tipc_nl_compat_msg *msg,\n \n \tlink_info.dest = nla_get_flag(link[TIPC_NLA_LINK_DEST]);\n \tlink_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP]));\n-\tstrcpy(link_info.str, ... | c | CWE-200 | [
"net/tipc/netlink_compat.c"
] | net/tipc/netlink_compat.c | 1 |
void rds_inc_info_copy(struct rds_incoming *inc, minfo.fport = inc->i_hdr.h_dport; } rds_info_copy(iter, &minfo, sizeof(minfo)); } | void rds_inc_info_copy(struct rds_incoming *inc, minfo.fport = inc->i_hdr.h_dport; } minfo.flags = 0; rds_info_copy(iter, &minfo, sizeof(minfo)); } | CVE-2016-5244 | {'CWE-200'} | 2.9 | {'https://github.com/torvalds/linux/commit/4116def2337991b39919f3b448326e21c40e0dbb'} | nvd | The rds_inc_info_copy function in net/rds/recv.c in the Linux kernel through 4.6.3 does not initialize a certain structure member, which allows remote attackers to obtain sensitive information from kernel stack memory by reading an RDS message. | 2016-06-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4116def2337991b39919f3b448326e21c40e0dbb | 4116def2337991b39919f3b448326e21c40e0dbb | SINGLE | ['4116def2337991b39919f3b448326e21c40e0dbb'] | {'5d2be1422e02ccd697ccfcd45c85b4a26e6178e2'} | 4116def2337991b39919f3b448326e21c40e0dbb | 1 | 06/02/2016, 08:11:20 | rds: fix an infoleak in rds_inc_info_copy
The last field "flags" of object "minfo" is not initialized.
Copying this object out may leak kernel stack data.
Assign 0 to it to avoid leak.
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller... | Kangjie Lu | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -561,5 +561,7 @@ void rds_inc_info_copy(struct rds_incoming *inc,\n \t\tminfo.fport = inc->i_hdr.h_dport;\n \t}\n \n+\tminfo.flags = 0;\n+\n \trds_info_copy(iter, &minfo, sizeof(minfo));\n }",
"path": "net/rds/recv.c",
"raw_url": "... | c | CWE-200 | [
"net/rds/recv.c"
] | net/rds/recv.c | 1 |
dissect_spoolss_uint16uni(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, /* Get remaining data in buffer as a string */ remaining = tvb_captured_length_remaining(tvb, offset); if (remaining <= 0) { if (data) *data = g_strdup(""); dissect_spoolss_keybuffer(tvbuff_t *tvb, int offset, packet_info *pinfo, ... | dissect_spoolss_uint16uni(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, /* Get remaining data in buffer as a string */ remaining = tvb_reported_length_remaining(tvb, offset); if (remaining <= 0) { if (data) *data = g_strdup(""); dissect_spoolss_keybuffer(tvbuff_t *tvb, int offset, packet_info *pinfo, ... | CVE-2016-5350 | {'CWE-399'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/b4d16b4495b732888e12baf5b8a7e9bf2665e22b'} | nvd | epan/dissectors/packet-dcerpc-spoolss.c in the SPOOLS component in Wireshark 1.12.x before 1.12.12 and 2.x before 2.0.4 mishandles unexpected offsets, which allows remote attackers to cause a denial of service (infinite loop) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/b4d16b4495b732888e12baf5b8a7e9bf2665e22b | b4d16b4495b732888e12baf5b8a7e9bf2665e22b | SINGLE | ['b4d16b4495b732888e12baf5b8a7e9bf2665e22b'] | {'782191f7662c2cd2849524ba279aad0aafcba4de'} | b4d16b4495b732888e12baf5b8a7e9bf2665e22b | 1 | 03/28/2016, 22:46:33 | SPOOLSS: Try to avoid an infinite loop.
Use tvb_reported_length_remaining in dissect_spoolss_uint16uni. Make
sure our offset always increments in dissect_spoolss_keybuffer.
Change-Id: I7017c9685bb2fa27161d80a03b8fca4ef630e793
Reviewed-on: https://code.wireshark.org/review/14687
Reviewed-by: Gerald Combs <gerald@wires... | Gerald Combs | null | {'additions': 3, 'deletions': 2, 'total': 5} | [
{
"additions": 3,
"changes": 5,
"deletions": 2,
"patch": "@@ -1090,7 +1090,7 @@ dissect_spoolss_uint16uni(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,\n \n \t/* Get remaining data in buffer as a string */\n \n-\tremaining = tvb_captured_length_remaining(tvb, offset);\n+\tremaining = tvb_report... | c | CWE-399 | [
"epan/dissectors/packet-dcerpc-spoolss.c"
] | epan/dissectors/packet-dcerpc-spoolss.c | 1 |
static INT AirPDcapScanForKeys( /* get and check the body length (IEEE 802.1X-2004, pg. 25) */ bodyLength=pntoh16(data+offset+2); if ((tot_len-offset-4) < bodyLength) { /* Only check if frame is long enough for eapol header, ignore tailing garbage, see bug 9065 */ AIRPDCAP_DEBUG_PR... | static INT AirPDcapScanForKeys( /* get and check the body length (IEEE 802.1X-2004, pg. 25) */ bodyLength=pntoh16(data+offset+2); if (((tot_len-offset-4) < bodyLength) || (bodyLength < sizeof(EAPOL_RSN_KEY))) { /* Only check if frame is long enough for eapol header, ignore tailing garbage, see... | CVE-2016-5351 | {'CWE-20'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4'} | nvd | epan/crypt/airpdcap.c in the IEEE 802.11 dissector in Wireshark 1.12.x before 1.12.12 and 2.x before 2.0.4 mishandles the lack of an EAPOL_RSN_KEY, which allows remote attackers to cause a denial of service (application crash) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4 | 9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4 | SINGLE | ['9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4'] | {'b831f251eff85c7cc32085bde5bc789f848a301f'} | 9b0b20b8d5f8c9f7839d58ff6c5900f7e19283b4 | 1 | 05/23/2016, 00:21:17 | Make sure EAPOL body is big enough for a EAPOL_RSN_KEY.
A pointer to a EAPOL_RSN_KEY is set on the packet presuming the
whole EAPOL_RSN_KEY is there. That's not always the case for
fuzzed/malicious captures.
Bug: 11585
Change-Id: Ib94b8aceef444c7820e43b969596efdb8dbecccd
Reviewed-on: https://code.wireshark.org/revie... | Michael Mann | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -571,7 +571,7 @@ static INT AirPDcapScanForKeys(\n \n /* get and check the body length (IEEE 802.1X-2004, pg. 25) */\n bodyLength=pntoh16(data+offset+2);\n- if ((tot_len-offset-4) < bodyLength) { /* Only check if fra... | c | CWE-20 | [
"epan/crypt/airpdcap.c"
] | epan/crypt/airpdcap.c | 1 |
AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_ } } if (key_bytes_len < GROUP_KEY_MIN_LEN || key_bytes_len > eapol_len - sizeof(EAPOL_RSN_KEY)) { return AIRPDCAP_RET_NO_VALID_HANDSHAKE; } | AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_ } } if ((key_bytes_len < GROUP_KEY_MIN_LEN) || (eapol_len < sizeof(EAPOL_RSN_KEY)) || (key_bytes_len > eapol_len - sizeof(EAPOL_RSN_KEY))) { return AIRPDCAP_RET_NO_VALID_HANDSHAKE; } | CVE-2016-5352 | {'CWE-125'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/b6d838eebf4456192360654092e5587c5207f185'} | nvd | epan/crypt/airpdcap.c in the IEEE 802.11 dissector in Wireshark 2.x before 2.0.4 mishandles certain length values, which allows remote attackers to cause a denial of service (application crash) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/b6d838eebf4456192360654092e5587c5207f185 | b6d838eebf4456192360654092e5587c5207f185 | SINGLE | ['b6d838eebf4456192360654092e5587c5207f185'] | {'2bc2b3e686df39bb655c54b101b11537507fb5a3'} | b6d838eebf4456192360654092e5587c5207f185 | 1 | 05/10/2016, 00:41:45 | Sanity check eapol_len in AirPDcapDecryptWPABroadcastKey
Bug: 12175
Change-Id: Iaf977ba48f8668bf8095800a115ff9a3472dd893
Reviewed-on: https://code.wireshark.org/review/15326
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <a... | Michael Mann | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -351,7 +351,9 @@ AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_\n }\n }\n \n- if (key_bytes_len < GROUP_KEY_MIN_LEN || key_bytes_len > eapol_len - sizeof(EAPOL_RSN_KEY)) {\n+ if ((key_byt... | c | CWE-125 | [
"epan/crypt/airpdcap.c"
] | epan/crypt/airpdcap.c | 1 |
fp_set_per_packet_inf_from_conv(umts_fp_conversation_info_t *p_conv_data, /* Peek at C/T, different RLC params for different logical channels */ /*C/T is 4 bits according to 3GPP TS 25.321, paragraph 9.2.1, from MAC header (not FP)*/ ... | fp_set_per_packet_inf_from_conv(umts_fp_conversation_info_t *p_conv_data, /* Peek at C/T, different RLC params for different logical channels */ /*C/T is 4 bits according to 3GPP TS 25.321, paragraph 9.2.1, from MAC header (not FP)*/ ... | CVE-2016-5353 | {'CWE-20'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/7d7190695ce2ff269fdffb04e87139995cde21f4'} | nvd | epan/dissectors/packet-umts_fp.c in the UMTS FP dissector in Wireshark 1.12.x before 1.12.12 and 2.x before 2.0.4 mishandles the reserved C/T value, which allows remote attackers to cause a denial of service (application crash) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/7d7190695ce2ff269fdffb04e87139995cde21f4 | 7d7190695ce2ff269fdffb04e87139995cde21f4 | SINGLE | ['7d7190695ce2ff269fdffb04e87139995cde21f4'] | {'b84b3f9f1d8577255a9d83c81277ebc53bcac68d'} | 7d7190695ce2ff269fdffb04e87139995cde21f4 | 1 | 06/04/2016, 17:56:57 | UMTS_FP: fix handling reserved C/T value
The spec puts the reserved value at 0xf but our internal table has 'unknown' at
0; since all the other values seem to be offset-by-one, just take the modulus
0xf to avoid running off the end of the table.
Bug: 12191
Change-Id: I83c8fb66797bbdee52a2246fb1eea6e37cbc7eb0
Reviewed... | Evan Huus | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -4098,11 +4098,11 @@ fp_set_per_packet_inf_from_conv(umts_fp_conversation_info_t *p_conv_data,\n \n /* Peek at C/T, different RLC params for different logical channels */\n /*... | c | CWE-20 | [
"epan/dissectors/packet-umts_fp.c"
] | epan/dissectors/packet-umts_fp.c | 1 |
parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset, const wbxml_decoding *map) { guint32 tvb_len = tvb_reported_length (tvb); guint32 off = offset; guint32 len; guint str_len; guint32 ent; parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offse... | parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset, const wbxml_decoding *map) { guint32 tvb_len = tvb_reported_length (tvb); guint32 off = offset, last_off; guint32 len; guint str_len; guint32 ent; parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, gui... | CVE-2016-5359 | {'CWE-119', 'CWE-399'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/b8e0d416898bb975a02c1b55883342edc5b4c9c0'} | nvd | epan/dissectors/packet-wbxml.c in the WBXML dissector in Wireshark 1.12.x before 1.12.12 mishandles offsets, which allows remote attackers to cause a denial of service (integer overflow and infinite loop) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/b8e0d416898bb975a02c1b55883342edc5b4c9c0 | b8e0d416898bb975a02c1b55883342edc5b4c9c0 | SINGLE | ['b8e0d416898bb975a02c1b55883342edc5b4c9c0'] | {'0a8a44cea3db67962770d616cfed9f6aa66b662c'} | b8e0d416898bb975a02c1b55883342edc5b4c9c0 | 1 | 05/09/2016, 16:03:05 | WBXML: add a basic sanity check for offset overflow
This is a naive approach allowing to detact that something went wrong,
without the need to replace all proto_tree_add_text() calls as what was
done in master-2.0 branch.
Bug: 12408
Change-Id: Ia14905005e17ae322c2fc639ad5e491fa08b0108
Reviewed-on: https://code.wiresh... | Pascal Quantin | null | {'additions': 24, 'deletions': 4, 'total': 28} | [
{
"additions": 24,
"changes": 28,
"deletions": 4,
"patch": "@@ -7304,7 +7304,7 @@ parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset,\n \t\t\t const wbxml_decoding *map)\n {\n \tguint32 tvb_len = tvb_reported_length (tvb);\n-\tguint32 off = offset;\n+\tguint32 ... | c | CWE-399 | [
"epan/dissectors/packet-wbxml.c"
] | epan/dissectors/packet-wbxml.c | 1 |
parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset, const wbxml_decoding *map) { guint32 tvb_len = tvb_reported_length (tvb); guint32 off = offset; guint32 len; guint str_len; guint32 ent; parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offse... | parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset, const wbxml_decoding *map) { guint32 tvb_len = tvb_reported_length (tvb); guint32 off = offset, last_off; guint32 len; guint str_len; guint32 ent; parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, gui... | CVE-2016-5359 | {'CWE-119', 'CWE-399'} | 2.9 | {'https://github.com/wireshark/wireshark/commit/b8e0d416898bb975a02c1b55883342edc5b4c9c0'} | nvd | epan/dissectors/packet-wbxml.c in the WBXML dissector in Wireshark 1.12.x before 1.12.12 mishandles offsets, which allows remote attackers to cause a denial of service (integer overflow and infinite loop) via a crafted packet. | 2016-08-07 | 1 | https://github.com/wireshark/wireshark | https://github.com/wireshark/wireshark/commit/b8e0d416898bb975a02c1b55883342edc5b4c9c0 | b8e0d416898bb975a02c1b55883342edc5b4c9c0 | SINGLE | ['b8e0d416898bb975a02c1b55883342edc5b4c9c0'] | {'0a8a44cea3db67962770d616cfed9f6aa66b662c'} | b8e0d416898bb975a02c1b55883342edc5b4c9c0 | 1 | 05/09/2016, 16:03:05 | WBXML: add a basic sanity check for offset overflow
This is a naive approach allowing to detact that something went wrong,
without the need to replace all proto_tree_add_text() calls as what was
done in master-2.0 branch.
Bug: 12408
Change-Id: Ia14905005e17ae322c2fc639ad5e491fa08b0108
Reviewed-on: https://code.wiresh... | Pascal Quantin | null | {'additions': 24, 'deletions': 4, 'total': 28} | [
{
"additions": 24,
"changes": 28,
"deletions": 4,
"patch": "@@ -7304,7 +7304,7 @@ parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, guint32 offset,\n \t\t\t const wbxml_decoding *map)\n {\n \tguint32 tvb_len = tvb_reported_length (tvb);\n-\tguint32 off = offset;\n+\tguint32 ... | c | CWE-119 | [
"epan/dissectors/packet-wbxml.c"
] | epan/dissectors/packet-wbxml.c | 1 |
static const struct state_microcode v1_state_microcode_table[] = { { STATE_MAIN_R0, STATE_MAIN_R1, SMF_ALL_AUTH | SMF_REPLY, P(SA), P(VID) | P(CR), PT(NONE), EVENT_v1_RETRANSMIT, main_inI1_outR1 }, /* STATE_MAIN_I1: R1 --> I2 * HDR, SA --> auth dependent static const struct state_microcode v1_state_micro... | static const struct state_microcode v1_state_microcode_table[] = { { STATE_MAIN_R0, STATE_MAIN_R1, SMF_ALL_AUTH | SMF_REPLY, P(SA), P(VID) | P(CR), PT(NONE), EVENT_NULL, main_inI1_outR1 }, /* STATE_MAIN_I1: R1 --> I2 * HDR, SA --> auth dependent static const struct state_microcode v1_state_microcode_tabl... | CVE-2016-5361 | {'CWE-20'} | 2.9 | {'https://github.com/libreswan/libreswan/commit/152d6d95632d8b9477c170f1de99bcd86d7fb1d6'} | nvd | programs/pluto/ikev1.c in libreswan before 3.17 retransmits in initial-responder states, which allows remote attackers to cause a denial of service (traffic amplification) via a spoofed UDP packet. NOTE: the original behavior complies with the IKEv1 protocol, but has a required security update from the libreswan vendor... | 2016-06-16 | 1 | https://github.com/libreswan/libreswan | https://github.com/libreswan/libreswan/commit/152d6d95632d8b9477c170f1de99bcd86d7fb1d6 | 152d6d95632d8b9477c170f1de99bcd86d7fb1d6 | SINGLE | ['152d6d95632d8b9477c170f1de99bcd86d7fb1d6'] | {'d321373f21111c10ba2304dbb5c3292e812af57b'} | 152d6d95632d8b9477c170f1de99bcd86d7fb1d6 | 1 | 03/27/2016, 16:31:50 | IKEv1: packet retransmit fixes for Main/Aggr/Xauth modes
- Do not schedule retransmits for inI1outR1 packets (prevent DDOS)
- Do schedule retransmits for XAUTH packets | Paul Wouters | null | {'additions': 4, 'deletions': 4, 'total': 8} | [
{
"additions": 4,
"changes": 8,
"deletions": 4,
"patch": "@@ -245,7 +245,7 @@ static const struct state_microcode v1_state_microcode_table[] = {\n \t{ STATE_MAIN_R0, STATE_MAIN_R1,\n \t SMF_ALL_AUTH | SMF_REPLY,\n \t P(SA), P(VID) | P(CR), PT(NONE),\n-\t EVENT_v1_RETRANSMIT, main_inI1_outR1 },\n+... | c | CWE-20 | [
"programs/pluto/ikev1.c"
] | programs/pluto/ikev1.c | 1 |
static int airspy_probe(struct usb_interface *intf, if (ret) { dev_err(s->dev, "Failed to register as video device (%d)\n", ret); goto err_unregister_v4l2_dev; } dev_info(s->dev, "Registered as %s\n", video_device_node_name(&s->vdev)); static int airspy_probe(struct usb_interface *intf, err_free_control... | static int airspy_probe(struct usb_interface *intf, if (ret) { dev_err(s->dev, "Failed to register as video device (%d)\n", ret); goto err_free_controls; } dev_info(s->dev, "Registered as %s\n", video_device_node_name(&s->vdev)); static int airspy_probe(struct usb_interface *intf, err_free_controls: v4... | CVE-2016-5400 | {'CWE-119'} | 6.9 | {'https://github.com/torvalds/linux/commit/aa93d1fee85c890a34f2510a310e55ee76a27848'} | nvd | Memory leak in the airspy_probe function in drivers/media/usb/airspy/airspy.c in the airspy USB driver in the Linux kernel before 4.7 allows local users to cause a denial of service (memory consumption) via a crafted USB device that emulates many VFL_TYPE_SDR or VFL_TYPE_SUBDEV devices and performs many connect and dis... | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/aa93d1fee85c890a34f2510a310e55ee76a27848 | aa93d1fee85c890a34f2510a310e55ee76a27848 | SINGLE | ['aa93d1fee85c890a34f2510a310e55ee76a27848'] | {'0ba169ac3600ae4032ee14b4192e6bf5d67723f5'} | aa93d1fee85c890a34f2510a310e55ee76a27848 | 1 | 07/15/2016, 15:40:45 | media: fix airspy usb probe error path
Fix a memory leak on probe error of the airspy usb device driver.
The problem is triggered when more than 64 usb devices register with
v4l2 of type VFL_TYPE_SDR or VFL_TYPE_SUBDEV.
The memory leak is caused by the probe function of the airspy driver
mishandeling errors and not ... | James Patrick-Evans | null | {'additions': 1, 'deletions': 2, 'total': 3} | [
{
"additions": 1,
"changes": 3,
"deletions": 2,
"patch": "@@ -1072,7 +1072,7 @@ static int airspy_probe(struct usb_interface *intf,\n \tif (ret) {\n \t\tdev_err(s->dev, \"Failed to register as video device (%d)\\n\",\n \t\t\t\tret);\n-\t\tgoto err_unregister_v4l2_dev;\n+\t\tgoto err_free_controls;\n... | c | CWE-119 | [
"drivers/media/usb/airspy/airspy.c"
] | drivers/media/usb/airspy/airspy.c | 1 |
struct archive_write_disk { #define HFS_BLOCKS(s) ((s) >> 12) static int check_symlinks(struct archive_write_disk *); static int create_filesystem_object(struct archive_write_disk *); static struct fixup_entry *current_fixup(struct archive_write_disk *, const char *pathname); #if defined(HAVE_FCHDIR) && defined(PATH... | struct archive_write_disk { #define HFS_BLOCKS(s) ((s) >> 12) static int check_symlinks_fsobj(char *path, int *error_number, struct archive_string *error_string, int flags); static int check_symlinks(struct archive_write_disk *); static int create_filesystem_object(struct archive_write_disk *); static struct fixup_e... | CVE-2016-5418 | {'CWE-20', 'CWE-19'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/dfd6b54ce33960e420fb206d8872fb759b577ad9'} | nvd | The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which might allow remote attackers to write to arbitrary files via a crafted archive file. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/dfd6b54ce33960e420fb206d8872fb759b577ad9 | dfd6b54ce33960e420fb206d8872fb759b577ad9 | SINGLE | ['dfd6b54ce33960e420fb206d8872fb759b577ad9'] | {'50952acd22df3326c49771f5e5ba48630899468c'} | dfd6b54ce33960e420fb206d8872fb759b577ad9 | 1 | 09/11/2016, 20:21:57 | Fixes for Issue #745 and Issue #746 from Doran Moppert. | Tim Kientzle | null | {'additions': 227, 'deletions': 67, 'total': 294} | [
{
"additions": 227,
"changes": 294,
"deletions": 67,
"patch": "@@ -326,12 +326,14 @@ struct archive_write_disk {\n \n #define HFS_BLOCKS(s)\t((s) >> 12)\n \n+static int\tcheck_symlinks_fsobj(char *path, int *error_number, struct archive_string *error_string, int flags);\n static int\tcheck_symlinks(... | c | CWE-20 | [
"libarchive/archive_write_disk_posix.c"
] | libarchive/archive_write_disk_posix.c | 1 |
int sysctl_tcp_adv_win_scale __read_mostly = 1; EXPORT_SYMBOL(sysctl_tcp_adv_win_scale); /* rfc5961 challenge ack rate limiting */ int sysctl_tcp_challenge_ack_limit = 100; int sysctl_tcp_stdurg __read_mostly; int sysctl_tcp_rfc1337 __read_mostly; static void tcp_send_challenge_ack(struct sock *sk, const struct sk_b... | int sysctl_tcp_adv_win_scale __read_mostly = 1; EXPORT_SYMBOL(sysctl_tcp_adv_win_scale); /* rfc5961 challenge ack rate limiting */ int sysctl_tcp_challenge_ack_limit = 1000; int sysctl_tcp_stdurg __read_mostly; int sysctl_tcp_rfc1337 __read_mostly; static void tcp_send_challenge_ack(struct sock *sk, const struct sk_... | CVE-2016-5696 | {'CWE-200'} | 4.9 | {'https://github.com/torvalds/linux/commit/75ff39ccc1bd5d3c455b6822ab09e533c551f758'} | nvd | net/ipv4/tcp_input.c in the Linux kernel before 4.7 does not properly determine the rate of challenge ACK segments, which makes it easier for remote attackers to hijack TCP sessions via a blind in-window attack. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/75ff39ccc1bd5d3c455b6822ab09e533c551f758 | 75ff39ccc1bd5d3c455b6822ab09e533c551f758 | SINGLE | ['75ff39ccc1bd5d3c455b6822ab09e533c551f758'] | {'a612769774a30e4fc143c4cb6395c12573415660'} | 75ff39ccc1bd5d3c455b6822ab09e533c551f758 | 1 | 07/10/2016, 08:04:02 | tcp: make challenge acks less predictable
Yue Cao claims that current host rate limiting of challenge ACKS
(RFC 5961) could leak enough information to allow a patient attacker
to hijack TCP sessions. He will soon provide details in an academic
paper.
This patch increases the default limit from 100 to 1000, and adds
s... | Eric Dumazet | {'com_1': {'author': 'daira', 'datetime': '08/15/2016, 09:43:43', 'body': "Well you may get away with this, but it seems hard to analyse relative to just making the limit per-connection. There's no useful DoS attack on a per-connection counter, and RFC 5961 clearly allows a per-connection counter (it doesn't specify th... | {'additions': 10, 'deletions': 5, 'total': 15} | [
{
"additions": 10,
"changes": 15,
"deletions": 5,
"patch": "@@ -87,7 +87,7 @@ int sysctl_tcp_adv_win_scale __read_mostly = 1;\n EXPORT_SYMBOL(sysctl_tcp_adv_win_scale);\n \n /* rfc5961 challenge ack rate limiting */\n-int sysctl_tcp_challenge_ack_limit = 100;\n+int sysctl_tcp_challenge_ack_limit = 1... | c | CWE-200 | [
"net/ipv4/tcp_input.c"
] | net/ipv4/tcp_input.c | 1 |
function PMA_getColumnsList($db, $from=0, $num=25) //get current values of $db from central column list if ($num == 0) { $query = 'SELECT * FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . $db . '\';'; } else { $query = 'SELECT * FROM ' . Util::backqu... | function PMA_getColumnsList($db, $from=0, $num=25) //get current values of $db from central column list if ($num == 0) { $query = 'SELECT * FROM ' . Util::backquote($central_list_table) . ' ' . 'WHERE db_name = \'' . Util::sqlAddSlashes($db) . '\';'; } else { $query = 'SELECT * ... | CVE-2016-5703 | {'CWE-89'} | 6.4 | {'https://github.com/phpmyadmin/phpmyadmin/commit/ef6c66dca1b0cb0a1a482477938cfc859d2baee3'} | nvd | SQL injection vulnerability in libraries/central_columns.lib.php in phpMyAdmin 4.4.x before 4.4.15.7 and 4.6.x before 4.6.3 allows remote attackers to execute arbitrary SQL commands via a crafted database name that is mishandled in a central column query. | 2016-07-03 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/ef6c66dca1b0cb0a1a482477938cfc859d2baee3 | ef6c66dca1b0cb0a1a482477938cfc859d2baee3 | SINGLE | ['ef6c66dca1b0cb0a1a482477938cfc859d2baee3'] | {'79a34ff94cf801b7a158171b19b9cf98060d3f96'} | ef6c66dca1b0cb0a1a482477938cfc859d2baee3 | 1 | 06/15/2016, 09:29:31 | Properly escape database name in central column queries
Signed-off-by: Michal Čihař <michal@cihar.com> | Michal Čihař | null | {'additions': 8, 'deletions': 8, 'total': 16} | [
{
"additions": 8,
"changes": 16,
"deletions": 8,
"patch": "@@ -60,10 +60,10 @@ function PMA_getColumnsList($db, $from=0, $num=25)\n //get current values of $db from central column list\n if ($num == 0) {\n $query = 'SELECT * FROM ' . Util::backquote($central_list_table) . ' '\n- ... | php | CWE-89 | [
"libraries/central_columns.lib.php"
] | libraries/central_columns.lib.php | 1 |
function () { $_GET['scripts'] = json_decode($_GET['scripts']); if (! empty($_GET['scripts']) && is_array($_GET['scripts'])) { foreach ($_GET['scripts'] as $script) { // Sanitise filename $script_name = 'js'; | function () { $_GET['scripts'] = json_decode($_GET['scripts']); if (! empty($_GET['scripts']) && is_array($_GET['scripts'])) { // Only up to 10 scripts as this is what we generate foreach (array_slice($_GET['scripts'], 0, 10) as $script) { // Sanitise filename $script_name = 'js'; | CVE-2016-5706 | {'CWE-399'} | 2.9 | {'https://github.com/phpmyadmin/phpmyadmin/commit/4767f24ea4c1e3822ce71a636c341e8ad8d07aa6'} | nvd | js/get_scripts.js.php in phpMyAdmin 4.0.x before 4.0.10.16, 4.4.x before 4.4.15.7, and 4.6.x before 4.6.3 allows remote attackers to cause a denial of service via a large array in the scripts parameter. | 2016-07-03 | 1 | https://github.com/phpmyadmin/phpmyadmin | https://github.com/phpmyadmin/phpmyadmin/commit/4767f24ea4c1e3822ce71a636c341e8ad8d07aa6 | 4767f24ea4c1e3822ce71a636c341e8ad8d07aa6 | SINGLE | ['4767f24ea4c1e3822ce71a636c341e8ad8d07aa6'] | {'5633b1d57b23ddaa5a9a976a323c90c18d9be03d'} | 4767f24ea4c1e3822ce71a636c341e8ad8d07aa6 | 1 | 06/15/2016, 16:04:43 | Limit number of included scripts in get_scripts.js.php
This avoids potential DOS, the limit is same as we use for generating
the URLs.
Signed-off-by: Michal Čihař <michal@cihar.com> | Michal Čihař | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -36,7 +36,8 @@ function () {\n \n $_GET['scripts'] = json_decode($_GET['scripts']);\n if (! empty($_GET['scripts']) && is_array($_GET['scripts'])) {\n- foreach ($_GET['scripts'] as $script) {\n+ // Only up to 10 scripts as this is wh... | php | CWE-399 | [
"js/get_scripts.js.php"
] | js/get_scripts.js.php | 1 |
static long vop_ioctl(struct file *f, unsigned int cmd, unsigned long arg) ret = -EFAULT; goto free_ret; } mutex_lock(&vdev->vdev_mutex); mutex_lock(&vi->vop_mutex); ret = vop_virtio_add_device(vdev, dd_config); | static long vop_ioctl(struct file *f, unsigned int cmd, unsigned long arg) ret = -EFAULT; goto free_ret; } /* Ensure desc has not changed between the two reads */ if (memcmp(&dd, dd_config, sizeof(dd))) { ret = -EINVAL; goto free_ret; } mutex_lock(&vdev->vdev_mutex); mutex_lock(&vi->vop_mutex);... | CVE-2016-5728 | {'CWE-119'} | 7.8 | {'https://github.com/torvalds/linux/commit/9bf292bfca94694a721449e3fd752493856710f6'} | nvd | Race condition in the vop_ioctl function in drivers/misc/mic/vop/vop_vringh.c in the MIC VOP driver in the Linux kernel before 4.6.1 allows local users to obtain sensitive information from kernel memory or cause a denial of service (memory corruption and system crash) by changing a certain header, aka a "double fetch" ... | 2016-06-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/9bf292bfca94694a721449e3fd752493856710f6 | 9bf292bfca94694a721449e3fd752493856710f6 | SINGLE | ['9bf292bfca94694a721449e3fd752493856710f6'] | {'2fc5ddaa3f1f1d7a1f7f455e287e97bf298ab8d7'} | 9bf292bfca94694a721449e3fd752493856710f6 | 1 | 04/27/2016, 21:36:05 | misc: mic: Fix for double fetch security bug in VOP driver
The MIC VOP driver does two successive reads from user space to read a
variable length data structure. Kernel memory corruption can result if
the data structure changes between the two reads. This patch disallows
the chance of this happening.
Bugzilla: https:... | Ashutosh Dixit | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -945,6 +945,11 @@ static long vop_ioctl(struct file *f, unsigned int cmd, unsigned long arg)\n \t\t\tret = -EFAULT;\n \t\t\tgoto free_ret;\n \t\t}\n+\t\t/* Ensure desc has not changed between the two reads */\n+\t\tif (memcmp(&dd, dd_confi... | c | CWE-119 | [
"drivers/misc/mic/vop/vop_vringh.c"
] | drivers/misc/mic/vop/vop_vringh.c | 1 |
static pngquant_error rwpng_read_image24_libpng(FILE *infile, png24_image *mainp png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, &bit_depth, &color_type, NULL, NULL, NULL); // For overflow safety reject images that won't fit in 32-bit if (mainprog_ptr->width >... | static pngquant_error rwpng_read_image24_libpng(FILE *infile, png24_image *mainp png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height, &bit_depth, &color_type, NULL, NULL, NULL); /* expand palette images to RGB, low-bit-depth grayscale images to 8 bits, * transpare... | CVE-2016-5735 | {'CWE-190'} | 6.4 | {'https://github.com/pornel/pngquant/commit/b7c217680cda02dddced245d237ebe8c383be285'} | nvd | Integer overflow in the rwpng_read_image24_libpng function in rwpng.c in pngquant 2.7.0 allows remote attackers to have unspecified impact via a crafted PNG file, which triggers a buffer overflow. | 2017-05-23 | 1 | https://github.com/pornel/pngquant | https://github.com/pornel/pngquant/commit/b7c217680cda02dddced245d237ebe8c383be285 | b7c217680cda02dddced245d237ebe8c383be285 | SINGLE | ['b7c217680cda02dddced245d237ebe8c383be285'] | {'350c3a4b0d178daad53fd9fc7213bb94c348dd95'} | b7c217680cda02dddced245d237ebe8c383be285 | 1 | 06/23/2016, 15:10:57 | Fix integer overflow in rwpng.h (CVE-2016-5735)
Reported by Choi Jaeseung
Found with Sparrow (http://ropas.snu.ac.kr/sparrow) | Kornel Lesiński | null | {'additions': 6, 'deletions': 6, 'total': 12} | [
{
"additions": 6,
"changes": 12,
"deletions": 6,
"patch": "@@ -244,12 +244,6 @@ static pngquant_error rwpng_read_image24_libpng(FILE *infile, png24_image *mainp\n png_get_IHDR(png_ptr, info_ptr, &mainprog_ptr->width, &mainprog_ptr->height,\n &bit_depth, &color_type, NULL, NULL, ... | c | CWE-190 | [
"rwpng.c"
] | rwpng.c | 1 |
static int le_mcrypt; typedef struct _php_mcrypt { MCRYPT td; zend_bool init; } php_mcrypt; ZEND_DECLARE_MODULE_GLOBALS(mcrypt) zend_module_entry mcrypt_module_entry = { STANDARD_MODULE_HEADER, "mcrypt", mcrypt_functions, PHP_MINIT(mcrypt), PHP_MSHUTDOWN(mcrypt), NULL, NULL, ZEND_GET_MODULE(mcrypt) if (ze... | static int le_mcrypt; typedef struct _php_mcrypt { MCRYPT td; zend_bool init; } php_mcrypt; ZEND_DECLARE_MODULE_GLOBALS(mcrypt) zend_module_entry mcrypt_module_entry = { STANDARD_MODULE_HEADER, "mcrypt", mcrypt_functions, PHP_MINIT(mcrypt), PHP_MSHUTDOWN(mcrypt), NULL, NULL, ZEND_GET_MODULE(mcrypt) if (zend... | CVE-2016-5769 | {'CWE-190'} | 6.4 | {'http://github.com/php/php-src/commit/6c5211a0cef0cc2854eaa387e0eb036e012904d0'} | nvd | Multiple integer overflows in mcrypt.c in the mcrypt extension in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8 allow remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted length value, related to the (1) m... | 2016-08-07 | 1 | http://github.com/php/php-src | http://github.com/php/php-src/commit/6c5211a0cef0cc2854eaa387e0eb036e012904d0 | 6c5211a0cef0cc2854eaa387e0eb036e012904d0 | SINGLE | ['6c5211a0cef0cc2854eaa387e0eb036e012904d0'] | {'f6aef68089221c5ea047d4a74224ee3deead99a6'} | 6c5211a0cef0cc2854eaa387e0eb036e012904d0 | 1 | 06/21/2016, 04:51:42 | Fix bug #72455: Heap Overflow due to integer overflows | Stanislav Malyshev | null | {'additions': 50, 'deletions': 42, 'total': 92} | [
{
"additions": 50,
"changes": 92,
"deletions": 42,
"patch": "@@ -44,7 +44,7 @@\n \n static int le_mcrypt;\n \n-typedef struct _php_mcrypt { \n+typedef struct _php_mcrypt {\n \tMCRYPT td;\n \tzend_bool init;\n } php_mcrypt;\n@@ -292,7 +292,7 @@ ZEND_DECLARE_MODULE_GLOBALS(mcrypt)\n \n zend_module_ent... | c | CWE-190 | [
"ext/mcrypt/mcrypt.c"
] | ext/mcrypt/mcrypt.c | 1 |
static void spl_filesystem_object_free_storage(void *object TSRMLS_DC) /* {{{ */ if (intern->oth_handler && intern->oth_handler->dtor) { intern->oth_handler->dtor(intern TSRMLS_CC); } zend_object_std_dtor(&intern->std TSRMLS_CC); if (intern->_path) { efree(intern->_path); } static void spl_filesystem_obje... | static void spl_filesystem_object_free_storage(void *object TSRMLS_DC) /* {{{ */ if (intern->oth_handler && intern->oth_handler->dtor) { intern->oth_handler->dtor(intern TSRMLS_CC); } zend_object_std_dtor(&intern->std TSRMLS_CC); if (intern->_path) { efree(intern->_path); } static void spl_filesystem_object... | CVE-2016-5770 | {'CWE-190'} | 6.4 | {'http://github.com/php/php-src/commit/7245bff300d3fa8bacbef7897ff080a6f1c23eba'} | nvd | Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096. | 2016-08-07 | 1 | http://github.com/php/php-src | http://github.com/php/php-src/commit/7245bff300d3fa8bacbef7897ff080a6f1c23eba | 7245bff300d3fa8bacbef7897ff080a6f1c23eba | SINGLE | ['7245bff300d3fa8bacbef7897ff080a6f1c23eba'] | {'88746d60ab3ad51797612ee62603bb3e08d4aac4'} | 7245bff300d3fa8bacbef7897ff080a6f1c23eba | 1 | 06/16/2016, 04:58:26 | Fix bug #72262 - do not overflow int | Stanislav Malyshev | null | {'additions': 111, 'deletions': 107, 'total': 218} | [
{
"additions": 111,
"changes": 218,
"deletions": 107,
"patch": "@@ -79,9 +79,9 @@ static void spl_filesystem_object_free_storage(void *object TSRMLS_DC) /* {{{ */\n \tif (intern->oth_handler && intern->oth_handler->dtor) {\n \t\tintern->oth_handler->dtor(intern TSRMLS_CC);\n \t}\n-\t\n+\n \tzend_obj... | c | CWE-190 | [
"ext/spl/spl_directory.c"
] | ext/spl/spl_directory.c | 1 |
static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd, goto inval; } else if (uref->usage_index >= field->report_count) goto inval; else if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) && (uref_multi->num_values > HID_MAX_MULTI_USAGES || uref->usage_index + uref_m... | static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd, goto inval; } else if (uref->usage_index >= field->report_count) goto inval; } if ((cmd == HIDIOCGUSAGES || cmd == HIDIOCSUSAGES) && (uref_multi->num_values > HID_MAX_MULTI_USAGES || uref->usage_index + uref_m... | CVE-2016-5829 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/93a2001bdfd5376c3dc2158653034c20392d15c5'} | nvd | Multiple heap-based buffer overflows in the hiddev_ioctl_usage function in drivers/hid/usbhid/hiddev.c in the Linux kernel through 4.6.3 allow local users to cause a denial of service or possibly have unspecified other impact via a crafted (1) HIDIOCGUSAGES or (2) HIDIOCSUSAGES ioctl call. | 2016-06-27 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/93a2001bdfd5376c3dc2158653034c20392d15c5 | 93a2001bdfd5376c3dc2158653034c20392d15c5 | SINGLE | ['93a2001bdfd5376c3dc2158653034c20392d15c5'] | {'a80e803a2ae4efa5efbcfa97dcbbc48d15226cf9'} | 93a2001bdfd5376c3dc2158653034c20392d15c5 | 1 | 06/23/2016, 14:59:47 | HID: hiddev: validate num_values for HIDIOCGUSAGES, HIDIOCSUSAGES commands
This patch validates the num_values parameter from userland during the
HIDIOCGUSAGES and HIDIOCSUSAGES commands. Previously, if the report id was set
to HID_REPORT_ID_UNKNOWN, we would fail to validate the num_values parameter
leading to a heap... | Scott Bauer | null | {'additions': 5, 'deletions': 5, 'total': 10} | [
{
"additions": 5,
"changes": 10,
"deletions": 5,
"patch": "@@ -516,13 +516,13 @@ static noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd,\n \t\t\t\t\tgoto inval;\n \t\t\t} else if (uref->usage_index >= field->report_count)\n \t\t\t\tgoto inval;\n-\n-\t\t\telse if ((cmd == HIDI... | c | CWE-119 | [
"drivers/hid/usbhid/hiddev.c"
] | drivers/hid/usbhid/hiddev.c | 1 |
choose_volume(struct archive_read *a, struct iso9660 *iso9660) /* This condition is unlikely; by way of caution. */ vd = &(iso9660->joliet); skipsize = LOGICAL_BLOCK_SIZE * vd->location; skipsize = __archive_read_consume(a, skipsize); if (skipsize < 0) return ((int)skipsize); choose_volume(struct archive_rea... | choose_volume(struct archive_read *a, struct iso9660 *iso9660) /* This condition is unlikely; by way of caution. */ vd = &(iso9660->joliet); skipsize = LOGICAL_BLOCK_SIZE * (int64_t)vd->location; skipsize = __archive_read_consume(a, skipsize); if (skipsize < 0) return ((int)skipsize); choose_volume(struct ar... | CVE-2016-5844 | {'CWE-190'} | 2.9 | {'https://github.com/libarchive/libarchive/commit/3ad08e01b4d253c66ae56414886089684155af22'} | nvd | Integer overflow in the ISO parser in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) via a crafted ISO file. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/3ad08e01b4d253c66ae56414886089684155af22 | 3ad08e01b4d253c66ae56414886089684155af22 | SINGLE | ['3ad08e01b4d253c66ae56414886089684155af22'] | {'05caadc7eedbef471ac9610809ba683f0c698700'} | 3ad08e01b4d253c66ae56414886089684155af22 | 1 | 06/19/2016, 21:34:37 | Issue 717: Fix integer overflow when computing location of volume descriptor
The multiplication here defaulted to 'int' but calculations
of file positions should always use int64_t. A simple cast
suffices to fix this since the base location is always 32 bits
for ISO, so multiplying by the sector size will never over... | Tim Kientzle | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -1091,7 +1091,7 @@ choose_volume(struct archive_read *a, struct iso9660 *iso9660)\n \t\t/* This condition is unlikely; by way of caution. */\n \t\tvd = &(iso9660->joliet);\n \n-\tskipsize = LOGICAL_BLOCK_SIZE * vd->location;\n+\tskipsize =... | c | CWE-190 | [
"libarchive/archive_read_support_format_iso9660.c"
] | libarchive/archive_read_support_format_iso9660.c | 1 |
int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen, } else { /* PKCS #1 v1.5 decode it */ unsigned char *out; unsigned long outlen, loid[16]; int decoded; ltc_asn1_list digestinfo[2], siginfo[2]; int rsa_verify_hash_ex(const unsigned char *sig, unsigned lon... | int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen, } else { /* PKCS #1 v1.5 decode it */ unsigned char *out; unsigned long outlen, loid[16], reallen; int decoded; ltc_asn1_list digestinfo[2], siginfo[2]; int rsa_verify_hash_ex(const unsigned char *sig, uns... | CVE-2016-6129 | {'CWE-20'} | 2.9 | {'https://github.com/libtom/libtomcrypt/commit/5eb9743410ce4657e9d54fef26a2ee31a1b5dd09'} | nvd | The rsa_verify_hash_ex function in rsa_verify_hash.c in LibTomCrypt, as used in OP-TEE before 2.2.0, does not validate that the message length is equal to the ASN.1 encoded data length, which makes it easier for remote attackers to forge RSA signatures or public certificates by leveraging a Bleichenbacher signature for... | 2017-02-13 | 1 | https://github.com/libtom/libtomcrypt | https://github.com/libtom/libtomcrypt/commit/5eb9743410ce4657e9d54fef26a2ee31a1b5dd09 | 5eb9743410ce4657e9d54fef26a2ee31a1b5dd09 | SINGLE | ['5eb9743410ce4657e9d54fef26a2ee31a1b5dd09'] | {'c6dfef95ebd5ab8b8114cc0c457488c6a1aa0ec4'} | 5eb9743410ce4657e9d54fef26a2ee31a1b5dd09 | 1 | 08/06/2014, 13:03:46 | rsa_verify_hash: fix possible bleichenbacher signature attack | Steffen Jaeckel | null | {'additions': 8, 'deletions': 2, 'total': 10} | [
{
"additions": 8,
"changes": 10,
"deletions": 2,
"patch": "@@ -103,7 +103,7 @@ int rsa_verify_hash_ex(const unsigned char *sig, unsigned long siglen,\n } else {\n /* PKCS #1 v1.5 decode it */\n unsigned char *out;\n- unsigned long outlen, loid[16];\n+ unsigned long outlen, loid[... | c | CWE-20 | [
"src/pk/rsa/rsa_verify_hash.c"
] | src/pk/rsa/rsa_verify_hash.c | 1 |
static int sclp_ctl_ioctl_sccb(void __user *user_area) { struct sclp_ctl_sccb ctl_sccb; struct sccb_header *sccb; int rc; if (copy_from_user(&ctl_sccb, user_area, sizeof(ctl_sccb))) static int sclp_ctl_ioctl_sccb(void __user *user_area) sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); if (!sccb) return ... | static int sclp_ctl_ioctl_sccb(void __user *user_area) { struct sclp_ctl_sccb ctl_sccb; struct sccb_header *sccb; unsigned long copied; int rc; if (copy_from_user(&ctl_sccb, user_area, sizeof(ctl_sccb))) static int sclp_ctl_ioctl_sccb(void __user *user_area) sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA)... | CVE-2016-6130 | {'CWE-362'} | 2.9 | {'https://github.com/torvalds/linux/commit/532c34b5fbf1687df63b3fcd5b2846312ac943c6'} | nvd | Race condition in the sclp_ctl_ioctl_sccb function in drivers/s390/char/sclp_ctl.c in the Linux kernel before 4.6 allows local users to obtain sensitive information from kernel memory by changing a certain length value, aka a "double fetch" vulnerability. | 2016-07-03 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/532c34b5fbf1687df63b3fcd5b2846312ac943c6 | 532c34b5fbf1687df63b3fcd5b2846312ac943c6 | SINGLE | ['532c34b5fbf1687df63b3fcd5b2846312ac943c6'] | {'723cacbd9dc79582e562c123a0bacf8bfc69e72a'} | 532c34b5fbf1687df63b3fcd5b2846312ac943c6 | 1 | 04/25/2016, 15:54:28 | s390/sclp_ctl: fix potential information leak with /dev/sclp
The sclp_ctl_ioctl_sccb function uses two copy_from_user calls to
retrieve the sclp request from user space. The first copy_from_user
fetches the length of the request which is stored in the first two
bytes of the request. The second copy_from_user gets the ... | Martin Schwidefsky | null | {'additions': 7, 'deletions': 5, 'total': 12} | [
{
"additions": 7,
"changes": 12,
"deletions": 5,
"patch": "@@ -56,6 +56,7 @@ static int sclp_ctl_ioctl_sccb(void __user *user_area)\n {\n \tstruct sclp_ctl_sccb ctl_sccb;\n \tstruct sccb_header *sccb;\n+\tunsigned long copied;\n \tint rc;\n \n \tif (copy_from_user(&ctl_sccb, user_area, sizeof(ctl_sc... | c | CWE-362 | [
"drivers/s390/char/sclp_ctl.c"
] | drivers/s390/char/sclp_ctl.c | 1 |
#include <linux/compat.h> #include <linux/ctype.h> #include <linux/string.h> #include <uapi/linux/limits.h> #include "audit.h" #define AUDITSC_SUCCESS 1 #define AUDITSC_FAILURE 2 /* no execve audit message should be longer than this (userspace limits) */ #define MAX_EXECVE_AUDIT_LEN 7500 /* max length to print of c... | #include <linux/compat.h> #include <linux/ctype.h> #include <linux/string.h> #include <linux/uaccess.h> #include <uapi/linux/limits.h> #include "audit.h" #define AUDITSC_SUCCESS 1 #define AUDITSC_FAILURE 2 /* no execve audit message should be longer than this (userspace limits), * see the note near the top of audit... | CVE-2016-6136 | {'CWE-362'} | 2.9 | {'https://github.com/torvalds/linux/commit/43761473c254b45883a64441dd0bc85a42f3645c'} | nvd | Race condition in the audit_log_single_execve_arg function in kernel/auditsc.c in the Linux kernel through 4.7 allows local users to bypass intended character-set restrictions or disrupt system-call auditing by changing a certain string, aka a "double fetch" vulnerability. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/43761473c254b45883a64441dd0bc85a42f3645c | 43761473c254b45883a64441dd0bc85a42f3645c | SINGLE | ['43761473c254b45883a64441dd0bc85a42f3645c'] | {'0b7a0fdb29715e38641beb39db4d01695b22b5aa'} | 43761473c254b45883a64441dd0bc85a42f3645c | 1 | 07/19/2016, 21:42:57 | audit: fix a double fetch in audit_log_single_execve_arg()
There is a double fetch problem in audit_log_single_execve_arg()
where we first check the execve(2) argumnets for any "bad" characters
which would require hex encoding and then re-fetch the arguments for
logging in the audit record[1]. Of course this leaves a... | Paul Moore | null | {'additions': 164, 'deletions': 168, 'total': 332} | [
{
"additions": 164,
"changes": 332,
"deletions": 168,
"patch": "@@ -73,6 +73,7 @@\n #include <linux/compat.h>\n #include <linux/ctype.h>\n #include <linux/string.h>\n+#include <linux/uaccess.h>\n #include <uapi/linux/limits.h>\n \n #include \"audit.h\"\n@@ -82,7 +83,8 @@\n #define AUDITSC_SUCCESS 1\... | c | CWE-362 | [
"kernel/auditsc.c"
] | kernel/auditsc.c | 1 |
static long ec_device_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg) goto exit; } s_cmd->command += ec->cmd_offset; ret = cros_ec_cmd_xfer(ec->ec_dev, s_cmd); /* Only copy data to userland if data was received. */ if (ret < 0) goto exit; if (copy_to_user(arg, s_cmd, sizeof(*s_cmd) + u_cmd.insize)) ... | static long ec_device_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg) goto exit; } if (u_cmd.outsize != s_cmd->outsize || u_cmd.insize != s_cmd->insize) { ret = -EINVAL; goto exit; } s_cmd->command += ec->cmd_offset; ret = cros_ec_cmd_xfer(ec->ec_dev, s_cmd); /* Only copy data to userland if da... | CVE-2016-6156 | {'CWE-362'} | 2.9 | {'https://github.com/torvalds/linux/commit/096cdc6f52225835ff503f987a0d68ef770bb78e'} | nvd | Race condition in the ec_device_ioctl_xcmd function in drivers/platform/chrome/cros_ec_dev.c in the Linux kernel before 4.7 allows local users to cause a denial of service (out-of-bounds array access) by changing a certain size value, aka a "double fetch" vulnerability. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/096cdc6f52225835ff503f987a0d68ef770bb78e | 096cdc6f52225835ff503f987a0d68ef770bb78e | SINGLE | ['096cdc6f52225835ff503f987a0d68ef770bb78e'] | {'33688abb2802ff3a230bd2441f765477b94cc89e'} | 096cdc6f52225835ff503f987a0d68ef770bb78e | 1 | 06/21/2016, 13:58:46 | platform/chrome: cros_ec_dev - double fetch bug in ioctl
We verify "u_cmd.outsize" and "u_cmd.insize" but we need to make sure
that those values have not changed between the two copy_from_user()
calls. Otherwise it could lead to a buffer overflow.
Additionally, cros_ec_cmd_xfer() can set s_cmd->insize to a lower val... | Dan Carpenter | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -151,13 +151,19 @@ static long ec_device_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg)\n \t\tgoto exit;\n \t}\n \n+\tif (u_cmd.outsize != s_cmd->outsize ||\n+\t u_cmd.insize != s_cmd->insize) {\n+\t\tret = -EINVAL;\n+\t\tgoto exi... | c | CWE-362 | [
"drivers/platform/chrome/cros_ec_dev.c"
] | drivers/platform/chrome/cros_ec_dev.c | 1 |
static int apparmor_setprocattr(struct task_struct *task, char *name, { struct common_audit_data sa; struct apparmor_audit_data aad = {0,}; char *command, *args = value; size_t arg_size; int error; if (size == 0) return -EINVAL; /* args points to a PAGE_SIZE buffer, AppArmor requires that * the buffer must... | static int apparmor_setprocattr(struct task_struct *task, char *name, { struct common_audit_data sa; struct apparmor_audit_data aad = {0,}; char *command, *largs = NULL, *args = value; size_t arg_size; int error; if (size == 0) return -EINVAL; /* task can only write its own attributes */ if (current != task... | CVE-2016-6187 | {'CWE-119', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca'} | nvd | The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca | 30a46a4647fd1df9cf52e43bf467f0d9265096ca | SINGLE | ['30a46a4647fd1df9cf52e43bf467f0d9265096ca'] | {'ac904ae6e6f0a56be7b9a1cf66fbd50dd025fb06'} | 30a46a4647fd1df9cf52e43bf467f0d9265096ca | 1 | 07/07/2016, 20:41:11 | apparmor: fix oops, validate buffer size in apparmor_setprocattr()
When proc_pid_attr_write() was changed to use memdup_user apparmor's
(interface violating) assumption that the setprocattr buffer was always
a single page was violated.
The size test is not strictly speaking needed as proc_pid_attr_write()
will reject... | Vegard Nossum | null | {'additions': 19, 'deletions': 17, 'total': 36} | [
{
"additions": 19,
"changes": 36,
"deletions": 17,
"patch": "@@ -500,34 +500,34 @@ static int apparmor_setprocattr(struct task_struct *task, char *name,\n {\n \tstruct common_audit_data sa;\n \tstruct apparmor_audit_data aad = {0,};\n-\tchar *command, *args = value;\n+\tchar *command, *largs = NULL,... | c | CWE-264 | [
"security/apparmor/lsm.c"
] | security/apparmor/lsm.c | 1 |
static int apparmor_setprocattr(struct task_struct *task, char *name, { struct common_audit_data sa; struct apparmor_audit_data aad = {0,}; char *command, *args = value; size_t arg_size; int error; if (size == 0) return -EINVAL; /* args points to a PAGE_SIZE buffer, AppArmor requires that * the buffer must... | static int apparmor_setprocattr(struct task_struct *task, char *name, { struct common_audit_data sa; struct apparmor_audit_data aad = {0,}; char *command, *largs = NULL, *args = value; size_t arg_size; int error; if (size == 0) return -EINVAL; /* task can only write its own attributes */ if (current != task... | CVE-2016-6187 | {'CWE-119', 'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca'} | nvd | The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 4.6.5 does not validate the buffer size, which allows local users to gain privileges by triggering an AppArmor setprocattr hook. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/30a46a4647fd1df9cf52e43bf467f0d9265096ca | 30a46a4647fd1df9cf52e43bf467f0d9265096ca | SINGLE | ['30a46a4647fd1df9cf52e43bf467f0d9265096ca'] | {'ac904ae6e6f0a56be7b9a1cf66fbd50dd025fb06'} | 30a46a4647fd1df9cf52e43bf467f0d9265096ca | 1 | 07/07/2016, 20:41:11 | apparmor: fix oops, validate buffer size in apparmor_setprocattr()
When proc_pid_attr_write() was changed to use memdup_user apparmor's
(interface violating) assumption that the setprocattr buffer was always
a single page was violated.
The size test is not strictly speaking needed as proc_pid_attr_write()
will reject... | Vegard Nossum | null | {'additions': 19, 'deletions': 17, 'total': 36} | [
{
"additions": 19,
"changes": 36,
"deletions": 17,
"patch": "@@ -500,34 +500,34 @@ static int apparmor_setprocattr(struct task_struct *task, char *name,\n {\n \tstruct common_audit_data sa;\n \tstruct apparmor_audit_data aad = {0,};\n-\tchar *command, *args = value;\n+\tchar *command, *largs = NULL,... | c | CWE-119 | [
"security/apparmor/lsm.c"
] | security/apparmor/lsm.c | 1 |
static int ovl_remove_upper(struct dentry *dentry, bool is_dir) { struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent); struct inode *dir = upperdir->d_inode; struct dentry *upper = ovl_dentry_upper(dentry); int err; inode_lock_nested(dir, I_MUTEX_PARENT); err = -ESTALE; if (upper->d_parent == upperdir... | static int ovl_remove_upper(struct dentry *dentry, bool is_dir) { struct dentry *upperdir = ovl_dentry_upper(dentry->d_parent); struct inode *dir = upperdir->d_inode; struct dentry *upper; int err; inode_lock_nested(dir, I_MUTEX_PARENT); upper = lookup_one_len(dentry->d_name.name, upperdir, dentry->d_... | CVE-2016-6197 | {'CWE-20'} | 6.9 | {'https://github.com/torvalds/linux/commit/11f3710417d026ea2f4fcf362d866342c5274185'} | nvd | fs/overlayfs/dir.c in the OverlayFS filesystem implementation in the Linux kernel before 4.6 does not properly verify the upper dentry before proceeding with unlink and rename system-call processing, which allows local users to cause a denial of service (system crash) via a rename system call that specifies a self-hard... | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/11f3710417d026ea2f4fcf362d866342c5274185 | 11f3710417d026ea2f4fcf362d866342c5274185 | SINGLE | ['11f3710417d026ea2f4fcf362d866342c5274185'] | {'3c2de27d793bf55167804fc47954711e94f27be7'} | 11f3710417d026ea2f4fcf362d866342c5274185 | 1 | 03/21/2016, 16:31:44 | ovl: verify upper dentry before unlink and rename
Unlink and rename in overlayfs checked the upper dentry for staleness by
verifying upper->d_parent against upperdir. However the dentry can go
stale also by being unhashed, for example.
Expand the verification to actually look up the name again (under parent
lock) an... | Miklos Szeredi | null | {'additions': 38, 'deletions': 21, 'total': 59} | [
{
"additions": 38,
"changes": 59,
"deletions": 21,
"patch": "@@ -596,21 +596,25 @@ static int ovl_remove_upper(struct dentry *dentry, bool is_dir)\n {\n \tstruct dentry *upperdir = ovl_dentry_upper(dentry->d_parent);\n \tstruct inode *dir = upperdir->d_inode;\n-\tstruct dentry *upper = ovl_dentry_up... | c | CWE-20 | [
"fs/overlayfs/dir.c"
] | fs/overlayfs/dir.c | 1 |
isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent, unsigned char *p; size_t l; int r; int ffmax, parent_len; static const struct archive_rb_tree_ops rb_ops = { isoent_cmp_node_joliet, isoent_cmp_key_joliet }; isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent,... | isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent, unsigned char *p; size_t l; int r; size_t ffmax, parent_len; static const struct archive_rb_tree_ops rb_ops = { isoent_cmp_node_joliet, isoent_cmp_key_joliet }; isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoe... | CVE-2016-6250 | {'CWE-190'} | 6.4 | {'https://github.com/libarchive/libarchive/commit/3014e19820ea53c15c90f9d447ca3e668a0b76c6'} | nvd | Integer overflow in the ISO9660 writer in libarchive before 3.2.1 allows remote attackers to cause a denial of service (application crash) or execute arbitrary code via vectors related to verifying filename lengths when writing an ISO9660 archive, which trigger a buffer overflow. | 2016-09-21 | 1 | https://github.com/libarchive/libarchive | https://github.com/libarchive/libarchive/commit/3014e19820ea53c15c90f9d447ca3e668a0b76c6 | 3014e19820ea53c15c90f9d447ca3e668a0b76c6 | SINGLE | ['3014e19820ea53c15c90f9d447ca3e668a0b76c6'] | {'7bb6d7078fa2fb9eae214029a019c71ce256eeb7'} | 3014e19820ea53c15c90f9d447ca3e668a0b76c6 | 1 | 05/28/2016, 18:50:39 | Issue 711: Be more careful about verifying filename lengths when writing ISO9660 archives
* Don't cast size_t to int, since this can lead to overflow
on machines where sizeof(int) < sizeof(size_t)
* Check a + b > limit by writing it as
a > limit || b > limit || a + b > limit
to avoid problems when a + b wraps... | Tim Kientzle | {'com_1': {'author': 'praiskup', 'datetime': '07/07/2016, 14:45:06', 'body': 'Sounds like ffmax argument should be removed from this static function,\nor we should have changed only parent_len type.'}} | {'additions': 10, 'deletions': 8, 'total': 18} | [
{
"additions": 10,
"changes": 18,
"deletions": 8,
"patch": "@@ -6225,7 +6225,7 @@ isoent_gen_joliet_identifier(struct archive_write *a, struct isoent *isoent,\n \tunsigned char *p;\n \tsize_t l;\n \tint r;\n-\tint ffmax, parent_len;\n+\tsize_t ffmax, parent_len;\n \tstatic const struct archive_rb_tr... | c | CWE-190 | [
"libarchive/archive_write_set_format_iso9660.c"
] | libarchive/archive_write_set_format_iso9660.c | 1 |
static int parse_packet (sockent_t *se, /* {{{ */ printed_ignore_warning = 1; } buffer = ((char *) buffer) + pkg_length; continue; } #endif /* HAVE_LIBGCRYPT */ static int parse_packet (sockent_t *se, /* {{{ */ printed_ignore_warning = 1; } buffer = ((char *) buffer) + pkg_length; continue;... | static int parse_packet (sockent_t *se, /* {{{ */ printed_ignore_warning = 1; } buffer = ((char *) buffer) + pkg_length; buffer_size -= (size_t) pkg_length; continue; } #endif /* HAVE_LIBGCRYPT */ static int parse_packet (sockent_t *se, /* {{{ */ printed_ignore_warning = 1; } buffer = ((cha... | CVE-2016-6254 | {'CWE-119'} | 4.9 | {'https://github.com/collectd/collectd/commit/b589096f907052b3a4da2b9ccc9b0e2e888dfc18'} | nvd | Heap-based buffer overflow in the parse_packet function in network.c in collectd before 5.4.3 and 5.x before 5.5.2 allows remote attackers to cause a denial of service (daemon crash) or possibly execute arbitrary code via a crafted network packet. | 2016-08-19 | 1 | https://github.com/collectd/collectd | https://github.com/collectd/collectd/commit/b589096f907052b3a4da2b9ccc9b0e2e888dfc18 | b589096f907052b3a4da2b9ccc9b0e2e888dfc18 | SINGLE | ['b589096f907052b3a4da2b9ccc9b0e2e888dfc18'] | {'4371ef7f98f6f51ea3df34d5e26e175d6b44a328'} | b589096f907052b3a4da2b9ccc9b0e2e888dfc18 | 1 | 07/19/2016, 08:00:37 | network plugin: Fix heap overflow in parse_packet().
Emilien Gaspar has identified a heap overflow in parse_packet(), the
function used by the network plugin to parse incoming network packets.
This is a vulnerability in collectd, though the scope is not clear at
this point. At the very least specially crafted network... | Florian Forster | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -1435,6 +1435,7 @@ static int parse_packet (sockent_t *se, /* {{{ */\n \t\t\t\tprinted_ignore_warning = 1;\n \t\t\t}\n \t\t\tbuffer = ((char *) buffer) + pkg_length;\n+\t\t\tbuffer_size -= (size_t) pkg_length;\n \t\t\tcontinue;\n \t\t}\n #... | c | CWE-119 | [
"src/network.c"
] | src/network.c | 1 |
def add_label options, f, attr label = options[:label] == :none ? '' : options.delete(:label) label ||= ((clazz = f.object.class).respond_to?(:gettext_translation_for_attribute_name) && s_(clazz.gettext_translation_for_attribute_name attr)) if f label = label.present? ? label_tag(attr, "#{label}#{r... | def add_label options, f, attr label = options[:label] == :none ? '' : options.delete(:label) label ||= ((clazz = f.object.class).respond_to?(:gettext_translation_for_attribute_name) && s_(clazz.gettext_translation_for_attribute_name attr)) if f label = label.present? ? label_tag(attr, "#{label}#{r... | CVE-2016-6319 | {'CWE-79'} | 2.9 | {'https://github.com/theforeman/foreman/commit/0f35fe14acf0d0d3b55e9337bc5e2b9640ff2372'} | nvd | Cross-site scripting (XSS) vulnerability in app/helpers/form_helper.rb in Foreman before 1.12.2, as used by Remote Execution and possibly other plugins, allows remote attackers to inject arbitrary web script or HTML via the label parameter. | 2016-08-19 | 1 | https://github.com/theforeman/foreman | https://github.com/theforeman/foreman/commit/0f35fe14acf0d0d3b55e9337bc5e2b9640ff2372 | 0f35fe14acf0d0d3b55e9337bc5e2b9640ff2372 | SINGLE | ['0f35fe14acf0d0d3b55e9337bc5e2b9640ff2372'] | {'e2a57bfe537f7a5f1ef6aca7087df2f1fdea5905'} | 0f35fe14acf0d0d3b55e9337bc5e2b9640ff2372 | 1 | 08/10/2016, 07:45:29 | Fixes #16024 - escape labels of form fields | Marek Hulan | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -283,7 +283,7 @@ def add_label options, f, attr\n label = options[:label] == :none ? '' : options.delete(:label)\n label ||= ((clazz = f.object.class).respond_to?(:gettext_translation_for_attribute_name) &&\n s_(clazz.gette... | rb | CWE-79 | [
"app/helpers/form_helper.rb"
] | app/helpers/form_helper.rb | 1 |
function show_interface_modal(modal_content) { modal_window.find('.modal-body').html(''); modal_window.find('.modal-body').append(modal_content.contents()); modal_window.find('.modal-title').html(__('Interface') + ' ' + String(identifier)); modal_window.modal({'show': true}); modal_window.find('a[rel="popo... | function show_interface_modal(modal_content) { modal_window.find('.modal-body').html(''); modal_window.find('.modal-body').append(modal_content.contents()); modal_window.find('.modal-title').text(__('Interface') + ' ' + String(identifier)); modal_window.modal({'show': true}); modal_window.find('a[rel="popo... | CVE-2016-6320 | {'CWE-79'} | 2.9 | {'https://github.com/theforeman/foreman/pull/3714/commits/850c38451c7bbde75521b796d16aca26e4d240a0'} | nvd | Cross-site scripting (XSS) vulnerability in app/assets/javascripts/host_edit_interfaces.js in Foreman before 1.12.2 allows remote authenticated users to inject arbitrary web script or HTML via the network interface device identifier in the host interface form. | 2016-08-19 | 1 | https://github.com/theforeman/foreman | https://github.com/theforeman/foreman/pull/3714/commits/850c38451c7bbde75521b796d16aca26e4d240a0 | 850c38451c7bbde75521b796d16aca26e4d240a0 | SINGLE | ['850c38451c7bbde75521b796d16aca26e4d240a0'] | {'0069c98dcb50a8960f92397921cfb8a98dc8401e'} | 850c38451c7bbde75521b796d16aca26e4d240a0 | 1 | 08/09/2016, 12:11:18 | Fixes #16022 - Prevent stored XSS in host interface form
The host interface form may contain a stored XSS in the identifier field
allowing a user allowed to edit a host's interfaces to cause code
execution by another user viewing that host's edit form. | Tomer Brisker | null | {'additions': 6, 'deletions': 6, 'total': 12} | [
{
"additions": 6,
"changes": 12,
"deletions": 6,
"patch": "@@ -27,7 +27,7 @@ function show_interface_modal(modal_content) {\n \n modal_window.find('.modal-body').html('');\n modal_window.find('.modal-body').append(modal_content.contents());\n- modal_window.find('.modal-title').html(__('Interfac... | js | CWE-79 | [
"app/assets/javascripts/host_edit_interfaces.js"
] | app/assets/javascripts/host_edit_interfaces.js | 1 |
static int srpt_handle_cmd(struct srpt_rdma_ch *ch, return -1; } /** * srpt_rx_mgmt_fn_tag() - Process a task management function by tag. * @ch: RDMA channel of the task management request. * @fn: Task management function to perform. * @req_tag: Tag of the SRP task management request. * @mgmt_ioctx: I/O context... | static int srpt_handle_cmd(struct srpt_rdma_ch *ch, return -1; } static int srp_tmr_to_tcm(int fn) { switch (fn) { static void srpt_handle_tsk_mgmt(struct srpt_rdma_ch *ch, struct se_cmd *cmd; struct se_session *sess = ch->sess; uint64_t unpacked_lun; int tcm_tmr; int rc; static void srpt_handle_tsk_mgmt(stru... | CVE-2016-6327 | {'CWE-476'} | 6.9 | {'https://github.com/torvalds/linux/commit/51093254bf879bc9ce96590400a87897c7498463'} | nvd | drivers/infiniband/ulp/srpt/ib_srpt.c in the Linux kernel before 4.5.1 allows local users to cause a denial of service (NULL pointer dereference and system crash) by using an ABORT_TASK command to abort a device write operation. | 2016-10-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/51093254bf879bc9ce96590400a87897c7498463 | 51093254bf879bc9ce96590400a87897c7498463 | SINGLE | ['51093254bf879bc9ce96590400a87897c7498463'] | {'fc77dbd34c5c99bce46d40a2491937c3bcbd10af'} | 51093254bf879bc9ce96590400a87897c7498463 | 1 | 02/11/2016, 19:03:09 | IB/srpt: Simplify srpt_handle_tsk_mgmt()
Let the target core check task existence instead of the SRP target
driver. Additionally, let the target core check the validity of the
task management request instead of the ib_srpt driver.
This patch fixes the following kernel crash:
BUG: unable to handle kernel NULL pointer... | Bart Van Assche | null | {'additions': 1, 'deletions': 58, 'total': 59} | [
{
"additions": 1,
"changes": 59,
"deletions": 58,
"patch": "@@ -1670,47 +1670,6 @@ static int srpt_handle_cmd(struct srpt_rdma_ch *ch,\n \treturn -1;\n }\n \n-/**\n- * srpt_rx_mgmt_fn_tag() - Process a task management function by tag.\n- * @ch: RDMA channel of the task management request.\n- * @fn: ... | c | CWE-476 | [
"drivers/infiniband/ulp/srpt/ib_srpt.c"
] | drivers/infiniband/ulp/srpt/ib_srpt.c | 1 |
static MagickBooleanType Get8BIMProperty(const Image *image,const char *key, if ((count & 0x01) == 0) (void) ReadPropertyByte(&info,&length); count=(ssize_t) ReadPropertyMSBLong(&info,&length); if ((*name != '\0') && (*name != '#')) if ((resource == (char *) NULL) || (LocaleCompare(name,resourc... | static MagickBooleanType Get8BIMProperty(const Image *image,const char *key, if ((count & 0x01) == 0) (void) ReadPropertyByte(&info,&length); count=(ssize_t) ReadPropertyMSBLong(&info,&length); if ((count < 0) || ((size_t) count > length)) { length=0; continue; } if (... | CVE-2016-6491 | {'CWE-125'} | 6.4 | {'https://github.com/ImageMagick/ImageMagick/commit/dd84447b63a71fa8c3f47071b09454efc667767b'} | nvd | Buffer overflow in the Get8BIMProperty function in MagickCore/property.c in ImageMagick before 6.9.5-4 and 7.x before 7.0.2-6 allows remote attackers to cause a denial of service (out-of-bounds read, memory leak, and crash) via a crafted image. | 2016-12-13 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/dd84447b63a71fa8c3f47071b09454efc667767b | dd84447b63a71fa8c3f47071b09454efc667767b | SINGLE | ['dd84447b63a71fa8c3f47071b09454efc667767b'] | {'ae87d4df671d85c4834019ce8244c55c10d1d93b'} | dd84447b63a71fa8c3f47071b09454efc667767b | 1 | 07/25/2016, 00:07:03 | Prevent buffer overflow (bug report from Ibrahim el-sayed) | Cristy | null | {'additions': 5, 'deletions': 0, 'total': 5} | [
{
"additions": 5,
"changes": 5,
"deletions": 0,
"patch": "@@ -665,6 +665,11 @@ static MagickBooleanType Get8BIMProperty(const Image *image,const char *key,\n if ((count & 0x01) == 0)\n (void) ReadPropertyByte(&info,&length);\n count=(ssize_t) ReadPropertyMSBLong(&info,&length);\n+ i... | c | CWE-125 | [
"MagickCore/property.c"
] | MagickCore/property.c | 1 |
/* $OpenBSD: auth-passwd.c,v 1.44 2014/07/15 15:54:14 millert Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland extern login_cap_t *lc; #define DAY (24L * 60 * 60) /* 1 day in seconds */ #define TWO_WEEKS (2L * 7 * DAY) /* 2 weeks in seconds */ void ... | /* $OpenBSD: auth-passwd.c,v 1.45 2016/07/21 01:39:35 dtucker Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland extern login_cap_t *lc; #define DAY (24L * 60 * 60) /* 1 day in seconds */ #define TWO_WEEKS (2L * 7 * DAY) /* 2 weeks in seconds */ #defi... | CVE-2016-6515 | {'CWE-20'} | 6.9 | {'https://github.com/openssh/openssh-portable/commit/fcd135c9df440bcd2d5870405ad3311743d78d97'} | nvd | The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password authentication, which allows remote attackers to cause a denial of service (crypt CPU consumption) via a long string. | 2016-08-07 | 1 | https://github.com/openssh/openssh-portable | https://github.com/openssh/openssh-portable/commit/fcd135c9df440bcd2d5870405ad3311743d78d97 | fcd135c9df440bcd2d5870405ad3311743d78d97 | SINGLE | ['fcd135c9df440bcd2d5870405ad3311743d78d97'] | {'324583e8fb3935690be58790425793df619c6d4d'} | fcd135c9df440bcd2d5870405ad3311743d78d97 | 1 | 07/21/2016, 01:39:35 | upstream commit
Skip passwords longer than 1k in length so clients can't
easily DoS sshd by sending very long passwords, causing it to spend CPU
hashing them. feedback djm@, ok markus@.
Brought to our attention by tomas.kuthan at oracle.com, shilei-c at
360.cn and coredump at autistici.org
Upstream-ID: d0af7d4a2190b... | dtucker@openbsd.org | null | {'additions': 6, 'deletions': 1, 'total': 7} | [
{
"additions": 6,
"changes": 7,
"deletions": 1,
"patch": "@@ -1,4 +1,4 @@\n-/* $OpenBSD: auth-passwd.c,v 1.44 2014/07/15 15:54:14 millert Exp $ */\n+/* $OpenBSD: auth-passwd.c,v 1.45 2016/07/21 01:39:35 dtucker Exp $ */\n /*\n * Author: Tatu Ylonen <ylo@cs.hut.fi>\n * Copyright (c) 1995 Tatu Ylone... | c | CWE-20 | [
"auth-passwd.c"
] | auth-passwd.c | 1 |
static long ioctl_file_dedupe_range(struct file *file, void __user *arg) goto out; } ret = vfs_dedupe_file_range(file, same); if (ret) goto out; | static long ioctl_file_dedupe_range(struct file *file, void __user *arg) goto out; } same->dest_count = count; ret = vfs_dedupe_file_range(file, same); if (ret) goto out; | CVE-2016-6516 | {'CWE-119', 'CWE-362'} | 6.4 | {'https://github.com/torvalds/linux/commit/10eec60ce79187686e052092e5383c99b4420a20'} | nvd | Race condition in the ioctl_file_dedupe_range function in fs/ioctl.c in the Linux kernel through 4.7 allows local users to cause a denial of service (heap-based buffer overflow) or possibly gain privileges by changing a certain count value, aka a "double fetch" vulnerability. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/10eec60ce79187686e052092e5383c99b4420a20 | 10eec60ce79187686e052092e5383c99b4420a20 | SINGLE | ['10eec60ce79187686e052092e5383c99b4420a20'] | {'884316deb4c9fdf9becfa31831a9e40717e3026c'} | 10eec60ce79187686e052092e5383c99b4420a20 | 1 | 07/28/2016, 01:11:29 | vfs: ioctl: prevent double-fetch in dedupe ioctl
This prevents a double-fetch from user space that can lead to to an
undersized allocation and heap overflow.
Fixes: 54dbc1517237 ("vfs: hoist the btrfs deduplication ioctl to the vfs")
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Linus Torvalds <to... | Scott Bauer | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -590,6 +590,7 @@ static long ioctl_file_dedupe_range(struct file *file, void __user *arg)\n \t\tgoto out;\n \t}\n \n+\tsame->dest_count = count;\n \tret = vfs_dedupe_file_range(file, same);\n \tif (ret)\n \t\tgoto out;",
"path": "fs/io... | c | CWE-362 | [
"fs/ioctl.c"
] | fs/ioctl.c | 1 |
static long ioctl_file_dedupe_range(struct file *file, void __user *arg) goto out; } ret = vfs_dedupe_file_range(file, same); if (ret) goto out; | static long ioctl_file_dedupe_range(struct file *file, void __user *arg) goto out; } same->dest_count = count; ret = vfs_dedupe_file_range(file, same); if (ret) goto out; | CVE-2016-6516 | {'CWE-119', 'CWE-362'} | 6.4 | {'https://github.com/torvalds/linux/commit/10eec60ce79187686e052092e5383c99b4420a20'} | nvd | Race condition in the ioctl_file_dedupe_range function in fs/ioctl.c in the Linux kernel through 4.7 allows local users to cause a denial of service (heap-based buffer overflow) or possibly gain privileges by changing a certain count value, aka a "double fetch" vulnerability. | 2016-08-06 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/10eec60ce79187686e052092e5383c99b4420a20 | 10eec60ce79187686e052092e5383c99b4420a20 | SINGLE | ['10eec60ce79187686e052092e5383c99b4420a20'] | {'884316deb4c9fdf9becfa31831a9e40717e3026c'} | 10eec60ce79187686e052092e5383c99b4420a20 | 1 | 07/28/2016, 01:11:29 | vfs: ioctl: prevent double-fetch in dedupe ioctl
This prevents a double-fetch from user space that can lead to to an
undersized allocation and heap overflow.
Fixes: 54dbc1517237 ("vfs: hoist the btrfs deduplication ioctl to the vfs")
Signed-off-by: Scott Bauer <sbauer@plzdonthack.me>
Signed-off-by: Linus Torvalds <to... | Scott Bauer | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -590,6 +590,7 @@ static long ioctl_file_dedupe_range(struct file *file, void __user *arg)\n \t\tgoto out;\n \t}\n \n+\tsame->dest_count = count;\n \tret = vfs_dedupe_file_range(file, same);\n \tif (ret)\n \t\tgoto out;",
"path": "fs/io... | c | CWE-119 | [
"fs/ioctl.c"
] | fs/ioctl.c | 1 |
static void put_ctx(struct perf_event_context *ctx) } } /* * This must be done under the ctx->lock, such as to serialize against * context_equiv(), therefore we cannot call put_ctx() since that might end up int __perf_event_disable(void *info) * is the current context on this CPU and preemption is disabled, * he... | static void put_ctx(struct perf_event_context *ctx) } } /* * Because of perf_event::ctx migration in sys_perf_event_open::move_group and * perf_pmu_migrate_context() we need some magic. * * Those places that change perf_event::ctx will hold both * perf_event_ctx::mutex of the 'old' and 'new' ctx value. * * Lo... | CVE-2016-6786 | {'CWE-264'} | 10 | {'https://github.com/torvalds/linux/commit/f63a8daa5812afef4f06c962351687e1ff9ccb2b'} | nvd | kernel/events/core.c in the performance subsystem in the Linux kernel before 4.0 mismanages locks during certain migrations, which allows local users to gain privileges via a crafted application, aka Android internal bug 30955111. | 2016-12-28 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/f63a8daa5812afef4f06c962351687e1ff9ccb2b | f63a8daa5812afef4f06c962351687e1ff9ccb2b | SINGLE | ['f63a8daa5812afef4f06c962351687e1ff9ccb2b'] | {'652884fe0c7bd57f534c5fe68d6def0dc8c4b7ed'} | f63a8daa5812afef4f06c962351687e1ff9ccb2b | 1 | 01/23/2015, 11:24:14 | perf: Fix event->ctx locking
There have been a few reported issues wrt. the lack of locking around
changing event->ctx. This patch tries to address those.
It avoids the whole rwsem thing; and while it appears to work, please
give it some thought in review.
What I did fail at is sensible runtime checks on the use of
... | Peter Zijlstra | null | {'additions': 207, 'deletions': 37, 'total': 244} | [
{
"additions": 207,
"changes": 244,
"deletions": 37,
"patch": "@@ -906,6 +906,77 @@ static void put_ctx(struct perf_event_context *ctx)\n \t}\n }\n \n+/*\n+ * Because of perf_event::ctx migration in sys_perf_event_open::move_group and\n+ * perf_pmu_migrate_context() we need some magic.\n+ *\n+ * Tho... | c | CWE-264 | [
"kernel/events/core.c"
] | kernel/events/core.c | 1 |
function filter_ensure_valid_filter( array $p_filter_arr ) { # if the version is old, update it $p_filter_arr['_version'] = FILTER_VERSION; } if( !isset( $p_filter_arr['_view_type'] ) ) { $p_filter_arr['_view_type'] = gpc_get_string( 'view_type', 'simple' ); } if( !isset( $p_filter_arr[FILTER_PROPERTY_ISSUES... | function filter_ensure_valid_filter( array $p_filter_arr ) { # if the version is old, update it $p_filter_arr['_version'] = FILTER_VERSION; } # Filter view type - ensure it's either 'simple' or 'advanced' (prevent XSS) if( !isset( $p_filter_arr['_view_type'] ) ) { $p_filter_arr['_view_type'] = gpc_get_string... | CVE-2016-6837 | {'CWE-79'} | 2.9 | {'https://github.com/mantisbt/mantisbt/commit/7086c2d8b4b20ac14013b36761ac04f0abf21a4e'} | nvd | Cross-site scripting (XSS) vulnerability in MantisBT Filter API in MantisBT versions before 1.2.19, and versions 2.0.0-beta1, 1.3.0-beta1 allows remote attackers to inject arbitrary web script or HTML via the 'view_type' parameter. | 2017-01-10 | 1 | https://github.com/mantisbt/mantisbt | https://github.com/mantisbt/mantisbt/commit/7086c2d8b4b20ac14013b36761ac04f0abf21a4e | 7086c2d8b4b20ac14013b36761ac04f0abf21a4e | SINGLE | ['7086c2d8b4b20ac14013b36761ac04f0abf21a4e'] | {'b66af6d2ed9883c04e71ef132a3b36837f91fc62'} | 7086c2d8b4b20ac14013b36761ac04f0abf21a4e | 1 | 08/16/2016, 21:22:40 | Fix XSS in view_all_bug_page.php
The value of the view_type parameter on the view_all_bug_page.php page
was not encoded before being displayed.
This vulnerability was discovered by Will Dollman of Netcraft Ltd.
Initial patch modified to use strict comparison per Will's suggestion.
Fixes #21611 | Damien Regad | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -489,9 +489,15 @@ function filter_ensure_valid_filter( array $p_filter_arr ) {\n \t\t# if the version is old, update it\n \t\t$p_filter_arr['_version'] = FILTER_VERSION;\n \t}\n+\n+\t# Filter view type - ensure it's either 'simple' or 'adv... | php | CWE-79 | [
"core/filter_api.php"
] | core/filter_api.php | 1 |
static void *zend_mm_realloc_heap(zend_mm_heap *heap, void *ptr, size_t size, si ZEND_MM_CHECK(chunk->heap == heap, "zend_mm_heap corrupted"); if (info & ZEND_MM_IS_SRUN) { int old_bin_num, bin_num; old_bin_num = ZEND_MM_SRUN_BIN_NUM(info); old_size = bin_data_size[old_bin_num]; bin_num = ZEND_MM_SMA... | static void *zend_mm_realloc_heap(zend_mm_heap *heap, void *ptr, size_t size, si ZEND_MM_CHECK(chunk->heap == heap, "zend_mm_heap corrupted"); if (info & ZEND_MM_IS_SRUN) { int old_bin_num = ZEND_MM_SRUN_BIN_NUM(info); old_size = bin_data_size[old_bin_num]; if (size <= ZEND_MM_MAX_SMALL_SIZE) { int b... | CVE-2016-7133 | {'CWE-190'} | 6.4 | {'https://github.com/php/php-src/commit/c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911'} | nvd | Zend/zend_alloc.c in PHP 7.x before 7.0.10, when open_basedir is enabled, mishandles huge realloc operations, which allows remote attackers to cause a denial of service (integer overflow) or possibly have unspecified other impact via a long pathname. | 2016-09-12 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911 | c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911 | SINGLE | ['c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911'] | {'6304a611cdaa3563045dbab84824202bc634bcce'} | c2a13ced4272f2e65d2773e2ea6ca11c1ce4a911 | 1 | 08/15/2016, 02:07:15 | Fix bug #72742 - memory allocator fails to realloc small block to large one | Stanislav Malyshev | null | {'additions': 12, 'deletions': 12, 'total': 24} | [
{
"additions": 12,
"changes": 24,
"deletions": 12,
"patch": "@@ -1548,21 +1548,21 @@ static void *zend_mm_realloc_heap(zend_mm_heap *heap, void *ptr, size_t size, si\n \n \t\tZEND_MM_CHECK(chunk->heap == heap, \"zend_mm_heap corrupted\");\n \t\tif (info & ZEND_MM_IS_SRUN) {\n-\t\t\tint old_bin_num, ... | c | CWE-190 | [
"Zend/zend_alloc.c"
] | Zend/zend_alloc.c | 1 |
PHP_FUNCTION(curl_reset) PHP_FUNCTION(curl_escape) { char *str = NULL, *res = NULL; size_t str_len = 0; zval *zid; php_curl *ch; PHP_FUNCTION(curl_escape) RETURN_FALSE; } if ((res = curl_easy_escape(ch->cp, str, str_len))) { RETVAL_STRING(res); curl_free(res); PHP_FUNCTION(curl_unesc... | PHP_FUNCTION(curl_reset) PHP_FUNCTION(curl_escape) { char *str = NULL, *res = NULL; size_t str_len = 0; zval *zid; php_curl *ch; PHP_FUNCTION(curl_escape) RETURN_FALSE; } if (ZEND_SIZE_T_INT_OVFL(str_len)) { RETURN_FALSE; } if ((res = curl_easy_escape(ch->cp, str, str_len))) { RETVAL... | CVE-2016-7134 | {'CWE-119'} | 6.4 | {'https://github.com/php/php-src/commit/72dbb7f416160f490c4e9987040989a10ad431c7'} | nvd | ext/curl/interface.c in PHP 7.x before 7.0.10 does not work around a libcurl integer overflow, which allows remote attackers to cause a denial of service (allocation error and heap-based buffer overflow) or possibly have unspecified other impact via a long string that is mishandled in a curl_escape call. | 2016-09-12 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/72dbb7f416160f490c4e9987040989a10ad431c7 | 72dbb7f416160f490c4e9987040989a10ad431c7 | SINGLE | ['72dbb7f416160f490c4e9987040989a10ad431c7'] | {'1bcd439cad5eefeef1fecbc9076b72ef76fb80b6'} | 72dbb7f416160f490c4e9987040989a10ad431c7 | 1 | 08/03/2016, 07:58:55 | Fix bug #72674 - check both curl_escape and curl_unescape | Stanislav Malyshev | null | {'additions': 6, 'deletions': 2, 'total': 8} | [
{
"additions": 6,
"changes": 8,
"deletions": 2,
"patch": "@@ -3517,7 +3517,7 @@ PHP_FUNCTION(curl_reset)\n PHP_FUNCTION(curl_escape)\n {\n \tchar *str = NULL, *res = NULL;\n-\tsize_t str_len = 0;\n+\tsize_t str_len = 0;\n \tzval *zid;\n \tphp_curl *ch;\n \n@@ -3529,6 +3529,1... | c | CWE-119 | [
"ext/curl/interface.c"
] | ext/curl/interface.c | 1 |
class CommandAuthenticate : public Command : Command(Creator, "AUTHENTICATE", 1), authExt(ext), cap(Cap) { works_before_reg = true; } CmdResult Handle (const std::vector<std::string>& parameters, User *user) class CommandAuthenticate : public Command if (!cap.ext.get(user)) return CMD_FAILURE; SaslA... | class CommandAuthenticate : public Command : Command(Creator, "AUTHENTICATE", 1), authExt(ext), cap(Cap) { works_before_reg = true; allow_empty_last_param = false; } CmdResult Handle (const std::vector<std::string>& parameters, User *user) class CommandAuthenticate : public Command if (!cap.ext.get(user))... | CVE-2016-7142 | {'CWE-264'} | 2.9 | {'https://github.com/inspircd/inspircd/commit/74fafb7f11b06747f69f182ad5e3769b665eea7a'} | nvd | The m_sasl module in InspIRCd before 2.0.23, when used with a service that supports SASL_EXTERNAL authentication, allows remote attackers to spoof certificate fingerprints and consequently log in as another user via a crafted SASL message. | 2016-09-26 | 1 | https://github.com/inspircd/inspircd | https://github.com/inspircd/inspircd/commit/74fafb7f11b06747f69f182ad5e3769b665eea7a | 74fafb7f11b06747f69f182ad5e3769b665eea7a | SINGLE | ['74fafb7f11b06747f69f182ad5e3769b665eea7a'] | {'5288575567d453ebd9dfbec44e4948599527dde9'} | 74fafb7f11b06747f69f182ad5e3769b665eea7a | 1 | 09/03/2016, 02:57:03 | m_sasl: don't allow AUTHENTICATE with mechanisms with a space | Adam | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -189,6 +189,7 @@ class CommandAuthenticate : public Command\n \t\t: Command(Creator, \"AUTHENTICATE\", 1), authExt(ext), cap(Cap)\n \t{\n \t\tworks_before_reg = true;\n+\t\tallow_empty_last_param = false;\n \t}\n \n \tCmdResult Handle (con... | cpp | CWE-264 | [
"src/modules/m_sasl.cpp"
] | src/modules/m_sasl.cpp | 1 |
CMD_FUNC(m_authenticate) return 0; } if (strlen(parv[1]) > 400) { sendto_one(sptr, err_str(ERR_SASLTOOLONG), me.name, BadPtr(sptr->name) ? "*" : sptr->name); | CMD_FUNC(m_authenticate) return 0; } if ((parv[1][0] == ':') || strchr(parv[1], ' ')) { sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND), me.name, "*", "AUTHENTICATE", "Invalid parameter"); return 0; } if (strlen(parv[1]) > 400) { sendto_one(sptr, err_str(ERR_SASLTOOLONG), me.name, BadPtr(sptr->name) ? "*... | CVE-2016-7144 | {'CWE-287'} | 6.4 | {'https://github.com/unrealircd/unrealircd/commit/f473e355e1dc422c4f019dbf86bc50ba1a34a766'} | nvd | The m_authenticate function in modules/m_sasl.c in UnrealIRCd before 3.2.10.7 and 4.x before 4.0.6 allows remote attackers to spoof certificate fingerprints and consequently log in as another user via a crafted AUTHENTICATE parameter. | 2017-01-18 | 1 | https://github.com/unrealircd/unrealircd | https://github.com/unrealircd/unrealircd/commit/f473e355e1dc422c4f019dbf86bc50ba1a34a766 | f473e355e1dc422c4f019dbf86bc50ba1a34a766 | SINGLE | ['f473e355e1dc422c4f019dbf86bc50ba1a34a766'] | {'ae0fc98a04fce80e5b940617b9b3f5e43daa2dba'} | f473e355e1dc422c4f019dbf86bc50ba1a34a766 | 1 | 09/03/2016, 18:08:21 | Fix AUTHENTICATE bug | Bram Matthys | null | {'additions': 6, 'deletions': 0, 'total': 6} | [
{
"additions": 6,
"changes": 6,
"deletions": 0,
"patch": "@@ -230,6 +230,12 @@ CMD_FUNC(m_authenticate)\n \t\treturn 0;\n \t}\n \n+\tif ((parv[1][0] == ':') || strchr(parv[1], ' '))\n+\t{\n+\t\tsendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND), me.name, \"*\", \"AUTHENTICATE\", \"Invalid parameter\");\n... | c | CWE-287 | [
"src/modules/m_sasl.c"
] | src/modules/m_sasl.c | 1 |
int m_authenticate(struct Client* cptr, struct Client* sptr, int parc, char* par if (acptr) { if (first) { if (!EmptyString(cli_sslclifp(cptr))) sendcmdto_one(&me, CMD_SASL, acptr, "%C %C!%u.%u S %s :%s", acptr, &me, cli_fd(cptr), cli_saslcookie(cptr), int m_authenticate(stru... | int m_authenticate(struct Client* cptr, struct Client* sptr, int parc, char* par if (acptr) { if (first) { if (*parv[1] == ':' || strchr(parv[1], ' ')) return exit_client(cptr, sptr, sptr, "Malformed AUTHENTICATE"); if (!EmptyString(cli_sslclifp(cptr))) sendcmdto_one(&me, CMD_SASL, acptr, ... | CVE-2016-7145 | {'CWE-287'} | 6.4 | {'https://github.com/evilnet/nefarious2/commit/f50a84bad996d438e7b31b9e74c32a41e43f8be5'} | nvd | The m_authenticate function in ircd/m_authenticate.c in nefarious2 allows remote attackers to spoof certificate fingerprints and consequently log in as another user via a crafted AUTHENTICATE parameter. | 2017-03-07 | 1 | https://github.com/evilnet/nefarious2 | https://github.com/evilnet/nefarious2/commit/f50a84bad996d438e7b31b9e74c32a41e43f8be5 | f50a84bad996d438e7b31b9e74c32a41e43f8be5 | SINGLE | ['f50a84bad996d438e7b31b9e74c32a41e43f8be5'] | {'656d86a61249fa4411d73c8d2d7cf9deccc97cec'} | f50a84bad996d438e7b31b9e74c32a41e43f8be5 | 1 | 09/03/2016, 22:34:04 | Fix to prevent SASL security vulnerability | Matthew Beeching | null | {'additions': 4, 'deletions': 0, 'total': 4} | [
{
"additions": 4,
"changes": 4,
"deletions": 0,
"patch": "@@ -150,6 +150,8 @@ int m_authenticate(struct Client* cptr, struct Client* sptr, int parc, char* par\n \n if (acptr) {\n if (first) {\n+ if (*parv[1] == ':' || strchr(parv[1], ' '))\n+\t\treturn exit_client(cptr, sptr, sptr, \"Malf... | c | CWE-287 | [
"ircd/m_authenticate.c"
] | ircd/m_authenticate.c | 1 |
<?php if( $Settings->get( 'notification_logo' ) != '' ) { $site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.$Settings->get( 'notification_long_name' ).'"' : ''; $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.$Settings->get( 'notification_short_name' ).'"'.$si... | <?php if( $Settings->get( 'notification_logo' ) != '' ) { $site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title="'.format_to_output( $Settings->get( 'notification_long_name' ), 'htmlattr' ).'"' : ''; $site_name_text = '<img src="'.$Settings->get( 'notification_logo' ).'" alt="'.format_to_output( $... | CVE-2016-7150 | {'CWE-79'} | 2.9 | {'https://github.com/b2evolution/b2evolution/commit/dd975fff7fce81bf12f9c59edb1a99475747c83c'} | nvd | Cross-site scripting (XSS) vulnerability in b2evolution 6.7.5 and earlier allows remote authenticated users to inject arbitrary web script or HTML via the site name. | 2017-01-18 | 1 | https://github.com/b2evolution/b2evolution | https://github.com/b2evolution/b2evolution/commit/dd975fff7fce81bf12f9c59edb1a99475747c83c | dd975fff7fce81bf12f9c59edb1a99475747c83c | SINGLE | ['dd975fff7fce81bf12f9c59edb1a99475747c83c'] | {'9a4ab85439d1b838ee7b8eeebbf59174bb787811'} | dd975fff7fce81bf12f9c59edb1a99475747c83c | 1 | 08/12/2016, 15:24:55 | Fix XSS vulnerability on "site name" | yurabakhtin | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -17,8 +17,8 @@\n <?php\n if( $Settings->get( 'notification_logo' ) != '' )\n {\n-\t$site_title = $Settings->get( 'notification_long_name' ) != '' ? ' title=\"'.$Settings->get( 'notification_long_name' ).'\"' : '';\n-\t$site_name_text = '<i... | php | CWE-79 | [
"skins_site/_site_body_header.inc.php"
] | skins_site/_site_body_header.inc.php | 1 |
static int regs_cmp(const void *a, const void *b) return (l - r); } static bool intel_regs_sorted = false; // return register of given instruction id // return 0 if not found // this is to handle instructions embedding accumulate registers into AsmStrs[] x86_reg X86_insn_reg_intel(unsigned int id, enum cs_ac_type *a... | static int regs_cmp(const void *a, const void *b) return (l - r); } // return register of given instruction id // return 0 if not found // this is to handle instructions embedding accumulate registers into AsmStrs[] x86_reg X86_insn_reg_intel(unsigned int id, enum cs_ac_type *access) { static bool intel_regs_sorted... | CVE-2016-7151 | {'CWE-125'} | 2.9 | {'https://github.com/aquynh/capstone/commit/87a25bb543c8e4c09b48d4b4a6c7db31ce58df06'} | nvd | Capstone 3.0.4 has an out-of-bounds vulnerability (SEGV caused by a read memory access) in X86_insn_reg_intel in arch/X86/X86Mapping.c. | 2019-05-15 | 1 | https://github.com/aquynh/capstone | https://github.com/aquynh/capstone/commit/87a25bb543c8e4c09b48d4b4a6c7db31ce58df06 | 87a25bb543c8e4c09b48d4b4a6c7db31ce58df06 | SINGLE | ['87a25bb543c8e4c09b48d4b4a6c7db31ce58df06'] | {'d7459a0ed760b62c08d2110292c20491cad8928f'} | 87a25bb543c8e4c09b48d4b4a6c7db31ce58df06 | 1 | 08/27/2016, 12:54:37 | x86: fast path checking for X86_insn_reg_intel() | Nguyen Anh Quynh | null | {'additions': 8, 'deletions': 3, 'total': 11} | [
{
"additions": 8,
"changes": 11,
"deletions": 3,
"patch": "@@ -2930,15 +2930,15 @@ static int regs_cmp(const void *a, const void *b)\n \treturn (l - r);\n }\n \n-static bool intel_regs_sorted = false;\n // return register of given instruction id\n // return 0 if not found\n // this is to handle inst... | c | CWE-125 | [
"arch/X86/X86Mapping.c"
] | arch/X86/X86Mapping.c | 1 |
function _insertid() { return ($this->_connectionID) ? $this->_connectionID->lastInsertId() : 0; } } class ADODB_pdo_base extends ADODB_pdo { | function _insertid() { return ($this->_connectionID) ? $this->_connectionID->lastInsertId() : 0; } /** * Quotes a string to be sent to the database. * If we have an active connection, delegates quoting to the underlying * PDO object. Otherwise, replace "'" by the value of $replaceQuote (same * behavior a... | CVE-2016-7405 | {'CWE-89'} | 6.4 | {'https://github.com/ADOdb/ADOdb/commit/bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8'} | nvd | The qstr method in the PDO driver in the ADOdb Library for PHP before 5.x before 5.20.7 might allow remote attackers to conduct SQL injection attacks via vectors related to incorrect quoting. | 2016-10-03 | 1 | https://github.com/ADOdb/ADOdb | https://github.com/ADOdb/ADOdb/commit/bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8 | bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8 | SINGLE | ['bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8'] | {'bfb32f996ece70578ca9189dff026b19e46bb61d'} | bd9eca9f40220f9918ec3cc7ae9ef422b3e448b8 | 1 | 05/26/2016, 11:33:55 | PDO: fix incorrect quoting allowing SQL injection
The PDO driver was relying on ADOConnection::qstr() for quoting strings.
An application relying on qstr() to manually prepare SQL statements
rather than using parameterized queries may be vulnerable to SQL
injection attacks, as demonstrated by @jdavidlists.
This commi... | Damien Regad | null | {'additions': 24, 'deletions': 0, 'total': 24} | [
{
"additions": 24,
"changes": 24,
"deletions": 0,
"patch": "@@ -518,6 +518,30 @@ function _insertid()\n \t{\n \t\treturn ($this->_connectionID) ? $this->_connectionID->lastInsertId() : 0;\n \t}\n+\n+\t/**\n+\t * Quotes a string to be sent to the database.\n+\t * If we have an active connection, dele... | php | CWE-89 | [
"drivers/adodb-pdo.inc.php"
] | drivers/adodb-pdo.inc.php | 1 |
php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zend_uchar * p = row_buffer->ptr; size_t data_size = row_buffer->app; zend_uchar * bit_area = (zend_uchar*) row_buffer->ptr + data_size + 1; /* we allocate from here */ DBG_ENTER("php_mysqlnd_rowp_read_text_protocol_aux"); php_mysqln... | php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_MEMORY_POOL_CHUNK * row_buffer, zend_uchar * p = row_buffer->ptr; size_t data_size = row_buffer->app; zend_uchar * bit_area = (zend_uchar*) row_buffer->ptr + data_size + 1; /* we allocate from here */ const zend_uchar * const packet_end = (zend_uchar*) row_buffer->pt... | CVE-2016-7412 | {'CWE-119'} | 6.4 | {'https://github.com/php/php-src/commit/28f80baf3c53e267c9ce46a2a0fadbb981585132'} | nvd | ext/mysqlnd/mysqlnd_wireprotocol.c in PHP before 5.6.26 and 7.x before 7.0.11 does not verify that a BIT field has the UNSIGNED_FLAG flag, which allows remote MySQL servers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted field metadata. | 2016-09-17 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/28f80baf3c53e267c9ce46a2a0fadbb981585132 | 28f80baf3c53e267c9ce46a2a0fadbb981585132 | SINGLE | ['28f80baf3c53e267c9ce46a2a0fadbb981585132'] | {'33d0ef0fefed7b8eb958aa4f1b4e2e7602953d30'} | 28f80baf3c53e267c9ce46a2a0fadbb981585132 | 1 | 09/13/2016, 03:25:08 | Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields | Stanislav Malyshev | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -1585,6 +1585,7 @@ php_mysqlnd_rowp_read_text_protocol_aux(MYSQLND_MEMORY_POOL_CHUNK * row_buffer,\n \tzend_uchar * p = row_buffer->ptr;\n \tsize_t data_size = row_buffer->app;\n \tzend_uchar * bit_area = (zend_uchar*) row_buffer->ptr + da... | c | CWE-119 | [
"ext/mysqlnd/mysqlnd_wireprotocol.c"
] | ext/mysqlnd/mysqlnd_wireprotocol.c | 1 |
PHP_FUNCTION( msgfmt_format_message ) RETURN_FALSE; } msgformat_data_init(&mfo->mf_data TSRMLS_CC); if(pattern && pattern_len) { | PHP_FUNCTION( msgfmt_format_message ) RETURN_FALSE; } INTL_CHECK_LOCALE_LEN(slocale_len); msgformat_data_init(&mfo->mf_data TSRMLS_CC); if(pattern && pattern_len) { | CVE-2016-7416 | {'CWE-119'} | 2.9 | {'https://github.com/php/php-src/commit/6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b'} | nvd | ext/intl/msgformat/msgformat_format.c in PHP before 5.6.26 and 7.x before 7.0.11 does not properly restrict the locale length provided to the Locale class in the ICU library, which allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a MessageFormatter::... | 2016-09-17 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b | 6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b | SINGLE | ['6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b'] | {'ba5ac0d360f0f2cab3ab5a478c601e4071acd0f2'} | 6d55ba265637d6adf0ba7e9c9ef11187d1ec2f5b | 1 | 09/06/2016, 01:01:35 | Fix bug #73007: add locale length check | Stanislav Malyshev | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -117,6 +117,8 @@ PHP_FUNCTION( msgfmt_format_message )\n \t\tRETURN_FALSE;\n \t}\n \n+\tINTL_CHECK_LOCALE_LEN(slocale_len);\n+\n \tmsgformat_data_init(&mfo->mf_data TSRMLS_CC);\n \n \tif(pattern && pattern_len) {",
"path": "ext/intl/ms... | c | CWE-119 | [
"ext/intl/msgformat/msgformat_format.c"
] | ext/intl/msgformat/msgformat_format.c | 1 |
var data = this._loadShares(path); var dropDownEl; var self = this; var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="' + itemType + '" data-item-source="' + path + '">'; if (data !== false && data[0] && !_.isUndefined(data[0].uid_file_owner) && data[0].uid_file_owner !==... | var data = this._loadShares(path); var dropDownEl; var self = this; var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="' + escapeHTML(itemType) + '" data-item-source="' + escapeHTML(path) + '">'; if (data !== false && data[0] && !_.isUndefined(data[0].uid_file_owner) && da... | CVE-2016-7419 | {'CWE-79'} | 2.9 | {'https://github.com/nextcloud/gallery/commit/6933d27afe518967bd1b60e6a7eacd88288929fc'} | nvd | Cross-site scripting (XSS) vulnerability in share.js in the gallery application in ownCloud Server before 9.0.4 and Nextcloud Server before 9.0.52 allows remote authenticated users to inject arbitrary web script or HTML via a crafted directory name. | 2016-09-17 | 1 | https://github.com/nextcloud/gallery | https://github.com/nextcloud/gallery/commit/6933d27afe518967bd1b60e6a7eacd88288929fc | 6933d27afe518967bd1b60e6a7eacd88288929fc | SINGLE | ['6933d27afe518967bd1b60e6a7eacd88288929fc'] | {'9d3cd61d6ffa21c95466cf041ab1f6b8f2968b26'} | 6933d27afe518967bd1b60e6a7eacd88288929fc | 1 | 07/03/2016, 21:27:04 | Add more escaping
Escape folder names in share.js | Olivier Paroz | null | {'additions': 2, 'deletions': 2, 'total': 4} | [
{
"additions": 2,
"changes": 4,
"deletions": 2,
"patch": "@@ -144,8 +144,8 @@\n \t\t\tvar data = this._loadShares(path);\n \t\t\tvar dropDownEl;\n \t\t\tvar self = this;\n-\t\t\tvar html = '<div id=\"dropdown\" class=\"drop shareDropDown\" data-item-type=\"' + itemType +\n-\t\t\t\t'\" data-item-sour... | js | CWE-79 | [
"js/vendor/owncloud/share.js"
] | js/vendor/owncloud/share.js | 1 |
static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb, } case ARCMSR_MESSAGE_WRITE_WQBUFFER: { unsigned char *ver_addr; int32_t user_len, cnt2end; uint8_t *pQbuffer, *ptmpuserbuffer; ver_addr = kmalloc(ARCMSR_API_DATA_BUFLEN, GFP_ATOMIC); if (!ver_addr) { static int arcmsr_iop_message_xfer(str... | static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb, } case ARCMSR_MESSAGE_WRITE_WQBUFFER: { unsigned char *ver_addr; uint32_t user_len; int32_t cnt2end; uint8_t *pQbuffer, *ptmpuserbuffer; ver_addr = kmalloc(ARCMSR_API_DATA_BUFLEN, GFP_ATOMIC); if (!ver_addr) { static int arcmsr_iop_messa... | CVE-2016-7425 | {'CWE-119'} | 10 | {'https://github.com/torvalds/linux/commit/7bc2b55a5c030685b399bb65b6baa9ccc3d1f167'} | nvd | The arcmsr_iop_message_xfer function in drivers/scsi/arcmsr/arcmsr_hba.c in the Linux kernel through 4.8.2 does not restrict a certain length field, which allows local users to gain privileges or cause a denial of service (heap-based buffer overflow) via an ARCMSR_MESSAGE_WRITE_WQBUFFER control code. | 2016-10-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/7bc2b55a5c030685b399bb65b6baa9ccc3d1f167 | 7bc2b55a5c030685b399bb65b6baa9ccc3d1f167 | SINGLE | ['7bc2b55a5c030685b399bb65b6baa9ccc3d1f167'] | {'38247feb60512a52c4f847933f8f931284dc21f4'} | 7bc2b55a5c030685b399bb65b6baa9ccc3d1f167 | 1 | 09/15/2016, 13:44:56 | scsi: arcmsr: Buffer overflow in arcmsr_iop_message_xfer()
We need to put an upper bound on "user_len" so the memcpy() doesn't
overflow.
Cc: <stable@vger.kernel.org>
Reported-by: Marco Grassi <marco.gra@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Sig... | Dan Carpenter | null | {'additions': 7, 'deletions': 1, 'total': 8} | [
{
"additions": 7,
"changes": 8,
"deletions": 1,
"patch": "@@ -2388,7 +2388,8 @@ static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb,\n \t}\n \tcase ARCMSR_MESSAGE_WRITE_WQBUFFER: {\n \t\tunsigned char *ver_addr;\n-\t\tint32_t user_len, cnt2end;\n+\t\tuint32_t user_len;\n+\t\tint32_t c... | c | CWE-119 | [
"drivers/scsi/arcmsr/arcmsr_hba.c"
] | drivers/scsi/arcmsr/arcmsr_hba.c | 1 |
function editor() { } public function exitEditor() { //eDebug($this->params,true); switch ($this->params['exitType']) { case 'saveAsCopy': $oldimage = new expFile($this->params['fid']); | function editor() { } public function exitEditor() { // clean up parameters $this->params['fid'] = intval($this->params['fid']); if (!empty($this->params['cpi']) && strpos($this->params['cpi'], '..') !== false) { $this->params['exitType'] = 'error'; } sw... | CVE-2016-7452 | {'CWE-434'} | 2.9 | {'https://github.com/exponentcms/exponent-cms/commit/c1092f167cc6c78dc8bf9bf149946c5219413df3'} | nvd | The Pixidou Image Editor in Exponent CMS prior to v2.3.9 patch 2 could be used to upload a malicious file to any folder on the site via a cpi directory traversal. | 2016-11-03 | 1 | https://github.com/exponentcms/exponent-cms | https://github.com/exponentcms/exponent-cms/commit/c1092f167cc6c78dc8bf9bf149946c5219413df3 | c1092f167cc6c78dc8bf9bf149946c5219413df3 | SINGLE | ['c1092f167cc6c78dc8bf9bf149946c5219413df3'] | {'e916702a91a6342bbab483a2be2ba2f11dca3aa3'} | c1092f167cc6c78dc8bf9bf149946c5219413df3 | 1 | 09/14/2016, 21:50:30 | security fix to pixidou editor | dleffler | null | {'additions': 5, 'deletions': 2, 'total': 7} | [
{
"additions": 5,
"changes": 7,
"deletions": 2,
"patch": "@@ -58,8 +58,11 @@ function editor() {\n }\n \n public function exitEditor() {\n-\n- //eDebug($this->params,true);\n+ // clean up parameters\n+ $this->params['fid'] = intval($this->params['fid']);\n+ if... | php | CWE-434 | [
"framework/modules/pixidou/controllers/pixidouController.php"
] | framework/modules/pixidou/controllers/pixidouController.php | 1 |
SPL_METHOD(SplObjectStorage, unserialize) --p; /* for ';' */ count = Z_LVAL_P(pcount); while (count-- > 0) { spl_SplObjectStorageElement *pelement; zend_string *hash; SPL_METHOD(SplObjectStorage, unserialize) if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash)) { goto outexcept; } if (Z_TYPE(... | SPL_METHOD(SplObjectStorage, unserialize) --p; /* for ';' */ count = Z_LVAL_P(pcount); ZVAL_UNDEF(&entry); ZVAL_UNDEF(&inf); while (count-- > 0) { spl_SplObjectStorageElement *pelement; zend_string *hash; SPL_METHOD(SplObjectStorage, unserialize) if (!php_var_unserialize(&entry, &p, s + buf_len, &var_hash... | CVE-2016-7480 | {'CWE-119'} | 6.4 | {'https://github.com/php/php-src/commit/61cdd1255d5b9c8453be71aacbbf682796ac77d4'} | nvd | The SplObjectStorage unserialize implementation in ext/spl/spl_observer.c in PHP before 7.0.12 does not verify that a key is an object, which allows remote attackers to execute arbitrary code or cause a denial of service (uninitialized memory access) via crafted serialized data. | 2017-01-11 | 1 | https://github.com/php/php-src | https://github.com/php/php-src/commit/61cdd1255d5b9c8453be71aacbbf682796ac77d4 | 61cdd1255d5b9c8453be71aacbbf682796ac77d4 | SINGLE | ['61cdd1255d5b9c8453be71aacbbf682796ac77d4'] | {'1b29e4488e19c89e5b37ecb26acaec443d7f1355'} | 61cdd1255d5b9c8453be71aacbbf682796ac77d4 | 1 | 10/11/2016, 05:54:29 | Fix bug #73257 and bug #73258 - SplObjectStorage unserialize allows use of non-object as key | Stanislav Malyshev | null | {'additions': 8, 'deletions': 6, 'total': 14} | [
{
"additions": 8,
"changes": 14,
"deletions": 6,
"patch": "@@ -772,6 +772,9 @@ SPL_METHOD(SplObjectStorage, unserialize)\n \t--p; /* for ';' */\n \tcount = Z_LVAL_P(pcount);\n \n+\tZVAL_UNDEF(&entry);\n+\tZVAL_UNDEF(&inf);\n+\n \twhile (count-- > 0) {\n \t\tspl_SplObjectStorageElement *pelement;\n \... | c | CWE-119 | [
"ext/spl/spl_observer.c"
] | ext/spl/spl_observer.c | 1 |
static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) map_length, number_colormaps, number_planes, one, offset, pixel_info_length; static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->alpha_trait != UndefinedPixelTrait) ... | static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) map_length, number_colormaps, number_planes, number_planes_filled, one, offset, pixel_info_length; static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) if (image->alpha_trait != ... | CVE-2016-7515 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/2ad6d33493750a28a5a655d319a8e0b16c392de1'} | nvd | The ReadRLEImage function in coders/rle.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via vectors related to the number of pixels. | 2017-04-19 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/2ad6d33493750a28a5a655d319a8e0b16c392de1 | 2ad6d33493750a28a5a655d319a8e0b16c392de1 | SINGLE | ['2ad6d33493750a28a5a655d319a8e0b16c392de1'] | {'70aa59ba920fd758a05dfd1e59a446638b3dd2a9'} | 2ad6d33493750a28a5a655d319a8e0b16c392de1 | 1 | 10/05/2015, 20:11:31 | Fixed check for the number of pixels that will be allocated. | dirk | null | {'additions': 6, 'deletions': 2, 'total': 8} | [
{
"additions": 6,
"changes": 8,
"deletions": 2,
"patch": "@@ -173,6 +173,7 @@ static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception)\n map_length,\n number_colormaps,\n number_planes,\n+ number_planes_filled,\n one,\n offset,\n pixel_info_length;\... | c | CWE-125 | [
"coders/rle.c"
] | coders/rle.c | 1 |
static MagickBooleanType WriteHDRImage(const ImageInfo *image_info,Image *image, } if (image->gamma != 0.0) { count=FormatLocaleString(header,MagickPathExtent,"GAMMA=%g\n",image->gamma); (void) WriteBlob(image,(size_t) count,(unsigned char *) header); } count=FormatLocaleString(header,Magic... | static MagickBooleanType WriteHDRImage(const ImageInfo *image_info,Image *image, } if (image->gamma != 0.0) { count=FormatLocaleString(header,MagickPathExtent,"GAMMA=%g\n", image->gamma); (void) WriteBlob(image,(size_t) count,(unsigned char *) header); } count=FormatLocaleString(hea... | CVE-2016-7520 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/14e606db148d6ebcaae20f1e1d6d71903ca4a556'} | nvd | Heap-based buffer overflow in coders/hdr.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted HDR file. | 2017-04-20 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/14e606db148d6ebcaae20f1e1d6d71903ca4a556 | 14e606db148d6ebcaae20f1e1d6d71903ca4a556 | SINGLE | ['14e606db148d6ebcaae20f1e1d6d71903ca4a556'] | {'b8aa2bd9f7ff12562e6d6db2bd1d3f3add74c9f8'} | 14e606db148d6ebcaae20f1e1d6d71903ca4a556 | 1 | 01/23/2016, 00:39:55 | https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1537213 | Cristy | null | {'additions': 4, 'deletions': 2, 'total': 6} | [
{
"additions": 4,
"changes": 6,
"deletions": 2,
"patch": "@@ -723,7 +723,8 @@ static MagickBooleanType WriteHDRImage(const ImageInfo *image_info,Image *image,\n }\n if (image->gamma != 0.0)\n {\n- count=FormatLocaleString(header,MagickPathExtent,\"GAMMA=%g\\n\",image->gamma);\n+ ... | c | CWE-125 | [
"coders/hdr.c"
] | coders/hdr.c | 1 |
static ssize_t DecodePSDPixels(const size_t number_compact_pixels, length++; for (j=0; j < (ssize_t) length; j++) { switch (depth) { case 1: static ssize_t DecodePSDPixels(const size_t number_compact_pixels, break; } } CheckNumberCompactPixels; compac... | static ssize_t DecodePSDPixels(const size_t number_compact_pixels, length++; for (j=0; j < (ssize_t) length; j++) { CheckNumberCompactPixels; switch (depth) { case 1: static ssize_t DecodePSDPixels(const size_t number_compact_pixels, break; } } compac... | CVE-2016-7521 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/30eec879c8b446b0ea9a3bb0da1a441cc8482bc4'} | nvd | Heap-based buffer overflow in coders/psd.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted PSD file. | 2017-04-20 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/30eec879c8b446b0ea9a3bb0da1a441cc8482bc4 | 30eec879c8b446b0ea9a3bb0da1a441cc8482bc4 | SINGLE | ['30eec879c8b446b0ea9a3bb0da1a441cc8482bc4'] | {'922927e43a3c95ad763b3c435e9a69c8d9b4d054'} | 30eec879c8b446b0ea9a3bb0da1a441cc8482bc4 | 1 | 02/02/2016, 20:03:24 | Moved check for https://github.com/ImageMagick/ImageMagick/issues/92. | dirk | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -487,6 +487,7 @@ static ssize_t DecodePSDPixels(const size_t number_compact_pixels,\n length++;\n for (j=0; j < (ssize_t) length; j++)\n {\n+ CheckNumberCompactPixels;\n switch (depth)\n {\n case 1:\n@@... | c | CWE-125 | [
"coders/psd.c"
] | coders/psd.c | 1 |
static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception) if (blocks == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); count=ReadBlob(image,(size_t) length,blocks); if ((count != (ssize_t) length) || (LocaleNCompare(... | static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception) if (blocks == (unsigned char *) NULL) ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); count=ReadBlob(image,(size_t) length,blocks); if ((count != (ssize_t) length) || (length < 4) || ... | CVE-2016-7522 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/4b1b9c0522628887195bad3a6723f7000b0c9a58'} | nvd | The ReadPSDImage function in MagickCore/locale.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted PSD file. | 2017-04-19 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/4b1b9c0522628887195bad3a6723f7000b0c9a58 | 4b1b9c0522628887195bad3a6723f7000b0c9a58 | SINGLE | ['4b1b9c0522628887195bad3a6723f7000b0c9a58'] | {'30eec879c8b446b0ea9a3bb0da1a441cc8482bc4'} | 4b1b9c0522628887195bad3a6723f7000b0c9a58 | 1 | 02/02/2016, 20:15:13 | Added extra check to fix https://github.com/ImageMagick/ImageMagick/issues/93 | dirk | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1936,7 +1936,7 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception)\n if (blocks == (unsigned char *) NULL)\n ThrowReaderException(ResourceLimitError,\"MemoryAllocationFailed\");\n count=... | c | CWE-125 | [
"coders/psd.c"
] | coders/psd.c | 1 |
static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image) static inline size_t GetPSDRowSize(Image *image) { if (image->depth == 1) return((image->columns+7)/8); else return(image->columns*GetPSDPacketSize(image)); } | static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image) static inline size_t GetPSDRowSize(Image *image) { if (image->depth == 1) return(((image->columns+7)/8)*GetPSDPacketSize(image)); else return(image->columns*GetPSDPacketSize(image)); } | CVE-2016-7525 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/5f16640725b1225e6337c62526e6577f0f88edb8'} | nvd | Heap-based buffer overflow in coders/psd.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted PSD file. | 2017-04-20 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/5f16640725b1225e6337c62526e6577f0f88edb8 | 5f16640725b1225e6337c62526e6577f0f88edb8 | SINGLE | ['5f16640725b1225e6337c62526e6577f0f88edb8'] | {'998c687fb83993c13fa711d75f59a95b38ceab77'} | 5f16640725b1225e6337c62526e6577f0f88edb8 | 1 | 02/06/2016, 11:26:49 | Fixed head buffer overflow reported in: https://github.com/ImageMagick/ImageMagick/issues/98 | dirk | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -575,7 +575,7 @@ static inline MagickSizeType GetPSDSize(const PSDInfo *psd_info,Image *image)\n static inline size_t GetPSDRowSize(Image *image)\n {\n if (image->depth == 1)\n- return((image->columns+7)/8);\n+ return(((image->colu... | c | CWE-125 | [
"coders/psd.c"
] | coders/psd.c | 1 |
static MagickBooleanType load_tile(Image *image,Image *tile_image, *xcfdata, *xcfodata; xcfdata=(XCFPixelInfo *) AcquireQuantumMemory(data_length,sizeof(*xcfdata)); if (xcfdata == (XCFPixelInfo *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); | static MagickBooleanType load_tile(Image *image,Image *tile_image, *xcfdata, *xcfodata; xcfdata=(XCFPixelInfo *) AcquireQuantumMemory(MagickMax(data_length, tile_image->columns*tile_image->rows),sizeof(*xcfdata)); if (xcfdata == (XCFPixelInfo *) NULL) ThrowBinaryException(ResourceLimitError,"Memor... | CVE-2016-7529 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/a2e1064f288a353bc5fef7f79ccb7683759e775c'} | nvd | coders/xcf.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted XCF file. | 2017-04-19 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/a2e1064f288a353bc5fef7f79ccb7683759e775c | a2e1064f288a353bc5fef7f79ccb7683759e775c | SINGLE | ['a2e1064f288a353bc5fef7f79ccb7683759e775c'] | {'c4e63ad30bc42da691f2b5f82a24516dd6b4dc70'} | a2e1064f288a353bc5fef7f79ccb7683759e775c | 1 | 01/30/2016, 14:51:24 | https://github.com/ImageMagick/ImageMagick/issues/104 | Cristy | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -347,7 +347,8 @@ static MagickBooleanType load_tile(Image *image,Image *tile_image,\n *xcfdata,\n *xcfodata;\n \n- xcfdata=(XCFPixelInfo *) AcquireQuantumMemory(data_length,sizeof(*xcfdata));\n+ xcfdata=(XCFPixelInfo *) AcquireQu... | c | CWE-125 | [
"coders/xcf.c"
] | coders/xcf.c | 1 |
static void RemoveResolutionFromResourceBlock(StringInfo *bim_profile) register unsigned char *q; q=(unsigned char *) p; if (LocaleNCompare((const char *) p,"8BIM",4) != 0) break; p=PushLongPixel(MSBEndian,p,&long_sans); p=PushShortPixel(MSBEndian,p,&id); p=PushShortPixel(MSBEndian... | static void RemoveResolutionFromResourceBlock(StringInfo *bim_profile) register unsigned char *q; ssize_t cnt; q=(unsigned char *) p; if (LocaleNCompare((const char *) p,"8BIM",4) != 0) return; p=PushLongPixel(MSBEndian,p,&long_sans); p=PushShortPixel(MSBEndian,p,&id); p... | CVE-2016-7532 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/4f2c04ea6673863b87ac7f186cbb0d911f74085c'} | nvd | coders/psd.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted PSD file. | 2017-04-20 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/4f2c04ea6673863b87ac7f186cbb0d911f74085c | 4f2c04ea6673863b87ac7f186cbb0d911f74085c | SINGLE | ['4f2c04ea6673863b87ac7f186cbb0d911f74085c'] | {'4b1b9c0522628887195bad3a6723f7000b0c9a58'} | 4f2c04ea6673863b87ac7f186cbb0d911f74085c | 1 | 02/02/2016, 20:35:45 | Added check for out of bounds read (https://github.com/ImageMagick/ImageMagick/issues/108). | dirk | null | {'additions': 12, 'deletions': 7, 'total': 19} | [
{
"additions": 12,
"changes": 19,
"deletions": 7,
"patch": "@@ -2605,18 +2605,23 @@ static void RemoveResolutionFromResourceBlock(StringInfo *bim_profile)\n register unsigned char\n *q;\n \n+ ssize_t\n+ cnt;\n+\n q=(unsigned char *) p;\n if (LocaleNCompare((const char *) p,... | c | CWE-125 | [
"coders/psd.c"
] | coders/psd.c | 1 |
static Image *ReadWPGImage(const ImageInfo *image_info, { ldblk=(ssize_t) ((bpp*image->columns+7)/8); BImgBuff=(unsigned char *) AcquireQuantumMemory((size_t) ldblk,sizeof(*BImgBuff)); if (BImgBuff == (unsigned char *) ... | static Image *ReadWPGImage(const ImageInfo *image_info, { ldblk=(ssize_t) ((bpp*image->columns+7)/8); BImgBuff=(unsigned char *) AcquireQuantumMemory((size_t) ldblk+1,sizeof(*BImgBuff)); if (BImgBuff == (unsigned char *... | CVE-2016-7533 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/bef1e4f637d8f665bc133a9c6d30df08d983bc3a'} | nvd | The ReadWPGImage function in coders/wpg.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted WPG file. | 2017-04-19 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/bef1e4f637d8f665bc133a9c6d30df08d983bc3a | bef1e4f637d8f665bc133a9c6d30df08d983bc3a | SINGLE | ['bef1e4f637d8f665bc133a9c6d30df08d983bc3a'] | {'cc29fa5cfa58241d9ee1b5f576945da1601d3bbd'} | bef1e4f637d8f665bc133a9c6d30df08d983bc3a | 1 | 02/06/2016, 02:20:42 | https://github.com/ImageMagick/ImageMagick/issues/120 | Cristy | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1331,7 +1331,7 @@ static Image *ReadWPGImage(const ImageInfo *image_info,\n {\n ldblk=(ssize_t) ((bpp*image->columns+7)/8);\n BImgBuff=(unsigned char *) AcquireQuantumMemory((size_... | c | CWE-125 | [
"coders/wpg.c"
] | coders/wpg.c | 1 |
static void RemoveICCProfileFromResourceBlock(StringInfo *bim_profile) p=PushLongPixel(MSBEndian,p,&count); if (id == 0x0000040f) { (void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length- (PSDQuantum(count)+12)-(q-datum)); SetStringInfoLength(bim_profile,length-(PSDQuantum(coun... | static void RemoveICCProfileFromResourceBlock(StringInfo *bim_profile) p=PushLongPixel(MSBEndian,p,&count); if (id == 0x0000040f) { if ((q+PSDQuantum(count)+12) < (datum+length-16)) { (void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length- (PSDQuantum(count)+1... | CVE-2016-7538 | {'CWE-787'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/82e2049862a8b8a999e160734ad64fb6cc3b145f'} | nvd | coders/psd.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds write) via a crafted file. | 2017-04-20 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/82e2049862a8b8a999e160734ad64fb6cc3b145f | 82e2049862a8b8a999e160734ad64fb6cc3b145f | SINGLE | ['82e2049862a8b8a999e160734ad64fb6cc3b145f'] | {'cf70f0ccb1783fc1b589588b267ccdaa17716aaf'} | 82e2049862a8b8a999e160734ad64fb6cc3b145f | 1 | 03/12/2016, 13:05:31 | https://github.com/ImageMagick/ImageMagick/issues/148 | Cristy | null | {'additions': 6, 'deletions': 3, 'total': 9} | [
{
"additions": 6,
"changes": 9,
"deletions": 3,
"patch": "@@ -2566,9 +2566,12 @@ static void RemoveICCProfileFromResourceBlock(StringInfo *bim_profile)\n p=PushLongPixel(MSBEndian,p,&count);\n if (id == 0x0000040f)\n {\n- (void) CopyMagickMemory(q,q+PSDQuantum(count)+12,length-\... | c | CWE-787 | [
"coders/psd.c"
] | coders/psd.c | 1 |
static MagickBooleanType MaskPixelCacheNexus(Image *image,NexusInfo *nexus_info, % */ static inline void AllocatePixelCachePixels(CacheInfo *cache_info) { cache_info->mapped=MagickFalse; cache_info->pixels=(PixelPacket *) MagickAssumeAligned( AcquireAlignedMemory(1,(size_t) cache_info->length)); if (cache_i... | static MagickBooleanType MaskPixelCacheNexus(Image *image,NexusInfo *nexus_info, % */ #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, if (((cache_info->type == UndefinedCache) && (status != MagickFalse)) || (c... | CVE-2016-7539 | {'CWE-399'} | 6.9 | {'https://github.com/ImageMagick/ImageMagick/commit/4e81ce8b07219c69a9aeccb0f7f7b927ca6db74c'} | nvd | Memory leak in AcquireVirtualMemory in ImageMagick before 7 allows remote attackers to cause a denial of service (memory consumption) via unspecified vectors. | 2017-07-25 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/4e81ce8b07219c69a9aeccb0f7f7b927ca6db74c | 4e81ce8b07219c69a9aeccb0f7f7b927ca6db74c | SINGLE | ['4e81ce8b07219c69a9aeccb0f7f7b927ca6db74c'] | {'41c617eb73e2dee5071dbcad414912aa0cea7fb9'} | 4e81ce8b07219c69a9aeccb0f7f7b927ca6db74c | 1 | 01/07/2016, 14:08:49 | http://www.imagemagick.org/discourse-server/viewtopic.php?f=2&t=28946 | Cristy | null | {'additions': 3, 'deletions': 14, 'total': 17} | [
{
"additions": 3,
"changes": 17,
"deletions": 14,
"patch": "@@ -3371,19 +3371,6 @@ static MagickBooleanType MaskPixelCacheNexus(Image *image,NexusInfo *nexus_info,\n %\n */\n \n-static inline void AllocatePixelCachePixels(CacheInfo *cache_info)\n-{\n- cache_info->mapped=MagickFalse;\n- cache_info-... | c | CWE-399 | [
"magick/cache.c"
] | magick/cache.c | 1 |
MagickBooleanType SyncExifProfile(Image *image,StringInfo *profile) break; /* corrupt EXIF */ tag_value=(ssize_t) ReadProfileShort(endian,q); format=(ssize_t) ReadProfileShort(endian,q+2); if ((format-1) >= EXIF_NUM_FORMATS) break; components=(ssize_t) ReadProfileLong(endian,q+... | MagickBooleanType SyncExifProfile(Image *image,StringInfo *profile) break; /* corrupt EXIF */ tag_value=(ssize_t) ReadProfileShort(endian,q); format=(ssize_t) ReadProfileShort(endian,q+2); if ((format < 0) || ((format-1) >= EXIF_NUM_FORMATS)) break; components=(ssize_t) ReadPro... | CVE-2016-7799 | {'CWE-125'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/a7bb158b7bedd1449a34432feb3a67c8f1873bfa'} | nvd | MagickCore/profile.c in ImageMagick before 7.0.3-2 allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted file. | 2017-01-18 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/a7bb158b7bedd1449a34432feb3a67c8f1873bfa | a7bb158b7bedd1449a34432feb3a67c8f1873bfa | SINGLE | ['a7bb158b7bedd1449a34432feb3a67c8f1873bfa'] | {'3c57527b28494cd7807f071bd6c4d5ad75ba6ebb'} | a7bb158b7bedd1449a34432feb3a67c8f1873bfa | 1 | 09/30/2016, 19:19:06 | https://github.com/ImageMagick/ImageMagick/issues/280 | Cristy | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -2032,7 +2032,7 @@ MagickBooleanType SyncExifProfile(Image *image,StringInfo *profile)\n break; /* corrupt EXIF */\n tag_value=(ssize_t) ReadProfileShort(endian,q);\n format=(ssize_t) ReadProfileShort(endian,q+2);\n- ... | c | CWE-125 | [
"MagickCore/profile.c"
] | MagickCore/profile.c | 1 |
MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type, status=QuantizeImage(quantize_info,image,exception); quantize_info=DestroyQuantizeInfo(quantize_info); } image->colors=2; image->alpha_trait=UndefinedPixelTrait; break; } | MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type, status=QuantizeImage(quantize_info,image,exception); quantize_info=DestroyQuantizeInfo(quantize_info); } status=AcquireImageColormap(image,2,exception); image->alpha_trait=UndefinedPixelTrait; b... | CVE-2016-7906 | {'CWE-416'} | 2.9 | {'https://github.com/ImageMagick/ImageMagick/commit/90406972f108c4da71f998601b06abdc2ac6f06e'} | nvd | magick/attribute.c in ImageMagick 7.0.3-2 allows remote attackers to cause a denial of service (use-after-free) via a crafted file. | 2017-01-18 | 1 | https://github.com/ImageMagick/ImageMagick | https://github.com/ImageMagick/ImageMagick/commit/90406972f108c4da71f998601b06abdc2ac6f06e | 90406972f108c4da71f998601b06abdc2ac6f06e | SINGLE | ['90406972f108c4da71f998601b06abdc2ac6f06e'] | {'f8f161d61d6e36d027d44cd98002b822e4217add'} | 90406972f108c4da71f998601b06abdc2ac6f06e | 1 | 10/01/2016, 15:18:08 | https://github.com/ImageMagick/ImageMagick/issues/281 | Cristy | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -1264,7 +1264,7 @@ MagickExport MagickBooleanType SetImageType(Image *image,const ImageType type,\n status=QuantizeImage(quantize_info,image,exception);\n quantize_info=DestroyQuantizeInfo(quantize_info);\n }\n-... | c | CWE-416 | [
"MagickCore/attribute.c"
] | MagickCore/attribute.c | 1 |
static void disk_seqf_stop(struct seq_file *seqf, void *v) if (iter) { class_dev_iter_exit(iter); kfree(iter); } } | static void disk_seqf_stop(struct seq_file *seqf, void *v) if (iter) { class_dev_iter_exit(iter); kfree(iter); seqf->private = NULL; } } | CVE-2016-7910 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/77da160530dd1dc94f6ae15a981f24e5f0021e84'} | nvd | Use-after-free vulnerability in the disk_seqf_stop function in block/genhd.c in the Linux kernel before 4.7.1 allows local users to gain privileges by leveraging the execution of a certain stop operation even if the corresponding start operation had failed. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/77da160530dd1dc94f6ae15a981f24e5f0021e84 | 77da160530dd1dc94f6ae15a981f24e5f0021e84 | SINGLE | ['77da160530dd1dc94f6ae15a981f24e5f0021e84'] | {'1aee6b9a7d947d42ed84baa4cf461e9d943b80f0'} | 77da160530dd1dc94f6ae15a981f24e5f0021e84 | 1 | 07/29/2016, 08:40:31 | block: fix use-after-free in seq file
I got a KASAN report of use-after-free:
==================================================================
BUG: KASAN: use-after-free in klist_iter_exit+0x61/0x70 at addr ffff8800b6581508
Read of size 8 by task trinity-c1/315
======================================... | Vegard Nossum | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -856,6 +856,7 @@ static void disk_seqf_stop(struct seq_file *seqf, void *v)\n \tif (iter) {\n \t\tclass_dev_iter_exit(iter);\n \t\tkfree(iter);\n+\t\tseqf->private = NULL;\n \t}\n }",
"path": "block/genhd.c",
"raw_url": "https://gi... | c | CWE-416 | [
"block/genhd.c"
] | block/genhd.c | 1 |
static int get_task_ioprio(struct task_struct *p) if (ret) goto out; ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM); if (p->io_context) ret = p->io_context->ioprio; out: return ret; } | static int get_task_ioprio(struct task_struct *p) if (ret) goto out; ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM); task_lock(p); if (p->io_context) ret = p->io_context->ioprio; task_unlock(p); out: return ret; } | CVE-2016-7911 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/8ba8682107ee2ca3347354e018865d8e1967c5f4'} | nvd | Race condition in the get_task_ioprio function in block/ioprio.c in the Linux kernel before 4.6.6 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted ioprio_get system call. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8ba8682107ee2ca3347354e018865d8e1967c5f4 | 8ba8682107ee2ca3347354e018865d8e1967c5f4 | SINGLE | ['8ba8682107ee2ca3347354e018865d8e1967c5f4'] | {'74524955556096a0b2a821a49b4d0abebad3ee16'} | 8ba8682107ee2ca3347354e018865d8e1967c5f4 | 1 | 07/01/2016, 07:39:35 | block: fix use-after-free in sys_ioprio_get()
get_task_ioprio() accesses the task->io_context without holding the task
lock and thus can race with exit_io_context(), leading to a
use-after-free. The reproducer below hits this within a few seconds on
my 4-core QEMU VM:
#define _GNU_SOURCE
#include <assert.h>
#include ... | Omar Sandoval | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -150,8 +150,10 @@ static int get_task_ioprio(struct task_struct *p)\n \tif (ret)\n \t\tgoto out;\n \tret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM);\n+\ttask_lock(p);\n \tif (p->io_context)\n \t\tret = p->io_context->ioprio;\n+\tt... | c | CWE-416 | [
"block/ioprio.c"
] | block/ioprio.c | 1 |
static int get_task_ioprio(struct task_struct *p) if (ret) goto out; ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM); if (p->io_context) ret = p->io_context->ioprio; out: return ret; } | static int get_task_ioprio(struct task_struct *p) if (ret) goto out; ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM); task_lock(p); if (p->io_context) ret = p->io_context->ioprio; task_unlock(p); out: return ret; } | CVE-2016-7911 | {'CWE-416', 'CWE-362'} | 10 | {'https://github.com/torvalds/linux/commit/8ba8682107ee2ca3347354e018865d8e1967c5f4'} | nvd | Race condition in the get_task_ioprio function in block/ioprio.c in the Linux kernel before 4.6.6 allows local users to gain privileges or cause a denial of service (use-after-free) via a crafted ioprio_get system call. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8ba8682107ee2ca3347354e018865d8e1967c5f4 | 8ba8682107ee2ca3347354e018865d8e1967c5f4 | SINGLE | ['8ba8682107ee2ca3347354e018865d8e1967c5f4'] | {'74524955556096a0b2a821a49b4d0abebad3ee16'} | 8ba8682107ee2ca3347354e018865d8e1967c5f4 | 1 | 07/01/2016, 07:39:35 | block: fix use-after-free in sys_ioprio_get()
get_task_ioprio() accesses the task->io_context without holding the task
lock and thus can race with exit_io_context(), leading to a
use-after-free. The reproducer below hits this within a few seconds on
my 4-core QEMU VM:
#define _GNU_SOURCE
#include <assert.h>
#include ... | Omar Sandoval | null | {'additions': 2, 'deletions': 0, 'total': 2} | [
{
"additions": 2,
"changes": 2,
"deletions": 0,
"patch": "@@ -150,8 +150,10 @@ static int get_task_ioprio(struct task_struct *p)\n \tif (ret)\n \t\tgoto out;\n \tret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM);\n+\ttask_lock(p);\n \tif (p->io_context)\n \t\tret = p->io_context->ioprio;\n+\tt... | c | CWE-362 | [
"block/ioprio.c"
] | block/ioprio.c | 1 |
static void ffs_user_copy_worker(struct work_struct *work) work); int ret = io_data->req->status ? io_data->req->status : io_data->req->actual; if (io_data->read && ret > 0) { use_mm(io_data->mm); static void ffs_user_copy_worker(struct work_struct *work) io_data->kiocb->ki_complete(io_data->kioc... | static void ffs_user_copy_worker(struct work_struct *work) work); int ret = io_data->req->status ? io_data->req->status : io_data->req->actual; bool kiocb_has_eventfd = io_data->kiocb->ki_flags & IOCB_EVENTFD; if (io_data->read && ret > 0) { use_mm(io_data->mm); static void ffs_user_copy_worker(st... | CVE-2016-7912 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/38740a5b87d53ceb89eb2c970150f6e94e00373a'} | nvd | Use-after-free vulnerability in the ffs_user_copy_worker function in drivers/usb/gadget/function/f_fs.c in the Linux kernel before 4.5.3 allows local users to gain privileges by accessing an I/O data structure after a certain callback call. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/38740a5b87d53ceb89eb2c970150f6e94e00373a | 38740a5b87d53ceb89eb2c970150f6e94e00373a | SINGLE | ['38740a5b87d53ceb89eb2c970150f6e94e00373a'] | {'9772b47a4c2916d645c551228b6085ea24acbe5d'} | 38740a5b87d53ceb89eb2c970150f6e94e00373a | 1 | 04/14/2016, 15:01:17 | usb: gadget: f_fs: Fix use-after-free
When using asynchronous read or write operations on the USB endpoints the
issuer of the IO request is notified by calling the ki_complete() callback
of the submitted kiocb when the URB has been completed.
Calling this ki_complete() callback will free kiocb. Make sure that the
str... | Lars-Peter Clausen | null | {'additions': 2, 'deletions': 3, 'total': 5} | [
{
"additions": 2,
"changes": 5,
"deletions": 3,
"patch": "@@ -646,6 +646,7 @@ static void ffs_user_copy_worker(struct work_struct *work)\n \t\t\t\t\t\t work);\n \tint ret = io_data->req->status ? io_data->req->status :\n \t\t\t\t\t io_data->req->actual;\n+\tbool kiocb_has_eventfd = io_data->kiocb-... | c | CWE-416 | [
"drivers/usb/gadget/function/f_fs.c"
] | drivers/usb/gadget/function/f_fs.c | 1 |
static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg) * in order to avoid troubles during device release. */ kfree(priv->ctrl.fname); memcpy(&priv->ctrl, p, sizeof(priv->ctrl)); if (p->fname) { priv->ctrl.fname = kstrdup(p->fname, GFP_KERNEL); if (priv->ctrl.fname == NULL) rc = -ENOMEM; ... | static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg) * in order to avoid troubles during device release. */ kfree(priv->ctrl.fname); priv->ctrl.fname = NULL; memcpy(&priv->ctrl, p, sizeof(priv->ctrl)); if (p->fname) { priv->ctrl.fname = kstrdup(p->fname, GFP_KERNEL); if (priv->ctrl.fname =... | CVE-2016-7913 | {'CWE-416'} | 10 | {'https://github.com/torvalds/linux/commit/8dfbcc4351a0b6d2f2d77f367552f48ffefafe18'} | nvd | The xc2028_set_config function in drivers/media/tuners/tuner-xc2028.c in the Linux kernel before 4.6 allows local users to gain privileges or cause a denial of service (use-after-free) via vectors involving omission of the firmware name from a certain data structure. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8dfbcc4351a0b6d2f2d77f367552f48ffefafe18 | 8dfbcc4351a0b6d2f2d77f367552f48ffefafe18 | SINGLE | ['8dfbcc4351a0b6d2f2d77f367552f48ffefafe18'] | {'d83a96a53dd2c36948be37b64a85a761b942ddfd'} | 8dfbcc4351a0b6d2f2d77f367552f48ffefafe18 | 1 | 01/28/2016, 11:22:44 | [media] xc2028: avoid use after free
If struct xc2028_config is passed without a firmware name,
the following trouble may happen:
[11009.907205] xc2028 5-0061: type set to XCeive xc2028/xc3028 tuner
[11009.907491] ==================================================================
[11009.907750] BUG: KASAN: use-after-... | Mauro Carvalho Chehab | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -1403,11 +1403,12 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)\n \t * in order to avoid troubles during device release.\n \t */\n \tkfree(priv->ctrl.fname);\n+\tpriv->ctrl.fname = NULL;\n \tmemcpy(&priv->ctrl, p... | c | CWE-416 | [
"drivers/media/tuners/tuner-xc2028.c"
] | drivers/media/tuners/tuner-xc2028.c | 1 |
static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, free_slot = i; continue; } if (ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) { pr_devel("replace in slot %d\n", i); edit->leaf_p = &node->slots[i]; edit->dead_leaf = node->slots[i]; | static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, free_slot = i; continue; } if (assoc_array_ptr_is_leaf(ptr) && ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) { pr_devel("replace in slot %d\n", i); edit->leaf_p = &node->slots[i]; edit->dead_l... | CVE-2016-7914 | {'CWE-476', 'CWE-125'} | 6.9 | {'https://github.com/torvalds/linux/commit/8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2'} | nvd | The assoc_array_insert_into_terminal_node function in lib/assoc_array.c in the Linux kernel before 4.5.3 does not check whether a slot is a leaf, which allows local users to obtain sensitive information from kernel memory or cause a denial of service (invalid pointer dereference and out-of-bounds read) via an applicati... | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | 8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | SINGLE | ['8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2'] | {'541d8f4d59d79f5d37c8c726f723d42ff307db57'} | 8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | 1 | 04/06/2016, 13:06:48 | assoc_array: don't call compare_object() on a node
Changes since V1: fixed the description and added KASan warning.
In assoc_array_insert_into_terminal_node(), we call the
compare_object() method on all non-empty slots, even when they're
not leaves, passing a pointer to an unexpected structure to
compare_object(). Cu... | Jerome Marchand | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -524,7 +524,9 @@ static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit,\n \t\t\tfree_slot = i;\n \t\t\tcontinue;\n \t\t}\n-\t\tif (ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) {\n+\t\tif (assoc_ar... | c | CWE-125 | [
"lib/assoc_array.c"
] | lib/assoc_array.c | 1 |
static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, free_slot = i; continue; } if (ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) { pr_devel("replace in slot %d\n", i); edit->leaf_p = &node->slots[i]; edit->dead_leaf = node->slots[i]; | static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit, free_slot = i; continue; } if (assoc_array_ptr_is_leaf(ptr) && ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) { pr_devel("replace in slot %d\n", i); edit->leaf_p = &node->slots[i]; edit->dead_l... | CVE-2016-7914 | {'CWE-476', 'CWE-125'} | 6.9 | {'https://github.com/torvalds/linux/commit/8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2'} | nvd | The assoc_array_insert_into_terminal_node function in lib/assoc_array.c in the Linux kernel before 4.5.3 does not check whether a slot is a leaf, which allows local users to obtain sensitive information from kernel memory or cause a denial of service (invalid pointer dereference and out-of-bounds read) via an applicati... | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | 8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | SINGLE | ['8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2'] | {'541d8f4d59d79f5d37c8c726f723d42ff307db57'} | 8d4a2ec1e0b41b0cf9a0c5cd4511da7f8e4f3de2 | 1 | 04/06/2016, 13:06:48 | assoc_array: don't call compare_object() on a node
Changes since V1: fixed the description and added KASan warning.
In assoc_array_insert_into_terminal_node(), we call the
compare_object() method on all non-empty slots, even when they're
not leaves, passing a pointer to an unexpected structure to
compare_object(). Cu... | Jerome Marchand | null | {'additions': 3, 'deletions': 1, 'total': 4} | [
{
"additions": 3,
"changes": 4,
"deletions": 1,
"patch": "@@ -524,7 +524,9 @@ static bool assoc_array_insert_into_terminal_node(struct assoc_array_edit *edit,\n \t\t\tfree_slot = i;\n \t\t\tcontinue;\n \t\t}\n-\t\tif (ops->compare_object(assoc_array_ptr_to_leaf(ptr), index_key)) {\n+\t\tif (assoc_ar... | c | CWE-476 | [
"lib/assoc_array.c"
] | lib/assoc_array.c | 1 |
static void hid_input_field(struct hid_device *hid, struct hid_field *field, /* Ignore report if ErrorRollOver */ if (!(field->flags & HID_MAIN_ITEM_VARIABLE) && value[n] >= min && value[n] <= max && field->usage[value[n] - min].hid == HID_UP_KEYBOARD + 1) goto exit; } static void hid_input_field(s... | static void hid_input_field(struct hid_device *hid, struct hid_field *field, /* Ignore report if ErrorRollOver */ if (!(field->flags & HID_MAIN_ITEM_VARIABLE) && value[n] >= min && value[n] <= max && value[n] - min < field->maxusage && field->usage[value[n] - min].hid == HID_UP_KEYBOARD + 1) g... | CVE-2016-7915 | {'CWE-125'} | 2.9 | {'https://github.com/torvalds/linux/commit/50220dead1650609206efe91f0cc116132d59b3f'} | nvd | The hid_input_field function in drivers/hid/hid-core.c in the Linux kernel before 4.6 allows physically proximate attackers to obtain sensitive information from kernel memory or cause a denial of service (out-of-bounds read) by connecting a device, as demonstrated by a Logitech DJ receiver. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/50220dead1650609206efe91f0cc116132d59b3f | 50220dead1650609206efe91f0cc116132d59b3f | SINGLE | ['50220dead1650609206efe91f0cc116132d59b3f'] | {'5137b354bc8a5c04edb10d83f8bdb0bf8896fd68'} | 50220dead1650609206efe91f0cc116132d59b3f | 1 | 01/19/2016, 11:34:58 | HID: core: prevent out-of-bound readings
Plugging a Logitech DJ receiver with KASAN activated raises a bunch of
out-of-bound readings.
The fields are allocated up to MAX_USAGE, meaning that potentially, we do
not have enough fields to fit the incoming values.
Add checks and silence KASAN.
Signed-off-by: Benjamin Tis... | Benjamin Tissoires | null | {'additions': 3, 'deletions': 0, 'total': 3} | [
{
"additions": 3,
"changes": 3,
"deletions": 0,
"patch": "@@ -1293,6 +1293,7 @@ static void hid_input_field(struct hid_device *hid, struct hid_field *field,\n \t\t/* Ignore report if ErrorRollOver */\n \t\tif (!(field->flags & HID_MAIN_ITEM_VARIABLE) &&\n \t\t value[n] >= min && value[n] <= max &... | c | CWE-125 | [
"drivers/hid/hid-core.c"
] | drivers/hid/hid-core.c | 1 |
static ssize_t environ_read(struct file *file, char __user *buf, struct mm_struct *mm = file->private_data; unsigned long env_start, env_end; if (!mm) return 0; page = (char *)__get_free_page(GFP_TEMPORARY); | static ssize_t environ_read(struct file *file, char __user *buf, struct mm_struct *mm = file->private_data; unsigned long env_start, env_end; /* Ensure the process spawned far enough to have an environment. */ if (!mm || !mm->env_end) return 0; page = (char *)__get_free_page(GFP_TEMPORARY); | CVE-2016-7916 | {'CWE-362'} | 6.9 | {'https://github.com/torvalds/linux/commit/8148a73c9901a8794a50f950083c00ccf97d43b3'} | nvd | Race condition in the environ_read function in fs/proc/base.c in the Linux kernel before 4.5.4 allows local users to obtain sensitive information from kernel memory by reading a /proc/*/environ file during a process-setup time interval in which environment-variable copying is incomplete. | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/8148a73c9901a8794a50f950083c00ccf97d43b3 | 8148a73c9901a8794a50f950083c00ccf97d43b3 | SINGLE | ['8148a73c9901a8794a50f950083c00ccf97d43b3'] | {'32a4e169039927bfb6ee9f0ccbbe3a8aaf13a4bc'} | 8148a73c9901a8794a50f950083c00ccf97d43b3 | 1 | 05/05/2016, 23:22:26 | proc: prevent accessing /proc/<PID>/environ until it's ready
If /proc/<PID>/environ gets read before the envp[] array is fully set up
in create_{aout,elf,elf_fdpic,flat}_tables(), we might end up trying to
read more bytes than are actually written, as env_start will already be
set but env_end will still be zero, makin... | Mathias Krause | null | {'additions': 2, 'deletions': 1, 'total': 3} | [
{
"additions": 2,
"changes": 3,
"deletions": 1,
"patch": "@@ -955,7 +955,8 @@ static ssize_t environ_read(struct file *file, char __user *buf,\n \tstruct mm_struct *mm = file->private_data;\n \tunsigned long env_start, env_end;\n \n-\tif (!mm)\n+\t/* Ensure the process spawned far enough to have an ... | c | CWE-362 | [
"fs/proc/base.c"
] | fs/proc/base.c | 1 |
static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, nlh = nlmsg_hdr(skb); err = 0; if (nlmsg_len(nlh) < sizeof(struct nfgenmsg) || skb->len < nlh->nlmsg_len) { err = -EINVAL; goto ack; } /* Only requests are handled by the kernel */ | static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, nlh = nlmsg_hdr(skb); err = 0; if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len || nlmsg_len(nlh) < sizeof(struct nfgenmsg)) { nfnl_err_reset(&err_list); status |= NFNL_BATCH_FAILURE; goto done; } ... | CVE-2016-7917 | {'CWE-200', 'CWE-125'} | 2.9 | {'https://github.com/torvalds/linux/commit/c58d6c93680f28ac58984af61d0a7ebf4319c241'} | nvd | The nfnetlink_rcv_batch function in net/netfilter/nfnetlink.c in the Linux kernel before 4.5 does not check whether a batch message's length field is large enough, which allows local users to obtain sensitive information from kernel memory or cause a denial of service (infinite loop or out-of-bounds read) by leveraging... | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/c58d6c93680f28ac58984af61d0a7ebf4319c241 | c58d6c93680f28ac58984af61d0a7ebf4319c241 | SINGLE | ['c58d6c93680f28ac58984af61d0a7ebf4319c241'] | {'53c520c2ab79e9f3765d24116ab54f6d5b3cd563'} | c58d6c93680f28ac58984af61d0a7ebf4319c241 | 1 | 02/02/2016, 18:36:45 | netfilter: nfnetlink: correctly validate length of batch messages
If nlh->nlmsg_len is zero then an infinite loop is triggered because
'skb_pull(skb, msglen);' pulls zero bytes.
The calculation in nlmsg_len() underflows if 'nlh->nlmsg_len <
NLMSG_HDRLEN' which bypasses the length validation and will later
trigger an ... | Phil Turnbull | null | {'additions': 6, 'deletions': 4, 'total': 10} | [
{
"additions": 6,
"changes": 10,
"deletions": 4,
"patch": "@@ -328,10 +328,12 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,\n \t\tnlh = nlmsg_hdr(skb);\n \t\terr = 0;\n \n-\t\tif (nlmsg_len(nlh) < sizeof(struct nfgenmsg) ||\n-\t\t skb->len < nlh->nlmsg_len) {\n-\t\... | c | CWE-200 | [
"net/netfilter/nfnetlink.c"
] | net/netfilter/nfnetlink.c | 1 |
static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, nlh = nlmsg_hdr(skb); err = 0; if (nlmsg_len(nlh) < sizeof(struct nfgenmsg) || skb->len < nlh->nlmsg_len) { err = -EINVAL; goto ack; } /* Only requests are handled by the kernel */ | static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, nlh = nlmsg_hdr(skb); err = 0; if (nlh->nlmsg_len < NLMSG_HDRLEN || skb->len < nlh->nlmsg_len || nlmsg_len(nlh) < sizeof(struct nfgenmsg)) { nfnl_err_reset(&err_list); status |= NFNL_BATCH_FAILURE; goto done; } ... | CVE-2016-7917 | {'CWE-200', 'CWE-125'} | 2.9 | {'https://github.com/torvalds/linux/commit/c58d6c93680f28ac58984af61d0a7ebf4319c241'} | nvd | The nfnetlink_rcv_batch function in net/netfilter/nfnetlink.c in the Linux kernel before 4.5 does not check whether a batch message's length field is large enough, which allows local users to obtain sensitive information from kernel memory or cause a denial of service (infinite loop or out-of-bounds read) by leveraging... | 2016-11-16 | 1 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/c58d6c93680f28ac58984af61d0a7ebf4319c241 | c58d6c93680f28ac58984af61d0a7ebf4319c241 | SINGLE | ['c58d6c93680f28ac58984af61d0a7ebf4319c241'] | {'53c520c2ab79e9f3765d24116ab54f6d5b3cd563'} | c58d6c93680f28ac58984af61d0a7ebf4319c241 | 1 | 02/02/2016, 18:36:45 | netfilter: nfnetlink: correctly validate length of batch messages
If nlh->nlmsg_len is zero then an infinite loop is triggered because
'skb_pull(skb, msglen);' pulls zero bytes.
The calculation in nlmsg_len() underflows if 'nlh->nlmsg_len <
NLMSG_HDRLEN' which bypasses the length validation and will later
trigger an ... | Phil Turnbull | null | {'additions': 6, 'deletions': 4, 'total': 10} | [
{
"additions": 6,
"changes": 10,
"deletions": 4,
"patch": "@@ -328,10 +328,12 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,\n \t\tnlh = nlmsg_hdr(skb);\n \t\terr = 0;\n \n-\t\tif (nlmsg_len(nlh) < sizeof(struct nfgenmsg) ||\n-\t\t skb->len < nlh->nlmsg_len) {\n-\t\... | c | CWE-125 | [
"net/netfilter/nfnetlink.c"
] | net/netfilter/nfnetlink.c | 1 |
wrap_lines_smart(ASS_Renderer *render_priv, double max_text_width) (w->bbox.xMin + w->pos.x)); if (DIFF(l1_new, l2_new) < DIFF(l1, l2)) { w->linebreak = 1; s2->linebreak = 0; exit = 0; ... | wrap_lines_smart(ASS_Renderer *render_priv, double max_text_width) (w->bbox.xMin + w->pos.x)); if (DIFF(l1_new, l2_new) < DIFF(l1, l2)) { if (w->linebreak || w == text_info->glyphs) text_info->n_lines--; ... | CVE-2016-7969 | {'CWE-125'} | 2.9 | {'https://github.com/libass/libass/commit/f4f48950788b91c6a30029cc28a240b834713ea7'} | nvd | The wrap_lines_smart function in ass_render.c in libass before 0.13.4 allows remote attackers to cause a denial of service (out-of-bounds read) via unspecified vectors, related to "0/3 line wrapping equalization." | 2017-03-03 | 1 | https://github.com/libass/libass | https://github.com/libass/libass/commit/f4f48950788b91c6a30029cc28a240b834713ea7 | f4f48950788b91c6a30029cc28a240b834713ea7 | SINGLE | ['f4f48950788b91c6a30029cc28a240b834713ea7'] | {'08e754612019ed84d1db0d1fc4f5798248decd75'} | f4f48950788b91c6a30029cc28a240b834713ea7 | 1 | 10/04/2016, 19:25:41 | Fix line wrapping mode 0/3 bugs
This fixes two separate bugs:
a) Don't move a linebreak into the first symbol. This results in a empty
line at the front, which does not help to equalize line lengths at all.
Instead, merge line with the second one.
b) When moving a linebreak into a symbol that already is a break... | Grigori Goronzy | null | {'additions': 4, 'deletions': 1, 'total': 5} | [
{
"additions": 4,
"changes": 5,
"deletions": 1,
"patch": "@@ -1608,7 +1608,10 @@ wrap_lines_smart(ASS_Renderer *render_priv, double max_text_width)\n (w->bbox.xMin + w->pos.x));\n \n if (DIFF(l1_new, l2_new) < DIFF(l1, l2)) {\n- w->l... | c | CWE-125 | [
"libass/ass_render.c"
] | libass/ass_render.c | 1 |
static void calc_coeff(double mu[4], const int index[4], int prefilter, double r ( 17 - 126 * mul + 273 * mul2 - 164 * mul3) / 12096, }; double mat_freq[13]; memcpy(mat_freq, kernel, sizeof(kernel)); memset(mat_freq + 4, 0, sizeof(mat_freq) - sizeof(kernel)); int n = 6; | static void calc_coeff(double mu[4], const int index[4], int prefilter, double r ( 17 - 126 * mul + 273 * mul2 - 164 * mul3) / 12096, }; double mat_freq[14]; memcpy(mat_freq, kernel, sizeof(kernel)); memset(mat_freq + 4, 0, sizeof(mat_freq) - sizeof(kernel)); int n = 6; | CVE-2016-7970 | {'CWE-119'} | 2.9 | {'https://github.com/libass/libass/pull/240/commits/08e754612019ed84d1db0d1fc4f5798248decd75'} | nvd | Buffer overflow in the calc_coeff function in libass/ass_blur.c in libass before 0.13.4 allows remote attackers to cause a denial of service via unspecified vectors. | 2017-03-03 | 1 | https://github.com/libass/libass | https://github.com/libass/libass/pull/240/commits/08e754612019ed84d1db0d1fc4f5798248decd75 | 08e754612019ed84d1db0d1fc4f5798248decd75 | SINGLE | ['08e754612019ed84d1db0d1fc4f5798248decd75'] | {'1ca16e18cb9421853e5523e19d3826d4ea252a64'} | 08e754612019ed84d1db0d1fc4f5798248decd75 | 1 | 10/04/2016, 00:47:36 | Fix blur coefficient calculation buffer overflow
Found by fuzzer test case id:000082,sig:11,src:002579,op:havoc,rep:8.
Correctness should be checked, but this fixes the overflow for good. | Grigori Goronzy | null | {'additions': 1, 'deletions': 1, 'total': 2} | [
{
"additions": 1,
"changes": 2,
"deletions": 1,
"patch": "@@ -744,7 +744,7 @@ static void calc_coeff(double mu[4], const int index[4], int prefilter, double r\n ( 17 - 126 * mul + 273 * mul2 - 164 * mul3) / 12096,\n };\n \n- double mat_freq[13];\n+ double mat_freq[14];\n me... | c | CWE-119 | [
"libass/ass_blur.c"
] | libass/ass_blur.c | 1 |
static bool check_allocations(ASS_Shaper *shaper, size_t new_size) !ASS_REALLOC_ARRAY(shaper->emblevels, new_size) || !ASS_REALLOC_ARRAY(shaper->cmap, new_size)) return false; } return true; } | static bool check_allocations(ASS_Shaper *shaper, size_t new_size) !ASS_REALLOC_ARRAY(shaper->emblevels, new_size) || !ASS_REALLOC_ARRAY(shaper->cmap, new_size)) return false; shaper->n_glyphs = new_size; } return true; } | CVE-2016-7972 | {'CWE-399'} | 2.9 | {'https://github.com/libass/libass/pull/240/commits/aa54e0b59200a994d50a346b5d7ac818ebcf2d4b'} | nvd | The check_allocations function in libass/ass_shaper.c in libass before 0.13.4 allows remote attackers to cause a denial of service (memory allocation failure) via unspecified vectors. | 2017-03-03 | 1 | https://github.com/libass/libass | https://github.com/libass/libass/pull/240/commits/aa54e0b59200a994d50a346b5d7ac818ebcf2d4b | aa54e0b59200a994d50a346b5d7ac818ebcf2d4b | SINGLE | ['aa54e0b59200a994d50a346b5d7ac818ebcf2d4b'] | {'16d8d586d5aa4c4501ff092668e73b405821abb6'} | aa54e0b59200a994d50a346b5d7ac818ebcf2d4b | 1 | 10/04/2016, 00:35:26 | shaper: fix reallocation
Update the variable that tracks the allocated size. This potentially
improves performance and avoid some side effects, which lead to
undefined behavior in some cases.
Fixes fuzzer test case id:000051,sig:11,sync:fuzzer3,src:004221. | Grigori Goronzy | null | {'additions': 1, 'deletions': 0, 'total': 1} | [
{
"additions": 1,
"changes": 1,
"deletions": 0,
"patch": "@@ -100,6 +100,7 @@ static bool check_allocations(ASS_Shaper *shaper, size_t new_size)\n !ASS_REALLOC_ARRAY(shaper->emblevels, new_size) ||\n !ASS_REALLOC_ARRAY(shaper->cmap, new_size))\n return false;\n+ ... | c | CWE-399 | [
"libass/ass_shaper.c"
] | libass/ass_shaper.c | 1 |
void loadServerConfigFromString(char *config) { unsigned long long hard, soft; int soft_seconds; if (class == -1) { err = "Unrecognized client limit class"; goto loaderr; } hard = memtoll(argv[2],NULL); void configSetCommand(c... | void loadServerConfigFromString(char *config) { unsigned long long hard, soft; int soft_seconds; if (class == -1 || class == CLIENT_TYPE_MASTER) { err = "Unrecognized client limit class: the user specified " "an invalid one, or 'master' which has no ... | CVE-2016-8339 | {'CWE-119'} | 6.4 | {'https://github.com/antirez/redis/commit/6d9f8e2462fc2c426d48c941edeb78e5df7d2977'} | nvd | A buffer overflow in Redis 3.2.x prior to 3.2.4 causes arbitrary code execution when a crafted command is sent. An out of bounds write vulnerability exists in the handling of the client-output-buffer-limit option during the CONFIG SET command for the Redis data structure store. A crafted CONFIG SET command can lead to ... | 2016-10-28 | 1 | https://github.com/antirez/redis | https://github.com/antirez/redis/commit/6d9f8e2462fc2c426d48c941edeb78e5df7d2977 | 6d9f8e2462fc2c426d48c941edeb78e5df7d2977 | SINGLE | ['6d9f8e2462fc2c426d48c941edeb78e5df7d2977'] | {'670586715a19e7aff9b3af793a7a9b334b418752'} | 6d9f8e2462fc2c426d48c941edeb78e5df7d2977 | 1 | 09/25/2016, 20:48:41 | Security: CONFIG SET client-output-buffer-limit overflow fixed.
This commit fixes a vunlerability reported by Cory Duplantis
of Cisco Talos, see TALOS-2016-0206 for reference.
CONFIG SET client-output-buffer-limit accepts as client class "master"
which is actually only used to implement CLIENT KILL. The "master" clas... | antirez | null | {'additions': 5, 'deletions': 3, 'total': 8} | [
{
"additions": 5,
"changes": 8,
"deletions": 3,
"patch": "@@ -616,8 +616,9 @@ void loadServerConfigFromString(char *config) {\n unsigned long long hard, soft;\n int soft_seconds;\n \n- if (class == -1) {\n- err = \"Unrecognized client limit class\";\... | c | CWE-119 | [
"src/config.c"
] | src/config.c | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.