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
class QuantizedAddOp : public OpKernel { tensor_min = min_x; tensor_max = max_x; } VectorTensorAddition<T, Toutput>( vector_data, vector_min, vector_max, vector_num_elements, tensor_data, tensor_min, tensor_max, tensor_num_elements, min_z_value, max_z_value,
class QuantizedAddOp : public OpKernel { tensor_min = min_x; tensor_max = max_x; } OP_REQUIRES(context, vector_num_elements > 0, errors::InvalidArgument("Must have some elements to add")); VectorTensorAddition<T, Toutput>( vector_data, vector_min, vector_ma...
GHSA-x83m-p7pv-ch8v
{'CWE-369'}
2.5
{'https://github.com/tensorflow/tensorflow/commit/744009c9e5cc5d0447f0dc39d055f917e1fd9e16'}
osv
Division by 0 in `QuantizedAdd` ### Impact An attacker can cause a runtime division by zero error and denial of service in `tf.raw_ops.QuantizedAdd`: ```python import tensorflow as tf x = tf.constant([68, 228], shape=[2, 1], dtype=tf.quint8) y = tf.constant([], shape=[2, 0], dtype=tf.quint8) min_x = tf.constant(10.7...
2021-05-21
1
https://github.com/tensorflow/tensorflow
https://github.com/tensorflow/tensorflow/commit/744009c9e5cc5d0447f0dc39d055f917e1fd9e16
744009c9e5cc5d0447f0dc39d055f917e1fd9e16
SINGLE
['744009c9e5cc5d0447f0dc39d055f917e1fd9e16']
{'6f26b3f3418201479c264f2a02000880d8df151c'}
744009c9e5cc5d0447f0dc39d055f917e1fd9e16
1
04/23/2021, 19:00:12
Validate work in `QuantizedAdd`, ensure at least one element. PiperOrigin-RevId: 370127996 Change-Id: I57c6f3e01afdeada84737820a131590137463855
Mihai Maruseac
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -538,6 +538,8 @@ class QuantizedAddOp : public OpKernel {\n tensor_min = min_x;\n tensor_max = max_x;\n }\n+ OP_REQUIRES(context, vector_num_elements > 0,\n+ errors::InvalidArgument(\"Must have s...
cc
CWE-369
[ "tensorflow/core/kernels/quantized_add_op.cc" ]
tensorflow/core/kernels/quantized_add_op.cc
1
public function setMethod($method) */ public function getMethod() { if (null === $this->method) { $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET')); if ('POST' === $this->method) { if ($method = $this->headers->get('X-HTTP-METHOD-OVERR...
public function setMethod($method) */ public function getMethod() { if (null !== $this->method) { return $this->method; } $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET')); if ('POST' !== $this->method) { return $this->method;...
GHSA-x92h-wmg2-6hp7
{'CWE-89', 'CWE-79'}
9.8
{'https://github.com/symfony/symfony/commit/944e60f083c3bffbc6a0b5112db127a10a66a8ec'}
osv
Invalid HTTP method overrides allow possible XSS or other attacks in Symfony In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, HTTP Methods provided as verbs or using the override header may be treated as trusted input, but they are not validated, possibly caus...
2019-12-02
1
https://github.com/symfony/symfony
https://github.com/symfony/symfony/commit/944e60f083c3bffbc6a0b5112db127a10a66a8ec
944e60f083c3bffbc6a0b5112db127a10a66a8ec
SINGLE
['944e60f083c3bffbc6a0b5112db127a10a66a8ec']
{'b7bdf2ce435b0aeb8edb8349f0456f7ca3d21035'}
944e60f083c3bffbc6a0b5112db127a10a66a8ec
1
04/02/2019, 16:28:16
[HttpFoundation] reject invalid method override
Nicolas Grekas
{'com_1': {'author': 'jirayutza1', 'datetime': '12/04/2019, 20:11:46', 'body': '944e60f'}}
{'additions': 29, 'deletions': 14, 'total': 43}
[ { "additions": 29, "changes": 43, "deletions": 14, "patch": "@@ -1346,22 +1346,37 @@ public function setMethod($method)\n */\n public function getMethod()\n {\n- if (null === $this->method) {\n- $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));\n...
php
CWE-79
[ "src/Symfony/Component/HttpFoundation/Request.php" ]
src/Symfony/Component/HttpFoundation/Request.php
1
public function setMethod($method) */ public function getMethod() { if (null === $this->method) { $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET')); if ('POST' === $this->method) { if ($method = $this->headers->get('X-HTTP-METHOD-OVERR...
public function setMethod($method) */ public function getMethod() { if (null !== $this->method) { return $this->method; } $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET')); if ('POST' !== $this->method) { return $this->method;...
GHSA-x92h-wmg2-6hp7
{'CWE-89', 'CWE-79'}
9.8
{'https://github.com/symfony/symfony/commit/944e60f083c3bffbc6a0b5112db127a10a66a8ec'}
osv
Invalid HTTP method overrides allow possible XSS or other attacks in Symfony In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, HTTP Methods provided as verbs or using the override header may be treated as trusted input, but they are not validated, possibly caus...
2019-12-02
1
https://github.com/symfony/symfony
https://github.com/symfony/symfony/commit/944e60f083c3bffbc6a0b5112db127a10a66a8ec
944e60f083c3bffbc6a0b5112db127a10a66a8ec
SINGLE
['944e60f083c3bffbc6a0b5112db127a10a66a8ec']
{'b7bdf2ce435b0aeb8edb8349f0456f7ca3d21035'}
944e60f083c3bffbc6a0b5112db127a10a66a8ec
1
04/02/2019, 16:28:16
[HttpFoundation] reject invalid method override
Nicolas Grekas
{'com_1': {'author': 'jirayutza1', 'datetime': '12/04/2019, 20:11:46', 'body': '944e60f'}}
{'additions': 29, 'deletions': 14, 'total': 43}
[ { "additions": 29, "changes": 43, "deletions": 14, "patch": "@@ -1346,22 +1346,37 @@ public function setMethod($method)\n */\n public function getMethod()\n {\n- if (null === $this->method) {\n- $this->method = strtoupper($this->server->get('REQUEST_METHOD', 'GET'));\n...
php
CWE-89
[ "src/Symfony/Component/HttpFoundation/Request.php" ]
src/Symfony/Component/HttpFoundation/Request.php
1
public UnixUser authenticate(String username, String password) throws PAMExcepti check(libpam.pam_authenticate(pht,0),"pam_authenticate failed"); check(libpam.pam_setcred(pht,0),"pam_setcred failed"); // several different error code seem to be used to represent authentication failur...
public UnixUser authenticate(String username, String password) throws PAMExcepti check(libpam.pam_authenticate(pht,0),"pam_authenticate failed"); check(libpam.pam_setcred(pht,0),"pam_setcred failed"); // several different error code seem to be used to represent authentication failur...
GHSA-x9rg-q5fx-fx66
{'CWE-20'}
6.5
{'https://github.com/kohsuke/libpam4j/commit/02ffdff218283629ba4a902e7fe2fd44646abc21'}
osv
Improper Input Validation in libpam4j It was found that libpam4j prior to 1.10 did not properly validate user accounts when authenticating. A user with a valid password for a disabled account would be able to bypass security restrictions and possibly access sensitive information.
2022-05-13
1
https://github.com/kohsuke/libpam4j
https://github.com/kohsuke/libpam4j/commit/02ffdff218283629ba4a902e7fe2fd44646abc21
02ffdff218283629ba4a902e7fe2fd44646abc21
SINGLE
['02ffdff218283629ba4a902e7fe2fd44646abc21']
{'f49e2838cb195b2dce1448393d8c88174ad80652'}
02ffdff218283629ba4a902e7fe2fd44646abc21
1
05/29/2018, 18:11:55
call pam_acct_mgmt to verify whether the user account is valid. This fixes issue #18 and thus CVE-2017-12197
Kohsuke Kawaguchi
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -124,7 +124,7 @@ public UnixUser authenticate(String username, String password) throws PAMExcepti\n check(libpam.pam_authenticate(pht,0),\"pam_authenticate failed\");\n check(libpam.pam_setcred(pht,0),\"pam_setcred ...
java
CWE-20
[ "src/main/java/org/jvnet/libpam/PAM.java" ]
src/main/java/org/jvnet/libpam/PAM.java
1
TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { if (connectOptions.proxyAuth) { connectOptions.headers = connectOptions.headers || {} connectOptions.headers['Proxy-Authorization'] = 'Basic ' + new Buffer(connectOptions.proxyAuth).toString('base64') } debug('making CO...
TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { if (connectOptions.proxyAuth) { connectOptions.headers = connectOptions.headers || {} connectOptions.headers['Proxy-Authorization'] = 'Basic ' + Buffer.from(connectOptions.proxyAuth).toString('base64') } debug('making C...
GHSA-xc7v-wxcw-j472
{'CWE-200'}
0
{'https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0'}
osv
Memory Exposure in tunnel-agent Versions of `tunnel-agent` before 0.6.0 are vulnerable to memory exposure. This is exploitable if user supplied input is provided to the auth value and is a number. Proof-of-concept: ```js require('request')({ method: 'GET', uri: 'http://www.example.com', tunnel: true, proxy:{ ...
2019-06-03
1
https://github.com/request/tunnel-agent
https://github.com/request/tunnel-agent/commit/9ca95ec7219daface8a6fc2674000653de0922c0
9ca95ec7219daface8a6fc2674000653de0922c0
SINGLE
['9ca95ec7219daface8a6fc2674000653de0922c0']
{'8a7c86e6e2a1c3fa8577e5b0e14923d54c659552'}
9ca95ec7219daface8a6fc2674000653de0922c0
1
03/05/2017, 00:29:52
Use .from
Mikeal Rogers
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -128,7 +128,7 @@ TunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {}\n connectOptions.headers['Proxy-Authorization...
js
CWE-200
[ "index.js" ]
index.js
1
limitations under the License. #include <numeric> #include <vector> #define EIGEN_USE_THREADS #include "third_party/eigen3/Eigen/Core" class CSRSparseCholeskyCPUOp : public OpKernel { int64 num_rows; int batch_size; ValidateInputs(ctx, *input_matrix, input_permutation_indices, &batch_size, ...
limitations under the License. #include <numeric> #include <vector> #include "tensorflow/core/framework/op_requires.h" #define EIGEN_USE_THREADS #include "third_party/eigen3/Eigen/Core" class CSRSparseCholeskyCPUOp : public OpKernel { int64 num_rows; int batch_size; OP_REQUIRES_OK(ctx, ValidateInputs(*...
GHSA-xcwj-wfcm-m23c
{'CWE-476'}
2.5
{'https://github.com/tensorflow/tensorflow/commit/e6a7c7cc18c3aaad1ae0872cb0a959f5c923d2bd'}
osv
Invalid validation in `SparseMatrixSparseCholesky` ### Impact An attacker can trigger a null pointer dereference by providing an invalid `permutation` to `tf.raw_ops.SparseMatrixSparseCholesky`: ```python import tensorflow as tf import numpy as np from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_ops ...
2021-05-21
1
https://github.com/tensorflow/tensorflow
https://github.com/tensorflow/tensorflow/commit/e6a7c7cc18c3aaad1ae0872cb0a959f5c923d2bd
e6a7c7cc18c3aaad1ae0872cb0a959f5c923d2bd
SINGLE
['e6a7c7cc18c3aaad1ae0872cb0a959f5c923d2bd']
{'080f1d9e257589f78b3ffb75debf584168aa6062'}
e6a7c7cc18c3aaad1ae0872cb0a959f5c923d2bd
1
04/20/2021, 21:45:33
Remove `OP_REQUIRES` call from helper function. Since `OP_REQUIRES` macro expands to a `return;` (among other), calling it in a helper function only ends the helper function's execution earlier, but the kernel will still run from start to end. Thus, all the expected validations are actually broken/useless as the code ...
Mihai Maruseac
null
{'additions': 34, 'deletions': 33, 'total': 67}
[ { "additions": 34, "changes": 67, "deletions": 33, "patch": "@@ -17,6 +17,8 @@ limitations under the License.\n #include <numeric>\n #include <vector>\n \n+#include \"tensorflow/core/framework/op_requires.h\"\n+\n #define EIGEN_USE_THREADS\n \n #include \"third_party/eigen3/Eigen/Core\"\n@@ -82,8 +8...
cc
CWE-476
[ "tensorflow/core/kernels/sparse/sparse_cholesky_op.cc" ]
tensorflow/core/kernels/sparse/sparse_cholesky_op.cc
1
function decodeString(str) { // look up attachments if type binary if (exports.BINARY_EVENT === p.type || exports.BINARY_ACK === p.type) { var buf = ''; while (str.charAt(++i) !== '-') { buf += str.charAt(i); if (i == str.length) break; } if (buf != Number(buf) || str.charAt(i) !== '-'...
function decodeString(str) { // look up attachments if type binary if (exports.BINARY_EVENT === p.type || exports.BINARY_ACK === p.type) { var start = i + 1; while (str.charAt(++i) !== '-' && i != str.length) {} var buf = str.substring(start, i); if (buf != Number(buf) || str.charAt(i) !== '-') { ...
GHSA-xfhh-g9f5-x4m4
{'CWE-400'}
7.5
{'https://github.com/socketio/socket.io-parser/commit/dcb942d24db97162ad16a67c2a0cf30875342d55'}
osv
Resource exhaustion in socket.io-parser The `socket.io-parser` npm package before versions 3.3.2 and 3.4.1 allows attackers to cause a denial of service (memory consumption) via a large packet because a concatenation approach is used.
2021-06-30
1
https://github.com/socketio/socket.io-parser
https://github.com/socketio/socket.io-parser/commit/dcb942d24db97162ad16a67c2a0cf30875342d55
dcb942d24db97162ad16a67c2a0cf30875342d55
SINGLE
['dcb942d24db97162ad16a67c2a0cf30875342d55']
{'a5d04354e6e98b5318d5276123b0b5a5e698bf8e'}
dcb942d24db97162ad16a67c2a0cf30875342d55
1
05/13/2020, 05:37:32
fix: prevent DoS (OOM) via massive packets (#95) When maxHttpBufferSize is large (1e8 bytes), a payload of length 100MB can be sent like so: 99999991:422222222222222222222222222222222222222222222... This massive packet can cause OOM via building up many many `ConsOneByteString` objects due to concatenation: 9...
bcaller
{'com_1': {'author': 'abergmann', 'datetime': '01/08/2021, 09:15:14', 'body': '[CVE-2020-36049](https://nvd.nist.gov/vuln/detail/CVE-2020-36049) was assigned to this commit.'}}
{'additions': 7, 'deletions': 10, 'total': 17}
[ { "additions": 7, "changes": 17, "deletions": 10, "patch": "@@ -286,11 +286,9 @@ function decodeString(str) {\n \n // look up attachments if type binary\n if (exports.BINARY_EVENT === p.type || exports.BINARY_ACK === p.type) {\n- var buf = '';\n- while (str.charAt(++i) !== '-') {\n- b...
js
CWE-400
[ "index.js" ]
index.js
1
var Formatter = function(/*String*/ format){ this._tokens = tokenize(format, this._re, this._parseDelim, this); }; Formatter.prototype._re = /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)([\*1-9]0*)*(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g; Formatter.prototype._parseDelim = function(mapping, intmapping, fla...
var Formatter = function(/*String*/ format){ this._tokens = tokenize(format, this._re, this._parseDelim, this); }; Formatter.prototype._re = /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([\%bscdeEfFgGioOuxX])/g; Formatter.prototype._parseDelim = function(mapping, intmapping, flags,...
GHSA-xfhp-gmh8-r8v2
{'CWE-400'}
7.5
{'https://github.com/adaltas/node-printf/commit/a8502e7c9b0b22555696a2d8ef67722086413a68'}
osv
Regular Expression Denial of Service (ReDoS) The package printf before 0.6.1 are vulnerable to Regular Expression Denial of Service (ReDoS) via the regex string /\%(?:\(([\w_.]+)\)|([1-9]\d*)\$)?([0 +\-\]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%bscdeEfFgGioOuxX])/g in lib/printf.js. The vulnerable regular expression has cubi...
2021-03-19
1
https://github.com/adaltas/node-printf
https://github.com/adaltas/node-printf/commit/a8502e7c9b0b22555696a2d8ef67722086413a68
a8502e7c9b0b22555696a2d8ef67722086413a68
SINGLE
['a8502e7c9b0b22555696a2d8ef67722086413a68']
{'1456b115685791329c6fa6ca4237b7965f10cf82'}
a8502e7c9b0b22555696a2d8ef67722086413a68
1
02/10/2021, 13:28:56
Fix ReDoS
Yeting Li
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -41,7 +41,7 @@ var Formatter = function(/*String*/ format){\n this._tokens = tokenize(format, this._re, this._parseDelim, this);\n };\n \n-Formatter.prototype._re = /\\%(?:\\(([\\w_.]+)\\)|([1-9]\\d*)\\$)?([0 +\\-\\#]*)([\\*1-9]0*)*(?:(\...
js
CWE-400
[ "lib/printf.js" ]
lib/printf.js
1
public function broker() public function sendResetLinkEmail(ContactPasswordResetRequest $request) { if(Ninja::isHosted() && $request->session()->has('company_key')) MultiDB::findAndSetDbByCompanyKey($request->session()->get('company_key')); $this->validateEmail($request);...
public function broker() public function sendResetLinkEmail(ContactPasswordResetRequest $request) { if(Ninja::isHosted() && $request->has('company_key')) MultiDB::findAndSetDbByCompanyKey($request->input('company_key')); $this->validateEmail($request); // $company...
GHSA-xg6r-5gx4-qxjm
{'CWE-79'}
5.4
{'https://github.com/invoiceninja/invoiceninja/commit/1186eaa82375692d01d5ef3369c5b7bc7315b55f'}
osv
invoiceninja is vulnerable to Cross-site Scripting invoiceninja is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
2022-01-06
1
https://github.com/invoiceninja/invoiceninja
https://github.com/invoiceninja/invoiceninja/commit/1186eaa82375692d01d5ef3369c5b7bc7315b55f
1186eaa82375692d01d5ef3369c5b7bc7315b55f
SINGLE
['1186eaa82375692d01d5ef3369c5b7bc7315b55f']
{'ac194665de6728e4091f273ef2e01b4c48369fcd'}
1186eaa82375692d01d5ef3369c5b7bc7315b55f
1
12/10/2021, 03:00:22
Fixes for client password reset
David Bomba
null
{'additions': 7, 'deletions': 6, 'total': 13}
[ { "additions": 7, "changes": 13, "deletions": 6, "patch": "@@ -93,14 +93,15 @@ public function broker()\n \n public function sendResetLinkEmail(ContactPasswordResetRequest $request)\n {\n-\n- if(Ninja::isHosted() && $request->session()->has('company_key'))\n- MultiDB::findA...
php
CWE-79
[ "app/Http/Controllers/Auth/ContactForgotPasswordController.php" ]
app/Http/Controllers/Auth/ContactForgotPasswordController.php
1
} } else if ($ext === 'svg') { if (is_file($filePath)) { $sanitizer = new \enshrined\svgSanitize\Sanitizer(); // Load the dirty svg $dirtySVG = file_get_contents($filePath); // Pass it to the ...
} } else if ($ext === 'svg') { $valid = false; if (is_file($filePath)) { $sanitizer = new \enshrined\svgSanitize\Sanitizer(); // Load the dirty svg $dirtySVG = file_get_contents($filePath); ...
GHSA-xg72-6c83-ghh4
{'CWE-79'}
4.8
{'https://github.com/microweber/microweber/commit/d35e691e72d358430abc8e99f5ba9eb374423b9f'}
osv
Microweber Stored Cross-site Scripting before v1.2.20 Microwerber prior to version 1.2.20 is vulnerable to stored Cross-site Scripting (XSS).
2022-07-23
1
https://github.com/microweber/microweber
https://github.com/microweber/microweber/commit/d35e691e72d358430abc8e99f5ba9eb374423b9f
d35e691e72d358430abc8e99f5ba9eb374423b9f
SINGLE
['d35e691e72d358430abc8e99f5ba9eb374423b9f']
{'b39736f1191589e89eb4e54f5f6f05b6349626e3'}
d35e691e72d358430abc8e99f5ba9eb374423b9f
1
07/08/2022, 13:41:01
update
Peter Ivanov
null
{'additions': 12, 'deletions': 4, 'total': 16}
[ { "additions": 12, "changes": 16, "deletions": 4, "patch": "@@ -563,17 +563,25 @@\n }\n \n } else if ($ext === 'svg') {\n-\n+ $valid = false;\n if (is_file($filePath)) {\n $sanitizer = new \\enshrined\\svgSanitize\\Saniti...
php
CWE-79
[ "src/MicroweberPackages/App/functions/plupload.php" ]
src/MicroweberPackages/App/functions/plupload.php
1
func (cf *clientsFactory) watchNamespaces(ctx context.Context) { func (cf *clientsFactory) UpdateNamespaces(ctx context.Context) error { clients, err := clientsForClusters(cf.clusters.Get()) if err != nil { cf.log.Error(err, "failed to create clients for", "clusters", cf.clusters.Get()) return err }
func (cf *clientsFactory) watchNamespaces(ctx context.Context) { func (cf *clientsFactory) UpdateNamespaces(ctx context.Context) error { clients, err := clientsForClusters(cf.clusters.Get()) if err != nil { cf.log.Error(err, "failed to create client") return err }
GHSA-xggc-qprg-x6mw
{'CWE-532', 'CWE-209', 'CWE-538', 'CWE-200'}
9
{'https://github.com/weaveworks/weave-gitops/commit/567356f471353fb5c676c77f5abc2a04631d50ca'}
osv
Weave GitOps leaked cluster credentials into logs on connection errors ### Impact A vulnerability in the logging of Weave GitOps could allow an authenticated remote attacker to view sensitive cluster configurations, aka KubeConfg, of registered Kubernetes clusters, including the service account tokens in plain text fro...
2022-06-23
1
https://github.com/weaveworks/weave-gitops
https://github.com/weaveworks/weave-gitops/commit/567356f471353fb5c676c77f5abc2a04631d50ca
567356f471353fb5c676c77f5abc2a04631d50ca
SINGLE
['567356f471353fb5c676c77f5abc2a04631d50ca']
{'a80bb361901d2e0e8f0e675303dfc3cbfcc9ab92'}
567356f471353fb5c676c77f5abc2a04631d50ca
1
05/28/2022, 12:43:50
Fix logging on cluster connection error Remove the client config from the error log since the wrapped error already contains the cluster name for which the connection couldn't be established. Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Stefan Prodan
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -131,7 +131,7 @@ func (cf *clientsFactory) watchNamespaces(ctx context.Context) {\n func (cf *clientsFactory) UpdateNamespaces(ctx context.Context) error {\n \tclients, err := clientsForClusters(cf.clusters.Get())\n \tif err != nil {\n-\t\...
go
CWE-200
[ "core/clustersmngr/factory.go" ]
core/clustersmngr/factory.go
1
&lt;dd&gt; ## TODO: design a real framework to generate form by type #if (($descriptor.defaultValue || "$!descriptor.defaultValue" != '') &amp;&amp; ($descriptor.type.getName() == 'boolean' || $descriptor.type.getName() == 'int' || $descriptor.type.getName() == 'java.lang.String')) &lt;...
&lt;dd&gt; ## TODO: design a real framework to generate form by type #if (($descriptor.defaultValue || "$!descriptor.defaultValue" != '') &amp;&amp; ($descriptor.type.getName() == 'boolean' || $descriptor.type.getName() == 'int' || $descriptor.type.getName() == 'java.lang.String')) &lt;...
GHSA-xjfw-5vv5-vjq2
{'CWE-79', 'CWE-116'}
7.4
{'https://github.com/xwiki/xwiki-platform/commit/21906acb5ee2304552f56f9bbdbf8e7d368f7f3a'}
osv
Cross-site Scripting in Filter Stream Converter Application in XWiki Platform ### Impact We found a possible XSS vector in the `Filter.FilterStreamDescriptorForm` wiki page related to pretty much all the form fields printed in the home page of the application. ### Patches The issue is patched in versions 12.10.11, 14....
2022-06-01
1
https://github.com/xwiki/xwiki-platform
https://github.com/xwiki/xwiki-platform/commit/21906acb5ee2304552f56f9bbdbf8e7d368f7f3a
21906acb5ee2304552f56f9bbdbf8e7d368f7f3a
SINGLE
['21906acb5ee2304552f56f9bbdbf8e7d368f7f3a']
{'eed842a0ea9e263548805b908ebbd362213ce0ea'}
21906acb5ee2304552f56f9bbdbf8e7d368f7f3a
1
01/04/2022, 10:33:53
XWIKI-19293: Fix bad escaping
Thomas Mortagne
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -58,9 +58,9 @@\n &lt;dd&gt;\n ## TODO: design a real framework to generate form by type\n #if (($descriptor.defaultValue || \"$!descriptor.defaultValue\" != '') &amp;&amp; ($descriptor.type.getName() == 'boolean' || $...
xml
CWE-79
[ "xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-ui/src/main/resources/Filter/FilterStreamDescriptorForm.xml" ]
xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-ui/src/main/resources/Filter/FilterStreamDescriptorForm.xml
1
public function getResource($forWrite = false) $isError = false; $ioConfig = $this->getVars(); switch ($this->getVar('type', 'file')) { case 'file': //validate export/import path $path = rtrim($ioConfig['path'], '\\/')
public function getResource($forWrite = false) $isError = false; $ioConfig = $this->getVars(); switch (strtolower($this->getVar('type', 'file'))) { case 'file': //validate export/import path $path = rtrim($ioConfig['path'], '\...
GHSA-xm9f-vxmx-4m58
{'CWE-20'}
0
{'https://github.com/OpenMage/magento-lts/commit/34709ac642d554aa1824892059186dd329db744b'}
osv
Data Flow Sanitation Issue Fix ### Impact Due to missing sanitation in data flow it was possible for admin users to upload arbitrary executable files to the server.
2021-08-30
1
https://github.com/OpenMage/magento-lts
https://github.com/OpenMage/magento-lts/commit/34709ac642d554aa1824892059186dd329db744b
34709ac642d554aa1824892059186dd329db744b
SINGLE
['34709ac642d554aa1824892059186dd329db744b']
{'b99307d00b59c4a226a1e3e4083f02cf2fc8fce7'}
34709ac642d554aa1824892059186dd329db744b
1
08/26/2021, 01:13:20
Merge pull request from GHSA-xm9f-vxmx-4m58 Co-authored-by: Mark Lewis <markwlewis@Marks-MacBook-Pro.local>
Mark Lewis
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -49,7 +49,7 @@ public function getResource($forWrite = false)\n $isError = false;\n \n $ioConfig = $this->getVars();\n- switch ($this->getVar('type', 'file')) {\n+ switch (strtolower($this->get...
php
CWE-20
[ "app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php" ]
app/code/core/Mage/Dataflow/Model/Convert/Adapter/Io.php
1
struct HistogramFixedWidthFunctor<CPUDevice, T, Tout> { static_cast<double>(nbins); const double nbins_minus_1 = static_cast<double>(nbins - 1); // The calculation is done by finding the slot of each value in `values`. // With [a, b]: // step = (b - a) / nbins class Histogram...
struct HistogramFixedWidthFunctor<CPUDevice, T, Tout> { static_cast<double>(nbins); const double nbins_minus_1 = static_cast<double>(nbins - 1); // We cannot handle NANs in the algorithm below (due to the case to int32) const Eigen::Tensor<int32, 1, 1> nans_tensor = values....
GHSA-xrp2-fhq4-4q3w
{'CWE-20'}
5.5
{'https://github.com/tensorflow/tensorflow/commit/e57fd691c7b0fd00ea3bfe43444f30c1969748b5'}
osv
Segfault if `tf.histogram_fixed_width` is called with NaN values in TensorFlow ### Impact The implementation of [`tf.histogram_fixed_width`](https://github.com/tensorflow/tensorflow/blob/f3b9bf4c3c0597563b289c0512e98d4ce81f886e/tensorflow/core/kernels/histogram_op.cc) is vulnerable to a crash when the values array cont...
2022-05-24
1
https://github.com/tensorflow/tensorflow
https://github.com/tensorflow/tensorflow/commit/e57fd691c7b0fd00ea3bfe43444f30c1969748b5
e57fd691c7b0fd00ea3bfe43444f30c1969748b5
SINGLE
['e57fd691c7b0fd00ea3bfe43444f30c1969748b5']
{'484b5e8836454dbc93380176ae5eeeab02cc63c0'}
e57fd691c7b0fd00ea3bfe43444f30c1969748b5
1
04/20/2022, 18:35:47
Prevent crash when histogram is called with NaN values. Fixes #45770 PiperOrigin-RevId: 443149951
Mihai Maruseac
null
{'additions': 11, 'deletions': 2, 'total': 13}
[ { "additions": 11, "changes": 13, "deletions": 2, "patch": "@@ -50,6 +50,15 @@ struct HistogramFixedWidthFunctor<CPUDevice, T, Tout> {\n static_cast<double>(nbins);\n const double nbins_minus_1 = static_cast<double>(nbins - 1);\n \n+ // We cannot handle NANs in the alg...
cc
CWE-20
[ "tensorflow/core/kernels/histogram_op.cc" ]
tensorflow/core/kernels/histogram_op.cc
1
class SparseSplitOp : public OpKernel { input_shape.vec<int64>()(axis), "), got ", num_split_)); sparse::SparseTensor sparse_tensor; OP_REQUIRES_OK(context, sparse::SparseTensor::Create( i...
class SparseSplitOp : public OpKernel { input_shape.vec<int64>()(axis), "), got ", num_split_)); // Prevent overflow by constructing the dense shape separately TensorShape dense_shape; const auto input_shape_flat = input_shape...
GHSA-xvjm-fvxx-q3hv
{'CWE-190'}
2.5
{'https://github.com/tensorflow/tensorflow/commit/4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60'}
osv
CHECK-fail due to integer overflow ### Impact An attacker can trigger a denial of service via a `CHECK`-fail in caused by an integer overflow in constructing a new tensor shape: ```python import tensorflow as tf input_layer = 2**60-1 sparse_data = tf.raw_ops.SparseSplit( split_dim=1, indices=[(0, 0), (0, 1)...
2021-05-21
1
https://github.com/tensorflow/tensorflow
https://github.com/tensorflow/tensorflow/commit/4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60
4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60
SINGLE
['4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60']
{'0908c2f2397c099338b901b067f6495a5b96760b'}
4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60
1
05/06/2021, 22:55:00
Prevent overflow in sparse op PiperOrigin-RevId: 372442006 Change-Id: I60fe31cd7e56fb3501e97c63500caf902ddeee96
Mihai Maruseac
null
{'additions': 10, 'deletions': 3, 'total': 13}
[ { "additions": 10, "changes": 13, "deletions": 3, "patch": "@@ -63,11 +63,18 @@ class SparseSplitOp : public OpKernel {\n input_shape.vec<int64>()(axis),\n \"), got \", num_split_));\n \n+ // Prevent overflow by const...
cc
CWE-190
[ "tensorflow/core/kernels/sparse_split_op.cc" ]
tensorflow/core/kernels/sparse_split_op.cc
1
class SparseMatMulOp : public OpKernel { if (transpose_b) { // TODO(agarwal): avoid transposing the matrix here and directly handle // transpose in CreateDenseSlices. right_tr.reset( new Tensor(right->dtype(), TensorShape({right->dim_size(1), right->dim_size(0)})));
class SparseMatMulOp : public OpKernel { if (transpose_b) { // TODO(agarwal): avoid transposing the matrix here and directly handle // transpose in CreateDenseSlices. OP_REQUIRES(ctx, right->dim_size(0) != 0, errors::InvalidArgument("b has an entry 0 in it's shape.")); OP_...
GHSA-xw93-v57j-fcgh
{'CWE-369'}
2.5
{'https://github.com/tensorflow/tensorflow/commit/7f283ff806b2031f407db64c4d3edcda8fb9f9f5'}
osv
Division by 0 in `SparseMatMul` ### Impact An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.SparseMatMul`: ```python import tensorflow as tf a = tf.constant([100.0, 100.0, 100.0, 100.0], shape=[2, 2], dtype=tf.float32) b = tf.constant([], shape=[0, 2], dtype=tf.float32) tf.raw_ops.Spa...
2021-05-21
1
https://github.com/tensorflow/tensorflow
https://github.com/tensorflow/tensorflow/commit/7f283ff806b2031f407db64c4d3edcda8fb9f9f5
7f283ff806b2031f407db64c4d3edcda8fb9f9f5
SINGLE
['7f283ff806b2031f407db64c4d3edcda8fb9f9f5']
{'05a63e605a31e86c5dd96c5c8a763eda9ac7bb33'}
7f283ff806b2031f407db64c4d3edcda8fb9f9f5
1
04/28/2021, 22:00:39
Fix FPE issue in external Eigen source code issue with `tf.raw_ops.SparseMatMul`. PiperOrigin-RevId: 370992919 Change-Id: Icfb276fef5fb40928b27c3e44608d2aca72c9fd7
Amit Patankar
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -1039,6 +1039,10 @@ class SparseMatMulOp : public OpKernel {\n if (transpose_b) {\n // TODO(agarwal): avoid transposing the matrix here and directly handle\n // transpose in CreateDenseSlices.\n+ OP_REQUIRES(ctx, right...
cc
CWE-369
[ "tensorflow/core/kernels/sparse_matmul_op.cc" ]
tensorflow/core/kernels/sparse_matmul_op.cc
1
process_chpw_request(krb5_context context, void *server_handle, char *realm, ret = KRB5KRB_AP_ERR_MODIFIED; numresult = KRB5_KPASSWD_MALFORMED; strlcpy(strresult, "Request was truncated", sizeof(strresult)); goto chpwfail; } ptr = req->data; process_chpw_request(krb5_context co...
process_chpw_request(krb5_context context, void *server_handle, char *realm, ret = KRB5KRB_AP_ERR_MODIFIED; numresult = KRB5_KPASSWD_MALFORMED; strlcpy(strresult, "Request was truncated", sizeof(strresult)); goto bailout; } ptr = req->data; process_chpw_request(krb5_context con...
CVE-2002-2443
{'CWE-20'}
2.9
{'https://github.com/krb5/krb5/commit/cf1a0c411b2668c57c41e9c4efd15ba17b6b322c'}
nvd
schpw.c in the kpasswd service in kadmind in MIT Kerberos 5 (aka krb5) before 1.11.3 does not properly validate UDP packets before sending responses, which allows remote attackers to cause a denial of service (CPU and bandwidth consumption) via a forged packet that triggers a communication loop, as demonstrated by krb_...
2013-05-29
1
https://github.com/krb5/krb5
https://github.com/krb5/krb5/commit/cf1a0c411b2668c57c41e9c4efd15ba17b6b322c
cf1a0c411b2668c57c41e9c4efd15ba17b6b322c
SINGLE
['cf1a0c411b2668c57c41e9c4efd15ba17b6b322c']
{'0a97afba6986e2818cd26869704820e00efcae63'}
cf1a0c411b2668c57c41e9c4efd15ba17b6b322c
1
05/03/2013, 20:26:46
Fix kpasswd UDP ping-pong [CVE-2002-2443] The kpasswd service provided by kadmind was vulnerable to a UDP "ping-pong" attack [CVE-2002-2443]. Don't respond to packets unless they pass some basic validation, and don't respond to our own error packets. Some authors use CVE-1999-0103 to refer to the kpasswd UDP ping-po...
Tom Yu
null
{'additions': 4, 'deletions': 4, 'total': 8}
[ { "additions": 4, "changes": 8, "deletions": 4, "patch": "@@ -52,7 +52,7 @@ process_chpw_request(krb5_context context, void *server_handle, char *realm,\n ret = KRB5KRB_AP_ERR_MODIFIED;\n numresult = KRB5_KPASSWD_MALFORMED;\n strlcpy(strresult, \"Request was truncated\", size...
c
CWE-20
[ "src/kadmin/server/schpw.c" ]
src/kadmin/server/schpw.c
1
videobuf_vm_open(struct vm_area_struct *vma) { struct videobuf_mapping *map = vma->vm_private_data; dprintk(2,"vm_open %p [count=%d,vma=%08lx-%08lx]\n",map, map->count,vma->vm_start,vma->vm_end); map->count++; videobuf_vm_close(struct vm_area_struct *vma) struct videobuf_queue *q = map->q; int i; dprintk(2,...
videobuf_vm_open(struct vm_area_struct *vma) { struct videobuf_mapping *map = vma->vm_private_data; dprintk(2,"vm_open %p [count=%u,vma=%08lx-%08lx]\n",map, map->count,vma->vm_start,vma->vm_end); map->count++; videobuf_vm_close(struct vm_area_struct *vma) struct videobuf_queue *q = map->q; int i; dprintk(2,...
CVE-2007-6761
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/0b29669c065f60501e7289e1950fa2a618962358'}
nvd
drivers/media/video/videobuf-vmalloc.c in the Linux kernel before 2.6.24 does not initialize videobuf_mapping data structures, which allows local users to trigger an incorrect count value and videobuf leak via unspecified vectors, a different vulnerability than CVE-2010-5321.
2017-04-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0b29669c065f60501e7289e1950fa2a618962358
0b29669c065f60501e7289e1950fa2a618962358
SINGLE
['0b29669c065f60501e7289e1950fa2a618962358']
{'843b1378c2ab47ab1ed9cb471938e0f0ec839fcd'}
0b29669c065f60501e7289e1950fa2a618962358
1
12/09/2007, 02:05:53
V4L/DVB (6751): V4L: Memory leak! Fix count in videobuf-vmalloc mmap This is pretty serious bug. map->count is never initialized after the call to kmalloc making the count start at some random trash value. The end result is leaking videobufs. Also, fix up the debug statements to print unsigned values. Pushed to h...
Brandon Philips
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -51,7 +51,7 @@ videobuf_vm_open(struct vm_area_struct *vma)\n {\n \tstruct videobuf_mapping *map = vma->vm_private_data;\n \n-\tdprintk(2,\"vm_open %p [count=%d,vma=%08lx-%08lx]\\n\",map,\n+\tdprintk(2,\"vm_open %p [count=%u,vma=%08lx-%08l...
c
CWE-119
[ "drivers/media/video/videobuf-vmalloc.c" ]
drivers/media/video/videobuf-vmalloc.c
1
static int netlbl_cipsov4_add_common(struct genl_info *info, nla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem) if (nla->nla_type == NLBL_CIPSOV4_A_TAG) { if (iter > CIPSO_V4_TAG_MAXCNT) return -EINVAL; doi_def->tags[iter++] = nla_get_u8(nla); } if (iter < CIPSO_V4_TAG_MAXCNT) doi...
static int netlbl_cipsov4_add_common(struct genl_info *info, nla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem) if (nla->nla_type == NLBL_CIPSOV4_A_TAG) { if (iter >= CIPSO_V4_TAG_MAXCNT) return -EINVAL; doi_def->tags[iter++] = nla_get_u8(nla); } while (iter < CIPSO_V4_TAG_MAXCNT) ...
CVE-2007-6762
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/2a2f11c227bdf292b3a2900ad04139d301b56ac4'}
nvd
In the Linux kernel before 2.6.20, there is an off-by-one bug in net/netlabel/netlabel_cipso_v4.c where it is possible to overflow the doi_def->tags[] array.
2019-07-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2a2f11c227bdf292b3a2900ad04139d301b56ac4
2a2f11c227bdf292b3a2900ad04139d301b56ac4
SINGLE
['2a2f11c227bdf292b3a2900ad04139d301b56ac4']
{'797951200679f1d5ea12a2e58cc7bdbc2848764c'}
2a2f11c227bdf292b3a2900ad04139d301b56ac4
1
01/05/2007, 20:08:22
NetLabel: correct CIPSO tag handling when adding new DOI definitions The current netlbl_cipsov4_add_common() function has two problems which are fixed with this patch. The first is an off-by-one bug where it is possibile to overflow the doi_def->tags[] array. The second is a bug where the same doi_def->tags[] array ...
Paul Moore
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -130,12 +130,12 @@ static int netlbl_cipsov4_add_common(struct genl_info *info,\n \n \tnla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem)\n \t\tif (nla->nla_type == NLBL_CIPSOV4_A_TAG) {\n-\t\t\tif (iter > CIPSO_V4_TAG_M...
c
CWE-119
[ "net/netlabel/netlabel_cipso_v4.c" ]
net/netlabel/netlabel_cipso_v4.c
1
static void __iov_iter_advance_iov(struct iov_iter *i, size_t bytes) const struct iovec *iov = i->iov; size_t base = i->iov_offset; while (bytes) { int copy = min(bytes, iov->iov_len - base); bytes -= copy; static ssize_t generic_perform_write(struct file *file, cond_resched(); if (unlikely(copied ...
static void __iov_iter_advance_iov(struct iov_iter *i, size_t bytes) const struct iovec *iov = i->iov; size_t base = i->iov_offset; /* * The !iov->iov_len check ensures we skip over unlikely * zero-length segments. */ while (bytes || !iov->iov_len) { int copy = min(bytes, iov->iov_len - base); ...
CVE-2008-7316
{'CWE-20'}
2.9
{'https://github.com/torvalds/linux/commit/124d3b7041f9a0ca7c43a6293e1cae4576c32fd5'}
nvd
mm/filemap.c in the Linux kernel before 2.6.25 allows local users to cause a denial of service (infinite loop) via a writev system call that triggers an iovec of zero length, followed by a page fault for an iovec of nonzero length.
2016-05-02
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/124d3b7041f9a0ca7c43a6293e1cae4576c32fd5
124d3b7041f9a0ca7c43a6293e1cae4576c32fd5
SINGLE
['124d3b7041f9a0ca7c43a6293e1cae4576c32fd5']
{'6598b60fd56ba5e915a001cc4e307880a94d19ae'}
124d3b7041f9a0ca7c43a6293e1cae4576c32fd5
1
02/02/2008, 14:01:17
fix writev regression: pan hanging unkillable and un-straceable Frederik Himpe reported an unkillable and un-straceable pan process. Zero length iovecs can go into an infinite loop in writev, because the iovec iterator does not always advance over them. The sequence required to trigger this is not trivial. I think i...
Nick Piggin
null
{'additions': 6, 'deletions': 2, 'total': 8}
[ { "additions": 6, "changes": 8, "deletions": 2, "patch": "@@ -1750,7 +1750,11 @@ static void __iov_iter_advance_iov(struct iov_iter *i, size_t bytes)\n \t\tconst struct iovec *iov = i->iov;\n \t\tsize_t base = i->iov_offset;\n \n-\t\twhile (bytes) {\n+\t\t/*\n+\t\t * The !iov->iov_len check ensures ...
c
CWE-20
[ "mm/filemap.c" ]
mm/filemap.c
1
pango_glyph_string_set_size (PangoGlyphString *string, gint new_len) while (new_len > string->space) { if (string->space == 0) string->space = 1; else string->space *= 2; if (string->space < 0) { g_warning ("glyph string length overflows maximum integer size, truncated"); new_len = st...
pango_glyph_string_set_size (PangoGlyphString *string, gint new_len) while (new_len > string->space) { if (string->space == 0) { string->space = 4; } else { const guint max_space = MIN (G_MAXINT, G_MAXSIZE / MAX (sizeof(PangoGlyphInfo), sizeof(gint))); guint more_space = (guint)stri...
CVE-2009-1194
{'CWE-189'}
6.4
{'http://github.com/bratsche/pango/commit/4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e'}
nvd
Integer overflow in the pango_glyph_string_set_size function in pango/glyphstring.c in Pango before 1.24 allows context-dependent attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a long glyph string that triggers a heap-based buffer overflow, as demonstrated by a long do...
2009-05-11
1
http://github.com/bratsche/pango
http://github.com/bratsche/pango/commit/4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e
4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e
SINGLE
['4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e']
{'1c9433bfe43890b102c8cead8ab3ee34b44c5c37'}
4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e
1
03/02/2009, 08:30:52
[glyphstring] Handle overflow with very long glyphstrings
Behdad Esfahbod
null
{'additions': 20, 'deletions': 6, 'total': 26}
[ { "additions": 20, "changes": 26, "deletions": 6, "patch": "@@ -61,14 +61,28 @@ pango_glyph_string_set_size (PangoGlyphString *string, gint new_len)\n while (new_len > string->space)\n {\n if (string->space == 0)\n-\tstring->space = 1;\n+\t{\n+\t string->space = 4;\n+\t}\n else\n-...
c
CWE-189
[ "pango/glyphstring.c" ]
pango/glyphstring.c
1
import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import java.util.Collection; import java.util.Collections; import java.util.Hashtable; import java.util.M...
import org.xml.sax.SAXException; import org.xml.sax.SAXNotRecognizedException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import java.util.*; /** * Boasts a couple of improvements over the 'stock' xerces parser factory. public class XercesSAXParserFactoryImpl extends SAXParserFac...
CVE-2010-3260
{'CWE-264'}
4.9
{'https://github.com/orbeon/orbeon-forms/commit/aba6681660f65af7f1676434da68c10298c30200'}
nvd
oxf/xml/xerces/XercesSAXParserFactoryImpl.java in the xforms-server component in the XForms service in Orbeon Forms before 3.9 does not properly restrict DTDs in Ajax requests, which allows remote attackers to read arbitrary files or send HTTP requests to intranet servers via an entity declaration in conjunction with a...
2011-04-27
1
https://github.com/orbeon/orbeon-forms
https://github.com/orbeon/orbeon-forms/commit/aba6681660f65af7f1676434da68c10298c30200
aba6681660f65af7f1676434da68c10298c30200
SINGLE
['aba6681660f65af7f1676434da68c10298c30200']
{'9610d39e90ea9f3c3b8fcf5b47a6038ca52f0f14'}
aba6681660f65af7f1676434da68c10298c30200
1
12/04/2010, 00:32:48
Implemented "[ #315668 ] Disable loading of external entities in XML parsing by default".
ebruchez
null
{'additions': 16, 'deletions': 25, 'total': 41}
[ { "additions": 16, "changes": 41, "deletions": 25, "patch": "@@ -4,13 +4,9 @@\n import org.xml.sax.SAXException;\n import org.xml.sax.SAXNotRecognizedException;\n \n-import javax.xml.parsers.ParserConfigurationException;\n import javax.xml.parsers.SAXParser;\n import javax.xml.parsers.SAXParserFacto...
java
CWE-264
[ "src/java/org/orbeon/oxf/xml/xerces/XercesSAXParserFactoryImpl.java" ]
src/java/org/orbeon/oxf/xml/xerces/XercesSAXParserFactoryImpl.java
1
int fr_dhcp_decode(RADIUS_PACKET *packet) } *tail = vp; while (*tail) tail = &vp->next; p += alen; } /* loop over array entries */ } /* loop over the entire packet */
int fr_dhcp_decode(RADIUS_PACKET *packet) } *tail = vp; while (*tail) tail = &(*tail)->next; p += alen; } /* loop over array entries */ } /* loop over the entire packet */
CVE-2010-3696
{'CWE-399'}
2.9
{'http://github.com/alandekok/freeradius-server/commit/4dc7800b866f889a1247685bbaa6dd4238a56279'}
nvd
The fr_dhcp_decode function in lib/dhcp.c in FreeRADIUS 2.1.9, in certain non-default builds, does not properly handle the DHCP Relay Agent Information option, which allows remote attackers to cause a denial of service (infinite loop and daemon outage) via a packet that has more than one sub-option. NOTE: some of thes...
2010-10-07
1
http://github.com/alandekok/freeradius-server
http://github.com/alandekok/freeradius-server/commit/4dc7800b866f889a1247685bbaa6dd4238a56279
4dc7800b866f889a1247685bbaa6dd4238a56279
SINGLE
['4dc7800b866f889a1247685bbaa6dd4238a56279']
{'96b33f7fc975e20acca8ea85bb23e98cc57047e4'}
4dc7800b866f889a1247685bbaa6dd4238a56279
1
05/29/2010, 09:26:56
Fix endless loop when there are multiple DHCP options
Alan T. DeKok
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -714,7 +714,7 @@ int fr_dhcp_decode(RADIUS_PACKET *packet)\n \t\t\t}\n \n \t\t\t*tail = vp;\n-\t\t\twhile (*tail) tail = &vp->next;\n+\t\t\twhile (*tail) tail = &(*tail)->next;\n \t\t\tp += alen;\n \t\t} /* loop over array entries */\n \t}...
c
CWE-399
[ "src/lib/dhcp.c" ]
src/lib/dhcp.c
1
static void wait_for_child_to_die(void *ctx) REQUEST *request = ctx; rad_assert(request->magic == REQUEST_MAGIC); /* * If it's still queued (waiting for a thread to pick it static void wait_for_child_to_die(void *ctx) (pthread_equal(request->child_pid, NO_SUCH_CHILD_PID) == 0))) { /* * Cap delay at ...
static void wait_for_child_to_die(void *ctx) REQUEST *request = ctx; rad_assert(request->magic == REQUEST_MAGIC); remove_from_request_hash(request); /* * If it's still queued (waiting for a thread to pick it static void wait_for_child_to_die(void *ctx) (pthread_equal(request->child_pid, NO_SUCH_CHILD_PID...
CVE-2010-3697
{'CWE-399'}
2.9
{'http://github.com/alandekok/freeradius-server/commit/ff94dd35673bba1476594299d31ce8293b8bd223'}
nvd
The wait_for_child_to_die function in main/event.c in FreeRADIUS 2.1.x before 2.1.10, in certain circumstances involving long-term database outages, does not properly handle long queue times for requests, which allows remote attackers to cause a denial of service (daemon crash) by sending many requests.
2010-10-07
1
http://github.com/alandekok/freeradius-server
http://github.com/alandekok/freeradius-server/commit/ff94dd35673bba1476594299d31ce8293b8bd223
ff94dd35673bba1476594299d31ce8293b8bd223
SINGLE
['ff94dd35673bba1476594299d31ce8293b8bd223']
{'7036e37f245b7c9d573fd73019f66b40fdaf56f9'}
ff94dd35673bba1476594299d31ce8293b8bd223
1
06/30/2010, 19:58:27
Do not delete "old" requests until they are free. If the request is in the queue for 30+ seconds, do NOT delete it. Instead, mark it as "STOP PROCESSING", and do "wait_for_child_to_die", which waits for a child thread to pick it up, and acknowledge that it's done. Once it's marked done, we can finally clean it up. T...
Alan T. DeKok
null
{'additions': 34, 'deletions': 32, 'total': 66}
[ { "additions": 34, "changes": 66, "deletions": 32, "patch": "@@ -479,6 +479,7 @@ static void wait_for_child_to_die(void *ctx)\n \tREQUEST *request = ctx;\n \n \trad_assert(request->magic == REQUEST_MAGIC);\n+\tremove_from_request_hash(request);\n \n \t/*\n \t *\tIf it's still queued (waiting for a t...
c
CWE-399
[ "src/main/event.c" ]
src/main/event.c
1
SYSCALL_DEFINE1(inotify_init1, int, flags) if (ret >= 0) return ret; atomic_dec(&user->inotify_devs); out_free_uid: free_uid(user);
SYSCALL_DEFINE1(inotify_init1, int, flags) if (ret >= 0) return ret; fsnotify_put_group(group); atomic_dec(&user->inotify_devs); out_free_uid: free_uid(user);
CVE-2010-4250
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/a2ae4cc9a16e211c8a128ba10d22a85431f093ab'}
nvd
Memory leak in the inotify_init1 function in fs/notify/inotify/inotify_user.c in the Linux kernel before 2.6.37 allows local users to cause a denial of service (memory consumption) via vectors involving failed attempts to create files.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a2ae4cc9a16e211c8a128ba10d22a85431f093ab
a2ae4cc9a16e211c8a128ba10d22a85431f093ab
SINGLE
['a2ae4cc9a16e211c8a128ba10d22a85431f093ab']
{'09e5f14e57c70f9d357862bb56e57026c51092a1'}
a2ae4cc9a16e211c8a128ba10d22a85431f093ab
1
11/23/2010, 23:18:37
inotify: stop kernel memory leak on file creation failure If inotify_init is unable to allocate a new file for the new inotify group we leak the new group. This patch drops the reference on the group on file allocation failure. Reported-by: Vegard Nossum <vegard.nossum@gmail.com> cc: stable@kernel.org Signed-off-by:...
Eric Paris
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -752,6 +752,7 @@ SYSCALL_DEFINE1(inotify_init1, int, flags)\n \tif (ret >= 0)\n \t\treturn ret;\n \n+\tfsnotify_put_group(group);\n \tatomic_dec(&user->inotify_devs);\n out_free_uid:\n \tfree_uid(user);", "path": "fs/notify/inotify/ino...
c
CWE-399
[ "fs/notify/inotify/inotify_user.c" ]
fs/notify/inotify/inotify_user.c
1
static int fuse_copy_ioctl_iovec(struct iovec *dst, void *src, return 0; } /* * For ioctls, there is no generic way to determine how much memory * needs to be read and/or written. Furthermore, ioctls are allowed long fuse_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg, in_iov = page_address(iov...
static int fuse_copy_ioctl_iovec(struct iovec *dst, void *src, return 0; } /* Make sure iov_length() won't overflow */ static int fuse_verify_ioctl_iov(struct iovec *iov, size_t count) { size_t n; u32 max = FUSE_MAX_PAGES_PER_REQ << PAGE_SHIFT; for (n = 0; n < count; n++) { if (iov->iov_len > (size_t) max) ...
CVE-2010-4650
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/7572777eef78ebdee1ecb7c258c0ef94d35bad16'}
nvd
Buffer overflow in the fuse_do_ioctl function in fs/fuse/file.c in the Linux kernel before 2.6.37 allows local users to cause a denial of service or possibly have unspecified other impact by leveraging the ability to operate a CUSE server.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/7572777eef78ebdee1ecb7c258c0ef94d35bad16
7572777eef78ebdee1ecb7c258c0ef94d35bad16
SINGLE
['7572777eef78ebdee1ecb7c258c0ef94d35bad16']
{'d9d318d39dd5cb686660504a3565aac453709ccc'}
7572777eef78ebdee1ecb7c258c0ef94d35bad16
1
11/30/2010, 15:39:27
fuse: verify ioctl retries Verify that the total length of the iovec returned in FUSE_IOCTL_RETRY doesn't overflow iov_length(). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: Tejun Heo <tj@kernel.org> CC: <stable@kernel.org> [2.6.31+]
Miklos Szeredi
null
{'additions': 22, 'deletions': 0, 'total': 22}
[ { "additions": 22, "changes": 22, "deletions": 0, "patch": "@@ -1666,6 +1666,20 @@ static int fuse_copy_ioctl_iovec(struct iovec *dst, void *src,\n \treturn 0;\n }\n \n+/* Make sure iov_length() won't overflow */\n+static int fuse_verify_ioctl_iov(struct iovec *iov, size_t count)\n+{\n+\tsize_t n;\n...
c
CWE-119
[ "fs/fuse/file.c" ]
fs/fuse/file.c
1
class Users < Application provides :json before :authenticate_every # GET to /users def index
class Users < Application provides :json before :authenticate_every before :is_admin, :only => [ :create, :destroy, :update ] # GET to /users def index
CVE-2010-5142
{'CWE-264'}
6.4
{'https://github.com/opscode/chef/commit/c3bb41f727fbe00e5de719d687757b24c8dcdfc8'}
nvd
chef-server-api/app/controllers/users.rb in the API in Chef before 0.9.0 does not require administrative privileges for the create, destroy, and update methods, which allows remote authenticated users to manage user accounts via requests to the /users URI.
2012-08-08
1
https://github.com/opscode/chef
https://github.com/opscode/chef/commit/c3bb41f727fbe00e5de719d687757b24c8dcdfc8
c3bb41f727fbe00e5de719d687757b24c8dcdfc8
SINGLE
['c3bb41f727fbe00e5de719d687757b24c8dcdfc8']
{'cb8f5a3df47a0cf0ba14b38181cc1eac0d64fa31'}
c3bb41f727fbe00e5de719d687757b24c8dcdfc8
1
06/10/2010, 16:49:45
CHEF-1289 API does not check for admin rights for user management
Ian Meyer
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -22,6 +22,7 @@ class Users < Application\n provides :json\n \n before :authenticate_every\n+ before :is_admin, :only => [ :create, :destroy, :update ]\n \n # GET to /users\n def index", "path": "chef-server-api/app/controllers...
rb
CWE-264
[ "chef-server-api/app/controllers/users.rb" ]
chef-server-api/app/controllers/users.rb
1
EXPORT_SYMBOL_GPL(kvm_inject_realmode_interrupt); static int handle_emulation_failure(struct kvm_vcpu *vcpu) { ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; vcpu->run->internal.suberror = KVM_INTERNAL_ERROR_EMULATION; vcpu->run->internal....
EXPORT_SYMBOL_GPL(kvm_inject_realmode_interrupt); static int handle_emulation_failure(struct kvm_vcpu *vcpu) { int r = EMULATE_DONE; ++vcpu->stat.insn_emulation_fail; trace_kvm_emulate_insn_failed(vcpu); if (!is_guest_mode(vcpu)) { vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR; vcpu->run->internal.suberro...
CVE-2010-5313
{'CWE-362'}
6.9
{'https://github.com/torvalds/linux/commit/fc3a9157d3148ab91039c75423da8ef97be3e105'}
nvd
Race condition in arch/x86/kvm/x86.c in the Linux kernel before 2.6.38 allows L2 guest OS users to cause a denial of service (L1 guest OS crash) via a crafted instruction that triggers an L2 emulation failure report, a similar issue to CVE-2014-7842.
2014-11-30
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fc3a9157d3148ab91039c75423da8ef97be3e105
fc3a9157d3148ab91039c75423da8ef97be3e105
SINGLE
['fc3a9157d3148ab91039c75423da8ef97be3e105']
{'2030753de70a8aed39543ed09c2360665b3af481'}
fc3a9157d3148ab91039c75423da8ef97be3e105
1
11/29/2010, 16:51:49
KVM: X86: Don't report L2 emulation failures to user-space This patch prevents that emulation failures which result from emulating an instruction for an L2-Guest results in being reported to userspace. Without this patch a malicious L2-Guest would be able to kill the L1 by triggering a race-condition between an vmexit...
Joerg Roedel
null
{'additions': 10, 'deletions': 4, 'total': 14}
[ { "additions": 10, "changes": 14, "deletions": 4, "patch": "@@ -4314,13 +4314,19 @@ EXPORT_SYMBOL_GPL(kvm_inject_realmode_interrupt);\n \n static int handle_emulation_failure(struct kvm_vcpu *vcpu)\n {\n+\tint r = EMULATE_DONE;\n+\n \t++vcpu->stat.insn_emulation_fail;\n \ttrace_kvm_emulate_insn_fail...
c
CWE-362
[ "arch/x86/kvm/x86.c" ]
arch/x86/kvm/x86.c
1
void v4l_printk_ioctl(unsigned int cmd) } EXPORT_SYMBOL(v4l_printk_ioctl); /* * helper function -- handles userspace copying for ioctl arguments * Obsolete usercopy function - Should be removed soon */ long video_usercopy(struct file *file, unsigned int cmd, unsigned long arg, v4l2_kioctl func) { char sbuf[128]...
void v4l_printk_ioctl(unsigned int cmd) } EXPORT_SYMBOL(v4l_printk_ioctl); static void dbgbuf(unsigned int cmd, struct video_device *vfd, struct v4l2_buffer *p) { static int check_array_args(unsigned int cmd, void *parg, size_t *array_size, return ret; } long video_usercopy(struct file *file, unsigned int cmd,...
CVE-2010-5329
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/fc0a80798576f80ca10b3f6c9c7097f12fd1d64e'}
nvd
The video_usercopy function in drivers/media/video/v4l2-ioctl.c in the Linux kernel before 2.6.39 relies on the count value of a v4l2_ext_controls data structure to determine a kmalloc size, which might allow local users to cause a denial of service (memory consumption) via a large value.
2017-04-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fc0a80798576f80ca10b3f6c9c7097f12fd1d64e
fc0a80798576f80ca10b3f6c9c7097f12fd1d64e
SINGLE
['fc0a80798576f80ca10b3f6c9c7097f12fd1d64e']
{'9f00edaef8a8741a2d5333676fe9aa23a2a3d2be'}
fc0a80798576f80ca10b3f6c9c7097f12fd1d64e
1
07/12/2010, 14:09:41
[media] v4l: Share code between video_usercopy and video_ioctl2 The two functions are mostly identical. They handle the copy_from_user and copy_to_user operations related with V4L2 ioctls and call the real ioctl handler. Create a __video_usercopy function that implements the core of video_usercopy and video_ioctl2, a...
Laurent Pinchart
null
{'additions': 11, 'deletions': 98, 'total': 109}
[ { "additions": 11, "changes": 109, "deletions": 98, "patch": "@@ -294,101 +294,6 @@ void v4l_printk_ioctl(unsigned int cmd)\n }\n EXPORT_SYMBOL(v4l_printk_ioctl);\n \n-/*\n- * helper function -- handles userspace copying for ioctl arguments\n- * Obsolete usercopy function - Should be removed soon\n-...
c
CWE-399
[ "drivers/media/video/v4l2-ioctl.c" ]
drivers/media/video/v4l2-ioctl.c
1
int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *index) goto out; } } mlx4_dbg(dev, "Free MAC index is %d\n", free); if (table->total == table->max) { int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index) } } if (table->total == table->max) { /* No free vlan entr...
int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *index) goto out; } } if (free < 0) { err = -ENOMEM; goto out; } mlx4_dbg(dev, "Free MAC index is %d\n", free); if (table->total == table->max) { int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index) } } if (f...
CVE-2010-5332
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/0926f91083f34d047abc74f1ca4fa6a9c161f7db'}
nvd
In the Linux kernel before 2.6.37, an out of bounds array access happened in drivers/net/mlx4/port.c. When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access.
2019-07-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0926f91083f34d047abc74f1ca4fa6a9c161f7db
0926f91083f34d047abc74f1ca4fa6a9c161f7db
SINGLE
['0926f91083f34d047abc74f1ca4fa6a9c161f7db']
{'b336369c1e1ad88495895260a9068eb18bc48b6c'}
0926f91083f34d047abc74f1ca4fa6a9c161f7db
1
10/25/2010, 02:56:47
mlx4_en: Fix out of bounds array access When searching for a free entry in either mlx4_register_vlan() or mlx4_register_mac(), and there is no free entry, the loop terminates without updating the local variable free thus causing out of array bounds access. Fix this by adding a proper check outside the loop. Signed-of...
Eli Cohen
null
{'additions': 11, 'deletions': 0, 'total': 11}
[ { "additions": 11, "changes": 11, "deletions": 0, "patch": "@@ -111,6 +111,12 @@ int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *index)\n \t\t\tgoto out;\n \t\t}\n \t}\n+\n+\tif (free < 0) {\n+\t\terr = -ENOMEM;\n+\t\tgoto out;\n+\t}\n+\n \tmlx4_dbg(dev, \"Free MAC index is %d\\n\...
c
CWE-119
[ "drivers/net/mlx4/port.c" ]
drivers/net/mlx4/port.c
1
static int ima_lsm_rule_init(struct ima_measure_rule_entry *entry, result = security_filter_rule_init(entry->lsm[lsm_rule].type, Audit_equal, args, &entry->lsm[lsm_rule].rule); return result; }
static int ima_lsm_rule_init(struct ima_measure_rule_entry *entry, result = security_filter_rule_init(entry->lsm[lsm_rule].type, Audit_equal, args, &entry->lsm[lsm_rule].rule); if (!entry->lsm[lsm_rule].rule) return -EINVAL; return result; }
CVE-2011-0006
{'CWE-264'}
2.9
{'https://github.com/torvalds/linux/commit/867c20265459d30a01b021a9c1e81fb4c5832aa9'}
nvd
The ima_lsm_rule_init function in security/integrity/ima/ima_policy.c in the Linux kernel before 2.6.37, when the Linux Security Modules (LSM) framework is disabled, allows local users to bypass Integrity Measurement Architecture (IMA) rules in opportunistic circumstances by leveraging an administrator's addition of an...
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/867c20265459d30a01b021a9c1e81fb4c5832aa9
867c20265459d30a01b021a9c1e81fb4c5832aa9
SINGLE
['867c20265459d30a01b021a9c1e81fb4c5832aa9']
{'03ed6a3aa600c48593c3984812fda2d5945ddb46'}
867c20265459d30a01b021a9c1e81fb4c5832aa9
1
01/03/2011, 22:59:10
ima: fix add LSM rule bug If security_filter_rule_init() doesn't return a rule, then not everything is as fine as the return code implies. This bug only occurs when the LSM (eg. SELinux) is disabled at runtime. Adding an empty LSM rule causes ima_match_rules() to always succeed, ignoring any remaining rules. defau...
Mimi Zohar
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -253,6 +253,8 @@ static int ima_lsm_rule_init(struct ima_measure_rule_entry *entry,\n \tresult = security_filter_rule_init(entry->lsm[lsm_rule].type,\n \t\t\t\t\t Audit_equal, args,\n \t\t\t\t\t &entry->lsm[lsm_rule].rule);\n+\tif (!en...
c
CWE-264
[ "security/integrity/ima/ima_policy.c" ]
security/integrity/ima/ima_policy.c
1
gboolean do_oldstyle=FALSE; #define OFFT_MAX ~((off_t)1<<(sizeof(off_t)*8-1)) #define LINELEN 256 /**< Size of static buffer used to read the authorization file (yuck) */ #define BUFSIZE (1024*1024) /**< Size of buffer that can hold requests */ #define DIFFPAGESIZE 4096 /**< diff file uses those chunks */ ...
gboolean do_oldstyle=FALSE; #define OFFT_MAX ~((off_t)1<<(sizeof(off_t)*8-1)) #define LINELEN 256 /**< Size of static buffer used to read the authorization file (yuck) */ #define BUFSIZE ((1024*1024)+sizeof(struct nbd_reply)) /**< Size of buffer that can hold requests */ #define DIFFPAGESIZE 4096 /**< diff...
CVE-2011-0530
{'CWE-119'}
6.4
{'https://github.com/yoe/nbd/commit/3ef52043861ab16352d49af89e048ba6339d6df8'}
nvd
Buffer overflow in the mainloop function in nbd-server.c in the server in Network Block Device (nbd) before 2.9.20 might allow remote attackers to execute arbitrary code via a long request. NOTE: this issue exists because of a CVE-2005-3534 regression.
2011-02-22
1
https://github.com/yoe/nbd
https://github.com/yoe/nbd/commit/3ef52043861ab16352d49af89e048ba6339d6df8
3ef52043861ab16352d49af89e048ba6339d6df8
SINGLE
['3ef52043861ab16352d49af89e048ba6339d6df8']
{'50e7e7e9378c1528b045860682070c5de2c6c721'}
3ef52043861ab16352d49af89e048ba6339d6df8
1
01/27/2011, 21:30:09
Fix buffer size checking Yes, this means we've re-introduced CVE-2005-3534. Sigh.
Wouter Verhelst
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -150,7 +150,7 @@ gboolean do_oldstyle=FALSE;\n #define OFFT_MAX ~((off_t)1<<(sizeof(off_t)*8-1))\n #define LINELEN 256\t /**< Size of static buffer used to read the\n \t\t\t authorization file (yuck) */\n-#define BUFSIZE (1024*1024)...
c
CWE-119
[ "nbd-server.c" ]
nbd-server.c
1
static int br_multicast_add_group(struct net_bridge *br, goto err; if (!port) { hlist_add_head(&mp->mglist, &br->mglist); mod_timer(&mp->timer, now + br->multicast_membership_interval); goto out; }
static int br_multicast_add_group(struct net_bridge *br, goto err; if (!port) { if (hlist_unhashed(&mp->mglist)) hlist_add_head(&mp->mglist, &br->mglist); mod_timer(&mp->timer, now + br->multicast_membership_interval); goto out; }
CVE-2011-0716
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/6b0d6a9b4296fa16a28d10d416db7a770fc03287'}
nvd
The br_multicast_add_group function in net/bridge/br_multicast.c in the Linux kernel before 2.6.38, when a certain Ethernet bridge configuration is used, allows local users to cause a denial of service (memory corruption and system crash) by sending IGMP packets to a local interface.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/6b0d6a9b4296fa16a28d10d416db7a770fc03287
6b0d6a9b4296fa16a28d10d416db7a770fc03287
SINGLE
['6b0d6a9b4296fa16a28d10d416db7a770fc03287']
{'946bf5ee3c46f73b5cbd52aab594697b1a132d1f'}
6b0d6a9b4296fa16a28d10d416db7a770fc03287
1
02/11/2011, 12:36:55
bridge: Fix mglist corruption that leads to memory corruption The list mp->mglist is used to indicate whether a multicast group is active on the bridge interface itself as opposed to one of the constituent interfaces in the bridge. Unfortunately the operation that adds the mp->mglist node to the list neglected to che...
Herbert Xu
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -719,7 +719,8 @@ static int br_multicast_add_group(struct net_bridge *br,\n \t\tgoto err;\n \n \tif (!port) {\n-\t\thlist_add_head(&mp->mglist, &br->mglist);\n+\t\tif (hlist_unhashed(&mp->mglist))\n+\t\t\thlist_add_head(&mp->mglist, &br->m...
c
CWE-399
[ "net/bridge/br_multicast.c" ]
net/bridge/br_multicast.c
1
ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray (MonoAr int align; const char *field_data; if (MONO_TYPE_IS_REFERENCE (type) || (type->type == MONO_TYPE_VALUETYPE && (!mono_type_get_class (type) || mono_type_get_class (type)->has_references))) { MonoException *exc = mono_get_e...
ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray (MonoAr int align; const char *field_data; if (MONO_TYPE_IS_REFERENCE (type) || type->type == MONO_TYPE_VALUETYPE) { MonoException *exc = mono_get_exception_argument("array", "Cannot initialize array of non-primitive type."); mono_rais...
CVE-2011-0989
{'CWE-264'}
4.9
{'https://github.com/mono/mono/commit/035c8587c0d8d307e45f1b7171a0d337bb451f1e'}
nvd
The RuntimeHelpers.InitializeArray method in metadata/icall.c in Mono, when Moonlight 2.x before 2.4.1 or 3.x before 3.99.3 is used, does not properly restrict data types, which allows remote attackers to modify internal read-only data structures, and cause a denial of service (plugin crash) or corrupt the internal sta...
2011-04-13
1
https://github.com/mono/mono
https://github.com/mono/mono/commit/035c8587c0d8d307e45f1b7171a0d337bb451f1e
035c8587c0d8d307e45f1b7171a0d337bb451f1e
SINGLE
['035c8587c0d8d307e45f1b7171a0d337bb451f1e']
{'e34089d8169451aeb33d663e73216913969d65cf'}
035c8587c0d8d307e45f1b7171a0d337bb451f1e
1
01/18/2011, 15:41:37
Allow only primitive types/enums in RuntimeHelpers.InitializeArray ().
Zoltan Varga
null
{'additions': 2, 'deletions': 5, 'total': 7}
[ { "additions": 2, "changes": 7, "deletions": 5, "patch": "@@ -854,12 +854,9 @@ ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray (MonoAr\n \tint align;\n \tconst char *field_data;\n \n-\tif (MONO_TYPE_IS_REFERENCE (type) ||\n-\t\t\t(type->type == MONO_TYPE_VALUETYPE &&\n-\t\t\...
c
CWE-264
[ "mono/metadata/icall.c" ]
mono/metadata/icall.c
1
ves_icall_System_Array_FastCopy (MonoArray *source, int source_idx, MonoArray* d void * source_addr; MonoClass *src_class; MonoClass *dest_class; int i; MONO_ARCH_SAVE_REGS; ves_icall_System_Array_FastCopy (MonoArray *source, int source_idx, MonoArray* d /* Case1: object[] -> valuetype[] (ArrayList::ToArray) ...
ves_icall_System_Array_FastCopy (MonoArray *source, int source_idx, MonoArray* d void * source_addr; MonoClass *src_class; MonoClass *dest_class; MONO_ARCH_SAVE_REGS; ves_icall_System_Array_FastCopy (MonoArray *source, int source_idx, MonoArray* d /* Case1: object[] -> valuetype[] (ArrayList::ToArray) */ if (...
CVE-2011-0990
{'CWE-362'}
4.9
{'https://github.com/mono/mono/commit/2f00e4bbb2137130845afb1b2a1e678552fc8e5c'}
nvd
Race condition in the FastCopy optimization in the Array.Copy method in metadata/icall.c in Mono, when Moonlight 2.x before 2.4.1 or 3.x before 3.99.3 is used, allows remote attackers to trigger a buffer overflow and modify internal data structures, and cause a denial of service (plugin crash) or corrupt the internal s...
2011-04-13
1
https://github.com/mono/mono
https://github.com/mono/mono/commit/2f00e4bbb2137130845afb1b2a1e678552fc8e5c
2f00e4bbb2137130845afb1b2a1e678552fc8e5c
SINGLE
['2f00e4bbb2137130845afb1b2a1e678552fc8e5c']
{'035c8587c0d8d307e45f1b7171a0d337bb451f1e'}
2f00e4bbb2137130845afb1b2a1e678552fc8e5c
1
01/18/2011, 16:16:40
Disable some of the FastCopy fast paths since they are racy.
Zoltan Varga
null
{'additions': 12, 'deletions': 3, 'total': 15}
[ { "additions": 12, "changes": 15, "deletions": 3, "patch": "@@ -718,7 +718,6 @@ ves_icall_System_Array_FastCopy (MonoArray *source, int source_idx, MonoArray* d\n \tvoid * source_addr;\n \tMonoClass *src_class;\n \tMonoClass *dest_class;\n-\tint i;\n \n \tMONO_ARCH_SAVE_REGS;\n \n@@ -742,6 +741,10 @...
c
CWE-362
[ "mono/metadata/icall.c" ]
mono/metadata/icall.c
1
void ves_icall_System_Threading_InternalThread_Thread_free_internal (MonoInterna CloseHandle (thread); if (this->synch_cs) { DeleteCriticalSection (this->synch_cs); g_free (this->synch_cs); this->synch_cs = NULL; } g_free (this->name); } static void mono_thread_start (MonoThread *thread)
void ves_icall_System_Threading_InternalThread_Thread_free_internal (MonoInterna CloseHandle (thread); if (this->synch_cs) { CRITICAL_SECTION *synch_cs = this->synch_cs; this->synch_cs = NULL; DeleteCriticalSection (synch_cs); g_free (synch_cs); } if (this->name) { void *name = this->name; this->nam...
CVE-2011-0992
{'CWE-399'}
4.9
{'https://github.com/mono/mono/commit/722f9890f09aadfc37ae479e7d946d5fc5ef7b91'}
nvd
Use-after-free vulnerability in Mono, when Moonlight 2.x before 2.4.1 or 3.x before 3.99.3 is used, allows remote attackers to cause a denial of service (plugin crash) or obtain sensitive information via vectors related to member data in a resurrected MonoThread instance.
2011-04-13
1
https://github.com/mono/mono
https://github.com/mono/mono/commit/722f9890f09aadfc37ae479e7d946d5fc5ef7b91
722f9890f09aadfc37ae479e7d946d5fc5ef7b91
SINGLE
['722f9890f09aadfc37ae479e7d946d5fc5ef7b91']
{'7d23d7652847dc8161b8b6823c9613556ce85594'}
722f9890f09aadfc37ae479e7d946d5fc5ef7b91
1
04/06/2011, 17:24:31
Fix access to freed members of a dead thread * threads.c: Fix access to freed members of a dead thread. Found and fixed by Rodrigo Kumpera <rkumpera@novell.com> Ref: CVE-2011-0992
Sebastien Pouliot
null
{'additions': 8, 'deletions': 3, 'total': 11}
[ { "additions": 8, "changes": 11, "deletions": 3, "patch": "@@ -1036,12 +1036,17 @@ void ves_icall_System_Threading_InternalThread_Thread_free_internal (MonoInterna\n \t\tCloseHandle (thread);\n \n \tif (this->synch_cs) {\n-\t\tDeleteCriticalSection (this->synch_cs);\n-\t\tg_free (this->synch_cs);\n+...
c
CWE-399
[ "mono/metadata/threads.c" ]
mono/metadata/threads.c
1
static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user break; } cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle; memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3);
static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user break; } memset(&cinfo, 0, sizeof(cinfo)); cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle; memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3);
CVE-2011-1078
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/c4c896e1471aec3b004a693c689f60be3b17ac86'}
nvd
The sco_sock_getsockopt_old function in net/bluetooth/sco.c in the Linux kernel before 2.6.39 does not initialize a certain structure, which allows local users to obtain potentially sensitive information from kernel stack memory via the SCO_CONNINFO option.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c4c896e1471aec3b004a693c689f60be3b17ac86
c4c896e1471aec3b004a693c689f60be3b17ac86
SINGLE
['c4c896e1471aec3b004a693c689f60be3b17ac86']
{'43629f8f5ea32a998d06d1bb41eefa0e821ff573'}
c4c896e1471aec3b004a693c689f60be3b17ac86
1
02/14/2011, 10:54:26
Bluetooth: sco: fix information leak to userspace struct sco_conninfo has one padding byte in the end. Local variable cinfo of type sco_conninfo is copied to userspace with this uninizialized one byte, leading to old stack contents leak. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Gustavo F. ...
Vasiliy Kulikov
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -703,6 +703,7 @@ static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user\n \t\t\tbreak;\n \t\t}\n \n+\t\tmemset(&cinfo, 0, sizeof(cinfo));\n \t\tcinfo.hci_handle = sco_pi(sk)->conn->hcon->handle;\n \t\tmemcpy(cinfo...
c
CWE-200
[ "net/bluetooth/sco.c" ]
net/bluetooth/sco.c
1
static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long sockfd_put(nsock); return -EBADFD; } err = bnep_add_connection(&ca, nsock); if (!err) {
static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long sockfd_put(nsock); return -EBADFD; } ca.device[sizeof(ca.device)-1] = 0; err = bnep_add_connection(&ca, nsock); if (!err) {
CVE-2011-1079
{'CWE-20'}
7.8
{'https://github.com/torvalds/linux/commit/43629f8f5ea32a998d06d1bb41eefa0e821ff573'}
nvd
The bnep_sock_ioctl function in net/bluetooth/bnep/sock.c in the Linux kernel before 2.6.39 does not ensure that a certain device field ends with a '\0' character, which allows local users to obtain potentially sensitive information from kernel stack memory, or cause a denial of service (BUG and system crash), via a BN...
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/43629f8f5ea32a998d06d1bb41eefa0e821ff573
43629f8f5ea32a998d06d1bb41eefa0e821ff573
SINGLE
['43629f8f5ea32a998d06d1bb41eefa0e821ff573']
{'d9f51b51db2064c9049bf7924318fd8c6ed852cb'}
43629f8f5ea32a998d06d1bb41eefa0e821ff573
1
02/14/2011, 10:54:31
Bluetooth: bnep: fix buffer overflow Struct ca is copied from userspace. It is not checked whether the "device" field is NULL terminated. This potentially leads to BUG() inside of alloc_netdev_mqs() and/or information leak by creating a device with a name made of contents of kernel stack. Signed-off-by: Vasiliy Kul...
Vasiliy Kulikov
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -88,6 +88,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long\n \t\t\tsockfd_put(nsock);\n \t\t\treturn -EBADFD;\n \t\t}\n+\t\tca.device[sizeof(ca.device)-1] = 0;\n \n \t\terr = bnep_add_connection(&ca, nso...
c
CWE-20
[ "net/bluetooth/bnep/sock.c" ]
net/bluetooth/bnep/sock.c
1
static int do_replace(struct net *net, const void __user *user, if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) return -ENOMEM; countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; newinfo = vmalloc(sizeof(*newinfo) + countersize); if (!newinfo)
static int do_replace(struct net *net, const void __user *user, if (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter)) return -ENOMEM; tmp.name[sizeof(tmp.name) - 1] = 0; countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids; newinfo = vmalloc(sizeof(*newinfo) + countersize); if (!newinfo)
CVE-2011-1080
{'CWE-20'}
2.9
{'https://github.com/torvalds/linux/commit/d846f71195d57b0bbb143382647c2c6638b04c5a'}
nvd
The do_replace function in net/bridge/netfilter/ebtables.c in the Linux kernel before 2.6.39 does not ensure that a certain name field ends with a '\0' character, which allows local users to obtain potentially sensitive information from kernel stack memory by leveraging the CAP_NET_ADMIN capability to replace a table, ...
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d846f71195d57b0bbb143382647c2c6638b04c5a
d846f71195d57b0bbb143382647c2c6638b04c5a
SINGLE
['d846f71195d57b0bbb143382647c2c6638b04c5a']
{'44bd4de9c2270b22c3c898310102bc6be9ed2978'}
d846f71195d57b0bbb143382647c2c6638b04c5a
1
02/14/2011, 15:49:23
bridge: netfilter: fix information leak Struct tmp is copied from userspace. It is not checked whether the "name" field is NULL terminated. This may lead to buffer overflow and passing contents of kernel stack as a module name to try_then_request_module() and, consequently, to modprobe commandline. It would be seen...
Vasiliy Kulikov
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1107,6 +1107,8 @@ static int do_replace(struct net *net, const void __user *user,\n \tif (tmp.num_counters >= INT_MAX / sizeof(struct ebt_counter))\n \t\treturn -ENOMEM;\n \n+\ttmp.name[sizeof(tmp.name) - 1] = 0;\n+\n \tcountersize = COUN...
c
CWE-20
[ "net/bridge/netfilter/ebtables.c" ]
net/bridge/netfilter/ebtables.c
1
int tpm_open(struct inode *inode, struct file *file) return -EBUSY; } chip->data_buffer = kmalloc(TPM_BUFSIZE * sizeof(u8), GFP_KERNEL); if (chip->data_buffer == NULL) { clear_bit(0, &chip->is_open); put_device(chip->dev);
int tpm_open(struct inode *inode, struct file *file) return -EBUSY; } chip->data_buffer = kzalloc(TPM_BUFSIZE, GFP_KERNEL); if (chip->data_buffer == NULL) { clear_bit(0, &chip->is_open); put_device(chip->dev);
CVE-2011-1160
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/1309d7afbed112f0e8e90be9af975550caa0076b'}
nvd
The tpm_open function in drivers/char/tpm/tpm.c in the Linux kernel before 2.6.39 does not initialize a certain buffer, which allows local users to obtain potentially sensitive information from kernel memory via unspecified vectors.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1309d7afbed112f0e8e90be9af975550caa0076b
1309d7afbed112f0e8e90be9af975550caa0076b
SINGLE
['1309d7afbed112f0e8e90be9af975550caa0076b']
{'0444d76ae64fffc7851797fc1b6ebdbb44ac504a'}
1309d7afbed112f0e8e90be9af975550caa0076b
1
03/29/2011, 11:31:25
char/tpm: Fix unitialized usage of data buffer This patch fixes information leakage to the userspace by initializing the data buffer to zero. Reported-by: Peter Huewe <huewe.external@infineon.com> Signed-off-by: Peter Huewe <huewe.external@infineon.com> Signed-off-by: Marcel Selhorst <m.selhorst@sirrix.com> [ Also re...
Peter Huewe
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -980,7 +980,7 @@ int tpm_open(struct inode *inode, struct file *file)\n \t\treturn -EBUSY;\n \t}\n \n-\tchip->data_buffer = kmalloc(TPM_BUFSIZE * sizeof(u8), GFP_KERNEL);\n+\tchip->data_buffer = kzalloc(TPM_BUFSIZE, GFP_KERNEL);\n \tif (ch...
c
CWE-200
[ "drivers/char/tpm/tpm.c" ]
drivers/char/tpm/tpm.c
1
static void iriap_getvaluebyclass_indication(struct iriap_cb *self, n = 1; name_len = fp[n++]; memcpy(name, fp+n, name_len); n+=name_len; name[name_len] = '\0'; attr_len = fp[n++]; memcpy(attr, fp+n, attr_len); n+=attr_len; attr[attr_len] = '\0';
static void iriap_getvaluebyclass_indication(struct iriap_cb *self, n = 1; name_len = fp[n++]; IRDA_ASSERT(name_len < IAS_MAX_CLASSNAME + 1, return;); memcpy(name, fp+n, name_len); n+=name_len; name[name_len] = '\0'; attr_len = fp[n++]; IRDA_ASSERT(attr_len < IAS_MAX_ATTRIBNAME + 1, return;); memcpy(attr...
CVE-2011-1180
{'CWE-787'}
6.4
{'https://github.com/torvalds/linux/commit/d370af0ef7951188daeb15bae75db7ba57c67846'}
nvd
Multiple stack-based buffer overflows in the iriap_getvaluebyclass_indication function in net/irda/iriap.c in the Linux kernel before 2.6.39 allow remote attackers to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging connectivity to an IrDA infrared network and sendin...
2013-06-08
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d370af0ef7951188daeb15bae75db7ba57c67846
d370af0ef7951188daeb15bae75db7ba57c67846
SINGLE
['d370af0ef7951188daeb15bae75db7ba57c67846']
{'d50e7e3604778bfc2dc40f440e0742dbae399d54'}
d370af0ef7951188daeb15bae75db7ba57c67846
1
03/20/2011, 15:32:06
irda: validate peer name and attribute lengths Length fields provided by a peer for names and attributes may be longer than the destination array sizes. Validate lengths to prevent stack buffer overflows. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> Cc: stable@kernel.org Signed-off-by: David S. Miller <da...
Dan Rosenberg
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -656,10 +656,16 @@ static void iriap_getvaluebyclass_indication(struct iriap_cb *self,\n \tn = 1;\n \n \tname_len = fp[n++];\n+\n+\tIRDA_ASSERT(name_len < IAS_MAX_CLASSNAME + 1, return;);\n+\n \tmemcpy(name, fp+n, name_len); n+=name_len;\n...
c
CWE-787
[ "net/irda/iriap.c" ]
net/irda/iriap.c
1
static int opl3_load_patch(int dev, int format, const char __user *addr, static void opl3_panning(int dev, int voice, int value) { devc->voc[voice].panning = value; } static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info static void opl3_setup_voice(int dev, int voice, int chn) { struct ...
static int opl3_load_patch(int dev, int format, const char __user *addr, static void opl3_panning(int dev, int voice, int value) { if (voice < 0 || voice >= devc->nr_voice) return; devc->voc[voice].panning = value; } static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info static void o...
CVE-2011-1477
{'CWE-119', 'CWE-264'}
10
{'https://github.com/torvalds/linux/commit/4d00135a680727f6c3be78f8befaac009030e4df'}
nvd
Multiple array index errors in sound/oss/opl3.c in the Linux kernel before 2.6.39 allow local users to cause a denial of service (heap memory corruption) or possibly gain privileges by leveraging write access to /dev/sequencer.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4d00135a680727f6c3be78f8befaac009030e4df
4d00135a680727f6c3be78f8befaac009030e4df
SINGLE
['4d00135a680727f6c3be78f8befaac009030e4df']
{'b769f49463711205d57286e64cf535ed4daf59e9'}
4d00135a680727f6c3be78f8befaac009030e4df
1
03/23/2011, 15:42:57
sound/oss/opl3: validate voice and channel indexes User-controllable indexes for voice and channel values may cause reading and writing beyond the bounds of their respective arrays, leading to potentially exploitable memory corruption. Validate these indexes. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> C...
Dan Rosenberg
null
{'additions': 13, 'deletions': 2, 'total': 15}
[ { "additions": 13, "changes": 15, "deletions": 2, "patch": "@@ -845,6 +845,10 @@ static int opl3_load_patch(int dev, int format, const char __user *addr,\n \n static void opl3_panning(int dev, int voice, int value)\n {\n+\n+\tif (voice < 0 || voice >= devc->nr_voice)\n+\t\treturn;\n+\n \tdevc->voc[v...
c
CWE-264
[ "sound/oss/opl3.c" ]
sound/oss/opl3.c
1
static int opl3_load_patch(int dev, int format, const char __user *addr, static void opl3_panning(int dev, int voice, int value) { devc->voc[voice].panning = value; } static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info static void opl3_setup_voice(int dev, int voice, int chn) { struct ...
static int opl3_load_patch(int dev, int format, const char __user *addr, static void opl3_panning(int dev, int voice, int value) { if (voice < 0 || voice >= devc->nr_voice) return; devc->voc[voice].panning = value; } static int opl3_alloc_voice(int dev, int chn, int note, struct voice_alloc_info static void o...
CVE-2011-1477
{'CWE-119', 'CWE-264'}
10
{'https://github.com/torvalds/linux/commit/4d00135a680727f6c3be78f8befaac009030e4df'}
nvd
Multiple array index errors in sound/oss/opl3.c in the Linux kernel before 2.6.39 allow local users to cause a denial of service (heap memory corruption) or possibly gain privileges by leveraging write access to /dev/sequencer.
2012-06-21
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4d00135a680727f6c3be78f8befaac009030e4df
4d00135a680727f6c3be78f8befaac009030e4df
SINGLE
['4d00135a680727f6c3be78f8befaac009030e4df']
{'b769f49463711205d57286e64cf535ed4daf59e9'}
4d00135a680727f6c3be78f8befaac009030e4df
1
03/23/2011, 15:42:57
sound/oss/opl3: validate voice and channel indexes User-controllable indexes for voice and channel values may cause reading and writing beyond the bounds of their respective arrays, leading to potentially exploitable memory corruption. Validate these indexes. Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> C...
Dan Rosenberg
null
{'additions': 13, 'deletions': 2, 'total': 15}
[ { "additions": 13, "changes": 15, "deletions": 2, "patch": "@@ -845,6 +845,10 @@ static int opl3_load_patch(int dev, int format, const char __user *addr,\n \n static void opl3_panning(int dev, int voice, int value)\n {\n+\n+\tif (voice < 0 || voice >= devc->nr_voice)\n+\t\treturn;\n+\n \tdevc->voc[v...
c
CWE-119
[ "sound/oss/opl3.c" ]
sound/oss/opl3.c
1
static void randomdelay(void) * -Frank. */ int sfgets(void) { struct pollfd pfd; int pollret; ssize_t readnb; signed char seen_r = 0; static size_t scanned; static size_t readnbd; if (scanned > (size_t) 0U) { /* support pipelining */ readnbd -= scanned; void pa...
static void randomdelay(void) * -Frank. */ static size_t scanned; static size_t readnbd; static void flush_cmd(void) { scanned = readnbd = (size_t) 0U; } int sfgets(void) { struct pollfd pfd; int pollret; ssize_t readnb; signed char seen_r = 0; if (scanned > (size_t) 0U) { /* su...
CVE-2011-1575
{'CWE-399'}
4.9
{'https://github.com/jedisct1/pure-ftpd/commit/65c4d4ad331e94661de763e9b5304d28698999c4'}
nvd
The STARTTLS implementation in ftp_parser.c in Pure-FTPd before 1.0.30 does not properly restrict I/O buffering, which allows man-in-the-middle attackers to insert commands into encrypted FTP sessions by sending a cleartext command that is processed after TLS is in place, related to a "plaintext command injection" atta...
2011-05-23
1
https://github.com/jedisct1/pure-ftpd
https://github.com/jedisct1/pure-ftpd/commit/65c4d4ad331e94661de763e9b5304d28698999c4
65c4d4ad331e94661de763e9b5304d28698999c4
SINGLE
['65c4d4ad331e94661de763e9b5304d28698999c4']
{'67b0385e0871ad3fc48b2244abb30eb673161146'}
65c4d4ad331e94661de763e9b5304d28698999c4
1
03/07/2011, 22:50:46
Flush the command buffer after switching to TLS. Fixes a flaw similar to CVE-2011-0411.
Frank DENIS
null
{'additions': 9, 'deletions': 2, 'total': 11}
[ { "additions": 9, "changes": 11, "deletions": 2, "patch": "@@ -57,14 +57,20 @@ static void randomdelay(void)\n * -Frank.\n */\n \n+static size_t scanned;\n+static size_t readnbd;\n+\n+static void flush_cmd(void)\n+{\n+ scanned = readnbd = (size_t) 0U;\n+}\n+\n int sfgets(void)\n {\n struct ...
c
CWE-399
[ "src/ftp_parser.c" ]
src/ftp_parser.c
1
asmlinkage long sys_oabi_semtimedop(int semid, long err; int i; if (nsops < 1) return -EINVAL; sops = kmalloc(sizeof(*sops) * nsops, GFP_KERNEL); if (!sops)
asmlinkage long sys_oabi_semtimedop(int semid, long err; int i; if (nsops < 1 || nsops > SEMOPM) return -EINVAL; sops = kmalloc(sizeof(*sops) * nsops, GFP_KERNEL); if (!sops)
CVE-2011-1759
{'CWE-189'}
10
{'https://github.com/torvalds/linux/commit/0f22072ab50cac7983f9660d33974b45184da4f9'}
nvd
Integer overflow in the sys_oabi_semtimedop function in arch/arm/kernel/sys_oabi-compat.c in the Linux kernel before 2.6.39 on the ARM platform, when CONFIG_OABI_COMPAT is enabled, allows local users to gain privileges or cause a denial of service (heap memory corruption) by providing a crafted argument and leveraging ...
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0f22072ab50cac7983f9660d33974b45184da4f9
0f22072ab50cac7983f9660d33974b45184da4f9
SINGLE
['0f22072ab50cac7983f9660d33974b45184da4f9']
{'408133e9dca2b94c64b917b144ec816df913a94e'}
0f22072ab50cac7983f9660d33974b45184da4f9
1
04/29/2011, 14:48:07
ARM: 6891/1: prevent heap corruption in OABI semtimedop When CONFIG_OABI_COMPAT is set, the wrapper for semtimedop does not bound the nsops argument. A sufficiently large value will cause an integer overflow in allocation size, followed by copying too much data into the allocated buffer. Fix this by restricting nsop...
Dan Rosenberg
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -311,7 +311,7 @@ asmlinkage long sys_oabi_semtimedop(int semid,\n \tlong err;\n \tint i;\n \n-\tif (nsops < 1)\n+\tif (nsops < 1 || nsops > SEMOPM)\n \t\treturn -EINVAL;\n \tsops = kmalloc(sizeof(*sops) * nsops, GFP_KERNEL);\n \tif (!sops)...
c
CWE-189
[ "arch/arm/kernel/sys_oabi-compat.c" ]
arch/arm/kernel/sys_oabi-compat.c
1
enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig, ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig, ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes, ecryptfs_opt_unlink_sigs, ecryptfs_opt_mount_auth_tok_only, ecryptfs_opt_err }; static const match_table_t tokens = { static con...
enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig, ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig, ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes, ecryptfs_opt_unlink_sigs, ecryptfs_opt_mount_auth_tok_only, ecryptfs_opt_check_dev_ruid, ecryptfs_opt_err }; static const...
CVE-2011-1833
{'CWE-362', 'CWE-264'}
4.9
{'https://github.com/torvalds/linux/commit/764355487ea220fdc2faf128d577d7f679b91f97'}
nvd
Race condition in the ecryptfs_mount function in fs/ecryptfs/main.c in the eCryptfs subsystem in the Linux kernel before 3.1 allows local users to bypass intended file permissions via a mount.ecryptfs_private mount with a mismatched uid.
2012-10-03
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/764355487ea220fdc2faf128d577d7f679b91f97
764355487ea220fdc2faf128d577d7f679b91f97
SINGLE
['764355487ea220fdc2faf128d577d7f679b91f97']
{'99b373ff2d1246f64b97a3d449a2fd6018d504e6'}
764355487ea220fdc2faf128d577d7f679b91f97
1
07/22/2011, 15:14:15
Ecryptfs: Add mount option to check uid of device being mounted = expect uid Close a TOCTOU race for mounts done via ecryptfs-mount-private. The mount source (device) can be raced when the ownership test is done in userspace. Provide Ecryptfs a means to force the uid check at mount time. Signed-off-by: John Johansen...
John Johansen
null
{'additions': 21, 'deletions': 2, 'total': 23}
[ { "additions": 21, "changes": 23, "deletions": 2, "patch": "@@ -175,6 +175,7 @@ enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig,\n ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig,\n ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes,\n ecryptfs_opt_unlink_sigs, ecryp...
c
CWE-362
[ "fs/ecryptfs/main.c" ]
fs/ecryptfs/main.c
1
enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig, ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig, ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes, ecryptfs_opt_unlink_sigs, ecryptfs_opt_mount_auth_tok_only, ecryptfs_opt_err }; static const match_table_t tokens = { static con...
enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig, ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig, ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes, ecryptfs_opt_unlink_sigs, ecryptfs_opt_mount_auth_tok_only, ecryptfs_opt_check_dev_ruid, ecryptfs_opt_err }; static const...
CVE-2011-1833
{'CWE-362', 'CWE-264'}
4.9
{'https://github.com/torvalds/linux/commit/764355487ea220fdc2faf128d577d7f679b91f97'}
nvd
Race condition in the ecryptfs_mount function in fs/ecryptfs/main.c in the eCryptfs subsystem in the Linux kernel before 3.1 allows local users to bypass intended file permissions via a mount.ecryptfs_private mount with a mismatched uid.
2012-10-03
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/764355487ea220fdc2faf128d577d7f679b91f97
764355487ea220fdc2faf128d577d7f679b91f97
SINGLE
['764355487ea220fdc2faf128d577d7f679b91f97']
{'99b373ff2d1246f64b97a3d449a2fd6018d504e6'}
764355487ea220fdc2faf128d577d7f679b91f97
1
07/22/2011, 15:14:15
Ecryptfs: Add mount option to check uid of device being mounted = expect uid Close a TOCTOU race for mounts done via ecryptfs-mount-private. The mount source (device) can be raced when the ownership test is done in userspace. Provide Ecryptfs a means to force the uid check at mount time. Signed-off-by: John Johansen...
John Johansen
null
{'additions': 21, 'deletions': 2, 'total': 23}
[ { "additions": 21, "changes": 23, "deletions": 2, "patch": "@@ -175,6 +175,7 @@ enum { ecryptfs_opt_sig, ecryptfs_opt_ecryptfs_sig,\n ecryptfs_opt_encrypted_view, ecryptfs_opt_fnek_sig,\n ecryptfs_opt_fn_cipher, ecryptfs_opt_fn_cipher_key_bytes,\n ecryptfs_opt_unlink_sigs, ecryp...
c
CWE-264
[ "fs/ecryptfs/main.c" ]
fs/ecryptfs/main.c
1
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) avio_seek(pb, ape->wavheaderlength, SEEK_CUR); } if(ape->totalframes > UINT_MAX / sizeof(APEFrame)){ av_log(s, AV_LOG_ERROR, "Too many frames: %d\n", ape->totalframes); return -1;
static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap) avio_seek(pb, ape->wavheaderlength, SEEK_CUR); } if(!ape->totalframes){ av_log(s, AV_LOG_ERROR, "No frames in the file!\n"); return AVERROR(EINVAL); } if(ape->totalframes > UINT_MAX / sizeof(APEFrame))...
CVE-2011-2161
{'CWE-399'}
2.9
{'https://github.com/FFmpeg/FFmpeg/commit/8312e3fc9041027a33c8bc667bb99740fdf41dd5'}
nvd
The ape_read_header function in ape.c in libavformat in FFmpeg before 0.5.4, as used in MPlayer, VideoLAN VLC media player, and other products, allows remote attackers to cause a denial of service (application crash) via an APE (aka Monkey's Audio) file that contains a header but no frames.
2011-05-20
1
https://github.com/FFmpeg/FFmpeg
https://github.com/FFmpeg/FFmpeg/commit/8312e3fc9041027a33c8bc667bb99740fdf41dd5
8312e3fc9041027a33c8bc667bb99740fdf41dd5
SINGLE
['8312e3fc9041027a33c8bc667bb99740fdf41dd5']
{'1dac4d554734b16757b36a0adc71642c5ef2c4e6'}
8312e3fc9041027a33c8bc667bb99740fdf41dd5
1
03/15/2011, 09:19:43
Do not attempt to decode APE file with no frames This fixes invalid reads/writes with this sample: http://packetstorm.linuxsecurity.com/1103-exploits/vlc105-dos.txt
Kostya
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -242,6 +242,10 @@ static int ape_read_header(AVFormatContext * s, AVFormatParameters * ap)\n avio_seek(pb, ape->wavheaderlength, SEEK_CUR);\n }\n \n+ if(!ape->totalframes){\n+ av_log(s, AV_LOG_ERROR, \"No frames i...
c
CWE-399
[ "libavformat/ape.c" ]
libavformat/ape.c
1
static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) list_add_tail (&f->list, frags); found: if (f->map & (1 << rec)) { ldm_error ("Duplicate VBLK, part %d.", rec); f->map &= 0x7F; /* Mark the group as broken */
static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags) list_add_tail (&f->list, frags); found: if (rec >= f->num) { ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num); return false; } if (f->map & (1 << rec)) { ldm_error ("Duplicate VBLK, part %d.", rec); f->map &= 0x7F...
CVE-2011-2182
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/cae13fe4cc3f24820ffb990c09110626837e85d4'}
nvd
The ldm_frag_add function in fs/partitions/ldm.c in the Linux kernel before 2.6.39.1 does not properly handle memory allocation for non-initial fragments, which might allow local users to conduct buffer overflow attacks, and gain privileges or obtain sensitive information, via a crafted LDM partition table. NOTE: this...
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/cae13fe4cc3f24820ffb990c09110626837e85d4
cae13fe4cc3f24820ffb990c09110626837e85d4
SINGLE
['cae13fe4cc3f24820ffb990c09110626837e85d4']
{'e6c9366b2adb52cba64b359b3050200743c7568c'}
cae13fe4cc3f24820ffb990c09110626837e85d4
1
05/19/2011, 07:24:17
Fix for buffer overflow in ldm_frag_add not sufficient As Ben Hutchings discovered [1], the patch for CVE-2011-1017 (buffer overflow in ldm_frag_add) is not sufficient. The original patch in commit c340b1d64000 ("fs/partitions/ldm.c: fix oops caused by corrupted partition table") does not consider that, for subsequen...
Timo Warns
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -1335,6 +1335,11 @@ static bool ldm_frag_add (const u8 *data, int size, struct list_head *frags)\n \n \tlist_add_tail (&f->list, frags);\n found:\n+\tif (rec >= f->num) {\n+\t\tldm_error(\"REC value (%d) exceeds NUM value (%d)\", rec, f->n...
c
CWE-119
[ "fs/partitions/ldm.c" ]
fs/partitions/ldm.c
1
static struct rmap_item *scan_get_next_rmap_item(struct page **page) slot = list_entry(slot->mm_list.next, struct mm_slot, mm_list); ksm_scan.mm_slot = slot; spin_unlock(&ksm_mmlist_lock); next_mm: ksm_scan.address = 0; ksm_scan.rmap_list = &slot->rmap_list;
static struct rmap_item *scan_get_next_rmap_item(struct page **page) slot = list_entry(slot->mm_list.next, struct mm_slot, mm_list); ksm_scan.mm_slot = slot; spin_unlock(&ksm_mmlist_lock); /* * Although we tested list_empty() above, a racing __ksm_exit * of the last mm on the list may have removed it sin...
CVE-2011-2183
{'CWE-362'}
6.9
{'https://github.com/torvalds/linux/commit/2b472611a32a72f4a118c069c2d62a1a3f087afd'}
nvd
Race condition in the scan_get_next_rmap_item function in mm/ksm.c in the Linux kernel before 2.6.39.3, when Kernel SamePage Merging (KSM) is enabled, allows local users to cause a denial of service (NULL pointer dereference) or possibly have unspecified other impact via a crafted application.
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/2b472611a32a72f4a118c069c2d62a1a3f087afd
2b472611a32a72f4a118c069c2d62a1a3f087afd
SINGLE
['2b472611a32a72f4a118c069c2d62a1a3f087afd']
{'c7cbb02222eccb82bfd42696b01abceddae663f2'}
2b472611a32a72f4a118c069c2d62a1a3f087afd
1
06/15/2011, 22:08:58
ksm: fix NULL pointer dereference in scan_get_next_rmap_item() Andrea Righi reported a case where an exiting task can race against ksmd::scan_get_next_rmap_item (http://lkml.org/lkml/2011/6/1/742) easily triggering a NULL pointer dereference in ksmd. ksm_scan.mm_slot == &ksm_mm_head with only one registered mm CPU 1...
Hugh Dickins
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -1302,6 +1302,12 @@ static struct rmap_item *scan_get_next_rmap_item(struct page **page)\n \t\tslot = list_entry(slot->mm_list.next, struct mm_slot, mm_list);\n \t\tksm_scan.mm_slot = slot;\n \t\tspin_unlock(&ksm_mmlist_lock);\n+\t\t/*\n+\...
c
CWE-362
[ "mm/ksm.c" ]
mm/ksm.c
1
SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen) return -EFAULT; len = namelen; if (namelen > 32) len = 32; down_read(&uts_sem); SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user *, buf, long, count) down_read(&uts_sem); res = sysinfo_table[offset]; len = strlen(res)+1; if (len >...
SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen) return -EFAULT; len = namelen; if (len > 32) len = 32; down_read(&uts_sem); SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user *, buf, long, count) down_read(&uts_sem); res = sysinfo_table[offset]; len = strlen(res)+1; if ((unsigned...
CVE-2011-2208
{'CWE-189'}
2.9
{'https://github.com/torvalds/linux/commit/21c5977a836e399fc710ff2c5367845ed5c2527f'}
nvd
Integer signedness error in the osf_getdomainname function in arch/alpha/kernel/osf_sys.c in the Linux kernel before 2.6.39.4 on the Alpha platform allows local users to obtain sensitive information from kernel memory via a crafted call.
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/21c5977a836e399fc710ff2c5367845ed5c2527f
21c5977a836e399fc710ff2c5367845ed5c2527f
SINGLE
['21c5977a836e399fc710ff2c5367845ed5c2527f']
{'ec8f9ceacef719a844ca269d654502af6a00a273'}
21c5977a836e399fc710ff2c5367845ed5c2527f
1
06/15/2011, 22:09:01
alpha: fix several security issues Fix several security issues in Alpha-specific syscalls. Untested, but mostly trivial. 1. Signedness issue in osf_getdomainname allows copying out-of-bounds kernel memory to userland. 2. Signedness issue in osf_sysinfo allows copying large amounts of kernel memory to userland. 3. ...
Dan Rosenberg
null
{'additions': 7, 'deletions': 4, 'total': 11}
[ { "additions": 7, "changes": 11, "deletions": 4, "patch": "@@ -409,7 +409,7 @@ SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen)\n \t\treturn -EFAULT;\n \n \tlen = namelen;\n-\tif (namelen > 32)\n+\tif (len > 32)\n \t\tlen = 32;\n \n \tdown_read(&uts_sem);\n@@ -594,7 +594,7 @@ SY...
c
CWE-189
[ "arch/alpha/kernel/osf_sys.c" ]
arch/alpha/kernel/osf_sys.c
1
void sctp_wait_for_close(struct sock *sk, long timeout) finish_wait(sk->sk_sleep, &wait); } /* Populate the fields of the newsk from the oldsk and migrate the assoc * and its messages to the newsk. */ static void sctp_sock_migrate(struct sock *oldsk, struct sock *newsk, sctp_skb_for_each(skb, &oldsk->sk_receive_q...
void sctp_wait_for_close(struct sock *sk, long timeout) finish_wait(sk->sk_sleep, &wait); } static void sctp_sock_rfree_frag(struct sk_buff *skb) { struct sk_buff *frag; if (!skb->data_len) goto done; /* Don't forget the fragments. */ for (frag = skb_shinfo(skb)->frag_list; frag; frag = frag->next) sctp_so...
CVE-2011-2482
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d'}
nvd
A certain Red Hat patch to the sctp_sock_migrate function in net/sctp/socket.c in the Linux kernel before 2.6.21, as used in Red Hat Enterprise Linux (RHEL) 5, allows remote attackers to cause a denial of service (NULL pointer dereference and OOPS) via a crafted SCTP packet.
2013-06-08
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
SINGLE
['ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d']
{'c2ecba71717c4f60671175fd26083c35a4b9ad58'}
ea2bc483ff5caada7c4aa0d5fbf87d3a6590273d
1
04/17/2007, 19:49:53
[SCTP]: Fix assertion (!atomic_read(&sk->sk_rmem_alloc)) failed message In current implementation, LKSCTP does receive buffer accounting for data in sctp_receive_queue and pd_lobby. However, LKSCTP don't do accounting for data in frag_list when data is fragmented. In addition, LKSCTP doesn't do accounting for data in ...
Tsutomu Fujii
null
{'additions': 44, 'deletions': 4, 'total': 48}
[ { "additions": 44, "changes": 48, "deletions": 4, "patch": "@@ -5638,6 +5638,36 @@ void sctp_wait_for_close(struct sock *sk, long timeout)\n \tfinish_wait(sk->sk_sleep, &wait);\n }\n \n+static void sctp_sock_rfree_frag(struct sk_buff *skb)\n+{\n+\tstruct sk_buff *frag;\n+\n+\tif (!skb->data_len)\n+\...
c
CWE-476
[ "net/sctp/socket.c" ]
net/sctp/socket.c
1
static struct genl_ops taskstats_ops = { .cmd = TASKSTATS_CMD_GET, .doit = taskstats_user_cmd, .policy = taskstats_cmd_get_policy, }; static struct genl_ops cgroupstats_ops = {
static struct genl_ops taskstats_ops = { .cmd = TASKSTATS_CMD_GET, .doit = taskstats_user_cmd, .policy = taskstats_cmd_get_policy, .flags = GENL_ADMIN_PERM, }; static struct genl_ops cgroupstats_ops = {
CVE-2011-2494
{'CWE-200'}
2.9
{'https://github.com/torvalds/linux/commit/1a51410abe7d0ee4b1d112780f46df87d3621043'}
nvd
kernel/taskstats.c in the Linux kernel before 3.1 allows local users to obtain sensitive I/O statistics by sending taskstats commands to a netlink socket, as demonstrated by discovering the length of another user's password.
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1a51410abe7d0ee4b1d112780f46df87d3621043
1a51410abe7d0ee4b1d112780f46df87d3621043
SINGLE
['1a51410abe7d0ee4b1d112780f46df87d3621043']
{'b6a68a5ba4a5111379625d6d921e1c24fc17dc3a'}
1a51410abe7d0ee4b1d112780f46df87d3621043
1
09/20/2011, 00:04:37
Make TASKSTATS require root access Ok, this isn't optimal, since it means that 'iotop' needs admin capabilities, and we may have to work on this some more. But at the same time it is very much not acceptable to let anybody just read anybody elses IO statistics quite at this level. Use of the GENL_ADMIN_PERM suggeste...
Linus Torvalds
null
{'additions': 1, 'deletions': 0, 'total': 1}
[ { "additions": 1, "changes": 1, "deletions": 0, "patch": "@@ -655,6 +655,7 @@ static struct genl_ops taskstats_ops = {\n \t.cmd\t\t= TASKSTATS_CMD_GET,\n \t.doit\t\t= taskstats_user_cmd,\n \t.policy\t\t= taskstats_cmd_get_policy,\n+\t.flags\t\t= GENL_ADMIN_PERM,\n };\n \n static struct genl_ops cgro...
c
CWE-200
[ "kernel/taskstats.c" ]
kernel/taskstats.c
1
static int do_io_accounting(struct task_struct *task, char *buffer, int whole) struct task_io_accounting acct = task->ioac; unsigned long flags; if (whole && lock_task_sighand(task, &flags)) { struct task_struct *t = task; static const struct pid_entry tgid_base_stuff[] = { REG("coredump_filter", S_IRUGO|S_IWU...
static int do_io_accounting(struct task_struct *task, char *buffer, int whole) struct task_io_accounting acct = task->ioac; unsigned long flags; if (!ptrace_may_access(task, PTRACE_MODE_READ)) return -EACCES; if (whole && lock_task_sighand(task, &flags)) { struct task_struct *t = task; static const struct p...
CVE-2011-2495
{'CWE-264'}
2.9
{'https://github.com/torvalds/linux/commit/1d1221f375c94ef961ba8574ac4f85c8870ddd51'}
nvd
fs/proc/base.c in the Linux kernel before 2.6.39.4 does not properly restrict access to /proc/#####/io files, which allows local users to obtain sensitive I/O statistics by polling a file, as demonstrated by discovering the length of another user's password.
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/1d1221f375c94ef961ba8574ac4f85c8870ddd51
1d1221f375c94ef961ba8574ac4f85c8870ddd51
SINGLE
['1d1221f375c94ef961ba8574ac4f85c8870ddd51']
{'b0af8dfdd67699e25083478c63eedef2e72ebd85'}
1d1221f375c94ef961ba8574ac4f85c8870ddd51
1
06/24/2011, 12:08:38
proc: restrict access to /proc/PID/io /proc/PID/io may be used for gathering private information. E.g. for openssh and vsftpd daemons wchars/rchars may be used to learn the precise password length. Restrict it to processes being able to ptrace the target process. ptrace_may_access() is needed to prevent keeping op...
Vasiliy Kulikov
null
{'additions': 5, 'deletions': 2, 'total': 7}
[ { "additions": 5, "changes": 7, "deletions": 2, "patch": "@@ -2708,6 +2708,9 @@ static int do_io_accounting(struct task_struct *task, char *buffer, int whole)\n \tstruct task_io_accounting acct = task->ioac;\n \tunsigned long flags;\n \n+\tif (!ptrace_may_access(task, PTRACE_MODE_READ))\n+\t\treturn...
c
CWE-264
[ "fs/proc/base.c" ]
fs/proc/base.c
1
static struct vm_area_struct *vma_to_resize(unsigned long addr, if (old_len > vma->vm_end - addr) goto Efault; if (vma->vm_flags & (VM_DONTEXPAND | VM_PFNMAP)) { if (new_len > old_len) goto Efault; } if (vma->vm_flags & VM_LOCKED) {
static struct vm_area_struct *vma_to_resize(unsigned long addr, if (old_len > vma->vm_end - addr) goto Efault; /* Need to be careful about a growing mapping */ if (new_len > old_len) { unsigned long pgoff; if (vma->vm_flags & (VM_DONTEXPAND | VM_PFNMAP)) goto Efault; pgoff = (addr - vma->vm_start) >> P...
CVE-2011-2496
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/982134ba62618c2d69fbbbd166d0a11ee3b7e3d8'}
nvd
Integer overflow in the vma_to_resize function in mm/mremap.c in the Linux kernel before 2.6.39 allows local users to cause a denial of service (BUG_ON and system crash) via a crafted mremap system call that expands a memory mapping.
2012-06-13
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/982134ba62618c2d69fbbbd166d0a11ee3b7e3d8
982134ba62618c2d69fbbbd166d0a11ee3b7e3d8
SINGLE
['982134ba62618c2d69fbbbd166d0a11ee3b7e3d8']
{'6221f222c0ebf1acdf7abcf927178f40e1a65e2a'}
982134ba62618c2d69fbbbd166d0a11ee3b7e3d8
1
04/07/2011, 14:35:50
mm: avoid wrapping vm_pgoff in mremap() The normal mmap paths all avoid creating a mapping where the pgoff inside the mapping could wrap around due to overflow. However, an expanding mremap() can take such a non-wrapping mapping and make it bigger and cause a wrapping condition. Noticed by Robert Swiecki when runnin...
Linus Torvalds
null
{'additions': 9, 'deletions': 2, 'total': 11}
[ { "additions": 9, "changes": 11, "deletions": 2, "patch": "@@ -277,9 +277,16 @@ static struct vm_area_struct *vma_to_resize(unsigned long addr,\n \tif (old_len > vma->vm_end - addr)\n \t\tgoto Efault;\n \n-\tif (vma->vm_flags & (VM_DONTEXPAND | VM_PFNMAP)) {\n-\t\tif (new_len > old_len)\n+\t/* Need ...
c
CWE-189
[ "mm/mremap.c" ]
mm/mremap.c
1
static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) i = 0; if (info->attrs[NL80211_ATTR_SCAN_SSIDS]) { nla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_SSIDS], tmp) { if (request->ssids[i].ssid_len > IEEE80211_MAX_SSID_LEN) { err = -EINVAL; goto out_free; } memcpy(r...
static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info) i = 0; if (info->attrs[NL80211_ATTR_SCAN_SSIDS]) { nla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_SSIDS], tmp) { request->ssids[i].ssid_len = nla_len(attr); if (request->ssids[i].ssid_len > IEEE80211_MAX_SSID_LEN) { err...
CVE-2011-2517
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/208c72f4fe44fe09577e7975ba0e7fa0278f3d03'}
nvd
Multiple buffer overflows in net/wireless/nl80211.c in the Linux kernel before 2.6.39.2 allow local users to gain privileges by leveraging the CAP_NET_ADMIN capability during scan operations with a long SSID value.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/208c72f4fe44fe09577e7975ba0e7fa0278f3d03
208c72f4fe44fe09577e7975ba0e7fa0278f3d03
SINGLE
['208c72f4fe44fe09577e7975ba0e7fa0278f3d03']
{'21bc7af6e5e684b44725b20f679e701e38ceef15'}
208c72f4fe44fe09577e7975ba0e7fa0278f3d03
1
05/18/2011, 21:43:38
nl80211: fix check for valid SSID size in scan operations In both trigger_scan and sched_scan operations, we were checking for the SSID length before assigning the value correctly. Since the memory was just kzalloc'ed, the check was always failing and SSID with over 32 characters were allowed to go through. This was...
Luciano Coelho
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -3406,12 +3406,12 @@ static int nl80211_trigger_scan(struct sk_buff *skb, struct genl_info *info)\n \ti = 0;\n \tif (info->attrs[NL80211_ATTR_SCAN_SSIDS]) {\n \t\tnla_for_each_nested(attr, info->attrs[NL80211_ATTR_SCAN_SSIDS], tmp) {\n+\t\...
c
CWE-119
[ "net/wireless/nl80211.c" ]
net/wireless/nl80211.c
1
static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name, } if (need_dev) { /* Get mount point or device file. */ if (kern_path(dev_name, LOOKUP_FOLLOW, &path)) { error = -ENOENT; goto out; }
static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name, } if (need_dev) { /* Get mount point or device file. */ if (!dev_name || kern_path(dev_name, LOOKUP_FOLLOW, &path)) { error = -ENOENT; goto out; }
CVE-2011-2518
{'CWE-20'}
6.9
{'https://github.com/torvalds/linux/commit/4e78c724d47e2342aa8fde61f6b8536f662f795f'}
nvd
The tomoyo_mount_acl function in security/tomoyo/mount.c in the Linux kernel before 2.6.39.2 calls the kern_path function with arguments taken directly from a mount system call, which allows local users to cause a denial of service (OOPS) or possibly have unspecified other impact via a NULL value for the device name.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/4e78c724d47e2342aa8fde61f6b8536f662f795f
4e78c724d47e2342aa8fde61f6b8536f662f795f
SINGLE
['4e78c724d47e2342aa8fde61f6b8536f662f795f']
{'2c53b436a30867eb6b47dd7bab23ba638d1fb0d2'}
4e78c724d47e2342aa8fde61f6b8536f662f795f
1
06/13/2011, 04:49:11
TOMOYO: Fix oops in tomoyo_mount_acl(). In tomoyo_mount_acl() since 2.6.36, kern_path() was called without checking dev_name != NULL. As a result, an unprivileged user can trigger oops by issuing mount(NULL, "/", "ext3", 0, NULL) request. Fix this by checking dev_name != NULL before calling kern_path(dev_name). Signe...
Tetsuo Handa
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -138,7 +138,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,\n \t}\n \tif (need_dev) {\n \t\t/* Get mount point or device file. */\n-\t\tif (kern_path(dev_name, LOOKUP_FOLLOW, &path)) {\n+\t\tif (!dev_name ||...
c
CWE-20
[ "security/tomoyo/mount.c" ]
security/tomoyo/mount.c
1
static inline void x86_assign_hw_event(struct perf_event *event, hwc->event_base = 0; } else if (hwc->idx >= X86_PMC_IDX_FIXED) { hwc->config_base = MSR_ARCH_PERFMON_FIXED_CTR_CTRL; hwc->event_base = MSR_ARCH_PERFMON_FIXED_CTR0; } else { hwc->config_base = x86_pmu_config_addr(hwc->idx); hwc->event_base = ...
static inline void x86_assign_hw_event(struct perf_event *event, hwc->event_base = 0; } else if (hwc->idx >= X86_PMC_IDX_FIXED) { hwc->config_base = MSR_ARCH_PERFMON_FIXED_CTR_CTRL; hwc->event_base = MSR_ARCH_PERFMON_FIXED_CTR0 + (hwc->idx - X86_PMC_IDX_FIXED); } else { hwc->config_base = x86_pmu_config_addr...
CVE-2011-2521
{'CWE-189'}
6.9
{'https://github.com/torvalds/linux/commit/fc66c5210ec2539e800e87d7b3a985323c7be96e'}
nvd
The x86_assign_hw_event function in arch/x86/kernel/cpu/perf_event.c in the Performance Events subsystem in the Linux kernel before 2.6.39 does not properly calculate counter values, which allows local users to cause a denial of service (panic) via the perf program.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/fc66c5210ec2539e800e87d7b3a985323c7be96e
fc66c5210ec2539e800e87d7b3a985323c7be96e
SINGLE
['fc66c5210ec2539e800e87d7b3a985323c7be96e']
{'1ef1d1c2353967e2d61ecaddf76edfd058a778b4'}
fc66c5210ec2539e800e87d7b3a985323c7be96e
1
03/19/2011, 17:20:05
perf, x86: Fix Intel fixed counters base initialization The following patch solves the problems introduced by Robert's commit 41bf498 and reported by Arun Sharma. This commit gets rid of the base + index notation for reading and writing PMU msrs. The problem is that for fixed counters, the new calculation for the bas...
Stephane Eranian
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -912,7 +912,7 @@ static inline void x86_assign_hw_event(struct perf_event *event,\n \t\thwc->event_base\t= 0;\n \t} else if (hwc->idx >= X86_PMC_IDX_FIXED) {\n \t\thwc->config_base = MSR_ARCH_PERFMON_FIXED_CTR_CTRL;\n-\t\thwc->event_base =...
c
CWE-189
[ "arch/x86/kernel/cpu/perf_event.c" ]
arch/x86/kernel/cpu/perf_event.c
1
int ptrace_setxregs(struct task_struct *child, void __user *uregs) elf_xtregs_t *xtregs = uregs; int ret = 0; #if XTENSA_HAVE_COPROCESSORS /* Flush all coprocessors before we overwrite them. */ coprocessor_flush_all(ti);
int ptrace_setxregs(struct task_struct *child, void __user *uregs) elf_xtregs_t *xtregs = uregs; int ret = 0; if (!access_ok(VERIFY_READ, uregs, sizeof(elf_xtregs_t))) return -EFAULT; #if XTENSA_HAVE_COPROCESSORS /* Flush all coprocessors before we overwrite them. */ coprocessor_flush_all(ti);
CVE-2011-2707
{'CWE-200'}
4.9
{'https://github.com/torvalds/linux/commit/0d0138ebe24b94065580bd2601f8bb7eb6152f56'}
nvd
The ptrace_setxregs function in arch/xtensa/kernel/ptrace.c in the Linux kernel before 3.1 does not validate user-space pointers, which allows local users to obtain sensitive information from kernel memory locations via a crafted PTRACE_SETXTREGS request.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/0d0138ebe24b94065580bd2601f8bb7eb6152f56
0d0138ebe24b94065580bd2601f8bb7eb6152f56
SINGLE
['0d0138ebe24b94065580bd2601f8bb7eb6152f56']
{'67db392d1124e14684e23deb572de2a63b9b3b69'}
0d0138ebe24b94065580bd2601f8bb7eb6152f56
1
07/26/2011, 00:11:53
xtensa: prevent arbitrary read in ptrace Prevent an arbitrary kernel read. Check the user pointer with access_ok() before copying data in. [akpm@linux-foundation.org: s/EIO/EFAULT/] Signed-off-by: Dan Rosenberg <drosenberg@vsecurity.com> Cc: Christian Zankel <chris@zankel.net> Cc: Oleg Nesterov <oleg@redhat.com> Cc:...
Dan Rosenberg
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -147,6 +147,9 @@ int ptrace_setxregs(struct task_struct *child, void __user *uregs)\n \telf_xtregs_t *xtregs = uregs;\n \tint ret = 0;\n \n+\tif (!access_ok(VERIFY_READ, uregs, sizeof(elf_xtregs_t)))\n+\t\treturn -EFAULT;\n+\n #if XTENSA_H...
c
CWE-200
[ "arch/xtensa/kernel/ptrace.c" ]
arch/xtensa/kernel/ptrace.c
1
static long pmcraid_ioctl_passthrough( pmcraid_err("couldn't build passthrough ioadls\n"); goto out_free_buffer; } } /* If data is being written into the device, copy the data from user
static long pmcraid_ioctl_passthrough( pmcraid_err("couldn't build passthrough ioadls\n"); goto out_free_buffer; } } else if (request_size < 0) { rc = -EINVAL; goto out_free_buffer; } /* If data is being written into the device, copy the data from user
CVE-2011-2906
{'CWE-400'}
6.9
{'https://github.com/torvalds/linux/commit/b5b515445f4f5a905c5dd27e6e682868ccd6c09d'}
nvd
** DISPUTED ** Integer signedness error in the pmcraid_ioctl_passthrough function in drivers/scsi/pmcraid.c in the Linux kernel before 3.1 might allow local users to cause a denial of service (memory consumption or memory corruption) via a negative size value in an ioctl call. NOTE: this may be a vulnerability only in...
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b5b515445f4f5a905c5dd27e6e682868ccd6c09d
b5b515445f4f5a905c5dd27e6e682868ccd6c09d
SINGLE
['b5b515445f4f5a905c5dd27e6e682868ccd6c09d']
{'5911e963d3718e306bcac387b83e259aa4228896'}
b5b515445f4f5a905c5dd27e6e682868ccd6c09d
1
07/11/2011, 21:08:23
[SCSI] pmcraid: reject negative request size There's a code path in pmcraid that can be reached via device ioctl that causes all sorts of ugliness, including heap corruption or triggering the OOM killer due to consecutive allocation of large numbers of pages. First, the user can call pmcraid_chr_ioctl(), with a type ...
Dan Rosenberg
null
{'additions': 3, 'deletions': 0, 'total': 3}
[ { "additions": 3, "changes": 3, "deletions": 0, "patch": "@@ -3871,6 +3871,9 @@ static long pmcraid_ioctl_passthrough(\n \t\t\tpmcraid_err(\"couldn't build passthrough ioadls\\n\");\n \t\t\tgoto out_free_buffer;\n \t\t}\n+\t} else if (request_size < 0) {\n+\t\trc = -EINVAL;\n+\t\tgoto out_free_buffe...
c
CWE-400
[ "drivers/scsi/pmcraid.c" ]
drivers/scsi/pmcraid.c
1
static int do_devinfo_ioctl(struct comedi_device *dev, /* fill devinfo structure */ devinfo.version_code = COMEDI_VERSION_CODE; devinfo.n_subdevs = dev->n_subdevices; memcpy(devinfo.driver_name, dev->driver->driver_name, COMEDI_NAMELEN); memcpy(devinfo.board_name, dev->board_name, COMEDI_NAMELEN); if (read_subd...
static int do_devinfo_ioctl(struct comedi_device *dev, /* fill devinfo structure */ devinfo.version_code = COMEDI_VERSION_CODE; devinfo.n_subdevs = dev->n_subdevices; strlcpy(devinfo.driver_name, dev->driver->driver_name, COMEDI_NAMELEN); strlcpy(devinfo.board_name, dev->board_name, COMEDI_NAMELEN); if (read_su...
CVE-2011-2909
{'CWE-200'}
6.9
{'https://github.com/torvalds/linux/commit/819cbb120eaec7e014e5abd029260db1ca8c5735'}
nvd
The do_devinfo_ioctl function in drivers/staging/comedi/comedi_fops.c in the Linux kernel before 3.1 allows local users to obtain sensitive information from kernel memory via a copy of a short string.
2014-02-15
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/819cbb120eaec7e014e5abd029260db1ca8c5735
819cbb120eaec7e014e5abd029260db1ca8c5735
SINGLE
['819cbb120eaec7e014e5abd029260db1ca8c5735']
{'85678d5d27cb0ea1005316f51b1b062bf4609b66'}
819cbb120eaec7e014e5abd029260db1ca8c5735
1
06/26/2011, 08:56:22
staging: comedi: fix infoleak to userspace driver_name and board_name are pointers to strings, not buffers of size COMEDI_NAMELEN. Copying COMEDI_NAMELEN bytes of a string containing less than COMEDI_NAMELEN-1 bytes would leak some unrelated bytes. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Cc: stable <sta...
Vasiliy Kulikov
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -383,8 +383,8 @@ static int do_devinfo_ioctl(struct comedi_device *dev,\n \t/* fill devinfo structure */\n \tdevinfo.version_code = COMEDI_VERSION_CODE;\n \tdevinfo.n_subdevs = dev->n_subdevices;\n-\tmemcpy(devinfo.driver_name, dev->driver...
c
CWE-200
[ "drivers/staging/comedi/comedi_fops.c" ]
drivers/staging/comedi/comedi_fops.c
1
function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e $t_first_flag = true; foreach( $t_filter[FILTER_PROPERTY_REPORTER_ID] as $t_current ) { $t_this_name = ''; echo '<input type="hidden" name="', FILTER_PROPERTY_REPORTER_ID, '[]" value="', $t_current, '" />'; if( filter_fi...
function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e $t_first_flag = true; foreach( $t_filter[FILTER_PROPERTY_REPORTER_ID] as $t_current ) { $t_this_name = ''; echo '<input type="hidden" name="', FILTER_PROPERTY_REPORTER_ID, '[]" value="', string_attribute( $t_current ), '" />...
CVE-2011-2938
{'CWE-79'}
2.9
{'https://github.com/mantisbt/mantisbt/commit/317f3db3a3c68775de3acf3b15f55b1e3c18f93b'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in filter_api.php in MantisBT before 1.2.7 allow remote attackers to inject arbitrary web script or HTML via a parameter, as demonstrated by the project_id parameter to search.php.
2011-09-21
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/317f3db3a3c68775de3acf3b15f55b1e3c18f93b
317f3db3a3c68775de3acf3b15f55b1e3c18f93b
SINGLE
['317f3db3a3c68775de3acf3b15f55b1e3c18f93b']
{'9869270e87121032089ea28c4a389fb460d2c739'}
317f3db3a3c68775de3acf3b15f55b1e3c18f93b
1
08/18/2011, 14:43:04
Fix #13245: XSS issues with search.php parameters Net.Edit0r (Net.Edit0r@Att.net) from BlACK Hat Group [http://black-hg.org] posted a vulnerability report for an XSS issue in search.php for MantisBT 1.2.6. The full report is available at http://packetstormsecurity.org/files/104149 filter_api.php is the culprit for t...
David Hicks
null
{'additions': 67, 'deletions': 67, 'total': 134}
[ { "additions": 67, "changes": 134, "deletions": 67, "patch": "@@ -2198,7 +2198,7 @@ function filter_draw_selection_area2( $p_page_number, $p_for_screen = true, $p_e\n \t\t\t$t_first_flag = true;\n \t\t\tforeach( $t_filter[FILTER_PROPERTY_REPORTER_ID] as $t_current ) {\n \t\t\t\t$t_this_name = '';\n-...
php
CWE-79
[ "core/filter_api.php" ]
core/filter_api.php
1
def rebuild_time @arch = params[:arch] @hosts = begin Integer(params[:hosts] || '40') rescue 40 end @scheduler = params[:scheduler] || 'needed' bdep = find_cached(BuilddepInfo, :project => @project.name, :repository => @repository, :arch => @arch) jobs = find_cached(Jobhislist , :project => @projec...
def rebuild_time @arch = params[:arch] @hosts = begin Integer(params[:hosts] || '40') rescue 40 end @scheduler = params[:scheduler] || 'needed' unless ["fifo", "lifo", "random", "btime", "needed", "neededb", "longest_data", "longested_triedread", "longest"].include? @scheduler flash[:error] = "In...
CVE-2011-3178
{'CWE-94'}
6.4
{'https://github.com/openSUSE/open-build-service/commit/cbfe2ed36dd77c0843702935dea7f914bb599201'}
nvd
In the web ui of the openbuildservice before 2.3.0 a code injection of the project rebuildtimes statistics could be used by authorized attackers to execute shellcode.
2018-03-20
1
https://github.com/openSUSE/open-build-service
https://github.com/openSUSE/open-build-service/commit/cbfe2ed36dd77c0843702935dea7f914bb599201
cbfe2ed36dd77c0843702935dea7f914bb599201
SINGLE
['cbfe2ed36dd77c0843702935dea7f914bb599201']
{'006efdd04a28b9e47647b81eaf93d436c732b3dd'}
cbfe2ed36dd77c0843702935dea7f914bb599201
1
09/02/2011, 12:39:57
[webui] check the value of the scheduler parameter
Stephan Kulow
{'com_1': {'author': 'msmeissn', 'datetime': '03/10/2017, 17:34:37', 'body': 'https://bugzilla.suse.com/show_bug.cgi?id=723788\r\nCVE-2011-3178'}}
{'additions': 15, 'deletions': 3, 'total': 18}
[ { "additions": 15, "changes": 18, "deletions": 3, "patch": "@@ -457,6 +457,11 @@ def rebuild_time\n @arch = params[:arch]\n @hosts = begin Integer(params[:hosts] || '40') rescue 40 end\n @scheduler = params[:scheduler] || 'needed'\n+ unless [\"fifo\", \"lifo\", \"random\", \"btime\", ...
rb
CWE-94
[ "src/webui/app/controllers/project_controller.rb" ]
src/webui/app/controllers/project_controller.rb
1
int CIFSFindNext(const int xid, struct cifs_tcon *tcon, T2_FNEXT_RSP_PARMS *parms; char *response_data; int rc = 0; int bytes_returned, name_len; __u16 params, byte_count; cFYI(1, "In FindNext");
int CIFSFindNext(const int xid, struct cifs_tcon *tcon, T2_FNEXT_RSP_PARMS *parms; char *response_data; int rc = 0; int bytes_returned; unsigned int name_len; __u16 params, byte_count; cFYI(1, "In FindNext");
CVE-2011-3191
{'CWE-119'}
10
{'https://github.com/torvalds/linux/commit/9438fabb73eb48055b58b89fc51e0bc4db22fabd'}
nvd
Integer signedness error in the CIFSFindNext function in fs/cifs/cifssmb.c in the Linux kernel before 3.1 allows remote CIFS servers to cause a denial of service (memory corruption) or possibly have unspecified other impact via a large length value in a response to a read request for a directory.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/9438fabb73eb48055b58b89fc51e0bc4db22fabd
9438fabb73eb48055b58b89fc51e0bc4db22fabd
SINGLE
['9438fabb73eb48055b58b89fc51e0bc4db22fabd']
{'9d037a777695993ec7437e5f451647dea7919d4c'}
9438fabb73eb48055b58b89fc51e0bc4db22fabd
1
08/23/2011, 11:21:28
cifs: fix possible memory corruption in CIFSFindNext The name_len variable in CIFSFindNext is a signed int that gets set to the resume_name_len in the cifs_search_info. The resume_name_len however is unsigned and for some infolevels is populated directly from a 32 bit value sent by the server. If the server sends a v...
Jeff Layton
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -4079,7 +4079,8 @@ int CIFSFindNext(const int xid, struct cifs_tcon *tcon,\n \tT2_FNEXT_RSP_PARMS *parms;\n \tchar *response_data;\n \tint rc = 0;\n-\tint bytes_returned, name_len;\n+\tint bytes_returned;\n+\tunsigned int name_len;\n \t__u...
c
CWE-119
[ "fs/cifs/cifssmb.c" ]
fs/cifs/cifssmb.c
1
static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, if (outarg.namelen > FUSE_NAME_MAX) goto err; name.name = buf; name.len = outarg.namelen; err = fuse_copy_one(cs, buf, outarg.namelen + 1);
static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, if (outarg.namelen > FUSE_NAME_MAX) goto err; err = -EINVAL; if (size != sizeof(outarg) + outarg.namelen + 1) goto err; name.name = buf; name.len = outarg.namelen; err = fuse_copy_one(cs, buf, outarg.namelen + 1);
CVE-2011-3353
{'CWE-120'}
6.9
{'https://github.com/torvalds/linux/commit/c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae'}
nvd
Buffer overflow in the fuse_notify_inval_entry function in fs/fuse/dev.c in the Linux kernel before 3.1 allows local users to cause a denial of service (BUG_ON and system crash) by leveraging the ability to mount a FUSE filesystem.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae
c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae
SINGLE
['c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae']
{'478e0841b3dce3edc2c67bf0fc51af30f582e9e2'}
c2183d1e9b3f313dd8ba2b1b0197c8d9fb86a7ae
1
08/24/2011, 08:20:17
fuse: check size of FUSE_NOTIFY_INVAL_ENTRY message FUSE_NOTIFY_INVAL_ENTRY didn't check the length of the write so the message processing could overrun and result in a "kernel BUG at fs/fuse/dev.c:629!" Reported-by: Han-Wen Nienhuys <hanwenn@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: stable@kern...
Miklos Szeredi
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -1358,6 +1358,10 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size,\n \tif (outarg.namelen > FUSE_NAME_MAX)\n \t\tgoto err;\n \n+\terr = -EINVAL;\n+\tif (size != sizeof(outarg) + outarg.namelen + 1)\n+\t\tgoto e...
c
CWE-120
[ "fs/fuse/dev.c" ]
fs/fuse/dev.c
1
$t_host = 'localhost'; } $t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] ); $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . '/' : $t_path; $t_path = basename( $t_path ) == "soap" ? dirname( dirname( $t_path ) ) . '/' : $t_path; $t_url = $t_protocol . ...
$t_host = 'localhost'; } $t_self = $_SERVER['SCRIPT_NAME']; $t_self = filter_var( $t_self, FILTER_SANITIZE_STRING ); $t_path = str_replace( basename( $t_self ), '', $t_self ); $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . '/' : $t_path; $t_path = basename( $t_path ) == "soap" ? dirnam...
CVE-2011-3356
{'CWE-79'}
2.9
{'https://github.com/mantisbt/mantisbt/commit/d00745f5e267eba4ca34286d125de685bc3a8034'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in config_defaults_inc.php in MantisBT before 1.2.8 allow remote attackers to inject arbitrary web script or HTML via the PATH_INFO, as demonstrated by the PATH_INFO to (1) manage_config_email_page.php, (2) manage_config_workflow_page.php, or (3) bugs/plugin.php.
2011-09-21
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/d00745f5e267eba4ca34286d125de685bc3a8034
d00745f5e267eba4ca34286d125de685bc3a8034
SINGLE
['d00745f5e267eba4ca34286d125de685bc3a8034']
{'6ede60d3db9e202044f135001589cce941ff6f0f'}
d00745f5e267eba4ca34286d125de685bc3a8034
1
08/29/2011, 17:55:14
Fix issue introduced previously whereby php_Self is now used unchecked. introduced previously by john attempting to fix symlinks. Since we now use php 5.2, we can make use of filter_var. This is a simpler version of what we were trying to do previously aka http://git.mantisforge.org/w/mantisbt.git?a=commitdiff;h=5ac1...
Paul Richards
null
{'additions': 7, 'deletions': 2, 'total': 9}
[ { "additions": 7, "changes": 9, "deletions": 2, "patch": "@@ -112,10 +112,15 @@\n \t\t\t$t_host = 'localhost';\n \t\t}\n \n-\t\t$t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] );\n+\t\t$t_self = $_SERVER['SCRIPT_NAME'];\n+\t\t$t_self = filter_var( $t_self, FILTER_SA...
php
CWE-79
[ "config_defaults_inc.php" ]
config_defaults_inc.php
1
cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, remote_path_check: /* check if a whole path (including prepath) is not remote */ if (!rc && cifs_sb->prepathlen && tcon) { /* build_path_to_root works only when we have a valid tcon */ full_path = cifs_build_path_to_root(cifs_sb, tcon); if (full...
cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, remote_path_check: /* check if a whole path (including prepath) is not remote */ if (!rc && tcon) { /* build_path_to_root works only when we have a valid tcon */ full_path = cifs_build_path_to_root(cifs_sb, tcon); if (full_path == NULL) {
CVE-2011-3363
{'CWE-20'}
6.9
{'https://github.com/torvalds/linux/commit/70945643722ffeac779d2529a348f99567fa5c33'}
nvd
The setup_cifs_sb function in fs/cifs/connect.c in the Linux kernel before 2.6.39 does not properly handle DFS referrals, which allows remote CIFS servers to cause a denial of service (system crash) by placing a referral at the root of a share.
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/70945643722ffeac779d2529a348f99567fa5c33
70945643722ffeac779d2529a348f99567fa5c33
SINGLE
['70945643722ffeac779d2529a348f99567fa5c33']
{'5443d130aa4990424a8e64984e64b50ec70661bb'}
70945643722ffeac779d2529a348f99567fa5c33
1
03/14/2011, 17:48:08
cifs: always do is_path_accessible check in cifs_mount Currently, we skip doing the is_path_accessible check in cifs_mount if there is no prefixpath. I have a report of at least one server however that allows a TREE_CONNECT to a share that has a DFS referral at its root. The reporter in this case was using a UNC that ...
Jeff Layton
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -2831,7 +2831,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,\n \n remote_path_check:\n \t/* check if a whole path (including prepath) is not remote */\n-\tif (!rc && cifs_sb->prepathlen && tcon) {\n+\tif (!rc && tcon...
c
CWE-20
[ "fs/cifs/connect.c" ]
fs/cifs/connect.c
1
/** * Loads common functions used throughout the site. * * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher * @package PunBB */ function _csrf_confirm_form($key, $values) <div class="ct-box info-box"> <p>...
/** * Loads common functions used throughout the site. * * @copyright (C) 2008-2011 PunBB, partially based on code (C) 2008-2009 FluxBB.org * @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher * @package PunBB */ function _csrf_confirm_form($key, $values) <div class="ct-box info-box"> <p>...
CVE-2011-3371
{'CWE-79'}
2.9
{'https://github.com/punbb/punbb/commit/dd50a50a2760f10bd2d09814e30af4b36052ca6d'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in include/functions.php in PunBB before 1.3.6 allow remote attackers to inject arbitrary web script or HTML via the (1) id, (2) form_sent, (3) csrf_token, (4) req_confirm, or (5) delete parameter to delete.php, the (6) id, (7) form_sent, (8) csrf_token, (9) req_messa...
2011-10-02
1
https://github.com/punbb/punbb
https://github.com/punbb/punbb/commit/dd50a50a2760f10bd2d09814e30af4b36052ca6d
dd50a50a2760f10bd2d09814e30af4b36052ca6d
SINGLE
['dd50a50a2760f10bd2d09814e30af4b36052ca6d']
{'3adda2fbf433f4d5ab94a1e92881242a71711821'}
dd50a50a2760f10bd2d09814e30af4b36052ca6d
1
09/18/2011, 03:10:01
Fix XSS vulnerabilities described on http://seclists.org/fulldisclosure/2011/Sep/158
ashcs
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -2,7 +2,7 @@\n /**\n * Loads common functions used throughout the site.\n *\n- * @copyright (C) 2008-2009 PunBB, partially based on code (C) 2008-2009 FluxBB.org\n+ * @copyright (C) 2008-2011 PunBB, partially based on code (C) 2008-2009 ...
php
CWE-79
[ "include/functions.php" ]
include/functions.php
1
set_interface_var(const char *iface, if (snprintf(spath, sizeof(spath), var, iface) >= sizeof(spath)) return -1; if (access(spath, F_OK) != 0) return -1;
set_interface_var(const char *iface, if (snprintf(spath, sizeof(spath), var, iface) >= sizeof(spath)) return -1; /* No path traversal */ if (strstr(name, "..") || strchr(name, '/')) return -1; if (access(spath, F_OK) != 0) return -1;
CVE-2011-3602
{'CWE-22'}
4.9
{'https://github.com/reubenhwk/radvd/commit/92e22ca23e52066da2258df8c76a2dca8a428bcc'}
nvd
Directory traversal vulnerability in device-linux.c in the router advertisement daemon (radvd) before 1.8.2 allows local users to overwrite arbitrary files, and remote attackers to overwrite certain files, via a .. (dot dot) in an interface name. NOTE: this can be leveraged with a symlink to overwrite arbitrary files.
2014-04-27
1
https://github.com/reubenhwk/radvd
https://github.com/reubenhwk/radvd/commit/92e22ca23e52066da2258df8c76a2dca8a428bcc
92e22ca23e52066da2258df8c76a2dca8a428bcc
SINGLE
['92e22ca23e52066da2258df8c76a2dca8a428bcc']
{'9dfaaaf740ce784541e76e68de4ae04dce2c0921'}
92e22ca23e52066da2258df8c76a2dca8a428bcc
1
10/04/2011, 07:33:15
set_interface_var() doesn't check interface name and blindly does fopen(path "/" ifname, "w") on it. As "ifname" is an untrusted input, it should be checked for ".." and/or "/" in it. Otherwise, an infected unprivileged daemon may overwrite contents of file named "mtu", "hoplimit", etc. in arbitrary location with arb...
Vasiliy Kulikov
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -243,6 +243,10 @@ set_interface_var(const char *iface,\n \tif (snprintf(spath, sizeof(spath), var, iface) >= sizeof(spath))\n \t\treturn -1;\n \n+\t/* No path traversal */\n+\tif (strstr(name, \"..\") || strchr(name, '/'))\n+\t\treturn -1;...
c
CWE-22
[ "device-linux.c" ]
device-linux.c
1
static int apparmor_setprocattr(struct task_struct *task, char *name, sa.aad.op = OP_SETPROCATTR; sa.aad.info = name; sa.aad.error = -EINVAL; return aa_audit(AUDIT_APPARMOR_DENIED, NULL, GFP_KERNEL, &sa, NULL); } } else if (strcmp(name, "exec") == 0) {
static int apparmor_setprocattr(struct task_struct *task, char *name, sa.aad.op = OP_SETPROCATTR; sa.aad.info = name; sa.aad.error = -EINVAL; return aa_audit(AUDIT_APPARMOR_DENIED, __aa_current_profile(), GFP_KERNEL, &sa, NULL); } } else if (strcmp(name, "exec") == 0) {
CVE-2011-3619
{'CWE-20'}
6.4
{'https://github.com/torvalds/linux/commit/a5b2c5b2ad5853591a6cac6134cd0f599a720865'}
nvd
The apparmor_setprocattr function in security/apparmor/lsm.c in the Linux kernel before 3.0 does not properly handle invalid parameters, which allows local users to cause a denial of service (NULL pointer dereference and OOPS) or possibly have unspecified other impact by writing to a /proc/#####/attr/current file.
2013-06-08
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a5b2c5b2ad5853591a6cac6134cd0f599a720865
a5b2c5b2ad5853591a6cac6134cd0f599a720865
SINGLE
['a5b2c5b2ad5853591a6cac6134cd0f599a720865']
{'e12ca23d41bd157354a5d1aadff30211a410c53a'}
a5b2c5b2ad5853591a6cac6134cd0f599a720865
1
05/31/2011, 18:31:41
AppArmor: fix oops in apparmor_setprocattr When invalid parameters are passed to apparmor_setprocattr a NULL deref oops occurs when it tries to record an audit message. This is because it is passing NULL for the profile parameter for aa_audit. But aa_audit now requires that the profile passed is not NULL. Fix this by...
Kees Cook
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -593,7 +593,8 @@ static int apparmor_setprocattr(struct task_struct *task, char *name,\n \t\t\tsa.aad.op = OP_SETPROCATTR;\n \t\t\tsa.aad.info = name;\n \t\t\tsa.aad.error = -EINVAL;\n-\t\t\treturn aa_audit(AUDIT_APPARMOR_DENIED, NULL, GFP...
c
CWE-20
[ "security/apparmor/lsm.c" ]
security/apparmor/lsm.c
1
static void m_stop(struct seq_file *m, void *v) struct proc_maps_private *priv = m->private; struct vm_area_struct *vma = v; vma_stop(priv, vma); if (priv->task) put_task_struct(priv->task); }
static void m_stop(struct seq_file *m, void *v) struct proc_maps_private *priv = m->private; struct vm_area_struct *vma = v; if (!IS_ERR(vma)) vma_stop(priv, vma); if (priv->task) put_task_struct(priv->task); }
CVE-2011-3637
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/76597cd31470fa130784c78fadb4dab2e624a723'}
nvd
The m_stop function in fs/proc/task_mmu.c in the Linux kernel before 2.6.39 allows local users to cause a denial of service (OOPS) via vectors that trigger an m_start error.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/76597cd31470fa130784c78fadb4dab2e624a723
76597cd31470fa130784c78fadb4dab2e624a723
SINGLE
['76597cd31470fa130784c78fadb4dab2e624a723']
{'16c29dafcc86024048f1dbb8349d31cb22c7c55a'}
76597cd31470fa130784c78fadb4dab2e624a723
1
03/28/2011, 02:09:29
proc: fix oops on invalid /proc/<pid>/maps access When m_start returns an error, the seq_file logic will still call m_stop with that error entry, so we'd better make sure that we check it before using it as a vma. Introduced by commit ec6fd8a4355c ("report errors in /proc/*/*map* sanely"), which replaced NULL with va...
Linus Torvalds
null
{'additions': 2, 'deletions': 1, 'total': 3}
[ { "additions": 2, "changes": 3, "deletions": 1, "patch": "@@ -182,7 +182,8 @@ static void m_stop(struct seq_file *m, void *v)\n \tstruct proc_maps_private *priv = m->private;\n \tstruct vm_area_struct *vma = v;\n \n-\tvma_stop(priv, vma);\n+\tif (!IS_ERR(vma))\n+\t\tvma_stop(priv, vma);\n \tif (priv...
c
CWE-476
[ "fs/proc/task_mmu.c" ]
fs/proc/task_mmu.c
1
static int proc_taint(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); #endif #ifdef CONFIG_MAGIC_SYSRQ /* Note: sysrq code uses it's own private copy */ static int __sysrq_enabled = SYSRQ_DEFAULT_ENABLE; static struct ctl_table kern_table[] = { .data = &kptr_restrict...
static int proc_taint(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); #endif #ifdef CONFIG_PRINTK static int proc_dmesg_restrict(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos); #endif #ifdef CONFIG_MAGIC_SYSRQ /* Note: sysrq co...
CVE-2011-4080
{'CWE-264'}
6.9
{'https://github.com/torvalds/linux/commit/bfdc0b497faa82a0ba2f9dddcf109231dd519fcc'}
nvd
The sysrq_sysctl_handler function in kernel/sysctl.c in the Linux kernel before 2.6.39 does not require the CAP_SYS_ADMIN capability to modify the dmesg_restrict value, which allows local users to bypass intended access restrictions and read the kernel ring buffer by leveraging root privileges, as demonstrated by a roo...
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/bfdc0b497faa82a0ba2f9dddcf109231dd519fcc
bfdc0b497faa82a0ba2f9dddcf109231dd519fcc
SINGLE
['bfdc0b497faa82a0ba2f9dddcf109231dd519fcc']
{'cb16e95fa2996743a6e80a665ed2ed0590bd38cf'}
bfdc0b497faa82a0ba2f9dddcf109231dd519fcc
1
03/23/2011, 23:43:11
sysctl: restrict write access to dmesg_restrict When dmesg_restrict is set to 1 CAP_SYS_ADMIN is needed to read the kernel ring buffer. But a root user without CAP_SYS_ADMIN is able to reset dmesg_restrict to 0. This is an issue when e.g. LXC (Linux Containers) are used and complete user space is running without CA...
Richard Weinberger
null
{'additions': 17, 'deletions': 1, 'total': 18}
[ { "additions": 17, "changes": 18, "deletions": 1, "patch": "@@ -170,6 +170,11 @@ static int proc_taint(struct ctl_table *table, int write,\n \t\t\t void __user *buffer, size_t *lenp, loff_t *ppos);\n #endif\n \n+#ifdef CONFIG_PRINTK\n+static int proc_dmesg_restrict(struct ctl_table *table, int...
c
CWE-264
[ "kernel/sysctl.c" ]
kernel/sysctl.c
1
static int ghash_update(struct shash_desc *desc, struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); u8 *dst = dctx->buffer; if (dctx->bytes) { int n = min(srclen, dctx->bytes); u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); static int ghash_final(struct shash_desc *desc, u8 *dst) struct ghash_ctx *ctx = ...
static int ghash_update(struct shash_desc *desc, struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); u8 *dst = dctx->buffer; if (!ctx->gf128) return -ENOKEY; if (dctx->bytes) { int n = min(srclen, dctx->bytes); u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); static int ghash_final(struct shash_desc *des...
CVE-2011-4081
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/7ed47b7d142ec99ad6880bbbec51e9f12b3af74c'}
nvd
crypto/ghash-generic.c in the Linux kernel before 3.1 allows local users to cause a denial of service (NULL pointer dereference and OOPS) or possibly have unspecified other impact by triggering a failed or missing ghash_setkey function call, followed by a (1) ghash_update function call or (2) ghash_final function call,...
2012-05-24
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/7ed47b7d142ec99ad6880bbbec51e9f12b3af74c
7ed47b7d142ec99ad6880bbbec51e9f12b3af74c
SINGLE
['7ed47b7d142ec99ad6880bbbec51e9f12b3af74c']
{'d93dc5c4478c1fd5de85a3e8aece9aad7bbae044'}
7ed47b7d142ec99ad6880bbbec51e9f12b3af74c
1
10/20/2011, 12:16:55
crypto: ghash - Avoid null pointer dereference if no key is set The ghash_update function passes a pointer to gf128mul_4k_lle which will be NULL if ghash_setkey is not called or if the most recent call to ghash_setkey failed to allocate memory. This causes an oops. Fix this up by returning an error code in the null ...
Nick Bowler
null
{'additions': 6, 'deletions': 0, 'total': 6}
[ { "additions": 6, "changes": 6, "deletions": 0, "patch": "@@ -67,6 +67,9 @@ static int ghash_update(struct shash_desc *desc,\n \tstruct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm);\n \tu8 *dst = dctx->buffer;\n \n+\tif (!ctx->gf128)\n+\t\treturn -ENOKEY;\n+\n \tif (dctx->bytes) {\n \t\tint n = min(...
c
CWE-476
[ "crypto/ghash-generic.c" ]
crypto/ghash-generic.c
1
static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) clear_buffer_mapped(bh); clear_buffer_req(bh); clear_buffer_new(bh); bh->b_bdev = NULL; return may_free; }
static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) clear_buffer_mapped(bh); clear_buffer_req(bh); clear_buffer_new(bh); clear_buffer_delay(bh); clear_buffer_unwritten(bh); bh->b_bdev = NULL; return may_free; }
CVE-2011-4086
{'CWE-119'}
6.9
{'https://github.com/torvalds/linux/commit/15291164b22a357cb211b618adfef4fa82fc0de3'}
nvd
The journal_unmap_buffer function in fs/jbd2/transaction.c in the Linux kernel before 3.3.1 does not properly handle the _Delay and _Unwritten buffer head states, which allows local users to cause a denial of service (system crash) by leveraging the presence of an ext4 filesystem that was mounted with a journal.
2012-07-03
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/15291164b22a357cb211b618adfef4fa82fc0de3
15291164b22a357cb211b618adfef4fa82fc0de3
SINGLE
['15291164b22a357cb211b618adfef4fa82fc0de3']
{'856cbcf9a971b43a83e78ac708ed6459ab1d0c89'}
15291164b22a357cb211b618adfef4fa82fc0de3
1
02/20/2012, 22:53:01
jbd2: clear BH_Delay & BH_Unwritten in journal_unmap_buffer journal_unmap_buffer()'s zap_buffer: code clears a lot of buffer head state ala discard_buffer(), but does not touch _Delay or _Unwritten as discard_buffer() does. This can be problematic in some areas of the ext4 code which assume that if they have found a ...
Eric Sandeen
null
{'additions': 2, 'deletions': 0, 'total': 2}
[ { "additions": 2, "changes": 2, "deletions": 0, "patch": "@@ -1949,6 +1949,8 @@ static int journal_unmap_buffer(journal_t *journal, struct buffer_head *bh)\n \tclear_buffer_mapped(bh);\n \tclear_buffer_req(bh);\n \tclear_buffer_new(bh);\n+\tclear_buffer_delay(bh);\n+\tclear_buffer_unwritten(bh);\n \...
c
CWE-119
[ "fs/jbd2/transaction.c" ]
fs/jbd2/transaction.c
1
static bool oom_unkillable_task(struct task_struct *p, unsigned int oom_badness(struct task_struct *p, struct mem_cgroup *mem, const nodemask_t *nodemask, unsigned long totalpages) { int points; if (oom_unkillable_task(p, mem, nodemask)) return 0;
static bool oom_unkillable_task(struct task_struct *p, unsigned int oom_badness(struct task_struct *p, struct mem_cgroup *mem, const nodemask_t *nodemask, unsigned long totalpages) { long points; if (oom_unkillable_task(p, mem, nodemask)) return 0;
CVE-2011-4097
{'CWE-190'}
6.9
{'https://github.com/torvalds/linux/commit/56c6a8a4aadca809e04276eabe5552935c51387f'}
nvd
Integer overflow in the oom_badness function in mm/oom_kill.c in the Linux kernel before 3.1.8 on 64-bit platforms allows local users to cause a denial of service (memory consumption or process termination) by using a certain large amount of memory.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/56c6a8a4aadca809e04276eabe5552935c51387f
56c6a8a4aadca809e04276eabe5552935c51387f
SINGLE
['56c6a8a4aadca809e04276eabe5552935c51387f']
{'a6c066b0703eeafc61eafdd5addf157ee671bd68'}
56c6a8a4aadca809e04276eabe5552935c51387f
1
12/20/2011, 01:11:59
oom: fix integer overflow of points in oom_badness commit ff05b6f7ae762b6eb464183eec994b28ea09f6dd upstream. An integer overflow will happen on 64bit archs if task's sum of rss, swapents and nr_ptes exceeds (2^31)/1000 value. This was introduced by commit f755a04 oom: use pte pages in OOM score where the oom score...
Frantisek Hrbata
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -162,7 +162,7 @@ static bool oom_unkillable_task(struct task_struct *p,\n unsigned int oom_badness(struct task_struct *p, struct mem_cgroup *mem,\n \t\t const nodemask_t *nodemask, unsigned long totalpages)\n {\n-\tint points;\n+\tlon...
c
CWE-190
[ "mm/oom_kill.c" ]
mm/oom_kill.c
1
static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, u32 features) skb->ip_summed = CHECKSUM_NONE; /* Check if there is enough headroom to insert fragment header. */ if ((skb_headroom(skb) < frag_hdr_sz) && pskb_expand_head(skb, frag_hdr_sz, 0, GFP_ATOMIC)) goto out;
static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, u32 features) skb->ip_summed = CHECKSUM_NONE; /* Check if there is enough headroom to insert fragment header. */ if ((skb_mac_header(skb) < skb->head + frag_hdr_sz) && pskb_expand_head(skb, frag_hdr_sz, 0, GFP_ATOMIC)) goto out;
CVE-2011-4326
{'CWE-399'}
6.9
{'https://github.com/torvalds/linux/commit/a9cf73ea7ff78f52662c8658d93c226effbbedde'}
nvd
The udp6_ufo_fragment function in net/ipv6/udp.c in the Linux kernel before 2.6.39, when a certain UDP Fragmentation Offload (UFO) configuration is enabled, allows remote attackers to cause a denial of service (system crash) by sending fragmented IPv6 UDP packets to a bridge device.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/a9cf73ea7ff78f52662c8658d93c226effbbedde
a9cf73ea7ff78f52662c8658d93c226effbbedde
SINGLE
['a9cf73ea7ff78f52662c8658d93c226effbbedde']
{'10022a6c66e199d8f61d9044543f38785713cbbd'}
a9cf73ea7ff78f52662c8658d93c226effbbedde
1
04/19/2011, 22:52:49
ipv6: udp: fix the wrong headroom check At this point, skb->data points to skb_transport_header. So, headroom check is wrong. For some case:bridge(UFO is on) + eth device(UFO is off), there is no enough headroom for IPv6 frag head. But headroom check is always false. This will bring about data be moved to there prio...
Shan Wei
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1335,7 +1335,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, u32 features)\n \tskb->ip_summed = CHECKSUM_NONE;\n \n \t/* Check if there is enough headroom to insert fragment header. */\n-\tif ((skb_headroom(skb) < frag_...
c
CWE-399
[ "net/ipv6/udp.c" ]
net/ipv6/udp.c
1
int sctp_rcv(struct sk_buff *skb) */ sctp_bh_lock_sock(sk); if (sock_owned_by_user(sk)) { SCTP_INC_STATS_BH(SCTP_MIB_IN_PKT_BACKLOG); sctp_add_backlog(sk, skb);
int sctp_rcv(struct sk_buff *skb) */ sctp_bh_lock_sock(sk); if (sk != rcvr->sk) { /* Our cached sk is different from the rcvr->sk. This is * because migrate()/accept() may have moved the association * to a new socket and released all the sockets. So now we * are holding a lock on the old socket while...
CVE-2011-4348
{'CWE-362'}
6.9
{'https://github.com/torvalds/linux/commit/ae53b5bd77719fed58086c5be60ce4f22bffe1c6'}
nvd
Race condition in the sctp_rcv function in net/sctp/input.c in the Linux kernel before 2.6.29 allows remote attackers to cause a denial of service (system hang) via SCTP packets. NOTE: in some environments, this issue exists because of an incomplete fix for CVE-2011-2482.
2013-06-08
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/ae53b5bd77719fed58086c5be60ce4f22bffe1c6
ae53b5bd77719fed58086c5be60ce4f22bffe1c6
SINGLE
['ae53b5bd77719fed58086c5be60ce4f22bffe1c6']
{'759af00ebef858015eb68876ac1f383bcb6a1774'}
ae53b5bd77719fed58086c5be60ce4f22bffe1c6
1
01/22/2009, 22:53:23
sctp: Fix another socket race during accept/peeloff There is a race between sctp_rcv() and sctp_accept() where we have moved the association from the listening socket to the accepted socket, but sctp_rcv() processing cached the old socket and continues to use it. The easy solution is to check for the socket mismatch ...
Vlad Yasevich
null
{'additions': 13, 'deletions': 0, 'total': 13}
[ { "additions": 13, "changes": 13, "deletions": 0, "patch": "@@ -249,6 +249,19 @@ int sctp_rcv(struct sk_buff *skb)\n \t */\n \tsctp_bh_lock_sock(sk);\n \n+\tif (sk != rcvr->sk) {\n+\t\t/* Our cached sk is different from the rcvr->sk. This is\n+\t\t * because migrate()/accept() may have moved the as...
c
CWE-362
[ "net/sctp/input.c" ]
net/sctp/input.c
1
static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg, * used_address->name_len is initialized to UINT_MAX so that the first * destination address never matches. */ if (used_address && used_address->name_len == msg_sys->msg_namelen && !memcmp(&used_address->name, msg->msg_name, used...
static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg, * used_address->name_len is initialized to UINT_MAX so that the first * destination address never matches. */ if (used_address && msg_sys->msg_name && used_address->name_len == msg_sys->msg_namelen && !memcmp(&used_address->name,...
CVE-2011-4594
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/bc909d9ddbf7778371e36a651d6e4194b1cc7d4c'}
nvd
The __sys_sendmsg function in net/socket.c in the Linux kernel before 3.1 allows local users to cause a denial of service (system crash) via crafted use of the sendmmsg system call, leading to an incorrect pointer dereference.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/bc909d9ddbf7778371e36a651d6e4194b1cc7d4c
bc909d9ddbf7778371e36a651d6e4194b1cc7d4c
SINGLE
['bc909d9ddbf7778371e36a651d6e4194b1cc7d4c']
{'c6f59d13e24187ff95427a9f4a5a7e14fb8faf5a'}
bc909d9ddbf7778371e36a651d6e4194b1cc7d4c
1
08/25/2011, 02:45:03
sendmmsg/sendmsg: fix unsafe user pointer access Dereferencing a user pointer directly from kernel-space without going through the copy_from_user family of functions is a bad idea. Two of such usages can be found in the sendmsg code path called from sendmmsg, added by commit c71d8ebe7a4496fb7231151cb70a6baa0cb56f9a u...
Mathieu Desnoyers
null
{'additions': 6, 'deletions': 4, 'total': 10}
[ { "additions": 6, "changes": 10, "deletions": 4, "patch": "@@ -1965,8 +1965,9 @@ static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,\n \t * used_address->name_len is initialized to UINT_MAX so that the first\n \t * destination address never matches.\n \t */\n-\tif (used_address ...
c
CWE-476
[ "net/socket.c" ]
net/socket.c
1
static ssize_t bat_socket_read(struct file *file, char __user *buf, spin_unlock_bh(&socket_client->lock); error = copy_to_user(buf, &socket_packet->icmp_packet, socket_packet->icmp_len); packet_len = socket_packet->icmp_len; kfree(socket_packet); if (error)
static ssize_t bat_socket_read(struct file *file, char __user *buf, spin_unlock_bh(&socket_client->lock); packet_len = min(count, socket_packet->icmp_len); error = copy_to_user(buf, &socket_packet->icmp_packet, packet_len); kfree(socket_packet); if (error)
CVE-2011-4604
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c'}
nvd
The bat_socket_read function in net/batman-adv/icmp_socket.c in the Linux kernel before 3.3 allows remote attackers to cause a denial of service (memory corruption) or possibly have unspecified other impact via a crafted batman-adv ICMP packet.
2013-06-07
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c
b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c
SINGLE
['b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c']
{'d18eb45332478f319e5cf996e093228a68864cce'}
b5a1eeef04cc7859f34dec9b72ea1b28e4aba07c
1
12/10/2011, 14:28:36
batman-adv: Only write requested number of byte to user buffer Don't write more than the requested number of bytes of an batman-adv icmp packet to the userspace buffer. Otherwise unrelated userspace memory might get overridden by the kernel. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Marek Lind...
Sven Eckelmann
null
{'additions': 2, 'deletions': 3, 'total': 5}
[ { "additions": 2, "changes": 5, "deletions": 3, "patch": "@@ -136,10 +136,9 @@ static ssize_t bat_socket_read(struct file *file, char __user *buf,\n \n \tspin_unlock_bh(&socket_client->lock);\n \n-\terror = copy_to_user(buf, &socket_packet->icmp_packet,\n-\t\t\t socket_packet->icmp_len);\n+\tpac...
c
CWE-119
[ "net/batman-adv/icmp_socket.c" ]
net/batman-adv/icmp_socket.c
1
static function findOrMake($folderPath) { $item = null; foreach($parts as $part) { if(!$part) continue; // happens for paths with a trailing slash $item = DataObject::get_one("Folder", "\"Name\" = '$part' AND \"ParentID\" = $parentID"); if(!$item) { $item = new Folder(); $item->ParentID = $parentI...
static function findOrMake($folderPath) { $item = null; foreach($parts as $part) { if(!$part) continue; // happens for paths with a trailing slash $item = DataObject::get_one( "Folder", sprintf( "\"Name\" = '%s' AND \"ParentID\" = %d", Convert::raw2sql($part), (int)$parentID ) ...
CVE-2011-4960
{'CWE-89'}
6.4
{'https://github.com/silverstripe/sapphire/commit/fef7c325357b2fbaccba7f2fd9bc4ed979ba6156'}
nvd
SQL injection vulnerability in the Folder::findOrMake method in SilverStripe 2.3.x before 2.3.12 and 2.4.x before 2.4.6 allows remote attackers to execute arbitrary SQL commands via unspecified vectors.
2012-09-17
1
https://github.com/silverstripe/sapphire
https://github.com/silverstripe/sapphire/commit/fef7c325357b2fbaccba7f2fd9bc4ed979ba6156
fef7c325357b2fbaccba7f2fd9bc4ed979ba6156
SINGLE
['fef7c325357b2fbaccba7f2fd9bc4ed979ba6156']
{'551bc5dc723d6b8c9276a29e8c221d5da1b64a45'}
fef7c325357b2fbaccba7f2fd9bc4ed979ba6156
1
03/21/2011, 03:12:37
BUGFIX Fixed SQL injection in Folder::findOrMake() parameter. Exploitable through Upload::, although unlikely to be set via user input.
Ingo Schommer
null
{'additions': 8, 'deletions': 1, 'total': 9}
[ { "additions": 8, "changes": 9, "deletions": 1, "patch": "@@ -42,7 +42,14 @@ static function findOrMake($folderPath) {\n \t\t$item = null;\n \t\tforeach($parts as $part) {\n \t\t\tif(!$part) continue; // happens for paths with a trailing slash\n-\t\t\t$item = DataObject::get_one(\"Folder\", \"\\\"Na...
php
CWE-89
[ "filesystem/Folder.php" ]
filesystem/Folder.php
1
function PostCommentForm() { foreach($fields as $field) { if(!$field instanceof HiddenField) $visibleFields[] = $field->Name(); } $form->loadDataFrom(unserialize($cookie), false, $visibleFields); } return $form; function DeleteAllLink() { */ class PageCommentInterface_Form extends Form { function p...
function PostCommentForm() { foreach($fields as $field) { if(!$field instanceof HiddenField) $visibleFields[] = $field->Name(); } $form->loadDataFrom(Convert::json2array($cookie), false, $visibleFields); } return $form; function DeleteAllLink() { */ class PageCommentInterface_Form extends Form { fu...
CVE-2011-4962
{'CWE-20'}
6.4
{'https://github.com/silverstripe/silverstripe-cms/commit/d15e8509b01ff2dbbe3028a055021a29b1065b22'}
nvd
code/sitefeatures/PageCommentInterface.php in SilverStripe 2.4.x before 2.4.6 might allow remote attackers to execute arbitrary code via a crafted cookie in a user comment submission, which is not properly handled when it is deserialized.
2012-09-17
1
https://github.com/silverstripe/silverstripe-cms
https://github.com/silverstripe/silverstripe-cms/commit/d15e8509b01ff2dbbe3028a055021a29b1065b22
d15e8509b01ff2dbbe3028a055021a29b1065b22
SINGLE
['d15e8509b01ff2dbbe3028a055021a29b1065b22']
{'b5ea2f68feab41f969a2e6f0589dd55015f74098'}
d15e8509b01ff2dbbe3028a055021a29b1065b22
1
09/08/2011, 15:56:47
SECURITY Using JSON instead of serialize() to stringify user data in PageCommentsInterface
Ingo Schommer
null
{'additions': 3, 'deletions': 3, 'total': 6}
[ { "additions": 3, "changes": 6, "deletions": 3, "patch": "@@ -222,7 +222,7 @@ function PostCommentForm() {\n \t\t\tforeach($fields as $field) {\n \t\t\t\tif(!$field instanceof HiddenField) $visibleFields[] = $field->Name();\n \t\t\t}\n-\t\t\t$form->loadDataFrom(unserialize($cookie), false, $visibleF...
php
CWE-20
[ "code/sitefeatures/PageCommentInterface.php" ]
code/sitefeatures/PageCommentInterface.php
1
public function render($ignoreCli = false) $view->exception = $this->getException(); $view->message = $this->getException()->getMessage(); $view->requestUri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '' ; $view->debug = Kwf_Exception::isDebug(); $he...
public function render($ignoreCli = false) $view->exception = $this->getException(); $view->message = $this->getException()->getMessage(); $view->requestUri = isset($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : '' ; $view->debug = Kwf_Exception::isDe...
CVE-2011-5018
{'CWE-79'}
2.9
{'https://github.com/koala-framework/koala-framework/commit/59f81ea6bd8ef96c04a706a3ca453cd656284faa'}
nvd
Koala Framework before 2011-11-21 has XSS via the request_uri parameter.
2020-01-08
1
https://github.com/koala-framework/koala-framework
https://github.com/koala-framework/koala-framework/commit/59f81ea6bd8ef96c04a706a3ca453cd656284faa
59f81ea6bd8ef96c04a706a3ca453cd656284faa
SINGLE
['59f81ea6bd8ef96c04a706a3ca453cd656284faa']
{'e681f050ea43fde9428eca8aa1c464349696d9a2'}
59f81ea6bd8ef96c04a706a3ca453cd656284faa
1
11/21/2011, 10:20:45
fix XSS security issue: escape request_uri in 404 pages
Niko Sams
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -74,7 +74,7 @@ public function render($ignoreCli = false)\n $view->exception = $this->getException();\n $view->message = $this->getException()->getMessage();\n $view->requestUri = isset($_SERVER['REQUEST_URI']) ?\n-...
php
CWE-79
[ "Kwf/Exception/Abstract.php" ]
Kwf/Exception/Abstract.php
1
def create exists = true if params.has_key?(:inflated_object) params[:name] ||= params[:inflated_object].name # We can only get here if we're admin or the validator. Only # allow creating admin clients if we're already an admin. if @auth_user.admin params[:admin] ||= params[:in...
def create exists = true if params.has_key?(:inflated_object) params[:name] ||= params[:inflated_object].name params[:admin] ||= params[:inflated_object].admin end # We can only create clients if we're the admin or the validator. # But only allow creating admin clients if we're alread...
CVE-2011-5098
{'CWE-264'}
6.4
{'https://github.com/opscode/chef/commit/33f0e9c58bbf047e1b401a834f3abfe72d9a8947'}
nvd
chef-server-api/app/controllers/clients.rb in Chef Server in Chef before 0.9.20, and 0.10.x before 0.10.6, does not require administrative privileges for creating admin clients, which allows remote authenticated users to bypass intended access restrictions by leveraging read permission for the validation key and execut...
2012-08-08
1
https://github.com/opscode/chef
https://github.com/opscode/chef/commit/33f0e9c58bbf047e1b401a834f3abfe72d9a8947
33f0e9c58bbf047e1b401a834f3abfe72d9a8947
SINGLE
['33f0e9c58bbf047e1b401a834f3abfe72d9a8947']
{'a50b54a223400074ee879b07b066fd805064d7e9'}
33f0e9c58bbf047e1b401a834f3abfe72d9a8947
1
10/30/2011, 02:08:47
CHEF-2649: Only allow admin clients to create admins (not validators)
Bryan McLellan
null
{'additions': 7, 'deletions': 7, 'total': 14}
[ { "additions": 7, "changes": 14, "deletions": 7, "patch": "@@ -49,13 +49,13 @@ def create\n exists = true \n if params.has_key?(:inflated_object)\n params[:name] ||= params[:inflated_object].name\n- # We can only get here if we're admin or the validator. Only\n- # allow creat...
rb
CWE-264
[ "chef-server-api/app/controllers/clients.rb" ]
chef-server-api/app/controllers/clients.rb
1
struct se_portal_group *tcm_loop_make_naa_tpg( tpgt_str += 5; /* Skip ahead of "tpgt_" */ tpgt = (unsigned short int) simple_strtoul(tpgt_str, &end_ptr, 0); if (tpgt > TL_TPGS_PER_HBA) { printk(KERN_ERR "Passed tpgt: %hu exceeds TL_TPGS_PER_HBA:" " %u\n", tpgt, TL_TPGS_PER_HBA); return ERR_PTR(-EINVAL);
struct se_portal_group *tcm_loop_make_naa_tpg( tpgt_str += 5; /* Skip ahead of "tpgt_" */ tpgt = (unsigned short int) simple_strtoul(tpgt_str, &end_ptr, 0); if (tpgt >= TL_TPGS_PER_HBA) { printk(KERN_ERR "Passed tpgt: %hu exceeds TL_TPGS_PER_HBA:" " %u\n", tpgt, TL_TPGS_PER_HBA); return ERR_PTR(-EINVAL);
CVE-2011-5327
{'CWE-119'}
6.4
{'https://github.com/torvalds/linux/commit/12f09ccb4612734a53e47ed5302e0479c10a50f8'}
nvd
In the Linux kernel before 3.1, an off by one in the drivers/target/loopback/tcm_loop.c tcm_loop_make_naa_tpg() function could result in at least memory corruption.
2019-07-27
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/12f09ccb4612734a53e47ed5302e0479c10a50f8
12f09ccb4612734a53e47ed5302e0479c10a50f8
SINGLE
['12f09ccb4612734a53e47ed5302e0479c10a50f8']
{'21bca31c9678edda8eb1dc823be00d190965c53b'}
12f09ccb4612734a53e47ed5302e0479c10a50f8
1
04/02/2011, 21:32:47
loopback: off by one in tcm_loop_make_naa_tpg() This is an off by one 'tgpt' check in tcm_loop_make_naa_tpg() that could result in memory corruption. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Dan Carpenter
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -1205,7 +1205,7 @@ struct se_portal_group *tcm_loop_make_naa_tpg(\n \ttpgt_str += 5; /* Skip ahead of \"tpgt_\" */\n \ttpgt = (unsigned short int) simple_strtoul(tpgt_str, &end_ptr, 0);\n \n-\tif (tpgt > TL_TPGS_PER_HBA) {\n+\tif (tpgt >= ...
c
CWE-119
[ "drivers/target/loopback/tcm_loop.c" ]
drivers/target/loopback/tcm_loop.c
1
class CBounceDCCMod : public CModule { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetLocalPort() == uResumePort) { m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pClient->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) ...
class CBounceDCCMod : public CModule { CDCCBounce* pSock = (CDCCBounce*) *it; if (pSock->GetLocalPort() == uResumePort) { m_pUser->PutUser(":" + Nick.GetNickMask() + " PRIVMSG " + m_pUser->GetNick() + " :\001DCC " + sType + " " + sFile + " " + CString(pSock->GetUserPort()) + " " + sMessage.Token(4) + ...
CVE-2012-0033
{'CWE-399'}
2.9
{'https://github.com/znc/znc/commit/11508aa72efab4fad0dbd8292b9614d9371b20a9'}
nvd
The CBounceDCCMod::OnPrivCTCP function in bouncedcc.cpp in the bouncedcc module in ZNC 0.200 and 0.202 allows remote attackers to cause a denial of service (crash) via a crafted DCC RESUME request.
2014-04-08
1
https://github.com/znc/znc
https://github.com/znc/znc/commit/11508aa72efab4fad0dbd8292b9614d9371b20a9
11508aa72efab4fad0dbd8292b9614d9371b20a9
SINGLE
['11508aa72efab4fad0dbd8292b9614d9371b20a9']
{'a3b9d8b13b8cac9b631188881c47af36404812d2'}
11508aa72efab4fad0dbd8292b9614d9371b20a9
1
12/31/2011, 17:47:01
Fix crash in bouncedcc module. It happens when DCC RESUME is received. Affected ZNC versions: 0.200, 0.202. Thanks to howeyc for reporting this and providing the patch.
Alexey Sokolov
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -238,7 +238,7 @@ class CBounceDCCMod : public CModule {\n \t\t\t\t\tCDCCBounce* pSock = (CDCCBounce*) *it;\n \n \t\t\t\t\tif (pSock->GetLocalPort() == uResumePort) {\n-\t\t\t\t\t\tm_pUser->PutUser(\":\" + Nick.GetNickMask() + \" PRIVMSG \"...
cpp
CWE-399
[ "modules/bouncedcc.cpp" ]
modules/bouncedcc.cpp
1
static void kiocb_batch_init(struct kiocb_batch *batch, long total) batch->count = total; } static void kiocb_batch_free(struct kiocb_batch *batch) { struct kiocb *req, *n; list_for_each_entry_safe(req, n, &batch->head, ki_batch) { list_del(&req->ki_batch); kmem_cache_free(kiocb_cachep, req); } } /* long do...
static void kiocb_batch_init(struct kiocb_batch *batch, long total) batch->count = total; } static void kiocb_batch_free(struct kioctx *ctx, struct kiocb_batch *batch) { struct kiocb *req, *n; if (list_empty(&batch->head)) return; spin_lock_irq(&ctx->ctx_lock); list_for_each_entry_safe(req, n, &batch->head, ...
CVE-2012-0058
{'CWE-400'}
6.9
{'https://github.com/torvalds/linux/commit/802f43594d6e4d2ac61086d239153c17873a0428'}
nvd
The kiocb_batch_free function in fs/aio.c in the Linux kernel before 3.2.2 allows local users to cause a denial of service (OOPS) via vectors that trigger incorrect iocb management.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/802f43594d6e4d2ac61086d239153c17873a0428
802f43594d6e4d2ac61086d239153c17873a0428
SINGLE
['802f43594d6e4d2ac61086d239153c17873a0428']
{'bb9b57cc544d4c6a88a370338783c1390815d7ed'}
802f43594d6e4d2ac61086d239153c17873a0428
1
01/08/2012, 15:07:28
Unused iocbs in a batch should not be accounted as active. commit 69e4747ee9727d660b88d7e1efe0f4afcb35db1b upstream. Since commit 080d676de095 ("aio: allocate kiocbs in batches") iocbs are allocated in a batch during processing of first iocbs. All iocbs in a batch are automatically added to ctx->active_reqs list and...
Gleb Natapov
null
{'additions': 9, 'deletions': 2, 'total': 11}
[ { "additions": 9, "changes": 11, "deletions": 2, "patch": "@@ -476,14 +476,21 @@ static void kiocb_batch_init(struct kiocb_batch *batch, long total)\n \tbatch->count = total;\n }\n \n-static void kiocb_batch_free(struct kiocb_batch *batch)\n+static void kiocb_batch_free(struct kioctx *ctx, struct ki...
c
CWE-400
[ "fs/aio.c" ]
fs/aio.c
1
$_POST['feather']); echo "<h2 class=\"preview-header\">".__("Preview")."</h2>\n". "<div class=\"preview-content\">".$_POST['content']."</div>"; break; case "check_confirm":
$_POST['feather']); echo "<h2 class=\"preview-header\">".__("Preview")."</h2>\n". "<div class=\"preview-content\">".fix($_POST['content'])."</div>"; break; case "check_confirm":
CVE-2012-1001
{'CWE-79'}
2.9
{'https://github.com/vito/chyrp/commit/f69bd791c37e0b154c0bda16f9759ba19cc77f6c'}
nvd
Multiple cross-site scripting (XSS) vulnerabilities in Chyrp before 2.1.2 and before 2.5 Beta 2 allow remote attackers to inject arbitrary web script or HTML via the (1) content parameter to includes/ajax.php or (2) body parameter to includes/error.php.
2019-11-21
1
https://github.com/vito/chyrp
https://github.com/vito/chyrp/commit/f69bd791c37e0b154c0bda16f9759ba19cc77f6c
f69bd791c37e0b154c0bda16f9759ba19cc77f6c
SINGLE
['f69bd791c37e0b154c0bda16f9759ba19cc77f6c']
{'87abb19fd83193acb543e1880dbbea25c524d81d'}
f69bd791c37e0b154c0bda16f9759ba19cc77f6c
1
02/01/2012, 21:16:42
Fixed a potential XSS vulnerability. User input wasn't being sanitized before output. Thanks HTB Security Research Lab for notifying us.
Arian Xhezairi
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -87,7 +87,7 @@\n $_POST['feather']);\n \n echo \"<h2 class=\\\"preview-header\\\">\".__(\"Preview\").\"</h2>\\n\".\n- \"<div class=\\\"preview-content\\\">\".$_POST['content'].\"</di...
php
CWE-79
[ "includes/ajax.php" ]
includes/ajax.php
1
pkinit_server_return_padata(krb5_context context, rep9->choice == choice_pa_pk_as_rep_draft9_dhSignedData) || (rep != NULL && rep->choice == choice_pa_pk_as_rep_dhInfo)) { /* If mutually supported KDFs were found, use the alg agility KDF */ if (rep->u.dh_Info.kdfID) { secr...
pkinit_server_return_padata(krb5_context context, rep9->choice == choice_pa_pk_as_rep_draft9_dhSignedData) || (rep != NULL && rep->choice == choice_pa_pk_as_rep_dhInfo)) { /* If we're not doing draft 9, and mutually supported KDFs were found, * use the algorithm agility KDF. */ ...
CVE-2012-1016
{'CWE-476'}
2.9
{'https://github.com/krb5/krb5/commit/db64ca25d661a47b996b4e2645998b5d7f0eb52c'}
nvd
The pkinit_server_return_padata function in plugins/preauth/pkinit/pkinit_srv.c in the PKINIT implementation in the Key Distribution Center (KDC) in MIT Kerberos 5 (aka krb5) before 1.10.4 attempts to find an agility KDF identifier in inappropriate circumstances, which allows remote attackers to cause a denial of servi...
2013-03-05
1
https://github.com/krb5/krb5
https://github.com/krb5/krb5/commit/db64ca25d661a47b996b4e2645998b5d7f0eb52c
db64ca25d661a47b996b4e2645998b5d7f0eb52c
SINGLE
['db64ca25d661a47b996b4e2645998b5d7f0eb52c']
{'d6a6cd0e84154c782975955784678ebeebfee488'}
db64ca25d661a47b996b4e2645998b5d7f0eb52c
1
12/13/2012, 19:26:07
PKINIT (draft9) null ptr deref [CVE-2012-1016] Don't check for an agility KDF identifier in the non-draft9 reply structure when we're building a draft9 reply, because it'll be NULL. The KDC plugin for PKINIT can dereference a null pointer when handling a draft9 request, leading to a crash of the KDC process. An atta...
Nalin Dahyabhai
null
{'additions': 4, 'deletions': 3, 'total': 7}
[ { "additions": 4, "changes": 7, "deletions": 3, "patch": "@@ -1016,9 +1016,10 @@ pkinit_server_return_padata(krb5_context context,\n rep9->choice == choice_pa_pk_as_rep_draft9_dhSignedData) ||\n (rep != NULL && rep->choice == choice_pa_pk_as_rep_dhInfo)) {\n \n- /* If mutuall...
c
CWE-476
[ "src/plugins/preauth/pkinit/pkinit_srv.c" ]
src/plugins/preauth/pkinit/pkinit_srv.c
1
cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry, * If either that or op not supported returned, follow * the normal lookup. */ if ((rc == 0) || (rc == -ENOENT)) posix_open = true; else if ((rc == -EINVAL) || (rc != -EOPNOTSUPP)) pTcon->broken_posix_open = true; } if (!...
cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry, * If either that or op not supported returned, follow * the normal lookup. */ switch (rc) { case 0: /* * The server may allow us to open things like * FIFOs, but the client isn't set up to deal * with that. If it'...
CVE-2012-1090
{'CWE-20'}
6.9
{'https://github.com/torvalds/linux/commit/88d7d4e4a439f32acc56a6d860e415ee71d3df08'}
nvd
The cifs_lookup function in fs/cifs/dir.c in the Linux kernel before 3.2.10 allows local users to cause a denial of service (OOPS) via attempted access to a special file, as demonstrated by a FIFO.
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/88d7d4e4a439f32acc56a6d860e415ee71d3df08
88d7d4e4a439f32acc56a6d860e415ee71d3df08
SINGLE
['88d7d4e4a439f32acc56a6d860e415ee71d3df08']
{'ce6e3def616ad1e22443df7fc8bdaa3384cf0575'}
88d7d4e4a439f32acc56a6d860e415ee71d3df08
1
02/23/2012, 14:37:45
cifs: fix dentry refcount leak when opening a FIFO on lookup commit 5bccda0ebc7c0331b81ac47d39e4b920b198b2cd upstream. The cifs code will attempt to open files on lookup under certain circumstances. What happens though if we find that the file we opened was actually a FIFO or other special file? Currently, the open ...
Jeff Layton
null
{'additions': 18, 'deletions': 2, 'total': 20}
[ { "additions": 18, "changes": 20, "deletions": 2, "patch": "@@ -584,10 +584,26 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,\n \t\t\t * If either that or op not supported returned, follow\n \t\t\t * the normal lookup.\n \t\t\t */\n-\t\t\tif ((rc == 0) || (rc == -ENOENT))\n+...
c
CWE-20
[ "fs/cifs/dir.c" ]
fs/cifs/dir.c
1
void Ogg::XiphComment::parse(const ByteVector &data) // Next the number of fields in the comment vector. int commentFields = data.mid(pos, 4).toUInt(false); pos += 4; for(int i = 0; i < commentFields; i++) { // Each comment field is in the format "KEY=value" in a UTF8 string and has // 4 bytes befo...
void Ogg::XiphComment::parse(const ByteVector &data) // Next the number of fields in the comment vector. uint commentFields = data.mid(pos, 4).toUInt(false); pos += 4; if(commentFields > (data.size() - 8) / 4) { return; } for(uint i = 0; i < commentFields; i++) { // Each comment field is in th...
CVE-2012-1108
{'CWE-20'}
2.9
{'https://github.com/taglib/taglib/commit/b3646a07348ffa276ea41a9dae03ddc63ea6c532'}
nvd
The parse function in ogg/xiphcomment.cpp in TagLib 1.7 and earlier allows remote attackers to cause a denial of service (crash) via a crafted vendorLength field in an ogg file.
2012-09-06
1
https://github.com/taglib/taglib
https://github.com/taglib/taglib/commit/b3646a07348ffa276ea41a9dae03ddc63ea6c532
b3646a07348ffa276ea41a9dae03ddc63ea6c532
SINGLE
['b3646a07348ffa276ea41a9dae03ddc63ea6c532']
{'8ed9b0da2cdb2ac870052d4734b622e755430f71'}
b3646a07348ffa276ea41a9dae03ddc63ea6c532
1
06/09/2011, 16:44:54
Be more careful when parsing Vorbis Comments
Frank Lai
null
{'additions': 13, 'deletions': 3, 'total': 16}
[ { "additions": 13, "changes": 16, "deletions": 3, "patch": "@@ -295,21 +295,31 @@ void Ogg::XiphComment::parse(const ByteVector &data)\n \n // Next the number of fields in the comment vector.\n \n- int commentFields = data.mid(pos, 4).toUInt(false);\n+ uint commentFields = data.mid(pos, 4).toUIn...
cpp
CWE-20
[ "taglib/ogg/xiphcomment.cpp" ]
taglib/ogg/xiphcomment.cpp
1
function access_has_bug_level( $p_access_level, $p_bug_id, $p_user_id = null ) { return false; } # If the bug is private and the user is not the reporter, then the # the user must also have higher access than private_bug_threshold if( VS_PRIVATE == bug_get_field( $p_bug_id, 'view_state' ) && !bug_is_user_repor...
function access_has_bug_level( $p_access_level, $p_bug_id, $p_user_id = null ) { return false; } # If the bug is private and the user is not the reporter, then # they must also have higher access than private_bug_threshold if( VS_PRIVATE == bug_get_field( $p_bug_id, 'view_state' ) && !bug_is_user_reporter( $p_b...
CVE-2012-1118
{'CWE-264'}
2.9
{'https://github.com/mantisbt/mantisbt/commit/eb803ed02105fc919cf5f789e939f2b824162927'}
nvd
The access_has_bug_level function in core/access_api.php in MantisBT before 1.2.9 does not properly restrict access when the private_bug_view_threshold is set to an array, which allows remote attackers to bypass intended restrictions and perform certain operations on private bug reports.
2012-06-29
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/eb803ed02105fc919cf5f789e939f2b824162927
eb803ed02105fc919cf5f789e939f2b824162927
SINGLE
['eb803ed02105fc919cf5f789e939f2b824162927']
{'4ba21872cc2a89cc93bf2b88583684b1c2e337df'}
eb803ed02105fc919cf5f789e939f2b824162927
1
01/23/2012, 19:01:59
Fix bug in access_has_bug_level() for private issues When private_bug_threshold is defined as an array instead of a single access level, e.g. array(0=>40, 1=>70, 2=>90) to prevent developers from seeing private bugs while granting that privilege to updaters, access_has_bug_level() incorrectly returned true. The conse...
Damien Regad
null
{'additions': 5, 'deletions': 3, 'total': 8}
[ { "additions": 5, "changes": 8, "deletions": 3, "patch": "@@ -420,10 +420,12 @@ function access_has_bug_level( $p_access_level, $p_bug_id, $p_user_id = null ) {\n \t\treturn false;\n \t}\n \n-\t# If the bug is private and the user is not the reporter, then the\n-\t# the user must also have higher a...
php
CWE-264
[ "core/access_api.php" ]
core/access_api.php
1
function mc_issue_delete( $p_username, $p_password, $p_issue_id ) { if( !mci_has_readwrite_access( $t_user_id, $t_project_id ) ) { return mci_soap_fault_access_denied( $t_user_id ); } return bug_delete( $p_issue_id ); }
function mc_issue_delete( $p_username, $p_password, $p_issue_id ) { if( !mci_has_readwrite_access( $t_user_id, $t_project_id ) ) { return mci_soap_fault_access_denied( $t_user_id ); } if ( !access_has_bug_level( config_get( 'delete_bug_threshold' ), $p_issue_id, $t_user_id ) ) { return mci_soap_fault_acces...
CVE-2012-1120
{'CWE-264'}
4.9
{'https://github.com/mantisbt/mantisbt/commit/df7782a65e96aa1c9639a7625a658102134c7fe0'}
nvd
The SOAP API in MantisBT before 1.2.9 does not properly enforce the bugnote_allow_user_edit_delete and delete_bug_threshold permissions, which allows remote authenticated users with read and write SOAP API privileges to delete arbitrary bug reports and bug notes.
2012-06-29
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/df7782a65e96aa1c9639a7625a658102134c7fe0
df7782a65e96aa1c9639a7625a658102134c7fe0
SINGLE
['df7782a65e96aa1c9639a7625a658102134c7fe0']
{'9d3f5783e6e0a4faf4fae13c769c9bfd45bf063c'}
df7782a65e96aa1c9639a7625a658102134c7fe0
1
12/08/2011, 22:49:17
SOAP API: proper access checks when deleting bugs Affects #13656 : Reporters have read/write access to existing data of other users
Robert Munteanu
null
{'additions': 4, 'deletions': 0, 'total': 4}
[ { "additions": 4, "changes": 4, "deletions": 0, "patch": "@@ -943,6 +943,10 @@ function mc_issue_delete( $p_username, $p_password, $p_issue_id ) {\n \tif( !mci_has_readwrite_access( $t_user_id, $t_project_id ) ) {\n \t\treturn mci_soap_fault_access_denied( $t_user_id );\n \t}\n+\t\n+\tif ( !access_h...
php
CWE-264
[ "api/soap/mc_issue_api.php" ]
api/soap/mc_issue_api.php
1
case 'MOVE': $f_project_id = gpc_get_int( 'project_id' ); if ( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) && access_has_project_level( config_get( 'report_bug_threshold' ), $f_project_id ) ) { /** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', ...
case 'MOVE': $f_project_id = gpc_get_int( 'project_id' ); if( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) && access_has_project_level( config_get( 'report_bug_threshold', null, null, $f_project_id ), $f_project_id ) ) { /** @todo we need to issue a helper_call_custom_function( ...
CVE-2012-1122
{'CWE-264'}
4.9
{'https://github.com/mantisbt/mantisbt/commit/0da3f7ace233208eb3c8d628cc2fd6e56d83839f'}
nvd
bug_actiongroup.php in MantisBT before 1.2.9 does not properly check the report_bug_threshold permission of the receiving project when moving a bug report, which allows remote authenticated users with the report_bug_threshold and move_bug_threshold privileges for a project to bypass intended access restrictions and mov...
2012-06-29
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/0da3f7ace233208eb3c8d628cc2fd6e56d83839f
0da3f7ace233208eb3c8d628cc2fd6e56d83839f
SINGLE
['0da3f7ace233208eb3c8d628cc2fd6e56d83839f']
{'0dd1ae0ae91e2c9c41e08f4630ba9a4ad7036950'}
0da3f7ace233208eb3c8d628cc2fd6e56d83839f
1
01/09/2012, 13:10:43
Fix Move bugs from projects with access < report_bug_threshold The access check in bug_actiongroup.php was not correct. It should verify the user's report_bug_threshold in the target project, not the current project. Fixes #13748
Damien Regad
null
{'additions': 2, 'deletions': 2, 'total': 4}
[ { "additions": 2, "changes": 4, "deletions": 2, "patch": "@@ -136,8 +136,8 @@\n \n \tcase 'MOVE':\n \t\t$f_project_id = gpc_get_int( 'project_id' );\n-\t\tif ( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) &&\n-\t\t access_has_project_level( config_get( 'report_bug_thresh...
php
CWE-264
[ "bug_actiongroup.php" ]
bug_actiongroup.php
1
function mci_check_login( $p_username, $p_password ) { # do not use password validation. $p_password = null; } if( false === auth_attempt_script_login( $p_username, $p_password ) ) {
function mci_check_login( $p_username, $p_password ) { # do not use password validation. $p_password = null; } else { if( is_blank( $p_password ) ) { # require password for authenticated access return false; } } if( false === auth_attempt_script_login( $p_username, $p_password ) ) {
CVE-2012-1123
{'CWE-287'}
6.4
{'https://github.com/mantisbt/mantisbt/commit/f5106be52cf6aa72c521f388e4abb5f0de1f1d7f'}
nvd
The mci_check_login function in api/soap/mc_api.php in the SOAP API in MantisBT before 1.2.9 allows remote attackers to bypass authentication via a null password.
2012-06-29
1
https://github.com/mantisbt/mantisbt
https://github.com/mantisbt/mantisbt/commit/f5106be52cf6aa72c521f388e4abb5f0de1f1d7f
f5106be52cf6aa72c521f388e4abb5f0de1f1d7f
SINGLE
['f5106be52cf6aa72c521f388e4abb5f0de1f1d7f']
{'069239e4fcb84522e48725c8f53d8d3a3e40b271'}
f5106be52cf6aa72c521f388e4abb5f0de1f1d7f
1
02/16/2012, 09:41:56
Fix 0013901: SOAP API allows invoking methods without proper authentication Note: only applied to 1.2.x not 'next', as the code is changing anyway
root
null
{'additions': 5, 'deletions': 0, 'total': 5}
[ { "additions": 5, "changes": 5, "deletions": 0, "patch": "@@ -51,6 +51,11 @@ function mci_check_login( $p_username, $p_password ) {\n \n \t\t# do not use password validation.\n \t\t$p_password = null;\n+\t} else {\n+\t\tif( is_blank( $p_password ) ) {\n+\t\t\t# require password for authenticated acc...
php
CWE-287
[ "api/soap/mc_api.php" ]
api/soap/mc_api.php
1
static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, */ BUG_ON(!thresholds); usage = mem_cgroup_usage(memcg, type == _MEMSWAP); /* Check if a threshold crossed before removing */ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, /* To be sure that nobody uses thresholds */ sync...
static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, */ BUG_ON(!thresholds); if (!thresholds->primary) goto unlock; usage = mem_cgroup_usage(memcg, type == _MEMSWAP); /* Check if a threshold crossed before removing */ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, /* To b...
CVE-2012-1146
{'CWE-476'}
6.9
{'https://github.com/torvalds/linux/commit/371528caec553785c37f73fa3926ea0de84f986f'}
nvd
The mem_cgroup_usage_unregister_event function in mm/memcontrol.c in the Linux kernel before 3.2.10 does not properly handle multiple events that are attached to the same eventfd, which allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact ...
2012-05-17
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/371528caec553785c37f73fa3926ea0de84f986f
371528caec553785c37f73fa3926ea0de84f986f
SINGLE
['371528caec553785c37f73fa3926ea0de84f986f']
{'37fbf4bfb826372c3ca6c09d8a015d1fe9f5e186'}
371528caec553785c37f73fa3926ea0de84f986f
1
02/24/2012, 01:14:46
mm: memcg: Correct unregistring of events attached to the same eventfd There is an issue when memcg unregisters events that were attached to the same eventfd: - On the first call mem_cgroup_usage_unregister_event() removes all events attached to a given eventfd, and if there were no events left, thresholds->prima...
Anton Vorontsov
null
{'additions': 4, 'deletions': 1, 'total': 5}
[ { "additions": 4, "changes": 5, "deletions": 1, "patch": "@@ -4414,6 +4414,9 @@ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp,\n \t */\n \tBUG_ON(!thresholds);\n \n+\tif (!thresholds->primary)\n+\t\tgoto unlock;\n+\n \tusage = mem_cgroup_usage(memcg, type == _MEMSWAP);\n \n \t/* ...
c
CWE-476
[ "mm/memcontrol.c" ]
mm/memcontrol.c
1
*/ var random_server_id = Math.floor(Math.random() * 10000000); var conf_prefix = "server-id=" + random_server_id + "<br />log-bin=mysql-bin<br />log-error=mysql-bin.err<br />"; function update_config() { var conf_ignore = "binlog_ignore_db="; function update_config() { }); if ($('#db_select option:sel...
*/ var random_server_id = Math.floor(Math.random() * 10000000); var conf_prefix = "server-id=" + random_server_id + "\nlog-bin=mysql-bin\nlog-error=mysql-bin.err\n"; function update_config() { var conf_ignore = "binlog_ignore_db="; function update_config() { }); if ($('#db_select option:selected').size...
CVE-2012-1190
{'CWE-79'}
2.9
{'https://github.com/phpmyadmin/phpmyadmin/commit/86073d532aed656550cb731aa5b4288b126ae7a6'}
nvd
Cross-site scripting (XSS) vulnerability in the replication-setup functionality in js/replication.js in phpMyAdmin 3.4.x before 3.4.10.1 allows user-assisted remote attackers to inject arbitrary web script or HTML via a crafted database name.
2012-05-03
1
https://github.com/phpmyadmin/phpmyadmin
https://github.com/phpmyadmin/phpmyadmin/commit/86073d532aed656550cb731aa5b4288b126ae7a6
86073d532aed656550cb731aa5b4288b126ae7a6
SINGLE
['86073d532aed656550cb731aa5b4288b126ae7a6']
{'e8a12582f9fc7737a6346e26ec9c5de01ced8d52'}
86073d532aed656550cb731aa5b4288b126ae7a6
1
02/16/2012, 14:22:42
Do not put database names as html
Michal Čihař
null
{'additions': 5, 'deletions': 5, 'total': 10}
[ { "additions": 5, "changes": 10, "deletions": 5, "patch": "@@ -5,7 +5,7 @@\n */\n \n var random_server_id = Math.floor(Math.random() * 10000000);\n-var conf_prefix = \"server-id=\" + random_server_id + \"<br />log-bin=mysql-bin<br />log-error=mysql-bin.err<br />\";\n+var conf_prefix = \"server-id=\...
js
CWE-79
[ "js/replication.js" ]
js/replication.js
1
private function setLanguage($value) */ private function setModule($value) { $this->module = (string) $value; } }
private function setLanguage($value) */ private function setModule($value) { $modules = (array) FrontendModel::getModules(); if(!in_array((string) $value, $modules)) { // when debug is on throw an exception if(SPOON_DEBUG) throw new FrontendException('Invalid file.'); // when debug is of show a ...
CVE-2012-1207
{'CWE-22'}
2.9
{'https://github.com/forkcms/forkcms/commit/a9986b86c53de0582248b39605660fbba0c21a29'}
nvd
Directory traversal vulnerability in frontend/core/engine/javascript.php in Fork CMS 3.2.4 and possibly other versions before 3.2.5 allows remote attackers to read arbitrary files via a .. (dot dot) in the module parameter to frontend/js.php.
2012-02-24
1
https://github.com/forkcms/forkcms
https://github.com/forkcms/forkcms/commit/a9986b86c53de0582248b39605660fbba0c21a29
a9986b86c53de0582248b39605660fbba0c21a29
SINGLE
['a9986b86c53de0582248b39605660fbba0c21a29']
{'93b41a6417556c61322309bbeca24525cdcdc252'}
a9986b86c53de0582248b39605660fbba0c21a29
1
02/13/2012, 15:13:35
XSS / LFI Fox
Frederik Heyninck
null
{'additions': 11, 'deletions': 0, 'total': 11}
[ { "additions": 11, "changes": 11, "deletions": 0, "patch": "@@ -194,6 +194,17 @@ private function setLanguage($value)\n \t */\n \tprivate function setModule($value)\n \t{\n+\t\t$modules = (array) FrontendModel::getModules();\n+\t\t\n+\t\tif(!in_array((string) $value, $modules))\n+\t\t{\n+\t\t\t// wh...
php
CWE-22
[ "frontend/core/engine/javascript.php" ]
frontend/core/engine/javascript.php
1
static int xfrm6_tunnel_rcv(struct sk_buff *skb) __be32 spi; spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr); return xfrm6_rcv_spi(skb, spi); } static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
static int xfrm6_tunnel_rcv(struct sk_buff *skb) __be32 spi; spi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr); return xfrm6_rcv_spi(skb, spi) > 0 ? : 0; } static int xfrm6_tunnel_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
CVE-2012-1583
{'CWE-399'}
2.9
{'https://github.com/torvalds/linux/commit/d0772b70faaf8e9f2013b6c4273d94d5eac8047a'}
nvd
Double free vulnerability in the xfrm6_tunnel_rcv function in net/ipv6/xfrm6_tunnel.c in the Linux kernel before 2.6.22, when the xfrm6_tunnel module is enabled, allows remote attackers to cause a denial of service (panic) via crafted IPv6 packets.
2012-06-16
1
https://github.com/torvalds/linux
https://github.com/torvalds/linux/commit/d0772b70faaf8e9f2013b6c4273d94d5eac8047a
d0772b70faaf8e9f2013b6c4273d94d5eac8047a
SINGLE
['d0772b70faaf8e9f2013b6c4273d94d5eac8047a']
{'65bb723c9502b7ba0a3aad13bdac8832e213ba74'}
d0772b70faaf8e9f2013b6c4273d94d5eac8047a
1
04/29/2007, 04:26:23
[IPV6]: Fix slab corruption running ip6sic From: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Sesterhenn
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -261,7 +261,7 @@ static int xfrm6_tunnel_rcv(struct sk_buff *skb)\n \t__be32 spi;\n \n \tspi = xfrm6_tunnel_spi_lookup((xfrm_address_t *)&iph->saddr);\n-\treturn xfrm6_rcv_spi(skb, spi);\n+\treturn xfrm6_rcv_spi(skb, spi) > 0 ? : 0;\n }\n ...
c
CWE-399
[ "net/ipv6/xfrm6_tunnel.c" ]
net/ipv6/xfrm6_tunnel.c
1
ByteVector ByteVector::mid(uint index, uint length) const ConstIterator endIt; if(length < 0xffffffff && length + index < size()) endIt = d->data.begin() + index + length; else endIt = d->data.end();
ByteVector ByteVector::mid(uint index, uint length) const ConstIterator endIt; if(length < size() - index) endIt = d->data.begin() + index + length; else endIt = d->data.end();
CVE-2012-1584
{'CWE-189'}
2.9
{'https://github.com/taglib/taglib/commit/dcdf4fd954e3213c355746fa15b7480461972308'}
nvd
Integer overflow in the mid function in toolkit/tbytevector.cpp in TagLib 1.7 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a crafted file header field in a media file, which triggers a large memory allocation.
2012-09-06
1
https://github.com/taglib/taglib
https://github.com/taglib/taglib/commit/dcdf4fd954e3213c355746fa15b7480461972308
dcdf4fd954e3213c355746fa15b7480461972308
SINGLE
['dcdf4fd954e3213c355746fa15b7480461972308']
{'ab8a0ee8937256311e649a88e8ddd7c7f870ad59'}
dcdf4fd954e3213c355746fa15b7480461972308
1
03/10/2012, 07:46:20
Avoid uint overflow in case the length + index is over UINT_MAX
Lukáš Lalinský
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -363,7 +363,7 @@ ByteVector ByteVector::mid(uint index, uint length) const\n \n ConstIterator endIt;\n \n- if(length < 0xffffffff && length + index < size())\n+ if(length < size() - index)\n endIt = d->data.begin() + index + length...
cpp
CWE-189
[ "taglib/toolkit/tbytevector.cpp" ]
taglib/toolkit/tbytevector.cpp
1
public static function textEncode( $mix ) if ( is_array( $mix ) ) return implode(',', array_map( array('ezjscAjaxContent', 'textEncode'), array_filter( $mix ) ) ); return $mix; } /**
public static function textEncode( $mix ) if ( is_array( $mix ) ) return implode(',', array_map( array('ezjscAjaxContent', 'textEncode'), array_filter( $mix ) ) ); return htmlspecialchars( $mix ); } /**
CVE-2012-1597
{'CWE-79'}
2.9
{'https://github.com/ezsystems/ezjscore/commit/58854564c7b8672090c25c4b1677d08620d870f2'}
nvd
Cross-site scripting (XSS) vulnerability in the textEncode function in classes/ezjscajaxcontent.php in eZ JS Core in eZ Publish before 1.5 allows remote attackers to inject arbitrary web script or HTML via unspecified vectors.
2012-08-17
1
https://github.com/ezsystems/ezjscore
https://github.com/ezsystems/ezjscore/commit/58854564c7b8672090c25c4b1677d08620d870f2
58854564c7b8672090c25c4b1677d08620d870f2
SINGLE
['58854564c7b8672090c25c4b1677d08620d870f2']
{'14f315ab6896c3cb033813ad7ab6a50b512d86e9'}
58854564c7b8672090c25c4b1677d08620d870f2
1
05/09/2012, 10:17:22
Fixed #019245: XSS exploit on eZJSCore RUN command
André R
null
{'additions': 1, 'deletions': 1, 'total': 2}
[ { "additions": 1, "changes": 2, "deletions": 1, "patch": "@@ -127,7 +127,7 @@ public static function textEncode( $mix )\n if ( is_array( $mix ) )\n return implode(',', array_map( array('ezjscAjaxContent', 'textEncode'), array_filter( $mix ) ) );\n \n- return $mix;\n+ ...
php
CWE-79
[ "classes/ezjscajaxcontent.php" ]
classes/ezjscajaxcontent.php
1