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
$.fn.reviewsAutoComplete = function(options) { $(this) .autocomplete({ formatItem: function(data) { var s = data[options.nameKey]; if (options.descKey) { s += " <span>(" + data[options.descKey] + ")</span>"; ...
$.fn.reviewsAutoComplete = function(options) { $(this) .autocomplete({ formatItem: function(data) { var s = data[options.nameKey], desc; if (options.descKey) { desc = $('<div/>').text(data[optio...
CVE-2013-2209
{'CWE-79'}
2.9
{'https://github.com/reviewboard/reviewboard/commit/4aaacbb1e628a80803ba1a55703db38fccdf7dbf'}
nvd
Cross-site scripting (XSS) vulnerability in the auto-complete widget in htdocs/media/rb/js/reviews.js in Review Board 1.6.x before 1.6.17 and 1.7.x before 1.7.10 allows remote attackers to inject arbitrary web script or HTML via a full name.
2013-07-31
1
https://github.com/reviewboard/reviewboard
https://github.com/reviewboard/reviewboard/commit/4aaacbb1e628a80803ba1a55703db38fccdf7dbf
4aaacbb1e628a80803ba1a55703db38fccdf7dbf
SINGLE
['4aaacbb1e628a80803ba1a55703db38fccdf7dbf']
{'efeb6404b0409b836abc65c78c143413d034d273'}
4aaacbb1e628a80803ba1a55703db38fccdf7dbf
1
06/22/2013, 06:33:16
Fix an XSS vulnerability in the reviews dropdown. The reviews dropdown had a bad vulnerability where it would assume the user's full name is valid HTML. This allowed the user to craft a script tag that would be executed every time the name appeared in the dropdown. This vulnerability exists in 1.6.x, 1.7.x, and the i...
Christian Hammond
null
{'additions': 4, 'deletions': 2, 'total': 6}
[ { "additions": 4, "changes": 6, "deletions": 2, "patch": "@@ -352,10 +352,12 @@ $.fn.reviewsAutoComplete = function(options) {\n $(this)\n .autocomplete({\n formatItem: function(data) {\n- var s = data[options.nameKey];\n+ var...
js
CWE-79
[ "reviewboard/htdocs/media/rb/js/reviews.js" ]
reviewboard/htdocs/media/rb/js/reviews.js
1
static struct dst_entry *ip6_sk_dst_check(struct sock *sk, const struct flowi6 *fl6) { struct ipv6_pinfo *np = inet6_sk(sk); struct rt6_info *rt = (struct rt6_info *)dst; if (!dst) goto out; /* Yes, checking route validity in not connected * case is not very simple. Take into account, * that we do n...
static struct dst_entry *ip6_sk_dst_check(struct sock *sk, const struct flowi6 *fl6) { struct ipv6_pinfo *np = inet6_sk(sk); struct rt6_info *rt; if (!dst) goto out; if (dst->ops->family != AF_INET6) { dst_release(dst); return NULL; } rt = (struct rt6_info *)dst; /* Yes, checking route validity ...
CVE-2013-2232
{'CWE-20'}
6.9
{'https://github.com/torvalds/linux/commit/a963a37d384d71ad43b3e9e79d68d42fbe0901f3'}
nvd
The ip6_sk_dst_check function in net/ipv6/ip6_output.c in the Linux kernel before 3.10 allows local users to cause a denial of service (system crash) by using an AF_INET6 socket for a connection to an IPv4 interface.
2013-07-04
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a963a37d384d71ad43b3e9e79d68d42fbe0901f3
a963a37d384d71ad43b3e9e79d68d42fbe0901f3
SINGLE
['a963a37d384d71ad43b3e9e79d68d42fbe0901f3']
{'5dbe7c178d3f0a4634f088d9e729f1909b9ddcd1'}
a963a37d384d71ad43b3e9e79d68d42fbe0901f3
1
06/26/2013, 11:15:07
ipv6: ip6_sk_dst_check() must not assume ipv6 dst It's possible to use AF_INET6 sockets and to connect to an IPv4 destination. After this, socket dst cache is a pointer to a rtable, not rt6_info. ip6_sk_dst_check() should check the socket dst cache is IPv6, or else various corruptions/crashes can happen. Dave Jones ...
Eric Dumazet
null
{'additions': 7, 'deletions': 1, 'total': 8}
[ { "additions": 7, "changes": 8, "deletions": 1, "patch": "@@ -821,11 +821,17 @@ static struct dst_entry *ip6_sk_dst_check(struct sock *sk,\n \t\t\t\t\t const struct flowi6 *fl6)\n {\n \tstruct ipv6_pinfo *np = inet6_sk(sk);\n-\tstruct rt6_info *rt = (struct rt6_info *)dst;\n+\tstruct rt6_info *rt;\...
c
CWE-20
[ "net/ipv6/ip6_output.c" ]
net/ipv6/ip6_output.c
1
static int key_notify_sa_flush(const struct km_event *c) hdr->sadb_msg_version = PF_KEY_V2; hdr->sadb_msg_errno = (uint8_t) 0; hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); pfkey_broadcast(skb, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net); static int key_notify_policy_flush(const struct km_event ...
static int key_notify_sa_flush(const struct km_event *c) hdr->sadb_msg_version = PF_KEY_V2; hdr->sadb_msg_errno = (uint8_t) 0; hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); hdr->sadb_msg_reserved = 0; pfkey_broadcast(skb, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net); static int key_notify_policy...
CVE-2013-2234
{'CWE-119'}
2.9
{'https://github.com/torvalds/linux/commit/a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887'}
nvd
The (1) key_notify_sa_flush and (2) key_notify_policy_flush functions in net/key/af_key.c in the Linux kernel before 3.10 do not initialize certain structure members, which allows local users to obtain sensitive information from kernel heap memory by reading a broadcast message from the notify interface of an IPSec key...
2013-07-04
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887
a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887
SINGLE
['a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887']
{'a963a37d384d71ad43b3e9e79d68d42fbe0901f3'}
a5cc68f3d63306d0d288f31edfc2ae6ef8ecd887
1
06/26/2013, 21:52:30
af_key: fix info leaks in notify messages key_notify_sa_flush() and key_notify_policy_flush() miss to initialize the sadb_msg_reserved member of the broadcasted message and thereby leak 2 bytes of heap memory to listeners. Fix that. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Steffen Klassert <steffen....
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1710,6 +1710,7 @@ static int key_notify_sa_flush(const struct km_event *c)\n \thdr->sadb_msg_version = PF_KEY_V2;\n \thdr->sadb_msg_errno = (uint8_t) 0;\n \thdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t));\n+\thdr->sadb_m...
c
CWE-119
[ "net/key/af_key.c" ]
net/key/af_key.c
1
static int key_notify_policy_flush(const struct km_event *c) hdr->sadb_msg_pid = c->portid; hdr->sadb_msg_version = PF_KEY_V2; hdr->sadb_msg_errno = (uint8_t) 0; hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); pfkey_broadcast(skb_out, GFP_ATOMIC, BROADCAST_ALL, NULL, c->net); return 0;
static int key_notify_policy_flush(const struct km_event *c) hdr->sadb_msg_pid = c->portid; hdr->sadb_msg_version = PF_KEY_V2; hdr->sadb_msg_errno = (uint8_t) 0; hdr->sadb_msg_satype = SADB_SATYPE_UNSPEC; hdr->sadb_msg_len = (sizeof(struct sadb_msg) / sizeof(uint64_t)); pfkey_broadcast(skb_out, GFP_ATOMIC, BROAD...
CVE-2013-2237
{'CWE-119'}
2.9
{'https://github.com/torvalds/linux/commit/85dfb745ee40232876663ae206cba35f24ab2a40'}
nvd
The key_notify_policy_flush function in net/key/af_key.c in the Linux kernel before 3.9 does not initialize a certain structure member, which allows local users to obtain sensitive information from kernel heap memory by reading a broadcast message from the notify_policy interface of an IPSec key_socket.
2013-07-04
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/85dfb745ee40232876663ae206cba35f24ab2a40
85dfb745ee40232876663ae206cba35f24ab2a40
SINGLE
['85dfb745ee40232876663ae206cba35f24ab2a40']
{'a0b1c42951dd06ec83cc1bc2c9788131d9fefcd8'}
85dfb745ee40232876663ae206cba35f24ab2a40
1
02/18/2013, 15:24:20
af_key: initialize satype in key_notify_policy_flush() This field was left uninitialized. Some user daemons perform check against this field. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Nicolas Dichtel
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -2694,6 +2694,7 @@ static int key_notify_policy_flush(const struct km_event *c)\n \thdr->sadb_msg_pid = c->portid;\n \thdr->sadb_msg_version = PF_KEY_V2;\n \thdr->sadb_msg_errno = (uint8_t) 0;\n+\thdr->sadb_msg_satype = SADB_SATYPE_UNSPEC;...
c
CWE-119
[ "net/key/af_key.c" ]
net/key/af_key.c
1
class data_rest_Core { static function get($request) { $item = rest::resolve($request->url); access::required("view", $item); $p = $request->params; if (!isset($p->size) || !in_array($p->size, array("thumb", "resize", "full"))) { static function get($request) { // see if you should make the same...
class data_rest_Core { static function get($request) { $item = rest::resolve($request->url); $p = $request->params; if (!isset($p->size) || !in_array($p->size, array("thumb", "resize", "full"))) { static function get($request) { // see if you should make the same change there as well. if ($p->s...
CVE-2013-2241
{'CWE-264'}
2.9
{'https://github.com/gallery/gallery3/commit/cbbcf1b4791762d7da0ea7b6c4f4b551a4d9caed'}
nvd
modules/gallery/helpers/data_rest.php in Gallery 3 before 3.0.9 allows remote attackers to bypass intended access restrictions and obtain sensitive information (image files) via the "full" string in the size parameter.
2013-10-10
1
https://github.com/gallery/gallery3
https://github.com/gallery/gallery3/commit/cbbcf1b4791762d7da0ea7b6c4f4b551a4d9caed
cbbcf1b4791762d7da0ea7b6c4f4b551a4d9caed
SINGLE
['cbbcf1b4791762d7da0ea7b6c4f4b551a4d9caed']
{'c926ed2f3c7be9d55c221559868446a6de526a83'}
cbbcf1b4791762d7da0ea7b6c4f4b551a4d9caed
1
06/12/2013, 05:25:26
#2074 - Mirror some additional file_proxy checks in data_rest. --HG-- extra : source : 752417004a5c988b09f1312c4e96f10dd11594b9
shadlaws
null
{'additions': 6, 'deletions': 1, 'total': 7}
[ { "additions": 6, "changes": 7, "deletions": 1, "patch": "@@ -25,7 +25,6 @@\n class data_rest_Core {\n static function get($request) {\n $item = rest::resolve($request->url);\n- access::required(\"view\", $item);\n \n $p = $request->params;\n if (!isset($p->size) || !in_array($p->si...
php
CWE-264
[ "modules/gallery/helpers/data_rest.php" ]
modules/gallery/helpers/data_rest.php
1
public static function delete($id) { * An array of Author objects. If no Authors are found, an empty array is returned. */ public static function fetch($sortby = 'id', $sortdirection = 'ASC', $limit = null, $start = null, $where = null, $joins = null) { $records = Symphony::Database()->fetch(sprintf(" ...
public static function delete($id) { * An array of Author objects. If no Authors are found, an empty array is returned. */ public static function fetch($sortby = 'id', $sortdirection = 'ASC', $limit = null, $start = null, $where = null, $joins = null) { $sortby = is_null($sortby) ? 'id' : Symphony::Databas...
CVE-2013-2559
{'CWE-89'}
6.4
{'https://github.com/symphonycms/symphony-2/commit/6c8aa4e9c810994f7632837487426867ce50f468'}
nvd
SQL injection vulnerability in Symphony CMS before 2.3.2 allows remote authenticated users to execute arbitrary SQL commands via the sort parameter to system/authors/. NOTE: this can be leveraged using CSRF to allow remote unauthenticated attackers to execute arbitrary SQL commands.
2014-03-27
1
https://github.com/symphonycms/symphony-2
https://github.com/symphonycms/symphony-2/commit/6c8aa4e9c810994f7632837487426867ce50f468
6c8aa4e9c810994f7632837487426867ce50f468
SINGLE
['6c8aa4e9c810994f7632837487426867ce50f468']
{'0d1419d0f8183bcae758c920696a82121417adfc'}
6c8aa4e9c810994f7632837487426867ce50f468
1
03/20/2013, 13:02:43
Fix potential autheticated SQL injection attack on the Authors page
Brendan Abbott
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -90,6 +90,8 @@ public static function delete($id) {\n \t\t * An array of Author objects. If no Authors are found, an empty array is returned.\n \t\t */\n \t\tpublic static function fetch($sortby = 'id', $sortdirection = 'ASC', $limit = nu...
php
CWE-89
[ "symphony/lib/toolkit/class.authormanager.php" ]
symphony/lib/toolkit/class.authormanager.php
1
static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, if (!netdev->dcbnl_ops->getpermhwaddr) return -EOPNOTSUPP; netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); return nla_put(skb, DCB_ATTR_PERM_HWADDR, sizeof(perm_addr), perm_addr); static int dcbnl_ieee_fill(struct sk_buff *skb...
static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, if (!netdev->dcbnl_ops->getpermhwaddr) return -EOPNOTSUPP; memset(perm_addr, 0, sizeof(perm_addr)); netdev->dcbnl_ops->getpermhwaddr(netdev, perm_addr); return nla_put(skb, DCB_ATTR_PERM_HWADDR, sizeof(perm_addr), perm_addr); stat...
CVE-2013-2634
{'CWE-399'}
2.9
{'https://github.com/torvalds/linux/commit/29cd8ae0e1a39e239a3a7b67da1986add1199fc0'}
nvd
net/dcb/dcbnl.c in the Linux kernel before 3.8.4 does not initialize certain structures, which allows local users to obtain sensitive information from kernel stack memory via a crafted application.
2013-03-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/29cd8ae0e1a39e239a3a7b67da1986add1199fc0
29cd8ae0e1a39e239a3a7b67da1986add1199fc0
SINGLE
['29cd8ae0e1a39e239a3a7b67da1986add1199fc0']
{'84d73cd3fb142bf1298a8c13fd4ca50fd2432372'}
29cd8ae0e1a39e239a3a7b67da1986add1199fc0
1
03/09/2013, 05:52:21
dcbnl: fix various netlink info leaks The dcb netlink interface leaks stack memory in various places: * perm_addr[] buffer is only filled at max with 12 of the 32 bytes but copied completely, * no in-kernel driver fills all fields of an IEEE 802.1Qaz subcommand, so we're leaking up to 58 bytes for ieee_ets structs...
Mathias Krause
null
{'additions': 8, 'deletions': 0, 'total': 8}
[ { "additions": 8, "changes": 8, "deletions": 0, "patch": "@@ -284,6 +284,7 @@ static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh,\n \tif (!netdev->dcbnl_ops->getpermhwaddr)\n \t\treturn -EOPNOTSUPP;\n \n+\tmemset(perm_addr, 0, sizeof(perm_addr));\n \tnetdev->dcbnl_ops->g...
c
CWE-399
[ "net/dcb/dcbnl.c" ]
net/dcb/dcbnl.c
1
static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, * report anything. */ ivi.spoofchk = -1; if (dev->netdev_ops->ndo_get_vf_config(dev, i, &ivi)) break; vf_mac.vf =
static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev, * report anything. */ ivi.spoofchk = -1; memset(ivi.mac, 0, sizeof(ivi.mac)); if (dev->netdev_ops->ndo_get_vf_config(dev, i, &ivi)) break; vf_mac.vf =
CVE-2013-2635
{'CWE-399'}
2.9
{'https://github.com/torvalds/linux/commit/84d73cd3fb142bf1298a8c13fd4ca50fd2432372'}
nvd
The rtnl_fill_ifinfo function in net/core/rtnetlink.c in the Linux kernel before 3.8.4 does not initialize a certain structure member, which allows local users to obtain sensitive information from kernel stack memory via a crafted application.
2013-03-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/84d73cd3fb142bf1298a8c13fd4ca50fd2432372
84d73cd3fb142bf1298a8c13fd4ca50fd2432372
SINGLE
['84d73cd3fb142bf1298a8c13fd4ca50fd2432372']
{'c085c49920b2f900ba716b4ca1c1a55ece9872cc'}
84d73cd3fb142bf1298a8c13fd4ca50fd2432372
1
03/09/2013, 05:52:20
rtnl: fix info leak on RTM_GETLINK request for VF devices Initialize the mac address buffer with 0 as the driver specific function will probably not fill the whole buffer. In fact, all in-kernel drivers fill only ETH_ALEN of the MAX_ADDR_LEN bytes, i.e. 6 of the 32 possible bytes. Therefore we currently leak 26 bytes ...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -979,6 +979,7 @@ static int rtnl_fill_ifinfo(struct sk_buff *skb, struct net_device *dev,\n \t\t\t * report anything.\n \t\t\t */\n \t\t\tivi.spoofchk = -1;\n+\t\t\tmemset(ivi.mac, 0, sizeof(ivi.mac));\n \t\t\tif (dev->netdev_ops->ndo_get_...
c
CWE-399
[ "net/core/rtnetlink.c" ]
net/core/rtnetlink.c
1
static int br_mdb_fill_info(struct sk_buff *skb, struct netlink_callback *cb, port = p->port; if (port) { struct br_mdb_entry e; e.ifindex = port->dev->ifindex; e.state = p->state; if (p->addr.proto == htons(ETH_P_IP)) static int br_mdb_dump(struct sk_buff *skb, struct netlink_callback *cb)...
static int br_mdb_fill_info(struct sk_buff *skb, struct netlink_callback *cb, port = p->port; if (port) { struct br_mdb_entry e; memset(&e, 0, sizeof(e)); e.ifindex = port->dev->ifindex; e.state = p->state; if (p->addr.proto == htons(ETH_P_IP)) static int br_mdb_dump(struct sk_buff *sk...
CVE-2013-2636
{'CWE-399'}
2.9
{'https://github.com/torvalds/linux/commit/c085c49920b2f900ba716b4ca1c1a55ece9872cc'}
nvd
net/bridge/br_mdb.c in the Linux kernel before 3.8.4 does not initialize certain structures, which allows local users to obtain sensitive information from kernel memory via a crafted application.
2013-03-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c085c49920b2f900ba716b4ca1c1a55ece9872cc
c085c49920b2f900ba716b4ca1c1a55ece9872cc
SINGLE
['c085c49920b2f900ba716b4ca1c1a55ece9872cc']
{'84421b99cedc3443e76d2a594f3c815d5cb9a8e1'}
c085c49920b2f900ba716b4ca1c1a55ece9872cc
1
03/09/2013, 05:52:19
bridge: fix mdb info leaks The bridging code discloses heap and stack bytes via the RTM_GETMDB netlink interface and via the notify messages send to group RTNLGRP_MDB afer a successful add/del. Fix both cases by initializing all unset members/padding bytes with memset(0). Cc: Stephen Hemminger <stephen@networkplumbe...
Mathias Krause
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -80,6 +80,7 @@ static int br_mdb_fill_info(struct sk_buff *skb, struct netlink_callback *cb,\n \t\t\t\tport = p->port;\n \t\t\t\tif (port) {\n \t\t\t\t\tstruct br_mdb_entry e;\n+\t\t\t\t\tmemset(&e, 0, sizeof(e));\n \t\t\t\t\te.ifindex = p...
c
CWE-399
[ "net/bridge/br_mdb.c" ]
net/bridge/br_mdb.c
1
public function __construct($controller, $name, $fields = null, $actions = null, $fields->push(new HiddenField('BackURL', 'BackURL', $backURL)); } parent::__construct($controller, $name, $fields, $actions); // Focus on the email input when the page is loaded
public function __construct($controller, $name, $fields = null, $actions = null, $fields->push(new HiddenField('BackURL', 'BackURL', $backURL)); } // Reduce attack surface by enforcing POST requests $this->setFormMethod('POST', true); parent::__construct($controller, $name, $fields, $actions); // Focus...
CVE-2013-2653
{'CWE-20'}
4.9
{'https://github.com/chillu/silverstripe-framework/commit/3e88c98ca513880e2b43ed7f27ade17fef5d9170'}
nvd
security/MemberLoginForm.php in SilverStripe 3.0.3 supports login using a GET request, which makes it easier for remote attackers to conduct phishing attacks without detection by the victim.
2013-11-13
1
https://github.com/chillu/silverstripe-framework
https://github.com/chillu/silverstripe-framework/commit/3e88c98ca513880e2b43ed7f27ade17fef5d9170
3e88c98ca513880e2b43ed7f27ade17fef5d9170
SINGLE
['3e88c98ca513880e2b43ed7f27ade17fef5d9170']
{'14c59be85e9ec53cb2f0b3e9d0d8ce7569d913c6'}
3e88c98ca513880e2b43ed7f27ade17fef5d9170
1
05/08/2013, 08:22:52
API Restrict MemberLoginForm to POST requests for increased security CVE-2013-2653 - Thanks to Fara Rustein of Deloitte Argentina for reporting.
Ingo Schommer
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -89,6 +89,9 @@ public function __construct($controller, $name, $fields = null, $actions = null,\n \t\t\t$fields->push(new HiddenField('BackURL', 'BackURL', $backURL));\n \t\t}\n \n+\t\t// Reduce attack surface by enforcing POST requests\n+...
php
CWE-20
[ "security/MemberLoginForm.php" ]
security/MemberLoginForm.php
1
static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr, /* Would storing this chunk mean going over the limit? */ if ((msr->msc_reqbody_spilltodisk) && (msr->msc_reqbody_length + length > (apr_size_t)msr->txcfg->reqbody_inmemory_limit)) { msc_data_chunk **chunks;
static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr, /* Would storing this chunk mean going over the limit? */ if ((msr->msc_reqbody_spilltodisk) && (msr->txcfg->reqbody_buffering != REQUEST_BODY_FORCEBUF_ON) && (msr->msc_reqbody_length + length > (apr_size_t)msr->txcfg->...
CVE-2013-2765
{'CWE-476'}
2.9
{'https://github.com/SpiderLabs/ModSecurity/commit/0840b13612a0b7ef1ce7441cf811dcfc6b463fba'}
nvd
The ModSecurity module before 2.7.4 for the Apache HTTP Server allows remote attackers to cause a denial of service (NULL pointer dereference, process crash, and disk consumption) via a POST request with a large body and a crafted Content-Type header.
2013-07-15
1
https://github.com/SpiderLabs/ModSecurity
https://github.com/SpiderLabs/ModSecurity/commit/0840b13612a0b7ef1ce7441cf811dcfc6b463fba
0840b13612a0b7ef1ce7441cf811dcfc6b463fba
SINGLE
['0840b13612a0b7ef1ce7441cf811dcfc6b463fba']
{'d8262fc6cfa9a8e814794ba8dd0a2915e7a24a52'}
0840b13612a0b7ef1ce7441cf811dcfc6b463fba
1
04/04/2013, 15:04:22
Fixed: chuck null pointer when unknown CT is sent and over in-memory limit
Breno Silva
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -170,6 +170,7 @@ static apr_status_t modsecurity_request_body_store_memory(modsec_rec *msr,\n \n /* Would storing this chunk mean going over the limit? */\n if ((msr->msc_reqbody_spilltodisk)\n+ && (msr->txcfg->reqbody_buffe...
c
CWE-476
[ "apache2/msc_reqbody.c" ]
apache2/msc_reqbody.c
1
static int perf_trace_event_perm(struct ftrace_event_call *tp_event, { /* The ftrace function trace is allowed only for root. */ if (ftrace_event_is_function(tp_event) && perf_paranoid_kernel() && !capable(CAP_SYS_ADMIN)) return -EPERM; /* No tracing, just counting, so no obvious leak */
static int perf_trace_event_perm(struct ftrace_event_call *tp_event, { /* The ftrace function trace is allowed only for root. */ if (ftrace_event_is_function(tp_event) && perf_paranoid_tracepoint_raw() && !capable(CAP_SYS_ADMIN)) return -EPERM; /* No tracing, just counting, so no obvious leak */
CVE-2013-2930
{'CWE-264'}
4.9
{'https://github.com/torvalds/linux/commit/12ae030d54ef250706da5642fc7697cc60ad0df7'}
nvd
The perf_trace_event_perm function in kernel/trace/trace_event_perf.c in the Linux kernel before 3.12.2 does not properly restrict access to the perf subsystem, which allows local users to enable function tracing via a crafted application.
2013-12-09
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/12ae030d54ef250706da5642fc7697cc60ad0df7
12ae030d54ef250706da5642fc7697cc60ad0df7
SINGLE
['12ae030d54ef250706da5642fc7697cc60ad0df7']
{'5e01dc7b26d9f24f39abace5da98ccbd6a5ceb52'}
12ae030d54ef250706da5642fc7697cc60ad0df7
1
11/05/2013, 17:51:11
perf/ftrace: Fix paranoid level for enabling function tracer The current default perf paranoid level is "1" which has "perf_paranoid_kernel()" return false, and giving any operations that use it, access to normal users. Unfortunately, this includes function tracing and normal users should not be allowed to enable func...
Steven Rostedt
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -26,7 +26,7 @@ static int perf_trace_event_perm(struct ftrace_event_call *tp_event,\n {\n \t/* The ftrace function trace is allowed only for root. */\n \tif (ftrace_event_is_function(tp_event) &&\n-\t perf_paranoid_kernel() && !capable(...
c
CWE-264
[ "kernel/trace/trace_event_perf.c" ]
kernel/trace/trace_event_perf.c
1
static function checkEmailFormat($email) /* Gets the IP address of the visitor, bypassing proxies */ static function getIp() { if ( (getenv('HTTP_X_FORWARDED_FOR') != '') && (strtolower(getenv('HTTP_X_FORWARDED_FOR')) != 'unknown')) { $iparray = explode(',', getenv('HTTP_X_FORWARDED_FOR...
static function checkEmailFormat($email) /* Gets the IP address of the visitor, bypassing proxies */ static function getIp() { $ip = false; if ( (getenv('HTTP_X_FORWARDED_FOR') != '') && (strtolower(getenv('HTTP_X_FORWARDED_FOR')) != 'unknown')) { $iparray = explode(',', getenv(...
CVE-2013-3081
{'CWE-89'}
6.4
{'https://github.com/JojoCMS/Jojo-CMS/commit/972757c4500d94b4b1306bf092e678add3a987d8'}
nvd
SQL injection vulnerability in the checkEmailFormat function in plugins/jojo_core/classes/Jojo.php in Jojo before 1.2.2 allows remote attackers to execute arbitrary SQL commands via the X-Forwarded-For HTTP header to /articles/test/.
2014-06-09
1
https://github.com/JojoCMS/Jojo-CMS
https://github.com/JojoCMS/Jojo-CMS/commit/972757c4500d94b4b1306bf092e678add3a987d8
972757c4500d94b4b1306bf092e678add3a987d8
SINGLE
['972757c4500d94b4b1306bf092e678add3a987d8']
{'9c000f961635e35e9984a8c16ca69c2cbf2d2236'}
972757c4500d94b4b1306bf092e678add3a987d8
1
05/06/2013, 23:09:47
Fix SQL injection issue CVE-2013-3081
Harvey Kane
{'com_1': {'author': 'Hambrook', 'datetime': '05/07/2013, 05:03:48', 'body': 'Would you mind if I replaced your regexp with [PHP Filter Validation](http://php.net/manual/en/filter.examples.validation.php) (to use a "built-in" function)? Or is the regexp doing something extra?\n\nWe could even wrap it in Jojo::validateI...
{'additions': 8, 'deletions': 4, 'total': 12}
[ { "additions": 8, "changes": 12, "deletions": 4, "patch": "@@ -2461,14 +2461,18 @@ static function checkEmailFormat($email)\n /* Gets the IP address of the visitor, bypassing proxies */\n static function getIp()\n {\n+ $ip = false;\n if ( (getenv('HTTP_X_FORWARDED_FOR') !=...
php
CWE-89
[ "plugins/jojo_core/classes/Jojo.php" ]
plugins/jojo_core/classes/Jojo.php
1
int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, struct sk_buff *skb; int copied, error = -EINVAL; if (sock->state != SS_CONNECTED) return -ENOTCONN;
int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, struct sk_buff *skb; int copied, error = -EINVAL; msg->msg_namelen = 0; if (sock->state != SS_CONNECTED) return -ENOTCONN;
CVE-2013-3222
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/9b3e617f3df53822345a8573b6d358f6b9e5ed87'}
nvd
The vcc_recvmsg function in net/atm/common.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9b3e617f3df53822345a8573b6d358f6b9e5ed87
9b3e617f3df53822345a8573b6d358f6b9e5ed87
SINGLE
['9b3e617f3df53822345a8573b6d358f6b9e5ed87']
{'50a75a8914539c5dcd441c5f54d237a666a426fd'}
9b3e617f3df53822345a8573b6d358f6b9e5ed87
1
04/07/2013, 01:51:47
atm: update msg_namelen in vcc_recvmsg() The current code does not fill the msg_name member in case it is set. It also does not set the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix that by simply s...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -531,6 +531,8 @@ int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg,\n \tstruct sk_buff *skb;\n \tint copied, error = -EINVAL;\n \n+\tmsg->msg_namelen = 0;\n+\n \tif (sock->state != SS_CONNECTED)\n \t\treturn -ENOT...
c
CWE-200
[ "net/atm/common.c" ]
net/atm/common.c
1
static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock, ax25_address src; const unsigned char *mac = skb_mac_header(skb); ax25_addr_parse(mac + 1, skb->data - mac - 1, &src, NULL, &digi, NULL, NULL); sax->sax25_family = AF_AX25;
static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock, ax25_address src; const unsigned char *mac = skb_mac_header(skb); memset(sax, 0, sizeof(struct full_sockaddr_ax25)); ax25_addr_parse(mac + 1, skb->data - mac - 1, &src, NULL, &digi, NULL, NULL); sax->sax25_family = AF_AX25;
CVE-2013-3223
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/ef3313e84acbf349caecae942ab3ab731471f1a1'}
nvd
The ax25_recvmsg function in net/ax25/af_ax25.c in the Linux kernel before 3.9-rc7 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ef3313e84acbf349caecae942ab3ab731471f1a1
ef3313e84acbf349caecae942ab3ab731471f1a1
SINGLE
['ef3313e84acbf349caecae942ab3ab731471f1a1']
{'9b3e617f3df53822345a8573b6d358f6b9e5ed87'}
ef3313e84acbf349caecae942ab3ab731471f1a1
1
04/07/2013, 01:51:48
ax25: fix info leak via msg_name in ax25_recvmsg() When msg_namelen is non-zero the sockaddr info gets filled out, as requested, but the code fails to initialize the padding bytes of struct sockaddr_ax25 inserted by the compiler for alignment. Additionally the msg_namelen value is updated to sizeof(struct full_sockadd...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1642,6 +1642,7 @@ static int ax25_recvmsg(struct kiocb *iocb, struct socket *sock,\n \t\tax25_address src;\n \t\tconst unsigned char *mac = skb_mac_header(skb);\n \n+\t\tmemset(sax, 0, sizeof(struct full_sockaddr_ax25));\n \t\tax25_addr_p...
c
CWE-200
[ "net/ax25/af_ax25.c" ]
net/ax25/af_ax25.c
1
int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, if (flags & (MSG_OOB)) return -EOPNOTSUPP; skb = skb_recv_datagram(sk, flags, noblock, &err); if (!skb) { if (sk->sk_shutdown & RCV_SHUTDOWN) return 0; return err; } msg->msg_namelen = 0; copied = skb->len; if (len < copied) { msg->msg_f...
int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock, if (flags & (MSG_OOB)) return -EOPNOTSUPP; msg->msg_namelen = 0; skb = skb_recv_datagram(sk, flags, noblock, &err); if (!skb) { if (sk->sk_shutdown & RCV_SHUTDOWN) return 0; return err; } copied = skb->len; if (len < copied) { msg->msg_f...
CVE-2013-3224
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/4683f42fde3977bdb4e8a09622788cc8b5313778'}
nvd
The bt_sock_recvmsg function in net/bluetooth/af_bluetooth.c in the Linux kernel before 3.9-rc7 does not properly initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4683f42fde3977bdb4e8a09622788cc8b5313778
4683f42fde3977bdb4e8a09622788cc8b5313778
SINGLE
['4683f42fde3977bdb4e8a09622788cc8b5313778']
{'ef3313e84acbf349caecae942ab3ab731471f1a1'}
4683f42fde3977bdb4e8a09622788cc8b5313778
1
04/07/2013, 01:51:49
Bluetooth: fix possible info leak in bt_sock_recvmsg() In case the socket is already shutting down, bt_sock_recvmsg() returns with 0 without updating msg_namelen leading to net/socket.c leaking the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix this by moving the m...
Mathias Krause
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -230,15 +230,15 @@ int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock,\n \tif (flags & (MSG_OOB))\n \t\treturn -EOPNOTSUPP;\n \n+\tmsg->msg_namelen = 0;\n+\n \tskb = skb_recv_datagram(sk, flags, noblock, &err);\n \tif (!skb) {\n \...
c
CWE-200
[ "net/bluetooth/af_bluetooth.c" ]
net/bluetooth/af_bluetooth.c
1
static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock, if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); return 0; }
static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock, if (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) { rfcomm_dlc_accept(d); msg->msg_namelen = 0; return 0; }
CVE-2013-3225
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/e11e0455c0d7d3d62276a0c55d9dfbc16779d691'}
nvd
The rfcomm_sock_recvmsg function in net/bluetooth/rfcomm/sock.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e11e0455c0d7d3d62276a0c55d9dfbc16779d691
e11e0455c0d7d3d62276a0c55d9dfbc16779d691
SINGLE
['e11e0455c0d7d3d62276a0c55d9dfbc16779d691']
{'4683f42fde3977bdb4e8a09622788cc8b5313778'}
e11e0455c0d7d3d62276a0c55d9dfbc16779d691
1
04/07/2013, 01:51:50
Bluetooth: RFCOMM - Fix missing msg_namelen update in rfcomm_sock_recvmsg() If RFCOMM_DEFER_SETUP is set in the flags, rfcomm_sock_recvmsg() returns early with 0 without updating the possibly set msg_namelen member. This, in turn, leads to a 128 byte kernel stack leak in net/socket.c. Fix this by updating msg_namelen...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -608,6 +608,7 @@ static int rfcomm_sock_recvmsg(struct kiocb *iocb, struct socket *sock,\n \n \tif (test_and_clear_bit(RFCOMM_DEFER_SETUP, &d->flags)) {\n \t\trfcomm_dlc_accept(d);\n+\t\tmsg->msg_namelen = 0;\n \t\treturn 0;\n \t}", "p...
c
CWE-200
[ "net/bluetooth/rfcomm/sock.c" ]
net/bluetooth/rfcomm/sock.c
1
static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock, test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { hci_conn_accept(pi->conn->hcon, 0); sk->sk_state = BT_CONFIG; release_sock(sk); return 0;
static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock, test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) { hci_conn_accept(pi->conn->hcon, 0); sk->sk_state = BT_CONFIG; msg->msg_namelen = 0; release_sock(sk); return 0;
CVE-2013-3226
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/c8c499175f7d295ef867335bceb9a76a2c3cdc38'}
nvd
The sco_sock_recvmsg function in net/bluetooth/sco.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c8c499175f7d295ef867335bceb9a76a2c3cdc38
c8c499175f7d295ef867335bceb9a76a2c3cdc38
SINGLE
['c8c499175f7d295ef867335bceb9a76a2c3cdc38']
{'e11e0455c0d7d3d62276a0c55d9dfbc16779d691'}
c8c499175f7d295ef867335bceb9a76a2c3cdc38
1
04/07/2013, 01:51:51
Bluetooth: SCO - Fix missing msg_namelen update in sco_sock_recvmsg() If the socket is in state BT_CONNECT2 and BT_SK_DEFER_SETUP is set in the flags, sco_sock_recvmsg() returns early with 0 without updating the possibly set msg_namelen member. This, in turn, leads to a 128 byte kernel stack leak in net/socket.c. Fix...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -665,6 +665,7 @@ static int sco_sock_recvmsg(struct kiocb *iocb, struct socket *sock,\n \t test_bit(BT_SK_DEFER_SETUP, &bt_sk(sk)->flags)) {\n \t\thci_conn_accept(pi->conn->hcon, 0);\n \t\tsk->sk_state = BT_CONFIG;\n+\t\tmsg->msg_namele...
c
CWE-200
[ "net/bluetooth/sco.c" ]
net/bluetooth/sco.c
1
static int caif_seqpkt_recvmsg(struct kiocb *iocb, struct socket *sock, if (m->msg_flags&MSG_OOB) goto read_error; skb = skb_recv_datagram(sk, flags, 0 , &ret); if (!skb) goto read_error;
static int caif_seqpkt_recvmsg(struct kiocb *iocb, struct socket *sock, if (m->msg_flags&MSG_OOB) goto read_error; m->msg_namelen = 0; skb = skb_recv_datagram(sk, flags, 0 , &ret); if (!skb) goto read_error;
CVE-2013-3227
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/2d6fbfe733f35c6b355c216644e08e149c61b271'}
nvd
The caif_seqpkt_recvmsg function in net/caif/caif_socket.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2d6fbfe733f35c6b355c216644e08e149c61b271
2d6fbfe733f35c6b355c216644e08e149c61b271
SINGLE
['2d6fbfe733f35c6b355c216644e08e149c61b271']
{'c8c499175f7d295ef867335bceb9a76a2c3cdc38'}
2d6fbfe733f35c6b355c216644e08e149c61b271
1
04/07/2013, 01:51:52
caif: Fix missing msg_namelen update in caif_seqpkt_recvmsg() The current code does not fill the msg_name member in case it is set. It also does not set the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. ...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -286,6 +286,8 @@ static int caif_seqpkt_recvmsg(struct kiocb *iocb, struct socket *sock,\n \tif (m->msg_flags&MSG_OOB)\n \t\tgoto read_error;\n \n+\tm->msg_namelen = 0;\n+\n \tskb = skb_recv_datagram(sk, flags, 0 , &ret);\n \tif (!skb)\n \...
c
CWE-200
[ "net/caif/caif_socket.c" ]
net/caif/caif_socket.c
1
static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock, IRDA_DEBUG(4, "%s()\n", __func__); skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, flags & MSG_DONTWAIT, &err); if (!skb)
static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock, IRDA_DEBUG(4, "%s()\n", __func__); msg->msg_namelen = 0; skb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, flags & MSG_DONTWAIT, &err); if (!skb)
CVE-2013-3228
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/5ae94c0d2f0bed41d6718be743985d61b7f5c47d'}
nvd
The irda_recvmsg_dgram function in net/irda/af_irda.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5ae94c0d2f0bed41d6718be743985d61b7f5c47d
5ae94c0d2f0bed41d6718be743985d61b7f5c47d
SINGLE
['5ae94c0d2f0bed41d6718be743985d61b7f5c47d']
{'2d6fbfe733f35c6b355c216644e08e149c61b271'}
5ae94c0d2f0bed41d6718be743985d61b7f5c47d
1
04/07/2013, 01:51:53
irda: Fix missing msg_namelen update in irda_recvmsg_dgram() The current code does not fill the msg_name member in case it is set. It also does not set the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. ...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1386,6 +1386,8 @@ static int irda_recvmsg_dgram(struct kiocb *iocb, struct socket *sock,\n \n \tIRDA_DEBUG(4, \"%s()\\n\", __func__);\n \n+\tmsg->msg_namelen = 0;\n+\n \tskb = skb_recv_datagram(sk, flags & ~MSG_DONTWAIT,\n \t\t\t\tflags &...
c
CWE-200
[ "net/irda/af_irda.c" ]
net/irda/af_irda.c
1
static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock, struct sk_buff *skb, *rskb, *cskb; int err = 0; if ((sk->sk_state == IUCV_DISCONN) && skb_queue_empty(&iucv->backlog_skb_q) && skb_queue_empty(&sk->sk_receive_queue) &&
static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock, struct sk_buff *skb, *rskb, *cskb; int err = 0; msg->msg_namelen = 0; if ((sk->sk_state == IUCV_DISCONN) && skb_queue_empty(&iucv->backlog_skb_q) && skb_queue_empty(&sk->sk_receive_queue) &&
CVE-2013-3229
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/a5598bd9c087dc0efc250a5221e5d0e6f584ee88'}
nvd
The iucv_sock_recvmsg function in net/iucv/af_iucv.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a5598bd9c087dc0efc250a5221e5d0e6f584ee88
a5598bd9c087dc0efc250a5221e5d0e6f584ee88
SINGLE
['a5598bd9c087dc0efc250a5221e5d0e6f584ee88']
{'5ae94c0d2f0bed41d6718be743985d61b7f5c47d'}
a5598bd9c087dc0efc250a5221e5d0e6f584ee88
1
04/07/2013, 01:51:54
iucv: Fix missing msg_namelen update in iucv_sock_recvmsg() The current code does not fill the msg_name member in case it is set. It also does not set the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. F...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1328,6 +1328,8 @@ static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock,\n \tstruct sk_buff *skb, *rskb, *cskb;\n \tint err = 0;\n \n+\tmsg->msg_namelen = 0;\n+\n \tif ((sk->sk_state == IUCV_DISCONN) &&\n \t skb_queue_em...
c
CWE-200
[ "net/iucv/af_iucv.c" ]
net/iucv/af_iucv.c
1
static int l2tp_ip6_recvmsg(struct kiocb *iocb, struct sock *sk, lsa->l2tp_addr = ipv6_hdr(skb)->saddr; lsa->l2tp_flowinfo = 0; lsa->l2tp_scope_id = 0; if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) lsa->l2tp_scope_id = IP6CB(skb)->iif; }
static int l2tp_ip6_recvmsg(struct kiocb *iocb, struct sock *sk, lsa->l2tp_addr = ipv6_hdr(skb)->saddr; lsa->l2tp_flowinfo = 0; lsa->l2tp_scope_id = 0; lsa->l2tp_conn_id = 0; if (ipv6_addr_type(&lsa->l2tp_addr) & IPV6_ADDR_LINKLOCAL) lsa->l2tp_scope_id = IP6CB(skb)->iif; }
CVE-2013-3230
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/b860d3cc62877fad02863e2a08efff69a19382d2'}
nvd
The l2tp_ip6_recvmsg function in net/l2tp/l2tp_ip6.c in the Linux kernel before 3.9-rc7 does not initialize a certain structure member, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b860d3cc62877fad02863e2a08efff69a19382d2
b860d3cc62877fad02863e2a08efff69a19382d2
SINGLE
['b860d3cc62877fad02863e2a08efff69a19382d2']
{'a5598bd9c087dc0efc250a5221e5d0e6f584ee88'}
b860d3cc62877fad02863e2a08efff69a19382d2
1
04/07/2013, 01:51:55
l2tp: fix info leak in l2tp_ip6_recvmsg() The L2TP code for IPv6 fails to initialize the l2tp_conn_id member of struct sockaddr_l2tpip6 and therefore leaks four bytes kernel stack in l2tp_ip6_recvmsg() in case msg_name is set. Initialize l2tp_conn_id with 0 to avoid the info leak. Signed-off-by: Mathias Krause <mini...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -690,6 +690,7 @@ static int l2tp_ip6_recvmsg(struct kiocb *iocb, struct sock *sk,\n \t\tlsa->l2tp_addr = ipv6_hdr(skb)->saddr;\n \t\tlsa->l2tp_flowinfo = 0;\n \t\tlsa->l2tp_scope_id = 0;\n+\t\tlsa->l2tp_conn_id = 0;\n \t\tif (ipv6_addr_typ...
c
CWE-200
[ "net/l2tp/l2tp_ip6.c" ]
net/l2tp/l2tp_ip6.c
1
static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, int target; /* Read at least this many bytes */ long timeo; lock_sock(sk); copied = -ENOTCONN; if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN))
static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, int target; /* Read at least this many bytes */ long timeo; msg->msg_namelen = 0; lock_sock(sk); copied = -ENOTCONN; if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN))
CVE-2013-3231
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/c77a4b9cffb6215a15196ec499490d116dfad181'}
nvd
The llc_ui_recvmsg function in net/llc/af_llc.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c77a4b9cffb6215a15196ec499490d116dfad181
c77a4b9cffb6215a15196ec499490d116dfad181
SINGLE
['c77a4b9cffb6215a15196ec499490d116dfad181']
{'b860d3cc62877fad02863e2a08efff69a19382d2'}
c77a4b9cffb6215a15196ec499490d116dfad181
1
04/07/2013, 01:51:56
llc: Fix missing msg_namelen update in llc_ui_recvmsg() For stream sockets the code misses to update the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. The msg_namelen update is also missing for datagram ...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -720,6 +720,8 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,\n \tint target;\t/* Read at least this many bytes */\n \tlong timeo;\n \n+\tmsg->msg_namelen = 0;\n+\n \tlock_sock(sk);\n \tcopied = -ENOTCONN;\n \tif (unl...
c
CWE-200
[ "net/llc/af_llc.c" ]
net/llc/af_llc.c
1
static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, pr_debug("%p %zu\n", sk, len); lock_sock(sk); if (sk->sk_state == LLCP_CLOSED && static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, pr_debug("Datagram socket %d %d\n", ui_cb->dsap, ui_cb->ssap); sockaddr->sa_family = A...
static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, pr_debug("%p %zu\n", sk, len); msg->msg_namelen = 0; lock_sock(sk); if (sk->sk_state == LLCP_CLOSED && static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, pr_debug("Datagram socket %d %d\n", ui_cb->dsap, ui_cb->ssap); ...
CVE-2013-3233
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/d26d6504f23e803824e8ebd14e52d4fc0a0b09cb'}
nvd
The llcp_sock_recvmsg function in net/nfc/llcp/sock.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable and a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d26d6504f23e803824e8ebd14e52d4fc0a0b09cb
d26d6504f23e803824e8ebd14e52d4fc0a0b09cb
SINGLE
['d26d6504f23e803824e8ebd14e52d4fc0a0b09cb']
{'3ce5efad47b62c57a4f5c54248347085a750ce0e'}
d26d6504f23e803824e8ebd14e52d4fc0a0b09cb
1
04/07/2013, 01:51:58
NFC: llcp: fix info leaks via msg_name in llcp_sock_recvmsg() The code in llcp_sock_recvmsg() does not initialize all the members of struct sockaddr_nfc_llcp when filling the sockaddr info. Nor does it initialize the padding bytes of the structure inserted by the compiler for alignment. Also, if the socket is in stat...
Mathias Krause
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -646,6 +646,8 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock,\n \n \tpr_debug(\"%p %zu\\n\", sk, len);\n \n+\tmsg->msg_namelen = 0;\n+\n \tlock_sock(sk);\n \n \tif (sk->sk_state == LLCP_CLOSED &&\n@@ -691,6 +693,7 ...
c
CWE-200
[ "net/nfc/llcp/sock.c" ]
net/nfc/llcp/sock.c
1
static int rose_recvmsg(struct kiocb *iocb, struct socket *sock, skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); if (srose != NULL) { srose->srose_family = AF_ROSE; srose->srose_addr = rose->dest_addr; srose->srose_call = rose->dest_call;
static int rose_recvmsg(struct kiocb *iocb, struct socket *sock, skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); if (srose != NULL) { memset(srose, 0, msg->msg_namelen); srose->srose_family = AF_ROSE; srose->srose_addr = rose->dest_addr; srose->srose_call = rose->dest_call;
CVE-2013-3234
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/4a184233f21645cf0b719366210ed445d1024d72'}
nvd
The rose_recvmsg function in net/rose/af_rose.c in the Linux kernel before 3.9-rc7 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4a184233f21645cf0b719366210ed445d1024d72
4a184233f21645cf0b719366210ed445d1024d72
SINGLE
['4a184233f21645cf0b719366210ed445d1024d72']
{'d26d6504f23e803824e8ebd14e52d4fc0a0b09cb'}
4a184233f21645cf0b719366210ed445d1024d72
1
04/07/2013, 01:51:59
rose: fix info leak via msg_name in rose_recvmsg() The code in rose_recvmsg() does not initialize all of the members of struct sockaddr_rose/full_sockaddr_rose when filling the sockaddr info. Nor does it initialize the padding bytes of the structure inserted by the compiler for alignment. This will lead to leaking uni...
Mathias Krause
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1253,6 +1253,7 @@ static int rose_recvmsg(struct kiocb *iocb, struct socket *sock,\n \tskb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);\n \n \tif (srose != NULL) {\n+\t\tmemset(srose, 0, msg->msg_namelen);\n \t\tsrose->srose_family ...
c
CWE-200
[ "net/rose/af_rose.c" ]
net/rose/af_rose.c
1
static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg) if (addr) { addr->family = AF_TIPC; addr->addrtype = TIPC_ADDR_ID; addr->addr.id.ref = msg_origport(msg); addr->addr.id.node = msg_orignode(msg); addr->addr.name.domain = 0; /* could leave uninitialized */ static int recv_msg(struct kiocb *io...
static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg) if (addr) { addr->family = AF_TIPC; addr->addrtype = TIPC_ADDR_ID; memset(&addr->addr, 0, sizeof(addr->addr)); addr->addr.id.ref = msg_origport(msg); addr->addr.id.node = msg_orignode(msg); addr->addr.name.domain = 0; /* could leave uniniti...
CVE-2013-3235
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/60085c3d009b0df252547adb336d1ccca5ce52ec'}
nvd
net/tipc/socket.c in the Linux kernel before 3.9-rc7 does not initialize a certain data structure and a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/60085c3d009b0df252547adb336d1ccca5ce52ec
60085c3d009b0df252547adb336d1ccca5ce52ec
SINGLE
['60085c3d009b0df252547adb336d1ccca5ce52ec']
{'4a184233f21645cf0b719366210ed445d1024d72'}
60085c3d009b0df252547adb336d1ccca5ce52ec
1
04/07/2013, 01:52:00
tipc: fix info leaks via msg_name in recv_msg/recv_stream The code in set_orig_addr() does not initialize all of the members of struct sockaddr_tipc when filling the sockaddr info -- namely the union is only partly filled. This will make recv_msg() and recv_stream() -- the only users of this function -- leak kernel st...
Mathias Krause
null
{'additions': 7, 'deletions': 0, 'total': 7}
[ { "additions": 7, "changes": 7, "deletions": 0, "patch": "@@ -790,6 +790,7 @@ static void set_orig_addr(struct msghdr *m, struct tipc_msg *msg)\n \tif (addr) {\n \t\taddr->family = AF_TIPC;\n \t\taddr->addrtype = TIPC_ADDR_ID;\n+\t\tmemset(&addr->addr, 0, sizeof(addr->addr));\n \t\taddr->addr.id.ref...
c
CWE-200
[ "net/tipc/socket.c" ]
net/tipc/socket.c
1
static int vmci_transport_dgram_dequeue(struct kiocb *kiocb, if (flags & MSG_OOB || flags & MSG_ERRQUEUE) return -EOPNOTSUPP; /* Retrieve the head sk_buff from the socket's receive queue. */ err = 0; skb = skb_recv_datagram(&vsk->sk, flags, noblock, &err); static int vmci_transport_dgram_dequeue(struct kiocb *k...
static int vmci_transport_dgram_dequeue(struct kiocb *kiocb, if (flags & MSG_OOB || flags & MSG_ERRQUEUE) return -EOPNOTSUPP; msg->msg_namelen = 0; /* Retrieve the head sk_buff from the socket's receive queue. */ err = 0; skb = skb_recv_datagram(&vsk->sk, flags, noblock, &err); static int vmci_transport_dgram...
CVE-2013-3236
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/680d04e0ba7e926233e3b9cee59125ce181f66ba'}
nvd
The vmci_transport_dgram_dequeue function in net/vmw_vsock/vmci_transport.c in the Linux kernel before 3.9-rc7 does not properly initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/680d04e0ba7e926233e3b9cee59125ce181f66ba
680d04e0ba7e926233e3b9cee59125ce181f66ba
SINGLE
['680d04e0ba7e926233e3b9cee59125ce181f66ba']
{'60085c3d009b0df252547adb336d1ccca5ce52ec'}
680d04e0ba7e926233e3b9cee59125ce181f66ba
1
04/07/2013, 01:52:01
VSOCK: vmci - fix possible info leak in vmci_transport_dgram_dequeue() In case we received no data on the call to skb_recv_datagram(), i.e. skb->data is NULL, vmci_transport_dgram_dequeue() will return with 0 without updating msg_namelen leading to net/socket.c leaking the local, uninitialized sockaddr_storage variabl...
Mathias Krause
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -1736,6 +1736,8 @@ static int vmci_transport_dgram_dequeue(struct kiocb *kiocb,\n \tif (flags & MSG_OOB || flags & MSG_ERRQUEUE)\n \t\treturn -EOPNOTSUPP;\n \n+\tmsg->msg_namelen = 0;\n+\n \t/* Retrieve the head sk_buff from the socket's r...
c
CWE-200
[ "net/vmw_vsock/vmci_transport.c" ]
net/vmw_vsock/vmci_transport.c
1
vsock_stream_recvmsg(struct kiocb *kiocb, vsk = vsock_sk(sk); err = 0; lock_sock(sk); if (sk->sk_state != SS_CONNECTED) {
vsock_stream_recvmsg(struct kiocb *kiocb, vsk = vsock_sk(sk); err = 0; msg->msg_namelen = 0; lock_sock(sk); if (sk->sk_state != SS_CONNECTED) {
CVE-2013-3237
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/d5e0d0f607a7a029c6563a0470d88255c89a8d11'}
nvd
The vsock_stream_sendmsg function in net/vmw_vsock/af_vsock.c in the Linux kernel before 3.9-rc7 does not initialize a certain length variable, which allows local users to obtain sensitive information from kernel stack memory via a crafted recvmsg or recvfrom system call.
2013-04-22
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d5e0d0f607a7a029c6563a0470d88255c89a8d11
d5e0d0f607a7a029c6563a0470d88255c89a8d11
SINGLE
['d5e0d0f607a7a029c6563a0470d88255c89a8d11']
{'680d04e0ba7e926233e3b9cee59125ce181f66ba'}
d5e0d0f607a7a029c6563a0470d88255c89a8d11
1
04/07/2013, 01:52:02
VSOCK: Fix missing msg_namelen update in vsock_stream_recvmsg() The code misses to update the msg_namelen member to 0 and therefore makes net/socket.c leak the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Cc: Andy King <acking@vmware.com> Cc: Dmitry Torokhov <dtor@vm...
Mathias Krause
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1670,6 +1670,8 @@ vsock_stream_recvmsg(struct kiocb *kiocb,\n \tvsk = vsock_sk(sk);\n \terr = 0;\n \n+\tmsg->msg_namelen = 0;\n+\n \tlock_sock(sk);\n \n \tif (sk->sk_state != SS_CONNECTED) {", "path": "net/vmw_vsock/af_vsock.c", "...
c
CWE-200
[ "net/vmw_vsock/af_vsock.c" ]
net/vmw_vsock/af_vsock.c
1
smb_send_kvec(struct TCP_Server_Info *server, struct kvec *iov, size_t n_vec, *sent = 0; if (ssocket == NULL) return -ENOTSOCK; /* BB eventually add reconnect code here */ smb_msg.msg_name = (struct sockaddr *) &server->dstaddr; smb_msg.msg_namelen = sizeof(struct sockaddr); smb_msg.msg_control = NULL; smb_s...
smb_send_kvec(struct TCP_Server_Info *server, struct kvec *iov, size_t n_vec, *sent = 0; smb_msg.msg_name = (struct sockaddr *) &server->dstaddr; smb_msg.msg_namelen = sizeof(struct sockaddr); smb_msg.msg_control = NULL; smb_send_rqst(struct TCP_Server_Info *server, struct smb_rqst *rqst) struct socket *ssocket...
CVE-2013-3302
{'CWE-362'}
6.4
{'https://github.com/torvalds/linux/commit/ea702b80e0bbb2448e201472127288beb82ca2fe'}
nvd
Race condition in the smb_send_rqst function in fs/cifs/transport.c in the Linux kernel before 3.7.2 allows local users to cause a denial of service (NULL pointer dereference and OOPS) or possibly have unspecified other impact via vectors involving a reconnection event.
2013-04-29
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ea702b80e0bbb2448e201472127288beb82ca2fe
ea702b80e0bbb2448e201472127288beb82ca2fe
SINGLE
['ea702b80e0bbb2448e201472127288beb82ca2fe']
{'ecccd1248d6e6986130ffcc3b0d003cb46a485c0'}
ea702b80e0bbb2448e201472127288beb82ca2fe
1
12/27/2012, 12:28:55
cifs: move check for NULL socket into smb_send_rqst Cai reported this oops: [90701.616664] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028 [90701.625438] IP: [<ffffffff814a343e>] kernel_setsockopt+0x2e/0x60 [90701.632167] PGD fea319067 PUD 103fda4067 PMD 0 [90701.637255] Oops: 0000 [#1] SMP ...
Jeff Layton
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -144,9 +144,6 @@ smb_send_kvec(struct TCP_Server_Info *server, struct kvec *iov, size_t n_vec,\n \n \t*sent = 0;\n \n-\tif (ssocket == NULL)\n-\t\treturn -ENOTSOCK; /* BB eventually add reconnect code here */\n-\n \tsmb_msg.msg_name = (str...
c
CWE-362
[ "fs/cifs/transport.c" ]
fs/cifs/transport.c
1
public function ConditionExpr($Field, $Value, $EscapeFieldSql = TRUE, $EscapeVal $Field = '@' . $Field; } if(is_array($Value)) { $FunctionCall = array_keys($Value); $FunctionCall = $FunctionCall[0]; $FunctionArg = $Value[$FunctionCall];
public function ConditionExpr($Field, $Value, $EscapeFieldSql = TRUE, $EscapeVal $Field = '@' . $Field; } if(is_array($Value)) { //$ValueStr = var_export($Value, TRUE); $ValueStr = 'ARRAY'; Deprecated("Gdn_SQL->ConditionExpr(VALUE, {$ValueStr})", 'Gdn_SQL->ConditionExpr(...
CVE-2013-3527
{'CWE-89'}
6.4
{'https://github.com/vanillaforums/Garden/commit/83078591bc4d263e77d2a2ca283100997755290d'}
nvd
Multiple SQL injection vulnerabilities in Vanilla Forums before 2.0.18.8 allow remote attackers to execute arbitrary SQL commands via the parameter name in the Form/Email array to (1) entry/signin or (2) entry/passwordrequest.
2013-05-10
1
https://github.com/vanillaforums/Garden
https://github.com/vanillaforums/Garden/commit/83078591bc4d263e77d2a2ca283100997755290d
83078591bc4d263e77d2a2ca283100997755290d
SINGLE
['83078591bc4d263e77d2a2ca283100997755290d']
{'b9a10dabb15c697347bfa7baef69a6e211b2f804'}
83078591bc4d263e77d2a2ca283100997755290d
1
04/05/2013, 00:08:33
Disable the ability to call functions in escaped sql strings.
Todd Burry
null
{'additions': 7, 'deletions': 0, 'total': 7}
[ { "additions": 7, "changes": 7, "deletions": 0, "patch": "@@ -309,6 +309,13 @@ public function ConditionExpr($Field, $Value, $EscapeFieldSql = TRUE, $EscapeVal\n $Field = '@' . $Field;\n }\n if(is_array($Value)) {\n+ //$ValueStr = var_export($Value, TRUE);\n+ $Va...
php
CWE-89
[ "library/database/class.sqldriver.php" ]
library/database/class.sqldriver.php
1
$response->addJSON( 'message', PMA_Message::error( "<i>$sql_query</i><br /><br />" . PMA_DBI_getError() ) ); $response->isSuccess(false);
$response->addJSON( 'message', PMA_Message::error( "<i>" . htmlspecialchars($sql_query) . "</i><br /><br />" . PMA_DBI_getError() ) ); $response->isSuccess(false);
CVE-2013-3742
{'CWE-79'}
2.9
{'https://github.com/phpmyadmin/phpmyadmin/commit/9b3551601ce714adb5e3f428476052f0ec6093bf'}
nvd
Cross-site scripting (XSS) vulnerability in view_create.php (aka the Create View page) in phpMyAdmin 4.x before 4.0.3 allows remote authenticated users to inject arbitrary web script or HTML via an invalid SQL CREATE VIEW statement with a crafted name that triggers an error message.
2013-07-04
1
https://github.com/phpmyadmin/phpmyadmin
https://github.com/phpmyadmin/phpmyadmin/commit/9b3551601ce714adb5e3f428476052f0ec6093bf
9b3551601ce714adb5e3f428476052f0ec6093bf
SINGLE
['9b3551601ce714adb5e3f428476052f0ec6093bf']
{'2189c875356fc1af21c6da32235bf24f60f53b96'}
9b3551601ce714adb5e3f428476052f0ec6093bf
1
05/29/2013, 19:13:32
escape query in error message
Dieter Adriaenssens
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -114,7 +114,8 @@\n $response->addJSON(\n 'message',\n PMA_Message::error(\n- \"<i>$sql_query</i><br /><br />\" . PMA_DBI_getError()\n+ \"<i>\" . htmlspecialc...
php
CWE-79
[ "view_create.php" ]
view_create.php
1
static struct fib6_node * fib6_add_1(struct fib6_node *root, void *addr, return ln; } /* * Insert routing information in a node. */ static int fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt, int add = (!info->nlh || (info->nlh->nlmsg_flags & NLM_F_CREATE)); int found = 0; ins = &fn->leaf; sta...
static struct fib6_node * fib6_add_1(struct fib6_node *root, void *addr, return ln; } static inline bool rt6_qualify_for_ecmp(struct rt6_info *rt) { return (rt->rt6i_flags & (RTF_GATEWAY|RTF_ADDRCONF|RTF_DYNAMIC)) == RTF_GATEWAY; } /* * Insert routing information in a node. */ static int fib6_add_rt2node...
CVE-2013-4125
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/307f2fb95e9b96b3577916e73d92e104f8f26494'}
nvd
The fib6_add_rt2node function in net/ipv6/ip6_fib.c in the IPv6 stack in the Linux kernel through 3.10.1 does not properly handle Router Advertisement (RA) messages in certain circumstances involving three routes that initially qualified for membership in an ECMP route set until a change occurred for one of the first t...
2013-07-15
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/307f2fb95e9b96b3577916e73d92e104f8f26494
307f2fb95e9b96b3577916e73d92e104f8f26494
SINGLE
['307f2fb95e9b96b3577916e73d92e104f8f26494']
{'9b4fe5fb0bdd8f31f24cbfe77e38ec8155c250c5'}
307f2fb95e9b96b3577916e73d92e104f8f26494
1
07/12/2013, 21:46:33
ipv6: only static routes qualify for equal cost multipathing Static routes in this case are non-expiring routes which did not get configured by autoconf or by icmpv6 redirects. To make sure we actually get an ecmp route while searching for the first one in this fib6_node's leafs, also make sure it matches the ecmp ro...
Hannes Frederic Sowa
null
{'additions': 11, 'deletions': 4, 'total': 15}
[ { "additions": 11, "changes": 15, "deletions": 4, "patch": "@@ -632,6 +632,12 @@ static struct fib6_node * fib6_add_1(struct fib6_node *root, void *addr,\n \treturn ln;\n }\n \n+static inline bool rt6_qualify_for_ecmp(struct rt6_info *rt)\n+{\n+\treturn (rt->rt6i_flags & (RTF_GATEWAY|RTF_ADDRCONF|RT...
c
CWE-399
[ "net/ipv6/ip6_fib.c" ]
net/ipv6/ip6_fib.c
1
static void vhost_net_ubuf_put_and_wait(struct vhost_net_ubuf_ref *ubufs) { kref_put(&ubufs->kref, vhost_net_zerocopy_done_signal); wait_event(ubufs->wait, !atomic_read(&ubufs->kref.refcount)); kfree(ubufs); } static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) mutex_unlock(&vq->mutex);...
static void vhost_net_ubuf_put_and_wait(struct vhost_net_ubuf_ref *ubufs) { kref_put(&ubufs->kref, vhost_net_zerocopy_done_signal); wait_event(ubufs->wait, !atomic_read(&ubufs->kref.refcount)); } static void vhost_net_ubuf_put_wait_and_free(struct vhost_net_ubuf_ref *ubufs) { vhost_net_ubuf_put_and_wait(ubufs); k...
CVE-2013-4127
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/dd7633ecd553a5e304d349aa6f8eb8a0417098c5'}
nvd
Use-after-free vulnerability in the vhost_net_set_backend function in drivers/vhost/net.c in the Linux kernel through 3.10.3 allows local users to cause a denial of service (OOPS and system crash) via vectors involving powering on a virtual machine.
2013-07-29
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/dd7633ecd553a5e304d349aa6f8eb8a0417098c5
dd7633ecd553a5e304d349aa6f8eb8a0417098c5
SINGLE
['dd7633ecd553a5e304d349aa6f8eb8a0417098c5']
{'785bf6f7904352242d187ff6087d523a4ce1b3ac'}
dd7633ecd553a5e304d349aa6f8eb8a0417098c5
1
07/07/2013, 11:26:53
vhost-net: fix use-after-free in vhost_net_flush vhost_net_ubuf_put_and_wait has a confusing name: it will actually also free it's argument. Thus since commit 1280c27f8e29acf4af2da914e80ec27c3dbd5c01 "vhost-net: flush outstanding DMAs on memory change" vhost_net_flush tries to use the argument after passing it to ...
Michael S. Tsirkin
null
{'additions': 7, 'deletions': 2, 'total': 9}
[ { "additions": 7, "changes": 9, "deletions": 2, "patch": "@@ -150,6 +150,11 @@ static void vhost_net_ubuf_put_and_wait(struct vhost_net_ubuf_ref *ubufs)\n {\n \tkref_put(&ubufs->kref, vhost_net_zerocopy_done_signal);\n \twait_event(ubufs->wait, !atomic_read(&ubufs->kref.refcount));\n+}\n+\n+static v...
c
CWE-399
[ "drivers/vhost/net.c" ]
drivers/vhost/net.c
1
static inline struct ipv6_rt_hdr *ip6_rthdr_dup(struct ipv6_rt_hdr *src, return src ? kmemdup(src, (src->hdrlen + 1) * 8, gfp) : NULL; } static void ip6_append_data_mtu(int *mtu, int *maxfraglen, unsigned int fragheaderlen, struct sk_buff *skb, struct rt6_info *rt) { if (!(rt->dst.flags & DST_XFRM_T...
static inline struct ipv6_rt_hdr *ip6_rthdr_dup(struct ipv6_rt_hdr *src, return src ? kmemdup(src, (src->hdrlen + 1) * 8, gfp) : NULL; } static void ip6_append_data_mtu(unsigned int *mtu, int *maxfraglen, unsigned int fragheaderlen, struct sk_buff *skb, struct rt6_info *rt, bool pmtuprobe) { if ...
CVE-2013-4163
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/75a493e60ac4bbe2e977e7129d6d8cbb0dd236be'}
nvd
The ip6_append_data_mtu function in net/ipv6/ip6_output.c in the IPv6 implementation in the Linux kernel through 3.10.3 does not properly maintain information about whether the IPV6_MTU setsockopt option had been specified, which allows local users to cause a denial of service (BUG and system crash) via a crafted appli...
2013-07-29
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/75a493e60ac4bbe2e977e7129d6d8cbb0dd236be
75a493e60ac4bbe2e977e7129d6d8cbb0dd236be
SINGLE
['75a493e60ac4bbe2e977e7129d6d8cbb0dd236be']
{'8822b64a0fa64a5dd1dfcf837c5b0be83f8c05d1'}
75a493e60ac4bbe2e977e7129d6d8cbb0dd236be
1
07/02/2013, 06:04:05
ipv6: ip6_append_data_mtu did not care about pmtudisc and frag_size If the socket had an IPV6_MTU value set, ip6_append_data_mtu lost track of this when appending the second frame on a corked socket. This results in the following splat: [37598.993962] ------------[ cut here ]------------ [37598.994008] kernel BUG at ...
Hannes Frederic Sowa
null
{'additions': 10, 'deletions': 6, 'total': 16}
[ { "additions": 10, "changes": 16, "deletions": 6, "patch": "@@ -1093,11 +1093,12 @@ static inline struct ipv6_rt_hdr *ip6_rthdr_dup(struct ipv6_rt_hdr *src,\n \treturn src ? kmemdup(src, (src->hdrlen + 1) * 8, gfp) : NULL;\n }\n \n-static void ip6_append_data_mtu(int *mtu,\n+static void ip6_append_d...
c
CWE-399
[ "net/ipv6/ip6_output.c" ]
net/ipv6/ip6_output.c
1
int create_user_ns(struct cred *new) int unshare_userns(unsigned long unshare_flags, struct cred **new_cred) { struct cred *cred; if (!(unshare_flags & CLONE_NEWUSER)) return 0; cred = prepare_creds(); if (!cred) return -ENOMEM; *new_cred = cred; return create_user_ns(cred); } void free_user_ns(struct us...
int create_user_ns(struct cred *new) int unshare_userns(unsigned long unshare_flags, struct cred **new_cred) { struct cred *cred; int err = -ENOMEM; if (!(unshare_flags & CLONE_NEWUSER)) return 0; cred = prepare_creds(); if (cred) { err = create_user_ns(cred); if (err) put_cred(cred); else *new_cr...
CVE-2013-4205
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/6160968cee8b90a5dd95318d716e31d7775c4ef3'}
nvd
Memory leak in the unshare_userns function in kernel/user_namespace.c in the Linux kernel before 3.10.6 allows local users to cause a denial of service (memory consumption) via an invalid CLONE_NEWUSER unshare call.
2013-08-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6160968cee8b90a5dd95318d716e31d7775c4ef3
6160968cee8b90a5dd95318d716e31d7775c4ef3
SINGLE
['6160968cee8b90a5dd95318d716e31d7775c4ef3']
{'c095ba7224d8edc71dcef0d655911399a8bd4a3f'}
6160968cee8b90a5dd95318d716e31d7775c4ef3
1
08/06/2013, 17:38:55
userns: unshare_userns(&cred) should not populate cred on failure unshare_userns(new_cred) does *new_cred = prepare_creds() before create_user_ns() which can fail. However, the caller expects that it doesn't need to take care of new_cred if unshare_userns() fails. We could change the single caller, sys_unshare(), but...
Oleg Nesterov
null
{'additions': 9, 'deletions': 4, 'total': 13}
[ { "additions": 9, "changes": 13, "deletions": 4, "patch": "@@ -105,16 +105,21 @@ int create_user_ns(struct cred *new)\n int unshare_userns(unsigned long unshare_flags, struct cred **new_cred)\n {\n \tstruct cred *cred;\n+\tint err = -ENOMEM;\n \n \tif (!(unshare_flags & CLONE_NEWUSER))\n \t\treturn ...
c
CWE-399
[ "kernel/user_namespace.c" ]
kernel/user_namespace.c
1
build_unc_path_to_root(const struct smb_vol *vol, pos = full_path + unc_len; if (pplen) { *pos++ = CIFS_DIR_SEP(cifs_sb); strncpy(pos, vol->prepath, pplen); pos += pplen; }
build_unc_path_to_root(const struct smb_vol *vol, pos = full_path + unc_len; if (pplen) { *pos = CIFS_DIR_SEP(cifs_sb); strncpy(pos + 1, vol->prepath, pplen); pos += pplen; }
CVE-2013-4247
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/1fc29bacedeabb278080e31bb9c1ecb49f143c3b'}
nvd
Off-by-one error in the build_unc_path_to_root function in fs/cifs/connect.c in the Linux kernel before 3.9.6 allows remote attackers to cause a denial of service (memory corruption and system crash) via a DFS share mount operation that triggers use of an unexpected DFS referral name length.
2013-08-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1fc29bacedeabb278080e31bb9c1ecb49f143c3b
1fc29bacedeabb278080e31bb9c1ecb49f143c3b
SINGLE
['1fc29bacedeabb278080e31bb9c1ecb49f143c3b']
{'a93cb29acaa8f75618c3f202d1cf43c231984644'}
1fc29bacedeabb278080e31bb9c1ecb49f143c3b
1
05/31/2013, 14:00:18
cifs: fix off-by-one bug in build_unc_path_to_root commit 839db3d10a (cifs: fix up handling of prefixpath= option) changed the code such that the vol->prepath no longer contained a leading delimiter and then fixed up the places that accessed that field to account for that change. One spot in build_unc_path_to_root wa...
Jeff Layton
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -3279,8 +3279,8 @@ build_unc_path_to_root(const struct smb_vol *vol,\n \tpos = full_path + unc_len;\n \n \tif (pplen) {\n-\t\t*pos++ = CIFS_DIR_SEP(cifs_sb);\n-\t\tstrncpy(pos, vol->prepath, pplen);\n+\t\t*pos = CIFS_DIR_SEP(cifs_sb);\n+\t...
c
CWE-189
[ "fs/cifs/connect.c" ]
fs/cifs/connect.c
1
validate_event(struct pmu_hw_events *hw_events, struct arm_pmu *armpmu = to_arm_pmu(event->pmu); struct pmu *leader_pmu = event->group_leader->pmu; if (event->pmu != leader_pmu || event->state < PERF_EVENT_STATE_OFF) return 1;
validate_event(struct pmu_hw_events *hw_events, struct arm_pmu *armpmu = to_arm_pmu(event->pmu); struct pmu *leader_pmu = event->group_leader->pmu; if (is_software_event(event)) return 1; if (event->pmu != leader_pmu || event->state < PERF_EVENT_STATE_OFF) return 1;
CVE-2013-4254
{'CWE-20'}
10
{'https://github.com/torvalds/linux/commit/c95eb3184ea1a3a2551df57190c81da695e2144b'}
nvd
The validate_event function in arch/arm/kernel/perf_event.c in the Linux kernel before 3.10.8 on the ARM platform allows local users to gain privileges or cause a denial of service (NULL pointer dereference and system crash) by adding a hardware event to an event group led by a software event.
2013-08-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c95eb3184ea1a3a2551df57190c81da695e2144b
c95eb3184ea1a3a2551df57190c81da695e2144b
SINGLE
['c95eb3184ea1a3a2551df57190c81da695e2144b']
{'2ba85e7af4c639d933c9a87a6d7363f2983d5ada'}
c95eb3184ea1a3a2551df57190c81da695e2144b
1
08/07/2013, 22:39:41
ARM: 7809/1: perf: fix event validation for software group leaders It is possible to construct an event group with a software event as a group leader and then subsequently add a hardware event to the group. This results in the event group being validated by adding all members of the group to a fake PMU and attempting ...
Will Deacon
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -253,6 +253,9 @@ validate_event(struct pmu_hw_events *hw_events,\n \tstruct arm_pmu *armpmu = to_arm_pmu(event->pmu);\n \tstruct pmu *leader_pmu = event->group_leader->pmu;\n \n+\tif (is_software_event(event))\n+\t\treturn 1;\n+\n \tif (ev...
c
CWE-20
[ "arch/arm/kernel/perf_event.c" ]
arch/arm/kernel/perf_event.c
1
static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y, return 0; zsize = (src[0] << 8) | src[1]; src += 2; if (src_end - src < zsize) return AVERROR_INVALIDDATA; ret = uncompress(c->kempf_buf, &dlen, src, zsize); static int kempf_decode_tile(G2MContext *c, int tile_x, int til...
static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y, return 0; zsize = (src[0] << 8) | src[1]; src += 2; if (src_end - src < zsize + (sub_type != 2)) return AVERROR_INVALIDDATA; ret = uncompress(c->kempf_buf, &dlen, src, zsize); static int kempf_decode_tile(G2MContext *c, i...
CVE-2013-4264
{'CWE-119'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/2960576378d17d71cc8dccc926352ce568b5eec1'}
nvd
The kempf_decode_tile function in libavcodec/g2meet.c in FFmpeg before 2.0.1 allows remote attackers to cause a denial of service (out-of-bounds heap write) via a G2M4 encoded file.
2013-11-23
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/2960576378d17d71cc8dccc926352ce568b5eec1
2960576378d17d71cc8dccc926352ce568b5eec1
SINGLE
['2960576378d17d71cc8dccc926352ce568b5eec1']
{'5cd57e8758e336e86698d4994ee088077869e42d'}
2960576378d17d71cc8dccc926352ce568b5eec1
1
08/07/2013, 13:50:26
avcodec/g2meet: fix src pointer checks in kempf_decode_tile() Fixes Ticket2842 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -389,7 +389,7 @@ static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y,\n return 0;\n zsize = (src[0] << 8) | src[1]; src += 2;\n \n- if (src_end - src < zsize)\n+ if (src_end - src < zsize + (sub_type != 2))...
c
CWE-119
[ "libavcodec/g2meet.c" ]
libavcodec/g2meet.c
1
static int net_ctl_permissions(struct ctl_table_header *head, /* Allow network administrator to have same access as root. */ if (ns_capable(net->user_ns, CAP_NET_ADMIN) || uid_eq(root_uid, current_uid())) { int mode = (table->mode >> 6) & 7; return (mode << 6) | (mode << 3) | mode; } /* Allow netns root ...
static int net_ctl_permissions(struct ctl_table_header *head, /* Allow network administrator to have same access as root. */ if (ns_capable(net->user_ns, CAP_NET_ADMIN) || uid_eq(root_uid, current_euid())) { int mode = (table->mode >> 6) & 7; return (mode << 6) | (mode << 3) | mode; } /* Allow netns root...
CVE-2013-4270
{'CWE-20'}
4.9
{'https://github.com/torvalds/linux/commit/2433c8f094a008895e66f25bd1773cdb01c91d01'}
nvd
The net_ctl_permissions function in net/sysctl_net.c in the Linux kernel before 3.11.5 does not properly determine uid and gid values, which allows local users to bypass intended /proc/sys/net restrictions via a crafted application.
2013-12-09
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2433c8f094a008895e66f25bd1773cdb01c91d01
2433c8f094a008895e66f25bd1773cdb01c91d01
SINGLE
['2433c8f094a008895e66f25bd1773cdb01c91d01']
{'13caa8ed93513dd216ede0c84d833e39fc2e3e2a'}
2433c8f094a008895e66f25bd1773cdb01c91d01
1
10/05/2013, 20:15:30
net: Update the sysctl permissions handler to test effective uid/gid Modify the code to use current_euid(), and in_egroup_p, as in done in fs/proc/proc_sysctl.c:test_perm() Cc: stable@vger.kernel.org Reviewed-by: Eric Sandeen <sandeen@redhat.com> Reported-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Eric W. ...
Eric W. Biederman
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -47,12 +47,12 @@ static int net_ctl_permissions(struct ctl_table_header *head,\n \n \t/* Allow network administrator to have same access as root. */\n \tif (ns_capable(net->user_ns, CAP_NET_ADMIN) ||\n-\t uid_eq(root_uid, current_uid())...
c
CWE-20
[ "net/sysctl_net.c" ]
net/sysctl_net.c
1
static chunk_t area_location(struct pstore *ps, chunk_t area) return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area); } /* * Read or write a metadata area. Remembering to skip the first * chunk which holds the header. static int read_exceptions(struct pstore *ps, ps->current_area--; return 0;...
static chunk_t area_location(struct pstore *ps, chunk_t area) return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area); } static void skip_metadata(struct pstore *ps) { uint32_t stride = ps->exceptions_per_area + 1; chunk_t next_free = ps->next_free; if (sector_div(next_free, stride) == NUM_SNAPSHO...
CVE-2013-4299
{'CWE-200', 'CWE-264'}
6.4
{'https://github.com/torvalds/linux/commit/e9c6a182649f4259db704ae15a91ac820e63b0ca'}
nvd
Interpretation conflict in drivers/md/dm-snap-persistent.c in the Linux kernel through 3.11.6 allows remote authenticated users to obtain sensitive information or modify data via a crafted mapping to a snapshot block device.
2013-10-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e9c6a182649f4259db704ae15a91ac820e63b0ca
e9c6a182649f4259db704ae15a91ac820e63b0ca
SINGLE
['e9c6a182649f4259db704ae15a91ac820e63b0ca']
{'61e6cfa80de5760bbe406f4e815b7739205754d2'}
e9c6a182649f4259db704ae15a91ac820e63b0ca
1
10/16/2013, 02:17:47
dm snapshot: fix data corruption This patch fixes a particular type of data corruption that has been encountered when loading a snapshot's metadata from disk. When we allocate a new chunk in persistent_prepare, we increment ps->next_free and we make sure that it doesn't point to a metadata area by further incrementin...
Mikulas Patocka
null
{'additions': 12, 'deletions': 6, 'total': 18}
[ { "additions": 12, "changes": 18, "deletions": 6, "patch": "@@ -269,6 +269,14 @@ static chunk_t area_location(struct pstore *ps, chunk_t area)\n \treturn NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area);\n }\n \n+static void skip_metadata(struct pstore *ps)\n+{\n+\tuint32_t stride = ...
c
CWE-200
[ "drivers/md/dm-snap-persistent.c" ]
drivers/md/dm-snap-persistent.c
1
static chunk_t area_location(struct pstore *ps, chunk_t area) return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area); } /* * Read or write a metadata area. Remembering to skip the first * chunk which holds the header. static int read_exceptions(struct pstore *ps, ps->current_area--; return 0;...
static chunk_t area_location(struct pstore *ps, chunk_t area) return NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area); } static void skip_metadata(struct pstore *ps) { uint32_t stride = ps->exceptions_per_area + 1; chunk_t next_free = ps->next_free; if (sector_div(next_free, stride) == NUM_SNAPSHO...
CVE-2013-4299
{'CWE-200', 'CWE-264'}
6.4
{'https://github.com/torvalds/linux/commit/e9c6a182649f4259db704ae15a91ac820e63b0ca'}
nvd
Interpretation conflict in drivers/md/dm-snap-persistent.c in the Linux kernel through 3.11.6 allows remote authenticated users to obtain sensitive information or modify data via a crafted mapping to a snapshot block device.
2013-10-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e9c6a182649f4259db704ae15a91ac820e63b0ca
e9c6a182649f4259db704ae15a91ac820e63b0ca
SINGLE
['e9c6a182649f4259db704ae15a91ac820e63b0ca']
{'61e6cfa80de5760bbe406f4e815b7739205754d2'}
e9c6a182649f4259db704ae15a91ac820e63b0ca
1
10/16/2013, 02:17:47
dm snapshot: fix data corruption This patch fixes a particular type of data corruption that has been encountered when loading a snapshot's metadata from disk. When we allocate a new chunk in persistent_prepare, we increment ps->next_free and we make sure that it doesn't point to a metadata area by further incrementin...
Mikulas Patocka
null
{'additions': 12, 'deletions': 6, 'total': 18}
[ { "additions": 12, "changes": 18, "deletions": 6, "patch": "@@ -269,6 +269,14 @@ static chunk_t area_location(struct pstore *ps, chunk_t area)\n \treturn NUM_SNAPSHOT_HDR_CHUNKS + ((ps->exceptions_per_area + 1) * area);\n }\n \n+static void skip_metadata(struct pstore *ps)\n+{\n+\tuint32_t stride = ...
c
CWE-264
[ "drivers/md/dm-snap-persistent.c" ]
drivers/md/dm-snap-persistent.c
1
static __inline__ int scm_check_creds(struct ucred *creds) return -EINVAL; if ((creds->pid == task_tgid_vnr(current) || ns_capable(current->nsproxy->pid_ns->user_ns, CAP_SYS_ADMIN)) && ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || uid_eq(uid, cred->suid)) || nsown_capable(CAP_SETUID)) ...
static __inline__ int scm_check_creds(struct ucred *creds) return -EINVAL; if ((creds->pid == task_tgid_vnr(current) || ns_capable(task_active_pid_ns(current)->user_ns, CAP_SYS_ADMIN)) && ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || uid_eq(uid, cred->suid)) || nsown_capable(CAP_SETUID...
CVE-2013-4300
{'CWE-264'}
10
{'https://github.com/torvalds/linux/commit/d661684cf6820331feae71146c35da83d794467e'}
nvd
The scm_check_creds function in net/core/scm.c in the Linux kernel before 3.11 performs a capability check in an incorrect namespace, which allows local users to gain privileges via PID spoofing.
2013-09-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d661684cf6820331feae71146c35da83d794467e
d661684cf6820331feae71146c35da83d794467e
SINGLE
['d661684cf6820331feae71146c35da83d794467e']
{'dd5746bf6b48bb837e9f5af14b9b241fc4fdc1ef'}
d661684cf6820331feae71146c35da83d794467e
1
08/22/2013, 18:39:15
net: Check the correct namespace when spoofing pid over SCM_RIGHTS This is a security bug. The follow-up will fix nsproxy to discourage this type of issue from happening again. Cc: stable@vger.kernel.org Signed-off-by: Andy Lutomirski <luto@amacapital.net> Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com> Sig...
Andy Lutomirski
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -54,7 +54,7 @@ static __inline__ int scm_check_creds(struct ucred *creds)\n \t\treturn -EINVAL;\n \n \tif ((creds->pid == task_tgid_vnr(current) ||\n-\t ns_capable(current->nsproxy->pid_ns->user_ns, CAP_SYS_ADMIN)) &&\n+\t ns_capab...
c
CWE-264
[ "net/core/scm.c" ]
net/core/scm.c
1
static inline int ip6_ufo_append_data(struct sock *sk, * udp datagram */ if ((skb = skb_peek_tail(&sk->sk_write_queue)) == NULL) { skb = sock_alloc_send_skb(sk, hh_len + fragheaderlen + transhdrlen + 20, (flags & MSG_DONTWAIT), &err); static inline int ip6_ufo_append_data(struct sock *sk, skb->protocol ...
static inline int ip6_ufo_append_data(struct sock *sk, * udp datagram */ if ((skb = skb_peek_tail(&sk->sk_write_queue)) == NULL) { struct frag_hdr fhdr; skb = sock_alloc_send_skb(sk, hh_len + fragheaderlen + transhdrlen + 20, (flags & MSG_DONTWAIT), &err); static inline int ip6_ufo_append_data(struct s...
CVE-2013-4387
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/2811ebac2521ceac84f2bdae402455baa6a7fb47'}
nvd
net/ipv6/ip6_output.c in the Linux kernel through 3.11.4 does not properly determine the need for UDP Fragmentation Offload (UFO) processing of small packets after the UFO queueing of a large packet, which allows remote attackers to cause a denial of service (memory corruption and system crash) or possibly have unspeci...
2013-10-10
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2811ebac2521ceac84f2bdae402455baa6a7fb47
2811ebac2521ceac84f2bdae402455baa6a7fb47
SINGLE
['2811ebac2521ceac84f2bdae402455baa6a7fb47']
{'3db9180213af6aa54effc2b94bc9090dc1f68673'}
2811ebac2521ceac84f2bdae402455baa6a7fb47
1
09/21/2013, 04:27:00
ipv6: udp packets following an UFO enqueued packet need also be handled by UFO In the following scenario the socket is corked: If the first UDP packet is larger then the mtu we try to append it to the write queue via ip6_ufo_append_data. A following packet, which is smaller than the mtu would be appended to the alread...
Hannes Frederic Sowa
null
{'additions': 22, 'deletions': 31, 'total': 53}
[ { "additions": 22, "changes": 53, "deletions": 31, "patch": "@@ -1015,6 +1015,8 @@ static inline int ip6_ufo_append_data(struct sock *sk,\n \t * udp datagram\n \t */\n \tif ((skb = skb_peek_tail(&sk->sk_write_queue)) == NULL) {\n+\t\tstruct frag_hdr fhdr;\n+\n \t\tskb = sock_alloc_send_skb(sk,\n \t\...
c
CWE-119
[ "net/ipv6/ip6_output.c" ]
net/ipv6/ip6_output.c
1
class Attachment def initialize content_type, filename, encoded_content, sibling_types @content_type = content_type.downcase @filename = filename @quotable = false # changed to true if we can parse it through the # mime-decode hook, or if it's plain text def initialize co...
class Attachment def initialize content_type, filename, encoded_content, sibling_types @content_type = content_type.downcase if Shellwords.escape(@content_type) != @content_type warn "content_type #{@content_type} is not safe, changed to application/octet-stream" @content_type = 'appli...
CVE-2013-4479
{'CWE-94'}
6.4
{'https://github.com/sup-heliotrope/sup/commit/ca0302e0c716682d2de22e9136400c704cc93e42'}
nvd
lib/sup/message_chunks.rb in Sup before 0.13.2.1 and 0.14.x before 0.14.1.1 allows remote attackers to execute arbitrary commands via shell metacharacters in the content_type of an email attachment.
2013-12-07
1
https://github.com/sup-heliotrope/sup
https://github.com/sup-heliotrope/sup/commit/ca0302e0c716682d2de22e9136400c704cc93e42
ca0302e0c716682d2de22e9136400c704cc93e42
SINGLE
['ca0302e0c716682d2de22e9136400c704cc93e42']
{'8b46cdbfc14e07ca07d403aa28b0e7bc1c544785'}
ca0302e0c716682d2de22e9136400c704cc93e42
1
10/28/2013, 21:42:50
security: prevent remote command injection in content_type
Gaute Hope
null
{'additions': 7, 'deletions': 2, 'total': 9}
[ { "additions": 7, "changes": 9, "deletions": 2, "patch": "@@ -113,6 +113,11 @@ class Attachment\n \n def initialize content_type, filename, encoded_content, sibling_types\n @content_type = content_type.downcase\n+ if Shellwords.escape(@content_type) != @content_type\n+ warn \"c...
rb
CWE-94
[ "lib/sup/message_chunks.rb" ]
lib/sup/message_chunks.rb
1
static ssize_t exitcode_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; int tmp; if (copy_from_user(buf, buffer, count)) return -EFAULT; tmp = simple_strtol(buf, &end, 0);
static ssize_t exitcode_proc_write(struct file *file, const char __user *buffer, size_t count, loff_t *pos) { char *end, buf[sizeof("nnnnn\0")]; size_t size; int tmp; size = min(count, sizeof(buf)); if (copy_from_user(buf, buffer, size)) return -EFAULT; tmp = simple_strtol(buf, &end, 0);
CVE-2013-4512
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/201f99f170df14ba52ea4c52847779042b7a623b'}
nvd
Buffer overflow in the exitcode_proc_write function in arch/um/kernel/exitcode.c in the Linux kernel before 3.12 allows local users to cause a denial of service or possibly have unspecified other impact by leveraging root privileges for a write operation.
2013-11-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/201f99f170df14ba52ea4c52847779042b7a623b
201f99f170df14ba52ea4c52847779042b7a623b
SINGLE
['201f99f170df14ba52ea4c52847779042b7a623b']
{'7314e613d5ff9f0934f7a0f74ed7973b903315d1'}
201f99f170df14ba52ea4c52847779042b7a623b
1
10/29/2013, 19:06:04
uml: check length in exitcode_proc_write() We don't cap the size of buffer from the user so we could write past the end of the array here. Only root can write to this file. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> ...
Dan Carpenter
null
{'additions': 3, 'deletions': 1, 'total': 4}
[ { "additions": 3, "changes": 4, "deletions": 1, "patch": "@@ -40,9 +40,11 @@ static ssize_t exitcode_proc_write(struct file *file,\n \t\tconst char __user *buffer, size_t count, loff_t *pos)\n {\n \tchar *end, buf[sizeof(\"nnnnn\\0\")];\n+\tsize_t size;\n \tint tmp;\n \n-\tif (copy_from_user(buf, bu...
c
CWE-119
[ "arch/um/kernel/exitcode.c" ]
arch/um/kernel/exitcode.c
1
static ssize_t oz_cdev_write(struct file *filp, const char __user *buf, struct oz_app_hdr *app_hdr; struct oz_serial_ctx *ctx; spin_lock_bh(&g_cdev.lock); pd = g_cdev.active_pd; if (pd)
static ssize_t oz_cdev_write(struct file *filp, const char __user *buf, struct oz_app_hdr *app_hdr; struct oz_serial_ctx *ctx; if (count > sizeof(ei->data) - sizeof(*elt) - sizeof(*app_hdr)) return -EINVAL; spin_lock_bh(&g_cdev.lock); pd = g_cdev.active_pd; if (pd)
CVE-2013-4513
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/c2c65cd2e14ada6de44cb527e7f1990bede24e15'}
nvd
Buffer overflow in the oz_cdev_write function in drivers/staging/ozwpan/ozcdev.c in the Linux kernel before 3.12 allows local users to cause a denial of service or possibly have unspecified other impact via a crafted write operation.
2013-11-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c2c65cd2e14ada6de44cb527e7f1990bede24e15
c2c65cd2e14ada6de44cb527e7f1990bede24e15
SINGLE
['c2c65cd2e14ada6de44cb527e7f1990bede24e15']
{'201f99f170df14ba52ea4c52847779042b7a623b'}
c2c65cd2e14ada6de44cb527e7f1990bede24e15
1
10/29/2013, 19:07:47
staging: ozwpan: prevent overflow in oz_cdev_write() We need to check "count" so we don't overflow the ei->data buffer. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <t...
Dan Carpenter
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -155,6 +155,9 @@ static ssize_t oz_cdev_write(struct file *filp, const char __user *buf,\n \tstruct oz_app_hdr *app_hdr;\n \tstruct oz_serial_ctx *ctx;\n \n+\tif (count > sizeof(ei->data) - sizeof(*elt) - sizeof(*app_hdr))\n+\t\treturn -EI...
c
CWE-119
[ "drivers/staging/ozwpan/ozcdev.c" ]
drivers/staging/ozwpan/ozcdev.c
1
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; #ifdef USE_WDS hcf_16 hcfPort = HCF_PORT_0; int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) b...
int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp) ltv_t *pLtv; bool_t ltvAllocated = FALSE; ENCSTRCT sEncryption; size_t len; #ifdef USE_WDS hcf_16 hcfPort = HCF_PORT_0; int wvlan_uil_put_info(struct uilreq *urq, struct wl_priv...
CVE-2013-4514
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/b5e2f339865fb443107e5b10603e53bbc92dc054'}
nvd
Multiple buffer overflows in drivers/staging/wlags49_h2/wl_priv.c in the Linux kernel before 3.12 allow local users to cause a denial of service or possibly have unspecified other impact by leveraging the CAP_NET_ADMIN capability and providing a long station-name string, related to the (1) wvlan_uil_put_info and (2) wv...
2013-11-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b5e2f339865fb443107e5b10603e53bbc92dc054
b5e2f339865fb443107e5b10603e53bbc92dc054
SINGLE
['b5e2f339865fb443107e5b10603e53bbc92dc054']
{'f856567b930dfcdbc3323261bf77240ccdde01f5'}
b5e2f339865fb443107e5b10603e53bbc92dc054
1
10/29/2013, 20:00:15
staging: wlags49_h2: buffer overflow setting station name We need to check the length parameter before doing the memcpy(). I've actually changed it to strlcpy() as well so that it's NUL terminated. You need CAP_NET_ADMIN to trigger these so it's not the end of the world. Reported-by: Nico Golde <nico@ngolde.de> Rep...
Dan Carpenter
null
{'additions': 6, 'deletions': 3, 'total': 9}
[ { "additions": 6, "changes": 9, "deletions": 3, "patch": "@@ -570,6 +570,7 @@ int wvlan_uil_put_info(struct uilreq *urq, struct wl_private *lp)\n \tltv_t *pLtv;\n \tbool_t ltvAllocated = FALSE;\n \tENCSTRCT sEncryption;\n+\tsize_t\t\t\tlen;\n \n #ifd...
c
CWE-119
[ "drivers/staging/wlags49_h2/wl_priv.c" ]
drivers/staging/wlags49_h2/wl_priv.c
1
static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n"); DevInfo.MaxRDMBufferSize = BUFFER_4K; DevInfo.u32DSDStartOffset = EEPROM_CALPARAM_START; DevInfo.u32RxAlignmentCorrection = 0;
static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg) BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, "Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\n"); memset(&DevInfo, 0, sizeof(DevInfo)); DevInfo.MaxRDMBufferSize = BUFFER_4K; DevInfo.u32DSDStartOffset = EEPROM_CALPARAM_START; De...
CVE-2013-4515
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/8d1e72250c847fa96498ec029891de4dc638a5ba'}
nvd
The bcm_char_ioctl function in drivers/staging/bcm/Bcmchar.c in the Linux kernel before 3.12 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel memory via an IOCTL_BCM_GET_DEVICE_DRIVER_INFO ioctl call.
2013-11-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/8d1e72250c847fa96498ec029891de4dc638a5ba
8d1e72250c847fa96498ec029891de4dc638a5ba
SINGLE
['8d1e72250c847fa96498ec029891de4dc638a5ba']
{'b5e2f339865fb443107e5b10603e53bbc92dc054'}
8d1e72250c847fa96498ec029891de4dc638a5ba
1
10/29/2013, 20:01:11
Staging: bcm: info leak in ioctl The DevInfo.u32Reserved[] array isn't initialized so it leaks kernel information to user space. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable@kernel.org Signed-off-by: Linus To...
Dan Carpenter
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -1960,6 +1960,7 @@ static long bcm_char_ioctl(struct file *filp, UINT cmd, ULONG arg)\n \n \t\tBCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, OSAL_DBG, DBG_LVL_ALL, \"Called IOCTL_BCM_GET_DEVICE_DRIVER_INFO\\n\");\n \n+\t\tmemset(&DevInfo, 0, s...
c
CWE-200
[ "drivers/staging/bcm/Bcmchar.c" ]
drivers/staging/bcm/Bcmchar.c
1
static int mp_wait_modem_status(struct sb_uart_state *state, unsigned long arg) static int mp_get_count(struct sb_uart_state *state, struct serial_icounter_struct *icnt) { struct serial_icounter_struct icount; struct sb_uart_icount cnow; struct sb_uart_port *port = state->port;
static int mp_wait_modem_status(struct sb_uart_state *state, unsigned long arg) static int mp_get_count(struct sb_uart_state *state, struct serial_icounter_struct *icnt) { struct serial_icounter_struct icount = {}; struct sb_uart_icount cnow; struct sb_uart_port *port = state->port;
CVE-2013-4516
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/a8b33654b1e3b0c74d4a1fed041c9aae50b3c427'}
nvd
The mp_get_count function in drivers/staging/sb105x/sb_pci_mp.c in the Linux kernel before 3.12 does not initialize a certain data structure, which allows local users to obtain sensitive information from kernel stack memory via a TIOCGICOUNT ioctl call.
2013-11-12
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a8b33654b1e3b0c74d4a1fed041c9aae50b3c427
a8b33654b1e3b0c74d4a1fed041c9aae50b3c427
SINGLE
['a8b33654b1e3b0c74d4a1fed041c9aae50b3c427']
{'8d1e72250c847fa96498ec029891de4dc638a5ba'}
a8b33654b1e3b0c74d4a1fed041c9aae50b3c427
1
10/29/2013, 20:01:43
Staging: sb105x: info leak in mp_get_count() The icount.reserved[] array isn't initialized so it leaks stack information to userspace. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable@kernel.org Signed-off-by: Li...
Dan Carpenter
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1063,7 +1063,7 @@ static int mp_wait_modem_status(struct sb_uart_state *state, unsigned long arg)\n \n static int mp_get_count(struct sb_uart_state *state, struct serial_icounter_struct *icnt)\n {\n-\tstruct serial_icounter_struct icount;...
c
CWE-200
[ "drivers/staging/sb105x/sb_pci_mp.c" ]
drivers/staging/sb105x/sb_pci_mp.c
1
do { fprintf(stderr, "stellaris_enet: error: " fmt , ## __VA_ARGS__);} while (0) #define STELLARIS_ENET(obj) \ OBJECT_CHECK(stellaris_enet_state, (obj), TYPE_STELLARIS_ENET) typedef struct { SysBusDevice parent_obj; typedef struct { uint32_t mtxd; uint32_t mrxd; uint32_t np; int tx_fifo_len; ...
do { fprintf(stderr, "stellaris_enet: error: " fmt , ## __VA_ARGS__);} while (0) #define STELLARIS_ENET(obj) \ OBJECT_CHECK(stellaris_enet_state, (obj), TYPE_STELLARIS_ENET) typedef struct { uint8_t data[2048]; uint32_t len; } StellarisEnetRxFrame; typedef struct { SysBusDevice parent_obj; typedef s...
CVE-2013-4532
{'CWE-119'}
6.4
{'https://github.com/qemu/qemu/commit/2e1198672759eda6e122ff38fcf6df06f27e0fe2'}
nvd
Qemu 1.1.2+dfsg to 2.1+dfsg suffers from a buffer overrun which could potentially result in arbitrary code execution on the host with the privileges of the QEMU process.
2020-01-02
1
https://github.com/qemu/qemu
https://github.com/qemu/qemu/commit/2e1198672759eda6e122ff38fcf6df06f27e0fe2
2e1198672759eda6e122ff38fcf6df06f27e0fe2
SINGLE
['2e1198672759eda6e122ff38fcf6df06f27e0fe2']
{'889ac2a32fd803f7222524d8f56aded1c3cbad3c'}
2e1198672759eda6e122ff38fcf6df06f27e0fe2
1
05/13/2014, 15:09:38
hw/net/stellaris_enet: Convert to vmstate Convert this device to use vmstate for its save/load, including providing a post_load function that sanitizes inbound data to avoid possible buffer overflows if it is malicious. The sanitizing fixes CVE-2013-4532 (though nobody should be relying on the security properties of ...
Peter Maydell
null
{'additions': 80, 'deletions': 68, 'total': 148}
[ { "additions": 80, "changes": 148, "deletions": 68, "patch": "@@ -46,6 +46,11 @@ do { fprintf(stderr, \"stellaris_enet: error: \" fmt , ## __VA_ARGS__);} while (0)\n #define STELLARIS_ENET(obj) \\\n OBJECT_CHECK(stellaris_enet_state, (obj), TYPE_STELLARIS_ENET)\n \n+typedef struct {\n+ uint8_...
c
CWE-119
[ "hw/net/stellaris_enet.c" ]
hw/net/stellaris_enet.c
1
static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, /* Check if there is enough headroom to insert fragment header. */ tnl_hlen = skb_tnl_header_len(skb); if (skb_headroom(skb) < (tnl_hlen + frag_hdr_sz)) { if (gso_pskb_expand_head(skb, tnl_hlen + frag_hdr_sz)) goto out; }
static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, /* Check if there is enough headroom to insert fragment header. */ tnl_hlen = skb_tnl_header_len(skb); if (skb->mac_header < (tnl_hlen + frag_hdr_sz)) { if (gso_pskb_expand_head(skb, tnl_hlen + frag_hdr_sz)) goto out; }
CVE-2013-4563
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/0e033e04c2678dbbe74a46b23fffb7bb918c288e'}
nvd
The udp6_ufo_fragment function in net/ipv6/udp_offload.c in the Linux kernel through 3.12, when UDP Fragmentation Offload (UFO) is enabled, does not properly perform a certain size comparison before inserting a fragment header, which allows remote attackers to cause a denial of service (panic) via a large IPv6 UDP pack...
2013-11-20
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0e033e04c2678dbbe74a46b23fffb7bb918c288e
0e033e04c2678dbbe74a46b23fffb7bb918c288e
SINGLE
['0e033e04c2678dbbe74a46b23fffb7bb918c288e']
{'1cce16d37d0fe2668787d64ad172c5be6973aeca'}
0e033e04c2678dbbe74a46b23fffb7bb918c288e
1
11/05/2013, 01:41:27
ipv6: fix headroom calculation in udp6_ufo_fragment Commit 1e2bd517c108816220f262d7954b697af03b5f9c ("udp6: Fix udp fragmentation for tunnel traffic.") changed the calculation if there is enough space to include a fragment header in the skb from a skb->mac_header dervived one to skb_headroom. Because we already peeled...
Hannes Frederic Sowa
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -90,7 +90,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb,\n \n \t\t/* Check if there is enough headroom to insert fragment header. */\n \t\ttnl_hlen = skb_tnl_header_len(skb);\n-\t\tif (skb_headroom(skb) < (tnl_hlen + fr...
c
CWE-189
[ "net/ipv6/udp_offload.c" ]
net/ipv6/udp_offload.c
1
static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id) int r; struct kvm_vcpu *vcpu, *v; vcpu = kvm_arch_vcpu_create(kvm, id); if (IS_ERR(vcpu)) return PTR_ERR(vcpu);
static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id) int r; struct kvm_vcpu *vcpu, *v; if (id >= KVM_MAX_VCPUS) return -EINVAL; vcpu = kvm_arch_vcpu_create(kvm, id); if (IS_ERR(vcpu)) return PTR_ERR(vcpu);
CVE-2013-4587
{'CWE-20'}
10
{'https://github.com/torvalds/linux/commit/338c7dbadd2671189cec7faf64c84d01071b3f96'}
nvd
Array index error in the kvm_vm_ioctl_create_vcpu function in virt/kvm/kvm_main.c in the KVM subsystem in the Linux kernel through 3.12.5 allows local users to gain privileges via a large id value.
2013-12-14
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/338c7dbadd2671189cec7faf64c84d01071b3f96
338c7dbadd2671189cec7faf64c84d01071b3f96
SINGLE
['338c7dbadd2671189cec7faf64c84d01071b3f96']
{'2e7babfa892a55588467ef03b545002e32f31528'}
338c7dbadd2671189cec7faf64c84d01071b3f96
1
11/19/2013, 00:09:22
KVM: Improve create VCPU parameter (CVE-2013-4587) In multiple functions the vcpu_id is used as an offset into a bitfield. Ag malicious user could specify a vcpu_id greater than 255 in order to set or clear bits in kernel memory. This could be used to elevate priveges in the kernel. This patch verifies that the vcp...
Andy Honig
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -1898,6 +1898,9 @@ static int kvm_vm_ioctl_create_vcpu(struct kvm *kvm, u32 id)\n \tint r;\n \tstruct kvm_vcpu *vcpu, *v;\n \n+\tif (id >= KVM_MAX_VCPUS)\n+\t\treturn -EINVAL;\n+\n \tvcpu = kvm_arch_vcpu_create(kvm, id);\n \tif (IS_ERR(vcp...
c
CWE-20
[ "virt/kvm/kvm_main.c" ]
virt/kvm/kvm_main.c
1
do_ip_vs_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len) if (!capable(CAP_NET_ADMIN)) return -EPERM; if (len != set_arglen[SET_CMDID(cmd)]) { pr_err("set_ctl: len %u != %u\n", len, set_arglen[SET_CMDID(cmd)]); do_ip_vs_get_ctl(struct sock *sk, int cmd, void __user *user, int *len...
do_ip_vs_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len) if (!capable(CAP_NET_ADMIN)) return -EPERM; if (cmd < IP_VS_BASE_CTL || cmd > IP_VS_SO_SET_MAX) return -EINVAL; if (len < 0 || len > MAX_ARG_LEN) return -EINVAL; if (len != set_arglen[SET_CMDID(cmd)]) { pr_err("set_ctl: len %...
CVE-2013-4588
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/04bcef2a83f40c6db24222b27a52892cba39dffb'}
nvd
Multiple stack-based buffer overflows in net/netfilter/ipvs/ip_vs_ctl.c in the Linux kernel before 2.6.33, when CONFIG_IP_VS is used, allow local users to gain privileges by leveraging the CAP_NET_ADMIN capability for (1) a getsockopt system call, related to the do_ip_vs_get_ctl function, or (2) a setsockopt system cal...
2013-11-20
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/04bcef2a83f40c6db24222b27a52892cba39dffb
04bcef2a83f40c6db24222b27a52892cba39dffb
SINGLE
['04bcef2a83f40c6db24222b27a52892cba39dffb']
{'ae24e578de02b87cce3dc59248c29b2ecb071e9e'}
04bcef2a83f40c6db24222b27a52892cba39dffb
1
01/04/2010, 15:37:12
ipvs: Add boundary check on ioctl arguments The ipvs code has a nifty system for doing the size of ioctl command copies; it defines an array with values into which it indexes the cmd to find the right length. Unfortunately, the ipvs code forgot to check if the cmd was in the range that the array provides, allowing fo...
Arjan van de Ven
null
{'additions': 13, 'deletions': 1, 'total': 14}
[ { "additions": 13, "changes": 14, "deletions": 1, "patch": "@@ -2077,6 +2077,10 @@ do_ip_vs_set_ctl(struct sock *sk, int cmd, void __user *user, unsigned int len)\n \tif (!capable(CAP_NET_ADMIN))\n \t\treturn -EPERM;\n \n+\tif (cmd < IP_VS_BASE_CTL || cmd > IP_VS_SO_SET_MAX)\n+\t\treturn -EINVAL;\n+...
c
CWE-119
[ "net/netfilter/ipvs/ip_vs_ctl.c" ]
net/netfilter/ipvs/ip_vs_ctl.c
1
static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu goto out_free; } nfs4_write_cached_acl(inode, pages, res.acl_data_offset, res.acl_len); if (buf) _copy_from_pages(buf, pages, res.acl_data_offset, res.acl_len); out_ok: ret = res.acl_len; out_free:
static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu goto out_free; } nfs4_write_cached_acl(inode, pages, res.acl_data_offset, res.acl_len); if (buf) { if (res.acl_len > buflen) { ret = -ERANGE; goto out_free; } _copy_from_pages(buf, pages, res.acl_data_offset, res.acl_len)...
CVE-2013-4591
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/7d3e91a89b7adbc2831334def9e494dd9892f9af'}
nvd
Buffer overflow in the __nfs4_get_acl_uncached function in fs/nfs/nfs4proc.c in the Linux kernel before 3.7.2 allows local users to cause a denial of service (memory corruption and system crash) or possibly have unspecified other impact via a getxattr system call for the system.nfs4_acl extended attribute of a pathname...
2013-11-20
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/7d3e91a89b7adbc2831334def9e494dd9892f9af
7d3e91a89b7adbc2831334def9e494dd9892f9af
SINGLE
['7d3e91a89b7adbc2831334def9e494dd9892f9af']
{'4c1002100898d03c5c9142ffaf58351c841ab94a'}
7d3e91a89b7adbc2831334def9e494dd9892f9af
1
12/08/2012, 14:30:18
NFSv4: Check for buffer length in __nfs4_get_acl_uncached Commit 1f1ea6c "NFSv4: Fix buffer overflow checking in __nfs4_get_acl_uncached" accidently dropped the checking for too small result buffer length. If someone uses getxattr on "system.nfs4_acl" on an NFSv4 mount supporting ACLs, the ACL has not been cached and...
Sven Wegener
null
{'additions': 6, 'deletions': 1, 'total': 7}
[ { "additions": 6, "changes": 7, "deletions": 1, "patch": "@@ -3937,8 +3937,13 @@ static ssize_t __nfs4_get_acl_uncached(struct inode *inode, void *buf, size_t bu\n \t\tgoto out_free;\n \t}\n \tnfs4_write_cached_acl(inode, pages, res.acl_data_offset, res.acl_len);\n-\tif (buf)\n+\tif (buf) {\n+\t\tif...
c
CWE-119
[ "fs/nfs/nfs4proc.c" ]
fs/nfs/nfs4proc.c
1
{ require_once cot_incfile('page', 'module'); if (!empty($c)) { $mtch = $structure['page'][$c]['path']."."; $mtchlen = mb_strlen($mtch);
{ require_once cot_incfile('page', 'module'); if (!empty($c) && isset($structure['page'][$c])) { $mtch = $structure['page'][$c]['path']."."; $mtchlen = mb_strlen($mtch);
CVE-2013-4789
{'CWE-89'}
6.4
{'https://github.com/Cotonti/Cotonti/commit/45eec046391afabb676b62b9201da0cd530360b4'}
nvd
SQL injection vulnerability in modules/rss/rss.php in Cotonti before 0.9.14 allows remote attackers to execute arbitrary SQL commands via the "c" parameter to index.php.
2013-08-09
1
https://github.com/Cotonti/Cotonti
https://github.com/Cotonti/Cotonti/commit/45eec046391afabb676b62b9201da0cd530360b4
45eec046391afabb676b62b9201da0cd530360b4
SINGLE
['45eec046391afabb676b62b9201da0cd530360b4']
{'c33eb83e6705a01c0d7252689d635e440c6c7f9c'}
45eec046391afabb676b62b9201da0cd530360b4
1
07/17/2013, 18:49:02
Fixed SQL injection vulnerability in RSS module
Vladimir Sibirov
{'com_1': {'author': 'jasperjorna', 'datetime': '07/17/2013, 18:51:40', 'body': 'That was quick! :)'}}
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -199,7 +199,7 @@\n {\n \trequire_once cot_incfile('page', 'module');\n \n-\tif (!empty($c))\n+\tif (!empty($c) && isset($structure['page'][$c]))\n \t{\n \t\t$mtch = $structure['page'][$c]['path'].\".\";\n \t\t$mtchlen = mb_strlen($mtch);",...
php
CWE-89
[ "modules/rss/rss.php" ]
modules/rss/rss.php
1
function checkOldRoutes($path) { $found = false; $x = count($path); while ($x) { $f = sqlfetch(sqlquery("SELECT * FROM bigtree_route_history WHERE old_route = '".implode("/",array_slice($path,0,$x))."'")); if ($f) { $old = $f["old_route"]; $new = $f["new_route"];
function checkOldRoutes($path) { $found = false; $x = count($path); while ($x) { $f = sqlfetch(sqlquery("SELECT * FROM bigtree_route_history WHERE old_route = '".sqlescape(implode("/",array_slice($path,0,$x)))."'")); if ($f) { $old = $f["old_route"]; $new = $f["new_route"];
CVE-2013-4879
{'CWE-89'}
6.4
{'https://github.com/bigtreecms/BigTree-CMS/commit/c5f27bf66a7f35bd3daeb5f693f3e2493f51b1f3'}
nvd
SQL injection vulnerability in core/inc/bigtree/cms.php in BigTree CMS 4.0 RC2 and earlier allows remote attackers to execute arbitrary SQL commands via the PATH_INFO to index.php.
2013-08-14
1
https://github.com/bigtreecms/BigTree-CMS
https://github.com/bigtreecms/BigTree-CMS/commit/c5f27bf66a7f35bd3daeb5f693f3e2493f51b1f3
c5f27bf66a7f35bd3daeb5f693f3e2493f51b1f3
SINGLE
['c5f27bf66a7f35bd3daeb5f693f3e2493f51b1f3']
{'22114b89e5e3b43985839610745b75c1608a5a9a'}
c5f27bf66a7f35bd3daeb5f693f3e2493f51b1f3
1
07/03/2013, 20:12:11
Fixed error when putting ' in a URL by accident.
Tim Buckingham
{'com_1': {'author': 'fgeek', 'datetime': '08/08/2013, 05:21:33', 'body': 'Which release will include this change?'}, 'com_2': {'author': 'timbuckingham', 'datetime': '08/08/2013, 14:52:19', 'body': 'It will be in the 4.0 final release which we expect to ship in the next few weeks.'}, 'com_3': {'author': 'fgeek', 'date...
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -127,7 +127,7 @@ function checkOldRoutes($path) {\n \t\t\t$found = false;\n \t\t\t$x = count($path);\n \t\t\twhile ($x) {\n-\t\t\t\t$f = sqlfetch(sqlquery(\"SELECT * FROM bigtree_route_history WHERE old_route = '\".implode(\"/\",array_slic...
php
CWE-89
[ "core/inc/bigtree/cms.php" ]
core/inc/bigtree/cms.php
1
<? $id = $_GET["module"]; $table = isset($_GET["table"]) ? $_GET["table"] : ""; $title = isset($_GET["title"]) ? htmlspecialchars($_GET["title"]) : "";
<? $id = htmlspecialchars($_GET["module"]); $table = isset($_GET["table"]) ? $_GET["table"] : ""; $title = isset($_GET["title"]) ? htmlspecialchars($_GET["title"]) : "";
CVE-2013-4880
{'CWE-79'}
2.9
{'https://github.com/bigtreecms/BigTree-CMS/commit/8a59c2e13f8e151b6a9e98f73e641e1ec8d928df'}
nvd
Cross-site scripting (XSS) vulnerability in core/admin/modules/developer/modules/views/add.php in BigTree CMS 4.0 RC2 and earlier allows remote attackers to inject arbitrary web script or HTML via the module parameter.
2013-08-14
1
https://github.com/bigtreecms/BigTree-CMS
https://github.com/bigtreecms/BigTree-CMS/commit/8a59c2e13f8e151b6a9e98f73e641e1ec8d928df
8a59c2e13f8e151b6a9e98f73e641e1ec8d928df
SINGLE
['8a59c2e13f8e151b6a9e98f73e641e1ec8d928df']
{'4b0faa90fa8b9e1776c86db716894dcd7e6b4834'}
8a59c2e13f8e151b6a9e98f73e641e1ec8d928df
1
07/17/2013, 15:22:13
Fixed a potential cross-site scripting issue on the module view add page. Thanks to High-Tech Bridge Security Research Lab for finding this and the Cross-Site Request Forgery issues.
Tim Buckingham
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1,5 +1,5 @@\n <?\n-\t$id = $_GET[\"module\"];\n+\t$id = htmlspecialchars($_GET[\"module\"]);\n \t$table = isset($_GET[\"table\"]) ? $_GET[\"table\"] : \"\";\n \t$title = isset($_GET[\"title\"]) ? htmlspecialchars($_GET[\"title\"]) : \"\";...
php
CWE-79
[ "core/admin/modules/developer/modules/views/add.php" ]
core/admin/modules/developer/modules/views/add.php
1
static void vcpu_pause(struct kvm_vcpu *vcpu) wait_event_interruptible(*wq, !vcpu->arch.pause); } /** * kvm_arch_vcpu_ioctl_run - the main VCPU run function to execute guest code * @vcpu: The VCPU pointer int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *run) int ret; sigset_t sigsaved; /* Mak...
static void vcpu_pause(struct kvm_vcpu *vcpu) wait_event_interruptible(*wq, !vcpu->arch.pause); } static int kvm_vcpu_initialized(struct kvm_vcpu *vcpu) { return vcpu->arch.target >= 0; } /** * kvm_arch_vcpu_ioctl_run - the main VCPU run function to execute guest code * @vcpu: The VCPU pointer int kvm_arch_vcpu_...
CVE-2013-5634
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/e8180dcaa8470ceca21109f143876fdcd9fe050a'}
nvd
arch/arm/kvm/arm.c in the Linux kernel before 3.10 on the ARM platform, when KVM is used, allows host OS users to cause a denial of service (NULL pointer dereference, OOPS, and host OS crash) or possibly have unspecified other impact by omitting vCPU initialization before a KVM_GET_REG_LIST ioctl call.
2013-09-25
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/e8180dcaa8470ceca21109f143876fdcd9fe050a
e8180dcaa8470ceca21109f143876fdcd9fe050a
SINGLE
['e8180dcaa8470ceca21109f143876fdcd9fe050a']
{'ed829857b36bc0155d85b661ab227df57ac898f3'}
e8180dcaa8470ceca21109f143876fdcd9fe050a
1
05/08/2013, 22:28:06
ARM: KVM: prevent NULL pointer dereferences with KVM VCPU ioctl Some ARM KVM VCPU ioctls require the vCPU to be properly initialized with the KVM_ARM_VCPU_INIT ioctl before being used with further requests. KVM_RUN checks whether this initialization has been done, but other ioctls do not. Namely KVM_GET_REG_LIST will ...
Andre Przywara
null
{'additions': 13, 'deletions': 2, 'total': 15}
[ { "additions": 13, "changes": 15, "deletions": 2, "patch": "@@ -492,6 +492,11 @@ static void vcpu_pause(struct kvm_vcpu *vcpu)\n \twait_event_interruptible(*wq, !vcpu->arch.pause);\n }\n \n+static int kvm_vcpu_initialized(struct kvm_vcpu *vcpu)\n+{\n+\treturn vcpu->arch.target >= 0;\n+}\n+\n /**\n ...
c
CWE-399
[ "arch/arm/kvm/arm.c" ]
arch/arm/kvm/arm.c
1
function download($params) if (!is_admin()) { error("must be admin"); } ; ini_set('memory_limit', '512M'); set_time_limit(0); function download($params) } else if (isset($_GET['file'])) { $id = $params['file']; } // Check if the ...
function download($params) if (!is_admin()) { error("must be admin"); } ini_set('memory_limit', '512M'); set_time_limit(0); function download($params) } else if (isset($_GET['file'])) { $id = $params['file']; } $id = str_replace('..', ''...
CVE-2013-5984
{'CWE-22'}
4.9
{'https://github.com/microweber/microweber/commit/9177d134960c24cb642d5cf3b42a1fba286219cc'}
nvd
Directory traversal vulnerability in userfiles/modules/admin/backup/delete.php in Microweber before 0.830 allows remote attackers to delete arbitrary files via a .. (dot dot) in the file parameter.
2014-05-12
1
https://github.com/microweber/microweber
https://github.com/microweber/microweber/commit/9177d134960c24cb642d5cf3b42a1fba286219cc
9177d134960c24cb642d5cf3b42a1fba286219cc
SINGLE
['9177d134960c24cb642d5cf3b42a1fba286219cc']
{'0b022bb14ae01a7058acd87fa154dd0e5fef8210'}
9177d134960c24cb642d5cf3b42a1fba286219cc
1
09/26/2013, 13:19:10
fix of CVE HTB23175 https://www.htbridge.com/advisory/HTB23175
Peter Ivanov
{'com_1': {'author': 'foxx', 'datetime': '10/16/2013, 22:41:36', 'body': 'lol...'}, 'com_2': {'author': 'peter-mw', 'datetime': '10/17/2013, 06:34:22', 'body': 'it happens :)'}}
{'additions': 12, 'deletions': 1, 'total': 13}
[ { "additions": 12, "changes": 13, "deletions": 1, "patch": "@@ -1496,7 +1496,7 @@ function download($params)\n if (!is_admin()) {\n error(\"must be admin\");\n }\n- ;\n+\n ini_set('memory_limit', '512M');\n set_time_limit(0);\n \n@@ -1507,6 +1507,8 ...
php
CWE-22
[ "src/Microweber/Utils/Backup.php" ]
src/Microweber/Utils/Backup.php
1
static u32 apic_get_tmcct(struct kvm_lapic *apic) ASSERT(apic != NULL); /* if initial count is 0, current count should also be 0 */ if (kvm_apic_get_reg(apic, APIC_TMICT) == 0) return 0; remaining = hrtimer_get_remaining(&apic->lapic_timer.timer);
static u32 apic_get_tmcct(struct kvm_lapic *apic) ASSERT(apic != NULL); /* if initial count is 0, current count should also be 0 */ if (kvm_apic_get_reg(apic, APIC_TMICT) == 0 || apic->lapic_timer.period == 0) return 0; remaining = hrtimer_get_remaining(&apic->lapic_timer.timer);
CVE-2013-6367
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/b963a22e6d1a266a67e9eecc88134713fd54775c'}
nvd
The apic_get_tmcct function in arch/x86/kvm/lapic.c in the KVM subsystem in the Linux kernel through 3.12.5 allows guest OS users to cause a denial of service (divide-by-zero error and host OS crash) via crafted modifications of the TMICT value.
2013-12-14
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b963a22e6d1a266a67e9eecc88134713fd54775c
b963a22e6d1a266a67e9eecc88134713fd54775c
SINGLE
['b963a22e6d1a266a67e9eecc88134713fd54775c']
{'338c7dbadd2671189cec7faf64c84d01071b3f96'}
b963a22e6d1a266a67e9eecc88134713fd54775c
1
11/19/2013, 22:12:18
KVM: x86: Fix potential divide by 0 in lapic (CVE-2013-6367) Under guest controllable circumstances apic_get_tmcct will execute a divide by zero and cause a crash. If the guest cpuid support tsc deadline timers and performs the following sequence of requests the host will crash. - Set the mode to periodic - Set the T...
Andy Honig
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -841,7 +841,8 @@ static u32 apic_get_tmcct(struct kvm_lapic *apic)\n \tASSERT(apic != NULL);\n \n \t/* if initial count is 0, current count should also be 0 */\n-\tif (kvm_apic_get_reg(apic, APIC_TMICT) == 0)\n+\tif (kvm_apic_get_reg(apic,...
c
CWE-189
[ "arch/x86/kvm/lapic.c" ]
arch/x86/kvm/lapic.c
1
static inline int kvm_apic_id(struct kvm_lapic *apic) return (kvm_apic_get_reg(apic, APIC_ID) >> 24) & 0xff; } static void recalculate_apic_map(struct kvm *kvm) { struct kvm_apic_map *new, *old = NULL; static void recalculate_apic_map(struct kvm *kvm) if (apic_x2apic_mode(apic)) { new->ldr_bits = 32; new->c...
static inline int kvm_apic_id(struct kvm_lapic *apic) return (kvm_apic_get_reg(apic, APIC_ID) >> 24) & 0xff; } #define KVM_X2APIC_CID_BITS 0 static void recalculate_apic_map(struct kvm *kvm) { struct kvm_apic_map *new, *old = NULL; static void recalculate_apic_map(struct kvm *kvm) if (apic_x2apic_mode(apic)) { ...
CVE-2013-6376
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/17d68b763f09a9ce824ae23eb62c9efc57b69271'}
nvd
The recalculate_apic_map function in arch/x86/kvm/lapic.c in the KVM subsystem in the Linux kernel through 3.12.5 allows guest OS users to cause a denial of service (host OS crash) via a crafted ICR write operation in x2apic mode.
2013-12-14
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/17d68b763f09a9ce824ae23eb62c9efc57b69271
17d68b763f09a9ce824ae23eb62c9efc57b69271
SINGLE
['17d68b763f09a9ce824ae23eb62c9efc57b69271']
{'fda4e2e85589191b123d31cdc21fd33ee70f50fd'}
17d68b763f09a9ce824ae23eb62c9efc57b69271
1
12/12/2013, 20:20:08
KVM: x86: fix guest-initiated crash with x2apic (CVE-2013-6376) A guest can cause a BUG_ON() leading to a host kernel crash. When the guest writes to the ICR to request an IPI, while in x2apic mode the following things happen, the destination is read from ICR2, which is a register that the guest can control. kvm_irq_...
Gleb Natapov
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -143,6 +143,8 @@ static inline int kvm_apic_id(struct kvm_lapic *apic)\n \treturn (kvm_apic_get_reg(apic, APIC_ID) >> 24) & 0xff;\n }\n \n+#define KVM_X2APIC_CID_BITS 0\n+\n static void recalculate_apic_map(struct kvm *kvm)\n {\n \tstruct ...
c
CWE-189
[ "arch/x86/kvm/lapic.c" ]
arch/x86/kvm/lapic.c
1
static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, char *p2; struct debug_data *d = f->private_data; pdata = kmalloc(cnt, GFP_KERNEL); if (pdata == NULL) return 0; static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, kfree(pdata); return 0; } p0 = pdata; for (i...
static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, char *p2; struct debug_data *d = f->private_data; if (cnt == 0) return 0; pdata = kmalloc(cnt + 1, GFP_KERNEL); if (pdata == NULL) return 0; static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, kfree(pdata); re...
CVE-2013-6378
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/a497e47d4aec37aaf8f13509f3ef3d1f6a717d88'}
nvd
The lbs_debugfs_write function in drivers/net/wireless/libertas/debugfs.c in the Linux kernel through 3.12.1 allows local users to cause a denial of service (OOPS) by leveraging root privileges for a zero-length write operation.
2013-11-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a497e47d4aec37aaf8f13509f3ef3d1f6a717d88
a497e47d4aec37aaf8f13509f3ef3d1f6a717d88
SINGLE
['a497e47d4aec37aaf8f13509f3ef3d1f6a717d88']
{'450991fd2f9d362562c69b2e70832b2ecb7624cb'}
a497e47d4aec37aaf8f13509f3ef3d1f6a717d88
1
10/30/2013, 17:12:51
libertas: potential oops in debugfs If we do a zero size allocation then it will oops. Also we can't be sure the user passes us a NUL terminated string so I've added a terminator. This code can only be triggered by root. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-...
Dan Carpenter
null
{'additions': 5, 'deletions': 1, 'total': 6}
[ { "additions": 5, "changes": 6, "deletions": 1, "patch": "@@ -913,7 +913,10 @@ static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf,\n \tchar *p2;\n \tstruct debug_data *d = f->private_data;\n \n-\tpdata = kmalloc(cnt, GFP_KERNEL);\n+\tif (cnt == 0)\n+\t\treturn 0;\n+\n+\tpdata = ...
c
CWE-189
[ "drivers/net/wireless/libertas/debugfs.c" ]
drivers/net/wireless/libertas/debugfs.c
1
static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) goto cleanup; } if (fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr))) { rcode = -EINVAL; goto cleanup; }
static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) goto cleanup; } if ((fibsize < (sizeof(struct user_aac_srb) - sizeof(struct user_sgentry))) || (fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr)))) { rcode = -EINVAL; goto cleanup; }
CVE-2013-6380
{'CWE-20'}
6.9
{'https://github.com/torvalds/linux/commit/b4789b8e6be3151a955ade74872822f30e8cd914'}
nvd
The aac_send_raw_srb function in drivers/scsi/aacraid/commctrl.c in the Linux kernel through 3.12.1 does not properly validate a certain size value, which allows local users to cause a denial of service (invalid pointer dereference) or possibly have unspecified other impact via an FSACTL_SEND_RAW_SRB ioctl call that tr...
2013-11-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b4789b8e6be3151a955ade74872822f30e8cd914
b4789b8e6be3151a955ade74872822f30e8cd914
SINGLE
['b4789b8e6be3151a955ade74872822f30e8cd914']
{'1ee2dcc2245340cf4ac94b99c4d00efbeba61824'}
b4789b8e6be3151a955ade74872822f30e8cd914
1
10/31/2013, 08:31:02
aacraid: prevent invalid pointer dereference It appears that driver runs into a problem here if fibsize is too small because we allocate user_srbcmd with fibsize size only but later we access it until user_srbcmd->sg.count to copy it over to srbcmd. It is not correct to test (fibsize < sizeof(*user_srbcmd)) because t...
Mahesh Rajashekhara
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -511,7 +511,8 @@ static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg)\n \t\tgoto cleanup;\n \t}\n \n-\tif (fibsize > (dev->max_fib_size - sizeof(struct aac_fibhdr))) {\n+\tif ((fibsize < (sizeof(struct user_aac_srb) - sizeof...
c
CWE-20
[ "drivers/scsi/aacraid/commctrl.c" ]
drivers/scsi/aacraid/commctrl.c
1
int qeth_snmp_command(struct qeth_card *card, char __user *udata) struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; struct qeth_snmp_ureq *ureq; int req_len; struct qeth_arp_query_info qinfo = {0, }; int rc = 0; int qeth_snmp_command(struct qeth_card *card, char __user *udata) /* skip 4 bytes (data_len st...
int qeth_snmp_command(struct qeth_card *card, char __user *udata) struct qeth_cmd_buffer *iob; struct qeth_ipa_cmd *cmd; struct qeth_snmp_ureq *ureq; unsigned int req_len; struct qeth_arp_query_info qinfo = {0, }; int rc = 0; int qeth_snmp_command(struct qeth_card *card, char __user *udata) /* skip 4 bytes (da...
CVE-2013-6381
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/6fb392b1a63ae36c31f62bc3fc8630b49d602b62'}
nvd
Buffer overflow in the qeth_snmp_command function in drivers/s390/net/qeth_core_main.c in the Linux kernel through 3.12.1 allows local users to cause a denial of service or possibly have unspecified other impact via an SNMP ioctl call with a length value that is incompatible with the command-buffer size.
2013-11-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6fb392b1a63ae36c31f62bc3fc8630b49d602b62
6fb392b1a63ae36c31f62bc3fc8630b49d602b62
SINGLE
['6fb392b1a63ae36c31f62bc3fc8630b49d602b62']
{'17102f8be41699525cfeeab02adbaf969b156731'}
6fb392b1a63ae36c31f62bc3fc8630b49d602b62
1
11/06/2013, 08:04:52
qeth: avoid buffer overflow in snmp ioctl Check user-defined length in snmp ioctl request and allow request only if it fits into a qeth command buffer. Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Reviewed-by: Heiko Carstens <heicars2@linux.vnet.ibm.c...
Ursula Braun
null
{'additions': 5, 'deletions': 1, 'total': 6}
[ { "additions": 5, "changes": 6, "deletions": 1, "patch": "@@ -4451,7 +4451,7 @@ int qeth_snmp_command(struct qeth_card *card, char __user *udata)\n \tstruct qeth_cmd_buffer *iob;\n \tstruct qeth_ipa_cmd *cmd;\n \tstruct qeth_snmp_ureq *ureq;\n-\tint req_len;\n+\tunsigned int req_len;\n \tstruct qeth...
c
CWE-119
[ "drivers/s390/net/qeth_core_main.c" ]
drivers/s390/net/qeth_core_main.c
1
static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long static int aac_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) { struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; return aac_compat_do_ioctl(dev, cmd, (unsigned long)arg); }
static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long static int aac_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg) { struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata; if (!capable(CAP_SYS_RAWIO)) return -EPERM; return aac_compat_do_ioctl(dev, cmd, (unsign...
CVE-2013-6383
{'CWE-264'}
10
{'https://github.com/torvalds/linux/commit/f856567b930dfcdbc3323261bf77240ccdde01f5'}
nvd
The aac_compat_ioctl function in drivers/scsi/aacraid/linit.c in the Linux kernel before 3.11.8 does not require the CAP_SYS_RAWIO capability, which allows local users to bypass intended access restrictions via a crafted ioctl call.
2013-11-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f856567b930dfcdbc3323261bf77240ccdde01f5
f856567b930dfcdbc3323261bf77240ccdde01f5
SINGLE
['f856567b930dfcdbc3323261bf77240ccdde01f5']
{'c2c65cd2e14ada6de44cb527e7f1990bede24e15'}
f856567b930dfcdbc3323261bf77240ccdde01f5
1
10/29/2013, 19:11:06
aacraid: missing capable() check in compat ioctl In commit d496f94d22d1 ('[SCSI] aacraid: fix security weakness') we added a check on CAP_SYS_RAWIO to the ioctl. The compat ioctls need the check as well. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torv...
Dan Carpenter
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -771,6 +771,8 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long\n static int aac_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)\n {\n \tstruct aac_dev *dev = (struct aac_dev *)sdev->host...
c
CWE-264
[ "drivers/scsi/aacraid/linit.c" ]
drivers/scsi/aacraid/linit.c
1
int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info) fn = fib6_add_1(root, &rt->rt6i_dst.addr, rt->rt6i_dst.plen, offsetof(struct rt6_info, rt6i_dst), allow_create, replace_required); if (IS_ERR(fn)) { err = PTR_ERR(fn); goto out; }
int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info) fn = fib6_add_1(root, &rt->rt6i_dst.addr, rt->rt6i_dst.plen, offsetof(struct rt6_info, rt6i_dst), allow_create, replace_required); if (IS_ERR(fn)) { err = PTR_ERR(fn); fn = NULL; goto out; }
CVE-2013-6431
{'CWE-264'}
6.9
{'https://github.com/torvalds/linux/commit/ae7b4e1f213aa659aedf9c6ecad0bf5f0476e1e2'}
nvd
The fib6_add function in net/ipv6/ip6_fib.c in the Linux kernel before 3.11.5 does not properly implement error-code encoding, which allows local users to cause a denial of service (NULL pointer dereference and system crash) by leveraging the CAP_NET_ADMIN capability for an IPv6 SIOCADDRT ioctl call.
2013-12-09
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ae7b4e1f213aa659aedf9c6ecad0bf5f0476e1e2
ae7b4e1f213aa659aedf9c6ecad0bf5f0476e1e2
SINGLE
['ae7b4e1f213aa659aedf9c6ecad0bf5f0476e1e2']
{'3bf4b5b11d381fed6a94a7e487e01c8b3bc436b9'}
ae7b4e1f213aa659aedf9c6ecad0bf5f0476e1e2
1
09/07/2013, 13:13:20
net: fib: fib6_add: fix potential NULL pointer dereference When the kernel is compiled with CONFIG_IPV6_SUBTREES, and we return with an error in fn = fib6_add_1(), then error codes are encoded into the return pointer e.g. ERR_PTR(-ENOENT). In such an error case, we write the error code into err and jump to out, hence ...
Daniel Borkmann
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -825,9 +825,9 @@ int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info)\n \tfn = fib6_add_1(root, &rt->rt6i_dst.addr, rt->rt6i_dst.plen,\n \t\t\toffsetof(struct rt6_info, rt6i_dst), allow_create,\n \t\t\treplace_re...
c
CWE-264
[ "net/ipv6/ip6_fib.c" ]
net/ipv6/ip6_fib.c
1
import javax.inject.Inject; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.IsWidget; import java.util.HashMap; public void onTaskSelectionEvent(@Observes TaskSelectionEvent event){ selectedTaskId = event.getTaskId(); selected...
import javax.inject.Inject; import com.google.gwt.core.client.GWT; import com.google.gwt.safehtml.shared.SafeHtmlUtils; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.IsWidget; import java.util.HashMap; public void onTaskSelectionEvent(@Observes TaskSelectionEvent event){ ...
CVE-2013-6465
{'CWE-79'}
2.9
{'https://github.com/kiegroup/jbpm-wb/commit/4818204506e8e94645b52adb9426bedfa9ffdd04'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in JBPM KIE Workbench 6.0.x allow remote authenticated users to inject arbitrary web script or HTML via vectors related to task name html inputs.
2017-12-19
1
https://github.com/kiegroup/jbpm-wb
https://github.com/kiegroup/jbpm-wb/commit/4818204506e8e94645b52adb9426bedfa9ffdd04
4818204506e8e94645b52adb9426bedfa9ffdd04
SINGLE
['4818204506e8e94645b52adb9426bedfa9ffdd04']
{'fc9005f7a7bf6daac6ffb47c366a2ae517c2b761'}
4818204506e8e94645b52adb9426bedfa9ffdd04
1
01/08/2014, 18:15:48
BZ-1049109: escaping task name html inputs
Salaboy
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -20,6 +20,7 @@\n import javax.inject.Inject;\n \n import com.google.gwt.core.client.GWT;\n+import com.google.gwt.safehtml.shared.SafeHtmlUtils;\n import com.google.gwt.user.client.ui.HTMLPanel;\n import com.google.gwt.user.client.ui.IsWidg...
java
CWE-79
[ "jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskdetailsmulti/TaskDetailsMultiPresenter.java" ]
jbpm-console-ng-human-tasks/jbpm-console-ng-human-tasks-client/src/main/java/org/jbpm/console/ng/ht/client/editors/taskdetailsmulti/TaskDetailsMultiPresenter.java
1
static void rpza_decode_stream(RpzaContext *s) unsigned short *pixels = (unsigned short *)s->frame.data[0]; int row_ptr = 0; int pixel_ptr = 0; int block_ptr; int pixel_x, pixel_y; int total_blocks; static void rpza_decode_stream(RpzaContext *s) colorA = AV_RB16 (&s->buf[stream_ptr...
static void rpza_decode_stream(RpzaContext *s) unsigned short *pixels = (unsigned short *)s->frame.data[0]; int row_ptr = 0; int pixel_ptr = -4; int block_ptr; int pixel_x, pixel_y; int total_blocks; static void rpza_decode_stream(RpzaContext *s) colorA = AV_RB16 (&s->buf[stream_pt...
CVE-2013-7009
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/3819db745da2ac7fb3faacb116788c32f4753f34'}
nvd
The rpza_decode_stream function in libavcodec/rpza.c in FFmpeg before 2.1 does not properly maintain a pointer to pixel data, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted Apple RPZA data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/3819db745da2ac7fb3faacb116788c32f4753f34
3819db745da2ac7fb3faacb116788c32f4753f34
SINGLE
['3819db745da2ac7fb3faacb116788c32f4753f34']
{'920046abf1928a394025f237eb888d267f12e14a'}
3819db745da2ac7fb3faacb116788c32f4753f34
1
08/21/2013, 23:07:32
avcodec/rpza: Perform pointer advance and checks before using the pointers Fixes out of array accesses Fixes Ticket2850 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 4, 'deletions': 4, 'total': 8}
[ { "additions": 4, "changes": 8, "deletions": 4, "patch": "@@ -85,7 +85,7 @@ static void rpza_decode_stream(RpzaContext *s)\n unsigned short *pixels = (unsigned short *)s->frame.data[0];\n \n int row_ptr = 0;\n- int pixel_ptr = 0;\n+ int pixel_ptr = -4;\n int block_ptr;\n int pi...
c
CWE-119
[ "libavcodec/rpza.c" ]
libavcodec/rpza.c
1
void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){ long i; for(i=0; i<=w-sizeof(long); i+=sizeof(long)){ long a = *(long*)(src+i); long b = *(long*)(dst+i); *(long*)(dst+i) = ((a&pb_7f) + (b&pb_7f)) ^ ((a^b)&pb_80); s...
void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){ static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){ long i; for(i=0; i<=w-(int)sizeof(long); i+=sizeof(long)){ long a = *(long*)(src+i); long b = *(long*)(dst+i); *(long*)(dst+i) = ((a&pb_7f) + (b&pb_7f)) ^ ((a^b)&pb_8...
CVE-2013-7010
{'CWE-189'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/454a11a1c9c686c78aa97954306fb63453299760'}
nvd
Multiple integer signedness errors in libavcodec/dsputil.c in FFmpeg before 2.1 allow remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/454a11a1c9c686c78aa97954306fb63453299760
454a11a1c9c686c78aa97954306fb63453299760
SINGLE
['454a11a1c9c686c78aa97954306fb63453299760']
{'86736f59d6a527d8bc807d09b93f971c0fe0bb07'}
454a11a1c9c686c78aa97954306fb63453299760
1
08/30/2013, 21:40:47
avcodec/dsputil: fix signedness in sizeof() comparissions Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -1931,7 +1931,7 @@ void ff_set_cmp(DSPContext* c, me_cmp_func *cmp, int type){\n \n static void add_bytes_c(uint8_t *dst, uint8_t *src, int w){\n long i;\n- for(i=0; i<=w-sizeof(long); i+=sizeof(long)){\n+ for(i=0; i<=w-(int)size...
c
CWE-189
[ "libavcodec/dsputil.c" ]
libavcodec/dsputil.c
1
static int read_header(FFV1Context *f) memset(state, 128, sizeof(state)); if (f->version < 2) { unsigned v= get_symbol(c, state, 0); if (v >= 2) { av_log(f->avctx, AV_LOG_ERROR, "invalid version %d in ver01 header\n", v); static int read_header(FFV1Context *f) if (f->versio...
static int read_header(FFV1Context *f) memset(state, 128, sizeof(state)); if (f->version < 2) { int chroma_planes, chroma_h_shift, chroma_v_shift, transparency; unsigned v= get_symbol(c, state, 0); if (v >= 2) { av_log(f->avctx, AV_LOG_ERROR, "invalid version %d in ver01 he...
CVE-2013-7011
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/547d690d676064069d44703a1917e0dab7e33445'}
nvd
The read_header function in libavcodec/ffv1dec.c in FFmpeg before 2.1 does not prevent changes to global parameters, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted FFV1 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/547d690d676064069d44703a1917e0dab7e33445
547d690d676064069d44703a1917e0dab7e33445
SINGLE
['547d690d676064069d44703a1917e0dab7e33445']
{'20b965a1a43ae88b7ae95635d5a3570e7dc2bbd4'}
547d690d676064069d44703a1917e0dab7e33445
1
08/30/2013, 02:51:09
ffv1dec: check that global parameters dont change in version 0/1 Such changes are not allowed nor supported Fixes Ticket2906 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 21, 'deletions': 4, 'total': 25}
[ { "additions": 21, "changes": 25, "deletions": 4, "patch": "@@ -580,6 +580,7 @@ static int read_header(FFV1Context *f)\n memset(state, 128, sizeof(state));\n \n if (f->version < 2) {\n+ int chroma_planes, chroma_h_shift, chroma_v_shift, transparency;\n unsigned v= get_symbol(c...
c
CWE-119
[ "libavcodec/ffv1dec.c" ]
libavcodec/ffv1dec.c
1
static int get_siz(Jpeg2000DecoderContext *s) s->tile_offset_y = bytestream2_get_be32u(&s->g); // YT0Siz ncomponents = bytestream2_get_be16u(&s->g); // CSiz if (ncomponents <= 0) { av_log(s->avctx, AV_LOG_ERROR, "Invalid number of components: %d\n", s->ncomponents);
static int get_siz(Jpeg2000DecoderContext *s) s->tile_offset_y = bytestream2_get_be32u(&s->g); // YT0Siz ncomponents = bytestream2_get_be16u(&s->g); // CSiz if (s->image_offset_x || s->image_offset_y) { avpriv_request_sample(s->avctx, "Support for image offsets"); return AVERROR_PAT...
CVE-2013-7012
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/780669ef7c23c00836a24921fcc6b03be2b8ca4a'}
nvd
The get_siz function in libavcodec/jpeg2000dec.c in FFmpeg before 2.1 does not prevent attempts to use non-zero image offsets, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted JPEG2000 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/780669ef7c23c00836a24921fcc6b03be2b8ca4a
780669ef7c23c00836a24921fcc6b03be2b8ca4a
SINGLE
['780669ef7c23c00836a24921fcc6b03be2b8ca4a']
{'3c9dd93faa9f3c250428dd0548c075583aa07cc3'}
780669ef7c23c00836a24921fcc6b03be2b8ca4a
1
10/26/2013, 00:19:13
avcodec/jpeg2000dec: non zero image offsets are not supported Fixes out of array accesses Fixes Ticket3080 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -243,6 +243,11 @@ static int get_siz(Jpeg2000DecoderContext *s)\n s->tile_offset_y = bytestream2_get_be32u(&s->g); // YT0Siz\n ncomponents = bytestream2_get_be16u(&s->g); // CSiz\n \n+ if (s->image_offset_x || s->image_of...
c
CWE-119
[ "libavcodec/jpeg2000dec.c" ]
libavcodec/jpeg2000dec.c
1
static int g2m_init_buffers(G2MContext *c) if (!c->synth_tile || !c->jpeg_tile || c->old_tile_w < c->tile_width || c->old_tile_h < c->tile_height) { c->tile_stride = FFALIGN(c->tile_width * 3, 16); aligned_height = FFALIGN(c->tile_height, 16); av_free(c->synth_tile); ...
static int g2m_init_buffers(G2MContext *c) if (!c->synth_tile || !c->jpeg_tile || c->old_tile_w < c->tile_width || c->old_tile_h < c->tile_height) { c->tile_stride = FFALIGN(c->tile_width, 16) * 3; aligned_height = FFALIGN(c->tile_height, 16); av_free(c->synth_tile); ...
CVE-2013-7013
{'CWE-189'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/821a5938d100458f4d09d634041b05c860554ce0'}
nvd
The g2m_init_buffers function in libavcodec/g2meet.c in FFmpeg before 2.1 uses an incorrect ordering of arithmetic operations, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted Go2Webinar data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/821a5938d100458f4d09d634041b05c860554ce0
821a5938d100458f4d09d634041b05c860554ce0
SINGLE
['821a5938d100458f4d09d634041b05c860554ce0']
{'e428632c1a46430f0796e3f9f7d72234d18f1f04'}
821a5938d100458f4d09d634041b05c860554ce0
1
09/15/2013, 14:33:27
avcodec/g2meet: Fix order of align and pixel size multiplication. Fixes out of array accesses Fixes Ticket2922 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -453,7 +453,7 @@ static int g2m_init_buffers(G2MContext *c)\n if (!c->synth_tile || !c->jpeg_tile ||\n c->old_tile_w < c->tile_width ||\n c->old_tile_h < c->tile_height) {\n- c->tile_stride = FFALIGN(c->tile_widt...
c
CWE-189
[ "libavcodec/g2meet.c" ]
libavcodec/g2meet.c
1
static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) { long i; for (i = 0; i <= w - sizeof(long); i += sizeof(long)) { long a = *(long *)(src1 + i); long b = *(long *)(src2 + i); *(long *)(dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80);
static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w) { long i; for (i = 0; i <= w - (int)sizeof(long); i += sizeof(long)) { long a = *(long *)(src1 + i); long b = *(long *)(src2 + i); *(long *)(dst + i) = ((a & pb_7f) + (b & pb_7f)) ^ ((a ^ b) & pb_80);
CVE-2013-7014
{'CWE-189'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/86736f59d6a527d8bc807d09b93f971c0fe0bb07'}
nvd
Integer signedness error in the add_bytes_l2_c function in libavcodec/pngdsp.c in FFmpeg before 2.1 allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted PNG data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/86736f59d6a527d8bc807d09b93f971c0fe0bb07
86736f59d6a527d8bc807d09b93f971c0fe0bb07
SINGLE
['86736f59d6a527d8bc807d09b93f971c0fe0bb07']
{'0b46d6f3efa7c647a42d3e77d09c274f611b752b'}
86736f59d6a527d8bc807d09b93f971c0fe0bb07
1
08/30/2013, 21:14:32
avcodec/pngdsp: fix (un)signed type in end comparission Fixes out of array accesses Fixes Ticket2919 Found_by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -31,7 +31,7 @@\n static void add_bytes_l2_c(uint8_t *dst, uint8_t *src1, uint8_t *src2, int w)\n {\n long i;\n- for (i = 0; i <= w - sizeof(long); i += sizeof(long)) {\n+ for (i = 0; i <= w - (int)sizeof(long); i += sizeof(long))...
c
CWE-189
[ "libavcodec/pngdsp.c" ]
libavcodec/pngdsp.c
1
static int flashsv_decode_frame(AVCodecContext *avctx, void *data, } s->diff_start = get_bits(&gb, 8); s->diff_height = get_bits(&gb, 8); av_log(avctx, AV_LOG_DEBUG, "%dx%d diff start %d height %d\n", ...
static int flashsv_decode_frame(AVCodecContext *avctx, void *data, } s->diff_start = get_bits(&gb, 8); s->diff_height = get_bits(&gb, 8); if (s->diff_start + s->diff_height > cur_blk_height) { av_log(avctx, AV_LOG_...
CVE-2013-7015
{'CWE-20'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/880c73cd76109697447fbfbaa8e5ee5683309446'}
nvd
The flashsv_decode_frame function in libavcodec/flashsv.c in FFmpeg before 2.1 does not properly validate a certain height value, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted Flash Screen Video data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/880c73cd76109697447fbfbaa8e5ee5683309446
880c73cd76109697447fbfbaa8e5ee5683309446
SINGLE
['880c73cd76109697447fbfbaa8e5ee5683309446']
{'78d2a781d092c4b678e06de147a666ad65e184de'}
880c73cd76109697447fbfbaa8e5ee5683309446
1
08/20/2013, 21:18:48
avcodec/flashsv: check diff_start/height Fixes out of array accesses Fixes Ticket2844 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -387,6 +387,10 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,\n }\n s->diff_start = get_bits(&gb, 8);\n s->diff_height = get_bits(&gb, 8);\n+ ...
c
CWE-20
[ "libavcodec/flashsv.c" ]
libavcodec/flashsv.c
1
static int get_siz(Jpeg2000DecoderContext *s) s->sgnd[i] = !!(x & 0x80); s->cdx[i] = bytestream2_get_byteu(&s->g); s->cdy[i] = bytestream2_get_byteu(&s->g); if (!s->cdx[i] || !s->cdy[i]) { av_log(s->avctx, AV_LOG_ERROR, "Invalid sample seperation\n"); ret...
static int get_siz(Jpeg2000DecoderContext *s) s->sgnd[i] = !!(x & 0x80); s->cdx[i] = bytestream2_get_byteu(&s->g); s->cdy[i] = bytestream2_get_byteu(&s->g); if ( !s->cdx[i] || s->cdx[i] == 3 || s->cdx[i] > 4 || !s->cdy[i] || s->cdy[i] == 3 || s->cdy[i] > 4) { ...
CVE-2013-7016
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f'}
nvd
The get_siz function in libavcodec/jpeg2000dec.c in FFmpeg before 2.1 does not ensure the expected sample separation, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted JPEG2000 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f
8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f
SINGLE
['8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f']
{'c443689afbb3edf3b025d4b7834c707d63eaa6b4'}
8bb11c3ca77b52e05a9ed1496a65f8a76e6e2d8f
1
08/21/2013, 02:40:50
avcodec/jpeg2000dec: Check cdx/y values more carefully Some invalid values where not handled correctly in the later pixel format matching code. Fixes out of array accesses Fixes Ticket2848 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -273,7 +273,8 @@ static int get_siz(Jpeg2000DecoderContext *s)\n s->sgnd[i] = !!(x & 0x80);\n s->cdx[i] = bytestream2_get_byteu(&s->g);\n s->cdy[i] = bytestream2_get_byteu(&s->g);\n- if (!s->cdx[i] ||...
c
CWE-119
[ "libavcodec/jpeg2000dec.c" ]
libavcodec/jpeg2000dec.c
1
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) return AVERROR_INVALIDDATA; } c->cblk_style = bytestream2_get_byteu(&s->g); if (c->cblk_style != 0) { // cblk style av_log(s->avctx, AV_LOG_WARNING, "extra cblk styles %X\n", c->cblk_style); static int decode_cblk(Jpeg20...
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) return AVERROR_INVALIDDATA; } if (c->log2_cblk_width > 6 || c->log2_cblk_height > 6) { avpriv_request_sample(s->avctx, "cblk size > 64"); return AVERROR_PATCHWELCOME; } c->cblk_style = bytestream2_get_byteu(...
CVE-2013-7018
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/9a271a9368eaabf99e6c2046103acb33957e63b7'}
nvd
libavcodec/jpeg2000dec.c in FFmpeg before 2.1 does not ensure the use of valid code-block dimension values, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted JPEG2000 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/9a271a9368eaabf99e6c2046103acb33957e63b7
9a271a9368eaabf99e6c2046103acb33957e63b7
SINGLE
['9a271a9368eaabf99e6c2046103acb33957e63b7']
{'b8ff4f5ea3d321b7922e6862aab521ec18830d88'}
9a271a9368eaabf99e6c2046103acb33957e63b7
1
08/24/2013, 01:19:40
jpeg2000: check log2_cblk dimensions Fixes out of array access Fixes Ticket2895 Found-by: Piotr Bandurski <ami_stuff@o2.pl> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 8, 'deletions': 0, 'total': 8}
[ { "additions": 8, "changes": 8, "deletions": 0, "patch": "@@ -384,6 +384,11 @@ static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)\n return AVERROR_INVALIDDATA;\n }\n \n+ if (c->log2_cblk_width > 6 || c->log2_cblk_height > 6) {\n+ avpriv_request_sample(s->avct...
c
CWE-119
[ "libavcodec/jpeg2000dec.c" ]
libavcodec/jpeg2000dec.c
1
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) return AVERROR_INVALIDDATA; } /* compute number of resolution levels to decode */ if (c->nreslevels < s->reduction_factor) c->nreslevels2decode = 1; else c->nreslevels2decode = c->nreslevels - s->reduction_fa...
static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c) return AVERROR_INVALIDDATA; } if (c->nreslevels <= s->reduction_factor) { /* we are forced to update reduction_factor as its requested value is not compatible with this bitstream, and as we might have used it ...
CVE-2013-7019
{'CWE-20'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/a1b9004b768bef606ee98d417bceb9392ceb788d'}
nvd
The get_cox function in libavcodec/jpeg2000dec.c in FFmpeg before 2.1 does not properly validate the reduction factor, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted JPEG2000 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/a1b9004b768bef606ee98d417bceb9392ceb788d
a1b9004b768bef606ee98d417bceb9392ceb788d
SINGLE
['a1b9004b768bef606ee98d417bceb9392ceb788d']
{'0a6ce255ab49094e90aa5c7c76c46e0dccd5708d'}
a1b9004b768bef606ee98d417bceb9392ceb788d
1
10/15/2013, 11:15:47
avcodec/jpeg2000dec: fix context consistency with too large lowres Fixes out of array accesses Fixes Ticket2898 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 11, 'deletions': 4, 'total': 15}
[ { "additions": 11, "changes": 15, "deletions": 4, "patch": "@@ -370,11 +370,18 @@ static int get_cox(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c)\n return AVERROR_INVALIDDATA;\n }\n \n+ if (c->nreslevels <= s->reduction_factor) {\n+ /* we are forced to update reduction_fa...
c
CWE-20
[ "libavcodec/jpeg2000dec.c" ]
libavcodec/jpeg2000dec.c
1
static int read_header(FFV1Context *f) memset(state, 128, sizeof(state)); if (f->version < 2) { int chroma_planes, chroma_h_shift, chroma_v_shift, transparency; unsigned v= get_symbol(c, state, 0); if (v >= 2) { av_log(f->avctx, AV_LOG_ERROR, "invalid version %d in ver01 he...
static int read_header(FFV1Context *f) memset(state, 128, sizeof(state)); if (f->version < 2) { int chroma_planes, chroma_h_shift, chroma_v_shift, transparency, colorspace, bits_per_raw_sample; unsigned v= get_symbol(c, state, 0); if (v >= 2) { av_log(f->avctx, AV_LOG_ERROR...
CVE-2013-7020
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/b05cd1ea7e45a836f7f6071a716c38bb30326e0f'}
nvd
The read_header function in libavcodec/ffv1dec.c in FFmpeg before 2.1 does not properly enforce certain bit-count and colorspace constraints, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted FFV1 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/b05cd1ea7e45a836f7f6071a716c38bb30326e0f
b05cd1ea7e45a836f7f6071a716c38bb30326e0f
SINGLE
['b05cd1ea7e45a836f7f6071a716c38bb30326e0f']
{'05507348afa1c3ec53ecc1ba9061213a5154badd'}
b05cd1ea7e45a836f7f6071a716c38bb30326e0f
1
08/30/2013, 04:08:32
ffv1dec: Check bits_per_raw_sample and colorspace for equality in ver 0/1 headers Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 8, 'deletions': 7, 'total': 15}
[ { "additions": 8, "changes": 15, "deletions": 7, "patch": "@@ -580,7 +580,7 @@ static int read_header(FFV1Context *f)\n memset(state, 128, sizeof(state));\n \n if (f->version < 2) {\n- int chroma_planes, chroma_h_shift, chroma_v_shift, transparency;\n+ int chroma_planes, chroma...
c
CWE-119
[ "libavcodec/ffv1dec.c" ]
libavcodec/ffv1dec.c
1
static int filter_frame(AVFilterLink *inlink, AVFrame *buf) } /* now wait for the next timestamp */ if (buf->pts == AV_NOPTS_VALUE) { return write_to_fifo(s->fifo, buf); }
static int filter_frame(AVFilterLink *inlink, AVFrame *buf) } /* now wait for the next timestamp */ if (buf->pts == AV_NOPTS_VALUE || av_fifo_size(s->fifo) <= 0) { return write_to_fifo(s->fifo, buf); }
CVE-2013-7021
{'CWE-399'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/cdd5df8189ff1537f7abe8defe971f80602cc2d2'}
nvd
The filter_frame function in libavfilter/vf_fps.c in FFmpeg before 2.1 does not properly ensure the availability of FIFO content, which allows remote attackers to cause a denial of service (double free) or possibly have unspecified other impact via crafted data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/cdd5df8189ff1537f7abe8defe971f80602cc2d2
cdd5df8189ff1537f7abe8defe971f80602cc2d2
SINGLE
['cdd5df8189ff1537f7abe8defe971f80602cc2d2']
{'b339dccbba877eb00c4cac2b2761c07f9ba064e6'}
cdd5df8189ff1537f7abe8defe971f80602cc2d2
1
09/02/2013, 02:32:23
avfilter/vf_fps: make sure the fifo is not empty before using it Fixes Ticket2905 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -205,7 +205,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)\n }\n \n /* now wait for the next timestamp */\n- if (buf->pts == AV_NOPTS_VALUE) {\n+ if (buf->pts == AV_NOPTS_VALUE || av_fifo_size(s->fifo) <= 0)...
c
CWE-399
[ "libavfilter/vf_fps.c" ]
libavfilter/vf_fps.c
1
static int g2m_init_buffers(G2MContext *c) int aligned_height; if (!c->framebuf || c->old_width < c->width || c->old_height < c->height) { c->framebuf_stride = FFALIGN(c->width * 3, 16); aligned_height = FFALIGN(c->height, 16); av_free(c->framebuf); c->framebuf = av_mall...
static int g2m_init_buffers(G2MContext *c) int aligned_height; if (!c->framebuf || c->old_width < c->width || c->old_height < c->height) { c->framebuf_stride = FFALIGN(c->width + 15, 16) * 3; aligned_height = c->height + 15; av_free(c->framebuf); c->framebuf = av_mallocz(c-...
CVE-2013-7022
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/e07ac727c1cc9eed39e7f9117c97006f719864bd'}
nvd
The g2m_init_buffers function in libavcodec/g2meet.c in FFmpeg before 2.1 does not properly allocate memory for tiles, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted Go2Webinar data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/e07ac727c1cc9eed39e7f9117c97006f719864bd
e07ac727c1cc9eed39e7f9117c97006f719864bd
SINGLE
['e07ac727c1cc9eed39e7f9117c97006f719864bd']
{'5dca837ac39a435fa3ff1a10eb5486dbc22be0c5'}
e07ac727c1cc9eed39e7f9117c97006f719864bd
1
09/21/2013, 21:34:11
avcodec/g2meet: Fix framebuf size Currently the code can in some cases draw tiles that hang outside the allocated buffer. This patch increases the buffer size to avoid out of array accesses. An alternative would be to fail if such tiles are encountered. I do not know if any valid files use such hanging tiles. Fixes T...
Michael Niedermayer
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -443,8 +443,8 @@ static int g2m_init_buffers(G2MContext *c)\n int aligned_height;\n \n if (!c->framebuf || c->old_width < c->width || c->old_height < c->height) {\n- c->framebuf_stride = FFALIGN(c->width * 3, 16);\n- ...
c
CWE-119
[ "libavcodec/g2meet.c" ]
libavcodec/g2meet.c
1
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s if(next == END_NOT_FOUND){ void* new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, (*buf_size) + pc->index + FF_INPUT_BUFFER_PADDING_SIZE); if(!new_buffer) return AVERROR(ENOMEM); pc->buff...
int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s if(next == END_NOT_FOUND){ void* new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, (*buf_size) + pc->index + FF_INPUT_BUFFER_PADDING_SIZE); if(!new_buffer) { pc->index = 0; return AVER...
CVE-2013-7023
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/f31011e9abfb2ae75bb32bc44e2c34194c8dc40a'}
nvd
The ff_combine_frame function in libavcodec/parser.c in FFmpeg before 2.1 does not properly handle certain memory-allocation errors, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/f31011e9abfb2ae75bb32bc44e2c34194c8dc40a
f31011e9abfb2ae75bb32bc44e2c34194c8dc40a
SINGLE
['f31011e9abfb2ae75bb32bc44e2c34194c8dc40a']
{'5dc6c0ea9ee7836df039c71259c7e538d7058243'}
f31011e9abfb2ae75bb32bc44e2c34194c8dc40a
1
09/26/2013, 19:03:48
avcodec/parser: reset indexes on realloc failure Fixes Ticket2982 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 7, 'deletions': 3, 'total': 10}
[ { "additions": 7, "changes": 10, "deletions": 3, "patch": "@@ -237,8 +237,10 @@ int ff_combine_frame(ParseContext *pc, int next, const uint8_t **buf, int *buf_s\n if(next == END_NOT_FOUND){\n void* new_buffer = av_fast_realloc(pc->buffer, &pc->buffer_size, (*buf_size) + pc->index + FF_IN...
c
CWE-119
[ "libavcodec/parser.c" ]
libavcodec/parser.c
1
static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, y = tile->comp[compno].coord[1][0] - s->image_offset_y; line = picture->data[plane] + y * picture->linesize[plane]; for (; y < tile->comp[compno].coord[1][1] - s->image_offset_y; y += s->cdy[compno])...
static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, y = tile->comp[compno].coord[1][0] - s->image_offset_y; line = picture->data[plane] + y / s->cdy[compno] * picture->linesize[plane]; for (; y < tile->comp[compno].coord[1][1] - s->image_offset_y; y +...
CVE-2013-7024
{'CWE-119'}
6.4
{'https://github.com/FFmpeg/FFmpeg/commit/fe448cd28d674c3eff3072552eae366d0b659ce9'}
nvd
The jpeg2000_decode_tile function in libavcodec/jpeg2000dec.c in FFmpeg before 2.1 does not consider the component number in certain calculations, which allows remote attackers to cause a denial of service (out-of-bounds array access) or possibly have unspecified other impact via crafted JPEG2000 data.
2013-12-09
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/fe448cd28d674c3eff3072552eae366d0b659ce9
fe448cd28d674c3eff3072552eae366d0b659ce9
SINGLE
['fe448cd28d674c3eff3072552eae366d0b659ce9']
{'e54f4510aa45d8074544dc8b565f6e32c66ef404'}
fe448cd28d674c3eff3072552eae366d0b659ce9
1
10/13/2013, 19:18:23
avcodec/jpeg2000dec: prevent out of array accesses in pixel addressing Fixes Ticket2921 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer
null
{'additions': 4, 'deletions': 4, 'total': 8}
[ { "additions": 4, "changes": 8, "deletions": 4, "patch": "@@ -1278,12 +1278,12 @@ static int jpeg2000_decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile,\n \n \n y = tile->comp[compno].coord[1][0] - s->image_offset_y;\n- line = picture->data[plane] + y * picture->lin...
c
CWE-119
[ "libavcodec/jpeg2000dec.c" ]
libavcodec/jpeg2000dec.c
1
static void shm_open(struct vm_area_struct *vma) */ static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) { ns->shm_tot -= (shp->shm_segsz + PAGE_SIZE - 1) >> PAGE_SHIFT; shm_rmid(ns, shp); shm_unlock(shp); if (!is_file_hugepages(shp->shm_file)) shmem_lock(shp->shm_file, 0, shp->mlock_user...
static void shm_open(struct vm_area_struct *vma) */ static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp) { struct file *shm_file; shm_file = shp->shm_file; shp->shm_file = NULL; ns->shm_tot -= (shp->shm_segsz + PAGE_SIZE - 1) >> PAGE_SHIFT; shm_rmid(ns, shp); shm_unlock(shp); if (!is_fi...
CVE-2013-7026
{'CWE-362'}
6.9
{'https://github.com/torvalds/linux/commit/a399b29dfbaaaf91162b2dc5a5875dd51bbfa2a1'}
nvd
Multiple race conditions in ipc/shm.c in the Linux kernel before 3.12.2 allow local users to cause a denial of service (use-after-free and system crash) or possibly have unspecified other impact via a crafted application that uses shmctl IPC_RMID operations in conjunction with other shm system calls.
2013-12-09
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a399b29dfbaaaf91162b2dc5a5875dd51bbfa2a1
a399b29dfbaaaf91162b2dc5a5875dd51bbfa2a1
SINGLE
['a399b29dfbaaaf91162b2dc5a5875dd51bbfa2a1']
{'30b0a105d9f7141e4cbf72ae5511832457d89788'}
a399b29dfbaaaf91162b2dc5a5875dd51bbfa2a1
1
11/21/2013, 22:32:00
ipc,shm: fix shm_file deletion races When IPC_RMID races with other shm operations there's potential for use-after-free of the shm object's associated file (shm_file). Here's the race before this patch: TASK 1 TASK 2 ------ ------ shm_rmid() ipc_lock_object() ...
Greg Thelen
null
{'additions': 23, 'deletions': 5, 'total': 28}
[ { "additions": 23, "changes": 28, "deletions": 5, "patch": "@@ -208,15 +208,18 @@ static void shm_open(struct vm_area_struct *vma)\n */\n static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)\n {\n+\tstruct file *shm_file;\n+\n+\tshm_file = shp->shm_file;\n+\tshp->shm_file = N...
c
CWE-362
[ "ipc/shm.c" ]
ipc/shm.c
1
int ieee80211_radiotap_iterator_init( struct ieee80211_radiotap_header *radiotap_header, int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns) { /* Linux only supports version 0 radiotap format */ if (radiotap_header->it_version) return -EINVAL; int ieee80211_radiotap_iterator_init( */ ...
int ieee80211_radiotap_iterator_init( struct ieee80211_radiotap_header *radiotap_header, int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns) { /* check the radiotap header can actually be present */ if (max_length < sizeof(struct ieee80211_radiotap_header)) return -EINVAL; /* Linux only sup...
CVE-2013-7027
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/f5563318ff1bde15b10e736e97ffce13be08bc1a'}
nvd
The ieee80211_radiotap_iterator_init function in net/wireless/radiotap.c in the Linux kernel before 3.11.7 does not check whether a frame contains any data outside of the header, which might allow attackers to cause a denial of service (buffer over-read) via a crafted header.
2013-12-09
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/f5563318ff1bde15b10e736e97ffce13be08bc1a
f5563318ff1bde15b10e736e97ffce13be08bc1a
SINGLE
['f5563318ff1bde15b10e736e97ffce13be08bc1a']
{'f38dd58ccca0d612e62509f75e99952dcf316cb2'}
f5563318ff1bde15b10e736e97ffce13be08bc1a
1
10/11/2013, 12:47:05
wireless: radiotap: fix parsing buffer overrun When parsing an invalid radiotap header, the parser can overrun the buffer that is passed in because it doesn't correctly check 1) the minimum radiotap header size 2) the space for extended bitmaps The first issue doesn't affect any in-kernel user as they all check the...
Johannes Berg
null
{'additions': 6, 'deletions': 1, 'total': 7}
[ { "additions": 6, "changes": 7, "deletions": 1, "patch": "@@ -97,6 +97,10 @@ int ieee80211_radiotap_iterator_init(\n \tstruct ieee80211_radiotap_header *radiotap_header,\n \tint max_length, const struct ieee80211_radiotap_vendor_namespaces *vns)\n {\n+\t/* check the radiotap header can actually be p...
c
CWE-119
[ "net/wireless/radiotap.c" ]
net/wireless/radiotap.c
1
#------------------------------------------------------------------------------ class ApplicationController < ActionController::Base before_filter :set_context before_filter :clear_setting_cache before_filter "hook(:app_before_filter, self)"
#------------------------------------------------------------------------------ class ApplicationController < ActionController::Base protect_from_forgery before_filter :set_context before_filter :clear_setting_cache before_filter "hook(:app_before_filter, self)"
CVE-2013-7223
{'CWE-352'}
6.4
{'https://github.com/fatfreecrm/fat_free_crm/commit/a7fedbb36388bad0c0f32b2346481e0ea126dea6'}
nvd
Multiple cross-site request forgery (CSRF) vulnerabilities in Fat Free CRM before 0.12.1 allow remote attackers to hijack the authentication of unspecified victims via unknown vectors, related to the lack of a protect_from_forgery line in app/controllers/application_controller.rb.
2014-01-02
1
https://github.com/fatfreecrm/fat_free_crm
https://github.com/fatfreecrm/fat_free_crm/commit/a7fedbb36388bad0c0f32b2346481e0ea126dea6
a7fedbb36388bad0c0f32b2346481e0ea126dea6
SINGLE
['a7fedbb36388bad0c0f32b2346481e0ea126dea6']
{'93c182dd4c6f3620b721d2a15ba6a6ecab5669df'}
a7fedbb36388bad0c0f32b2346481e0ea126dea6
1
12/27/2013, 02:20:11
Ensure requests are protected.
Steve Kenworthy
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -5,6 +5,8 @@\n #------------------------------------------------------------------------------\n class ApplicationController < ActionController::Base\n \n+ protect_from_forgery\n+\n before_filter :set_context\n before_filter :clear_se...
rb
CWE-352
[ "app/controllers/application_controller.rb" ]
app/controllers/application_controller.rb
1
int msPostGISLayerSetTimeFilter(layerObj *lp, const char *timestring, const char if (!lp || !timestring || !timefield) return MS_FALSE; /* discrete time */ if (strstr(timestring, ",") == NULL && strstr(timestring, "/") == NULL) { /* discrete time */
int msPostGISLayerSetTimeFilter(layerObj *lp, const char *timestring, const char if (!lp || !timestring || !timefield) return MS_FALSE; if( strchr(timestring,'\'') || strchr(timestring, '\\') ) { msSetError(MS_MISCERR, "Invalid time filter.", "msPostGISLayerSetTimeFilter()"); return MS_FALSE; } ...
CVE-2013-7262
{'CWE-89'}
6.4
{'https://github.com/mapserver/mapserver/commit/3a10f6b829297dae63492a8c63385044bc6953ed'}
nvd
SQL injection vulnerability in the msPostGISLayerSetTimeFilter function in mappostgis.c in MapServer before 6.4.1, when a WMS-Time service is used, allows remote attackers to execute arbitrary SQL commands via a crafted string in a PostGIS TIME filter.
2014-01-05
1
https://github.com/mapserver/mapserver
https://github.com/mapserver/mapserver/commit/3a10f6b829297dae63492a8c63385044bc6953ed
3a10f6b829297dae63492a8c63385044bc6953ed
SINGLE
['3a10f6b829297dae63492a8c63385044bc6953ed']
{'e83a0cb57e554884aaf37cbae330602c726d4868'}
3a10f6b829297dae63492a8c63385044bc6953ed
1
12/31/2013, 12:54:40
Fix potential SQL Injection with postgis TIME filters (#4834)
Even Rouault
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -3212,6 +3212,11 @@ int msPostGISLayerSetTimeFilter(layerObj *lp, const char *timestring, const char\n if (!lp || !timestring || !timefield)\n return MS_FALSE;\n \n+ if( strchr(timestring,'\\'') || strchr(timestring, '\\\\') ) {\n+ ...
c
CWE-89
[ "mappostgis.c" ]
mappostgis.c
1
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies $editor = addslashes(htmlentities($mybb->input['editor'])); $e = 1; $class = "trow1"; $smilies = "<tr>";
$smilies = ''; if($mybb->input['popup']) { // make small popup list of smilies $editor = preg_replace('#([^a-zA-z0-9_-]+)#', '', $mybb->input['editor']); $e = 1; $class = "trow1"; $smilies = "<tr>";
CVE-2013-7275
{'CWE-79'}
2.9
{'https://github.com/mybb/mybb/commit/6212bc954d72caf591e141ca36b8df964387bee8'}
nvd
Cross-site scripting (XSS) vulnerability in misc.php in MyBB (aka MyBulletinBoard) before 1.6.12 allows remote attackers to inject arbitrary web script or HTML via the editor parameter in a smilie list popup.
2014-01-08
1
https://github.com/mybb/mybb
https://github.com/mybb/mybb/commit/6212bc954d72caf591e141ca36b8df964387bee8
6212bc954d72caf591e141ca36b8df964387bee8
SINGLE
['6212bc954d72caf591e141ca36b8df964387bee8']
{'ded6525ad1a54b80fd9ce4b972df2b5d5d6fb163'}
6212bc954d72caf591e141ca36b8df964387bee8
1
11/20/2013, 13:45:41
Fixes XSS in misc.php
Stefan-ST
{'com_1': {'author': 'RyanGordon', 'datetime': '01/05/2014, 17:10:21', 'body': "shouldn't this be a-zA-Z0-9_-"}, 'com_2': {'author': 'nmalcolm', 'datetime': '01/05/2014, 17:30:32', 'body': '@RyanGordon Good catch, fixed in 8613a4f08 (1.6) and d9eb9abc87 (1.8). :-)'}, 'com_3': {'author': 'RyanGordon', 'datetime': '01/06...
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -486,7 +486,7 @@\n \t$smilies = '';\n \tif($mybb->input['popup'])\n \t{ // make small popup list of smilies\n-\t\t$editor = addslashes(htmlentities($mybb->input['editor']));\n+\t\t$editor = preg_replace('#([^a-zA-z0-9_-]+)#', '', $mybb->in...
php
CWE-79
[ "misc.php" ]
misc.php
1
function mycode_parse_video($video, $url) $domain = explode('.', $parsed_url['host']); if($domain[0] != 'screen') { $local = $domain[0].'.'; } else {
function mycode_parse_video($video, $url) $domain = explode('.', $parsed_url['host']); if($domain[0] != 'screen') { $local = htmlspecialchars_uni($domain[0]).'.'; } else {
CVE-2013-7288
{'CWE-79'}
2.9
{'https://github.com/mybb/mybb/commit/238696e37d6a22b89e6bba11e4de3e6620cb5547'}
nvd
Cross-site scripting (XSS) vulnerability in the mycode_parse_video function in inc/class_parser.php in MyBB (aka MyBulletinBoard) before 1.6.12 allows remote attackers to inject arbitrary web script or HTML via vectors related to Yahoo video URLs.
2014-01-10
1
https://github.com/mybb/mybb
https://github.com/mybb/mybb/commit/238696e37d6a22b89e6bba11e4de3e6620cb5547
238696e37d6a22b89e6bba11e4de3e6620cb5547
SINGLE
['238696e37d6a22b89e6bba11e4de3e6620cb5547']
{'619db088acc06f49c9b1017cfdd449a266df4f51'}
238696e37d6a22b89e6bba11e4de3e6620cb5547
1
12/03/2013, 12:53:50
Fixes XSS in inc/class_parser.php
Stefan-ST
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1172,7 +1172,7 @@ function mycode_parse_video($video, $url)\n \t\t\t\t$domain = explode('.', $parsed_url['host']);\n \t\t\t\tif($domain[0] != 'screen')\n \t\t\t\t{\n-\t\t\t\t\t$local = $domain[0].'.';\n+\t\t\t\t\t$local = htmlspecialchars...
php
CWE-79
[ "inc/class_parser.php" ]
inc/class_parser.php
1
static void ikev2_parent_outI1_continue(struct pluto_crypto_req_cont *pcrc, } reset_cur_state(); reset_globals(); passert(GLOBALS_ARE_RESET()); } /* stf_status ikev2parent_inI1outR1(struct msg_digest *md) */ { struct ikev2_ke *ke; ke = &md->chain[ISAKMP_NEXT_v2KE]->payload.v2ke; st->st_oakley.group = l...
static void ikev2_parent_outI1_continue(struct pluto_crypto_req_cont *pcrc, } reset_cur_state(); reset_globals(); } /* stf_status ikev2parent_inI1outR1(struct msg_digest *md) */ { struct ikev2_ke *ke; char fromname[ADDRTOT_BUF]; addrtot(&md->sender, 0, fromname, ADDRTOT_BUF); if (!md->chain[ISAKMP_NEXT...
CVE-2013-7294
{'CWE-20'}
2.9
{'https://github.com/libreswan/libreswan/commit/2899351224fe2940aec37d7656e1e392c0fe07f0'}
nvd
The ikev2parent_inI1outR1 function in pluto/ikev2_parent.c in libreswan before 3.7 allows remote attackers to cause a denial of service (restart) via an IKEv2 I1 notification without a KE payload.
2014-01-16
1
https://github.com/libreswan/libreswan
https://github.com/libreswan/libreswan/commit/2899351224fe2940aec37d7656e1e392c0fe07f0
2899351224fe2940aec37d7656e1e392c0fe07f0
SINGLE
['2899351224fe2940aec37d7656e1e392c0fe07f0']
{'daf45e1b7e22c9346778af9a89bc6e7cd197db94'}
2899351224fe2940aec37d7656e1e392c0fe07f0
1
11/27/2013, 00:46:49
SECURITY: Properly handle IKEv2 I1 notification packet without KE payload
Paul Wouters
null
{'additions': 18, 'deletions': 13, 'total': 31}
[ { "additions": 18, "changes": 31, "deletions": 13, "patch": "@@ -306,8 +306,6 @@ static void ikev2_parent_outI1_continue(struct pluto_crypto_req_cont *pcrc,\n \t}\n \treset_cur_state();\n \treset_globals();\n-\n-\tpassert(GLOBALS_ARE_RESET());\n }\n \n /*\n@@ -729,18 +727,31 @@ stf_status ikev2paren...
c
CWE-20
[ "programs/pluto/ikev2_parent.c" ]
programs/pluto/ikev2_parent.c
1
namespace tnt break; } return true; } else if (std::isspace(ch)) namespace tnt void Messageheader::Parser::checkHeaderspace(unsigned chars) const { if (headerdataPtr + chars >= header.rawdata + sizeof(header.rawdata)) throw HttpError(HTTP_REQUEST_ENTITY_TOO_LARGE, ...
namespace tnt break; } *headerdataPtr = '\0'; return true; } else if (std::isspace(ch)) namespace tnt void Messageheader::Parser::checkHeaderspace(unsigned chars) const { if (headerdataPtr + chars >= header.rawdata + sizeof(header.rawdata)) { header.rawda...
CVE-2013-7299
{'CWE-200'}
2.9
{'https://github.com/maekitalo/tntnet/commit/9bd3b14042e12d84f39ea9f55731705ba516f525'}
nvd
framework/common/messageheaderparser.cpp in Tntnet before 2.2.1 allows remote attackers to obtain sensitive information via a header that ends in \n instead of \r\n, which prevents a null terminator from being added and causes Tntnet to include headers from other requests.
2014-01-26
1
https://github.com/maekitalo/tntnet
https://github.com/maekitalo/tntnet/commit/9bd3b14042e12d84f39ea9f55731705ba516f525
9bd3b14042e12d84f39ea9f55731705ba516f525
SINGLE
['9bd3b14042e12d84f39ea9f55731705ba516f525']
{'6c9b82bb78108a4f2ec6f6dc1faa08e08c915687'}
9bd3b14042e12d84f39ea9f55731705ba516f525
1
12/11/2013, 13:59:32
fix possible information leak
Tommi Mäkitalo
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -204,6 +204,7 @@ namespace tnt\n break;\n }\n \n+ *headerdataPtr = '\\0';\n return true;\n }\n else if (std::isspace(ch))\n@@ -259,7 +260,10 @@ namespace tnt\n void Messageheader::Parser::check...
cpp
CWE-200
[ "framework/common/messageheaderparser.cpp" ]
framework/common/messageheaderparser.cpp
1
static int rds_ib_laddr_check(__be32 addr) ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); /* due to this, we will claim to support iWARP devices unless we check node_type. */ if (ret || cm_id->device->node_type != RDMA_NODE_IB_CA) ret = -EADDRNOTAVAIL; rdsdebug("addr %pI4 ret %d node type %d\n",
static int rds_ib_laddr_check(__be32 addr) ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin); /* due to this, we will claim to support iWARP devices unless we check node_type. */ if (ret || !cm_id->device || cm_id->device->node_type != RDMA_NODE_IB_CA) ret = -EADDRNOTAVAIL; rdsdebug("addr %pI4 ret %...
CVE-2013-7339
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/c2349758acf1874e4c2b93fe41d072336f1a31d0'}
nvd
The rds_ib_laddr_check function in net/rds/ib.c in the Linux kernel before 3.12.8 allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact via a bind system call for an RDS socket on a system that lacks RDS transports.
2014-03-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c2349758acf1874e4c2b93fe41d072336f1a31d0
c2349758acf1874e4c2b93fe41d072336f1a31d0
SINGLE
['c2349758acf1874e4c2b93fe41d072336f1a31d0']
{'797f87f83b60685ff8a13fa0572d2f10393c50d3'}
c2349758acf1874e4c2b93fe41d072336f1a31d0
1
12/19/2013, 04:49:42
rds: prevent dereference of a NULL device Binding might result in a NULL device, which is dereferenced causing this BUG: [ 1317.260548] BUG: unable to handle kernel NULL pointer dereference at 000000000000097 4 [ 1317.261847] IP: [<ffffffff84225f52>] rds_ib_laddr_check+0x82/0x110 [ 1317.263315] PGD 418bcb067 PUD 3ceb...
Sasha Levin
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -338,7 +338,8 @@ static int rds_ib_laddr_check(__be32 addr)\n \tret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);\n \t/* due to this, we will claim to support iWARP devices unless we\n \t check node_type. */\n-\tif (ret || cm_id->dev...
c
CWE-476
[ "net/rds/ib.c" ]
net/rds/ib.c
1
static struct kioctx *ioctx_alloc(unsigned nr_events) err_cleanup: aio_nr_sub(ctx->max_reqs); err: aio_free_ring(ctx); free_percpu(ctx->cpu); free_percpu(ctx->reqs.pcpu_count); free_percpu(ctx->users.pcpu_count);
static struct kioctx *ioctx_alloc(unsigned nr_events) err_cleanup: aio_nr_sub(ctx->max_reqs); err: free_percpu(ctx->cpu); free_percpu(ctx->reqs.pcpu_count); free_percpu(ctx->users.pcpu_count);
CVE-2013-7348
{'CWE-399'}
6.4
{'https://github.com/torvalds/linux/commit/d558023207e008a4476a3b7bb8706b2a2bf5d84f'}
nvd
Double free vulnerability in the ioctx_alloc function in fs/aio.c in the Linux kernel before 3.12.4 allows local users to cause a denial of service (system crash) or possibly have unspecified other impact via vectors involving an error condition in the aio_setup_ring function.
2014-04-01
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d558023207e008a4476a3b7bb8706b2a2bf5d84f
d558023207e008a4476a3b7bb8706b2a2bf5d84f
SINGLE
['d558023207e008a4476a3b7bb8706b2a2bf5d84f']
{'13fd8a5dc3cfaf0699262a3b5ad4898752fe64da'}
d558023207e008a4476a3b7bb8706b2a2bf5d84f
1
11/19/2013, 22:33:02
aio: prevent double free in ioctx_alloc ioctx_alloc() calls aio_setup_ring() to allocate a ring. If aio_setup_ring() fails to do so it would call aio_free_ring() before returning, but ioctx_alloc() would call aio_free_ring() again causing a double free of the ring. This is easily reproducible from userspace. Signed-...
Sasha Levin
null
{'additions': 0, 'deletions': 1, 'total': 1}
[ { "additions": 0, "changes": 1, "deletions": 1, "patch": "@@ -610,7 +610,6 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)\n err_cleanup:\n \taio_nr_sub(ctx->max_reqs);\n err:\n-\taio_free_ring(ctx);\n \tfree_percpu(ctx->cpu);\n \tfree_percpu(ctx->reqs.pcpu_count);\n \tfree_percpu(ctx->user...
c
CWE-399
[ "fs/aio.c" ]
fs/aio.c
1
function showRSS() echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n"; $i++; } echo '</channel></rss><!-- Cached version of '.pageUrl().' -->'; $cache->cache(ob_get_contents()); ...
function showRSS() echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'."\n</item>\n"; $i++; } echo '</channel></rss><!-- Cached version of '.htmlspecialchars(pageUrl()).' -->'; $cache->cache(ob...
CVE-2013-7351
{'CWE-79'}
2.9
{'https://github.com/sebsauvage/Shaarli/commit/53da201749f8f362323ef278bf338f1d9f7a925a'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in index.php in Shaarli allow remote attackers to inject arbitrary web script or HTML via the URL to the (1) showRSS, (2) showATOM, or (3) showDailyRSS function; a (4) file name to the importFile function; or (5) vectors related to bookmarks.
2020-01-02
1
https://github.com/sebsauvage/Shaarli
https://github.com/sebsauvage/Shaarli/commit/53da201749f8f362323ef278bf338f1d9f7a925a
53da201749f8f362323ef278bf338f1d9f7a925a
SINGLE
['53da201749f8f362323ef278bf338f1d9f7a925a']
{'7b2186a63e2c788f1f2622779c5a1c341117eac1'}
53da201749f8f362323ef278bf338f1d9f7a925a
1
11/29/2013, 20:53:20
XSS flaw correction Closes issue https://github.com/sebsauvage/Shaarli/issues/134
Sebastien SAUVAGE
null
{'additions': 5, 'deletions': 5, 'total': 10}
[ { "additions": 5, "changes": 10, "deletions": 5, "patch": "@@ -942,7 +942,7 @@ function showRSS()\n echo '<description><![CDATA['.nl2br(keepMultipleSpaces(text2clickable(htmlspecialchars($link['description'])))).$descriptionlink.']]></description>'.\"\\n</item>\\n\";\n $i++;\n }\...
php
CWE-79
[ "index.php" ]
index.php
1
void destroy_pid_t(gpointer data) { g_free(data); } static void handle_connection(GArray *servers, int net, SERVER *serve, CLIENT *client) { void serveloop(GArray* servers) { memcpy(&rset, &mset, sizeof(fd_set)); if(select(max+1, &rset, NULL, NULL, NULL)>0) { int net; DEBUG("accept, "); for(i=0; i < m...
void destroy_pid_t(gpointer data) { g_free(data); } static pid_t spawn_child() { pid_t pid; sigset_t newset; sigset_t oldset; sigemptyset(&newset); sigaddset(&newset, SIGCHLD); sigaddset(&newset, SIGTERM); sigprocmask(SIG_BLOCK, &newset, &oldset); pid ...
CVE-2013-7441
{'CWE-399'}
6.9
{'https://github.com/yoe/nbd/commit/741495cb08503fd32a9d22648e63b64390c601f4'}
nvd
The modern style negotiation in Network Block Device (nbd-server) 2.9.22 through 3.3 allows remote attackers to cause a denial of service (root process termination) by (1) closing the connection during negotiation or (2) specifying a name for a non-existent export.
2015-05-29
1
https://github.com/yoe/nbd
https://github.com/yoe/nbd/commit/741495cb08503fd32a9d22648e63b64390c601f4
741495cb08503fd32a9d22648e63b64390c601f4
SINGLE
['741495cb08503fd32a9d22648e63b64390c601f4']
{'17fe191db46551939828fe0606f795eb2103121f'}
741495cb08503fd32a9d22648e63b64390c601f4
1
06/05/2013, 17:42:31
nbd-server: handle modern-style negotiation in a child process Previously, the modern style negotiation was carried out in the root server (listener) process before forking the actual client handler. This made it possible for a malfunctioning or evil client to terminate the root process simply by querying a non-existe...
Tuomas Räsänen
null
{'additions': 157, 'deletions': 12, 'total': 169}
[ { "additions": 157, "changes": 169, "deletions": 12, "patch": "@@ -2198,6 +2198,161 @@ void destroy_pid_t(gpointer data) {\n \tg_free(data);\n }\n \n+static pid_t\n+spawn_child()\n+{\n+ pid_t pid;\n+ sigset_t newset;\n+ sigset_t oldset;\n+\n+ sigemptyset(&newset);\n+ ...
c
CWE-399
[ "nbd-server.c" ]
nbd-server.c
1
public function getUserLinks( Title $userpage, Title $talkpage, User $target ) { if ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $username ) ) ) { if ( $this->getUser()->isAllowed( 'block' ) ) { # Block / Change block / Unblock links if ( $target->isBlocked() ) { $tools[] = Linker::linkKnown...
public function getUserLinks( Title $userpage, Title $talkpage, User $target ) { if ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $username ) ) ) { if ( $this->getUser()->isAllowed( 'block' ) ) { # Block / Change block / Unblock links if ( $target->isBlocked() && $target->getBlock()->getType() != ...
CVE-2013-7444
{'CWE-200'}
2.9
{'https://github.com/wikimedia/mediawiki/commit/dc2966bd05b69321300c63fd0bd78e7c78ecea6e'}
nvd
The Special:Contributions page in MediaWiki before 1.22.0 allows remote attackers to determine if an IP is autoblocked via the "Change block" text.
2015-09-01
1
https://github.com/wikimedia/mediawiki
https://github.com/wikimedia/mediawiki/commit/dc2966bd05b69321300c63fd0bd78e7c78ecea6e
dc2966bd05b69321300c63fd0bd78e7c78ecea6e
SINGLE
['dc2966bd05b69321300c63fd0bd78e7c78ecea6e']
{'17ee7becb2ae4db391d6b3d8901121e6f67a6f01'}
dc2966bd05b69321300c63fd0bd78e7c78ecea6e
1
07/16/2013, 05:28:17
Prevent Special:Contributions from indicating that an IP address is autoblocked If an IP address was autoblocked in the userlinks, sysops would see "change block" and "unblock", indicating that the IP is autoblocked. Now Special:Contributions will only display "change block" if the user is blocked and the block type ...
Kunal Mehta
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -298,7 +298,7 @@ public function getUserLinks( Title $userpage, Title $talkpage, User $target ) {\n \n \t\tif ( ( $id !== null ) || ( $id === null && IP::isIPAddress( $username ) ) ) {\n \t\t\tif ( $this->getUser()->isAllowed( 'block' ) ) ...
php
CWE-200
[ "includes/specials/SpecialContributions.php" ]
includes/specials/SpecialContributions.php
1
wiki_show_footer(HttpResponse *res) ); } void wiki_handle_rest_call(HttpRequest *req, HttpResponse *res, wiki_handle_rest_call(HttpRequest *req, if (page == NULL) page = http_request_get_query_string(req); if (page && (access(page, R_OK) == 0)) { http_response_printf(res, ...
wiki_show_footer(HttpResponse *res) ); } int page_name_is_good(char* page_name) { /* We should give access only to subdirs of didiwiki root. I guess that check for absense of '/' is enough. TODO: Use realpath() */ if (!page_name) return FALSE; if (!isalnum(page[0])) return FAL...
CVE-2013-7448
{'CWE-22'}
2.9
{'https://github.com/yarolig/didiwiki/commit/5e5c796617e1712905dc5462b94bd5e6c08d15ea'}
nvd
Directory traversal vulnerability in wiki.c in didiwiki allows remote attackers to read arbitrary files via the page parameter to api/page/get.
2016-02-23
1
https://github.com/yarolig/didiwiki
https://github.com/yarolig/didiwiki/commit/5e5c796617e1712905dc5462b94bd5e6c08d15ea
5e5c796617e1712905dc5462b94bd5e6c08d15ea
SINGLE
['5e5c796617e1712905dc5462b94bd5e6c08d15ea']
{'3799c571a9f667dffb5119ce0b3d4715ac6a52af'}
5e5c796617e1712905dc5462b94bd5e6c08d15ea
1
10/09/2013, 07:48:45
page_name_is_good function
Alexander Izmailov
{'com_1': {'author': 'bwhacks', 'datetime': '02/21/2016, 22:03:44', 'body': 'isalnum() takes non-negative character codes. This should use (unsigned char)page[0] instead of page[0] so it correctly rejects non-ASCII characters.'}}
{'additions': 28, 'deletions': 5, 'total': 33}
[ { "additions": 28, "changes": 33, "deletions": 5, "patch": "@@ -851,6 +851,26 @@ wiki_show_footer(HttpResponse *res)\n \t\t );\n }\n \n+int page_name_is_good(char* page_name)\n+{\n+/* We should give access only to subdirs of didiwiki root.\n+ I guess that check for absense of '/' is enough.\...
c
CWE-22
[ "src/wiki.c" ]
src/wiki.c
1
asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, if (flags & MSG_CMSG_COMPAT) return -EINVAL; if (COMPAT_USE_64BIT_TIME) return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, flags | MSG_CMSG_COMPAT, (struct timespec *) timeout); if (timeout == NULL)...
asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, if (flags & MSG_CMSG_COMPAT) return -EINVAL; if (timeout == NULL) return __sys_recvmmsg(fd, (struct mmsghdr __user *)mmsg, vlen, flags | MSG_CMSG_COMPAT, NULL); if (compat_get_timespec(&ktspec, timeout)) return -EFAULT...
CVE-2014-0038
{'CWE-20'}
10
{'https://github.com/torvalds/linux/commit/2def2ef2ae5f3990aabdbe8a755911902707d268'}
nvd
The compat_sys_recvmmsg function in net/compat.c in the Linux kernel before 3.13.2, when CONFIG_X86_X32 is enabled, allows local users to gain privileges via a recvmmsg system call with a crafted timeout pointer parameter.
2014-02-06
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2def2ef2ae5f3990aabdbe8a755911902707d268
2def2ef2ae5f3990aabdbe8a755911902707d268
SINGLE
['2def2ef2ae5f3990aabdbe8a755911902707d268']
{'12f2bbd609006f983c1c99d240cf61e6e829a14c'}
2def2ef2ae5f3990aabdbe8a755911902707d268
1
01/31/2014, 00:59:25
x86, x32: Correct invalid use of user timespec in the kernel The x32 case for the recvmsg() timout handling is broken: asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg, unsigned int vlen, unsigned int flags, st...
PaX Team
null
{'additions': 2, 'deletions': 7, 'total': 9}
[ { "additions": 2, "changes": 9, "deletions": 7, "patch": "@@ -780,21 +780,16 @@ asmlinkage long compat_sys_recvmmsg(int fd, struct compat_mmsghdr __user *mmsg,\n \tif (flags & MSG_CMSG_COMPAT)\n \t\treturn -EINVAL;\n \n-\tif (COMPAT_USE_64BIT_TIME)\n-\t\treturn __sys_recvmmsg(fd, (struct mmsghdr __u...
c
CWE-20
[ "net/compat.c" ]
net/compat.c
1
static int complete_emulated_mmio(struct kvm_vcpu *vcpu) frag->len -= len; } if (vcpu->mmio_cur_fragment == vcpu->mmio_nr_fragments) { vcpu->mmio_needed = 0; /* FIXME: return into emulator if single-stepping. */
static int complete_emulated_mmio(struct kvm_vcpu *vcpu) frag->len -= len; } if (vcpu->mmio_cur_fragment >= vcpu->mmio_nr_fragments) { vcpu->mmio_needed = 0; /* FIXME: return into emulator if single-stepping. */
CVE-2014-0049
{'CWE-120'}
10
{'https://github.com/torvalds/linux/commit/a08d3b3b99efd509133946056531cdf8f3a0c09b'}
nvd
Buffer overflow in the complete_emulated_mmio function in arch/x86/kvm/x86.c in the Linux kernel before 3.13.6 allows guest OS users to execute arbitrary code on the host OS by leveraging a loop that triggers an invalid memory copy affecting certain cancel_work_item data.
2014-03-11
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a08d3b3b99efd509133946056531cdf8f3a0c09b
a08d3b3b99efd509133946056531cdf8f3a0c09b
SINGLE
['a08d3b3b99efd509133946056531cdf8f3a0c09b']
{'b20c9f29c5c25921c6ad18b50d4b61e6d181c3cc'}
a08d3b3b99efd509133946056531cdf8f3a0c09b
1
02/27/2014, 18:35:14
kvm: x86: fix emulator buffer overflow (CVE-2014-0049) The problem occurs when the guest performs a pusha with the stack address pointing to an mmio address (or an invalid guest physical address) to start with, but then extending into an ordinary guest physical address. When doing repeated emulated pushes emulator_re...
Andrew Honig
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -6186,7 +6186,7 @@ static int complete_emulated_mmio(struct kvm_vcpu *vcpu)\n \t\tfrag->len -= len;\n \t}\n \n-\tif (vcpu->mmio_cur_fragment == vcpu->mmio_nr_fragments) {\n+\tif (vcpu->mmio_cur_fragment >= vcpu->mmio_nr_fragments) {\n \t\t...
c
CWE-120
[ "arch/x86/kvm/x86.c" ]
arch/x86/kvm/x86.c
1
cifs_iovec_write(struct file *file, const struct iovec *iov, unsigned long nr_segs, loff_t *poffset) { unsigned long nr_pages, i; size_t copied, len, cur_len; ssize_t total_written = 0; loff_t offset; struct iov_iter it; cifs_iovec_write(struct file *file, const struct iovec *iov, save_len = cur_len; for ...
cifs_iovec_write(struct file *file, const struct iovec *iov, unsigned long nr_segs, loff_t *poffset) { unsigned long nr_pages, i; size_t bytes, copied, len, cur_len; ssize_t total_written = 0; loff_t offset; struct iov_iter it; cifs_iovec_write(struct file *file, const struct iovec *iov, save_len = cur_len;...
CVE-2014-0069
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/5d81de8e8667da7135d3a32a964087c0faf5483f'}
nvd
The cifs_iovec_write function in fs/cifs/file.c in the Linux kernel through 3.13.5 does not properly handle uncached write operations that copy fewer than the requested number of bytes, which allows local users to obtain sensitive information from kernel memory, cause a denial of service (memory corruption and system c...
2014-02-28
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/5d81de8e8667da7135d3a32a964087c0faf5483f
5d81de8e8667da7135d3a32a964087c0faf5483f
SINGLE
['5d81de8e8667da7135d3a32a964087c0faf5483f']
{'42eacf9e57b65ffa768af72cb7fc86cc6f6af042'}
5d81de8e8667da7135d3a32a964087c0faf5483f
1
02/14/2014, 12:20:35
cifs: ensure that uncached writes handle unmapped areas correctly It's possible for userland to pass down an iovec via writev() that has a bogus user pointer in it. If that happens and we're doing an uncached write, then we can end up getting less bytes than we expect from the call to iov_iter_copy_from_user. This is ...
Jeff Layton
null
{'additions': 34, 'deletions': 3, 'total': 37}
[ { "additions": 34, "changes": 37, "deletions": 3, "patch": "@@ -2389,7 +2389,7 @@ cifs_iovec_write(struct file *file, const struct iovec *iov,\n \t\t unsigned long nr_segs, loff_t *poffset)\n {\n \tunsigned long nr_pages, i;\n-\tsize_t copied, len, cur_len;\n+\tsize_t bytes, copied, len, cur_len;\n ...
c
CWE-119
[ "fs/cifs/file.c" ]
fs/cifs/file.c
1
static int get_rx_bufs(struct vhost_virtqueue *vq, *iovcount = seg; if (unlikely(log)) *log_num = nlogs; return headcount; err: vhost_discard_vq_desc(vq, headcount); static void handle_rx(struct vhost_net *net) /* On error, stop handling until the next kick. */ if (unlikely(headcount < 0)) break; /* OK,...
static int get_rx_bufs(struct vhost_virtqueue *vq, *iovcount = seg; if (unlikely(log)) *log_num = nlogs; /* Detect overrun */ if (unlikely(datalen > 0)) { r = UIO_MAXIOV + 1; goto err; } return headcount; err: vhost_discard_vq_desc(vq, headcount); static void handle_rx(struct vhost_net *net) /* On erro...
CVE-2014-0077
{'CWE-787'}
8.5
{'https://github.com/torvalds/linux/commit/d8316f3991d207fe32881a9ac20241be8fa2bad0'}
nvd
drivers/vhost/net.c in the Linux kernel before 3.13.10, when mergeable buffers are disabled, does not properly validate packet lengths, which allows guest OS users to cause a denial of service (memory corruption and host OS crash) or possibly gain privileges on the host OS via crafted packets, related to the handle_rx ...
2014-04-14
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d8316f3991d207fe32881a9ac20241be8fa2bad0
d8316f3991d207fe32881a9ac20241be8fa2bad0
SINGLE
['d8316f3991d207fe32881a9ac20241be8fa2bad0']
{'05efa8c943b1d5d90fa8c8147571837573338bb6'}
d8316f3991d207fe32881a9ac20241be8fa2bad0
1
03/27/2014, 10:00:26
vhost: fix total length when packets are too short When mergeable buffers are disabled, and the incoming packet is too large for the rx buffer, get_rx_bufs returns success. This was intentional in order for make recvmsg truncate the packet and then handle_rx would detect err != sock_len and drop it. Unfortunately we...
Michael S. Tsirkin
null
{'additions': 14, 'deletions': 0, 'total': 14}
[ { "additions": 14, "changes": 14, "deletions": 0, "patch": "@@ -532,6 +532,12 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,\n \t*iovcount = seg;\n \tif (unlikely(log))\n \t\t*log_num = nlogs;\n+\n+\t/* Detect overrun */\n+\tif (unlikely(datalen > 0)) {\n+\t\tr = UIO_MAXIOV + 1;\n+\t\tgoto er...
c
CWE-787
[ "drivers/vhost/net.c" ]
drivers/vhost/net.c
1