idx int64 | project string | commit_id string | project_url string | commit_url string | commit_message string | target int64 | func string | func_hash float64 | file_name string | file_hash float64 | cwe list | cve string | cve_desc string | nvd_url string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,382 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool extract_sockaddr(char *url, char **sockaddr_url, char **sockaddr_port)
{
char *url_begin, *url_end, *ipv6_begin, *ipv6_end, *port_start = NULL;
char url_address[256], port[6];
int url_len, port_len = 0;
*sockaddr_url = url;
url_begin = strstr(url, "//");
if (!url_begin)
url_begin = url;
else
url_begin ... | 276,484,207,343,117,600,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,383 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | char *get_proxy(char *url, struct pool *pool)
{
pool->rpc_proxy = NULL;
char *split;
int plen, len, i;
for (i = 0; proxynames[i].name; i++) {
plen = strlen(proxynames[i].name);
if (strncmp(url, proxynames[i].name, plen) == 0) {
if (!(split = strchr(url, '|')))
return url;
*split = '\0';
len = sp... | 275,069,988,891,479,350,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,384 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static char *get_sessionid(json_t *val)
{
char *ret = NULL;
json_t *arr_val;
int arrsize, i;
arr_val = json_array_get(val, 0);
if (!arr_val || !json_is_array(arr_val))
goto out;
arrsize = json_array_size(arr_val);
for (i = 0; i < arrsize; i++) {
json_t *arr = json_array_get(arr_val, i);
char *notify;
i... | 17,006,151,016,833,010,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,385 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool hex2bin(unsigned char *p, const char *hexstr, size_t len)
{
int nibble1, nibble2;
unsigned char idx;
bool ret = false;
while (*hexstr && len) {
if (unlikely(!hexstr[1])) {
applog(LOG_ERR, "hex2bin str truncated");
return ret;
}
idx = *hexstr++;
nibble1 = hex2bin_tbl[idx];
idx = *hexstr++;
n... | 240,528,431,947,083,700,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,386 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool http_negotiate(struct pool *pool, int sockd, bool http0)
{
char buf[1024];
int i, len;
if (http0) {
snprintf(buf, 1024, "CONNECT %s:%s HTTP/1.0\r\n\r\n",
pool->sockaddr_url, pool->stratum_port);
} else {
snprintf(buf, 1024, "CONNECT %s:%s HTTP/1.1\r\nHost: %s:%s\r\n\r\n",
pool->sockaddr_url, ... | 103,503,782,369,940,100,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,387 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool initiate_stratum(struct pool *pool)
{
bool ret = false, recvd = false, noresume = false, sockd = false;
char s[RBUFSIZE], *sret = NULL, *nonce1, *sessionid;
json_t *val = NULL, *res_val, *err_val;
json_error_t err;
int n2size;
resend:
if (!setup_stratum_socket(pool)) {
/* FIXME: change to LOG_DEBUG when i... | 245,336,596,291,678,830,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,388 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static char *json_array_string(json_t *val, unsigned int entry)
{
char *buf = __json_array_string(val, entry);
if (buf)
return strdup(buf);
return NULL;
}
| 189,162,979,012,482,300,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,389 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void keep_curlalive(CURL *curl)
{
SOCKETTYPE sock;
curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, (long *)&sock);
keep_sockalive(sock);
}
| 326,429,282,027,326,960,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,390 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void keep_sockalive(SOCKETTYPE fd)
{
const int tcp_one = 1;
#ifndef WIN32
const int tcp_keepidle = 45;
const int tcp_keepintvl = 30;
int flags = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, O_NONBLOCK | flags);
#else
u_long flags = 1;
ioctlsocket(fd, FIONBIO, &flags);
#endif
setsockopt(fd, SOL_SOCKET, SO... | 206,999,649,909,086,140,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,391 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void last_nettime(struct timeval *last)
{
rd_lock(&netacc_lock);
last->tv_sec = nettime.tv_sec;
last->tv_usec = nettime.tv_usec;
rd_unlock(&netacc_lock);
}
| 63,126,778,327,978,050,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,392 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void liSleep(LARGE_INTEGER *li, int timeout)
{
HANDLE hTimer;
DWORD ret;
if (unlikely(timeout <= 0))
return;
hTimer = CreateWaitableTimer(NULL, TRUE, NULL);
if (unlikely(!hTimer))
quit(1, "Failed to create hTimer in liSleep");
ret = SetWaitableTimer(hTimer, li, 0, NULL, NULL, 0);
if (unlikely(!ret))... | 149,695,355,649,593,360,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,393 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | int ms_tdiff(struct timeval *end, struct timeval *start)
{
/* Like us_tdiff, limit to 1 hour. */
if (unlikely(end->tv_sec - start->tv_sec > 3600))
return 3600000;
return (end->tv_sec - start->tv_sec) * 1000 + (end->tv_usec - start->tv_usec) / 1000;
}
| 136,446,225,430,423,920,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,394 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void ms_to_timeval(struct timeval *val, int64_t ms)
{
lldiv_t tvdiv = lldiv(ms, 1000);
val->tv_sec = tvdiv.quot;
val->tv_usec = tvdiv.rem * 1000;
}
| 262,171,590,092,149,570,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,395 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void nanosleep_abstime(struct timespec *ts_end)
{
int ret;
do {
ret = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, ts_end, NULL);
} while (ret == EINTR);
}
| 189,968,260,099,453,440,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,396 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void noblock_socket(SOCKETTYPE fd)
{
#ifndef WIN32
int flags = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, O_NONBLOCK | flags);
#else
u_long flags = 1;
ioctlsocket(fd, FIONBIO, &flags);
#endif
}
| 267,190,509,127,940,270,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,397 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool parse_diff(struct pool *pool, json_t *val)
{
double old_diff, diff;
if (opt_diff_mult == 0.0)
diff = json_number_value(json_array_get(val, 0)) * pool->algorithm.diff_multiplier1;
else
diff = json_number_value(json_array_get(val, 0)) * opt_diff_mult;
if (diff == 0)
return false;
cg_wlock(&pool-... | 242,998,346,054,727,050,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,398 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool parse_extranonce(struct pool *pool, json_t *val)
{
char *nonce1;
int n2size;
nonce1 = json_array_string(val, 0);
if (!nonce1) {
return false;
}
n2size = json_integer_value(json_array_get(val, 1));
if (!n2size) {
free(nonce1);
return false;
}
cg_wlock(&pool->data_lock);
pool->nonce1 = nonce... | 135,364,207,949,845,880,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,399 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool parse_method(struct pool *pool, char *s)
{
json_t *val = NULL, *method, *err_val, *params;
json_error_t err;
bool ret = false;
char *buf;
if (!s)
return ret;
val = JSON_LOADS(s, &err);
if (!val) {
applog(LOG_INFO, "JSON decode failed(%d): %s", err.line, err.text);
return ret;
}
method = json_obje... | 302,552,597,353,124,000,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,400 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool parse_reconnect(struct pool *pool, json_t *val)
{
if (opt_disable_client_reconnect) {
applog(LOG_WARNING, "Stratum client.reconnect received but is disabled, not reconnecting.");
return false;
}
char *url, *port, address[256];
char *sockaddr_url, *stratum_port, *tmp; /* Tempvars. */
url = (char *... | 25,831,480,052,653,642,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,401 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | const char *proxytype(proxytypes_t proxytype)
{
int i;
for (i = 0; proxynames[i].name; i++)
if (proxynames[i].proxytype == proxytype)
return proxynames[i].name;
return "invalid";
}
| 232,931,199,139,471,050,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,402 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void *realloc_strcat(char *ptr, char *s)
{
size_t old = strlen(ptr), len = strlen(s);
char *ret;
if (!len)
return ptr;
len += old + 1;
align_len(&len);
ret = (char *)malloc(len);
if (unlikely(!ret))
quithere(1, "Failed to malloc");
sprintf(ret, "%s%s", ptr, s);
free(ptr);
return ret;
}
| 99,527,548,793,191,010,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,403 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void recalloc_sock(struct pool *pool, size_t len)
{
size_t old, newlen;
old = strlen(pool->sockbuf);
newlen = old + len + 1;
if (newlen < pool->sockbuf_size)
return;
newlen = newlen + (RBUFSIZE - (newlen % RBUFSIZE));
pool->sockbuf = (char *)realloc(pool->sockbuf, newlen);
if (!pool->sockbuf)
quither... | 96,440,864,161,217,110,000,000,000,000,000,000,000 | None | null | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,404 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static int recv_byte(int sockd)
{
char c;
if (recv(sockd, &c, 1, 0) != -1)
return c;
return -1;
}
| 185,184,095,176,257,070,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,405 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | char *recv_line(struct pool *pool)
{
char *tok, *sret = NULL;
ssize_t len, buflen;
int waited = 0;
if (!strstr(pool->sockbuf, "\n")) {
struct timeval rstart, now;
cgtime(&rstart);
if (!socket_full(pool, DEFAULT_SOCKWAIT)) {
applog(LOG_DEBUG, "Timed out waiting for data on socket_full");
goto out;
}
... | 325,918,948,117,217,500,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,406 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static size_t resp_hdr_cb(void *ptr, size_t size, size_t nmemb, void *user_data)
{
struct header_info *hi = (struct header_info *)user_data;
size_t remlen, slen, ptrlen = size * nmemb;
char *rem, *val = NULL, *key = NULL;
void *tmp;
val = (char *)calloc(1, ptrlen);
key = (char *)calloc(1, ptrlen);
if (!key || !... | 76,808,535,399,725,180,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,407 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool restart_stratum(struct pool *pool)
{
applog(LOG_DEBUG, "Restarting stratum on pool %s", get_pool_name(pool));
if (pool->stratum_active)
suspend_stratum(pool);
if (!initiate_stratum(pool))
return false;
if (pool->extranonce_subscribe && !subscribe_extranonce(pool))
return false;
if (!auth_stratum(pool))... | 307,483,045,778,739,800,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,408 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool send_version(struct pool *pool, json_t *val)
{
char s[RBUFSIZE];
int id = json_integer_value(json_object_get(val, "id"));
if (!id)
return false;
sprintf(s, "{\"id\": %d, \"result\": \""PACKAGE"/"VERSION"\", \"error\": null}", id);
if (!stratum_send(pool, s, strlen(s)))
return false;
return true... | 33,131,039,406,049,840,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,409 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void set_nettime(void)
{
wr_lock(&netacc_lock);
cgtime(&nettime);
wr_unlock(&netacc_lock);
}
| 95,538,154,846,484,280,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,410 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool setup_stratum_socket(struct pool *pool)
{
struct addrinfo servinfobase, *servinfo, *hints, *p;
char *sockaddr_url, *sockaddr_port;
int sockd;
int ret;
mutex_lock(&pool->stratum_lock);
pool->stratum_active = false;
if (pool->sock) {
/* FIXME: change to LOG_DEBUG if issue #88 resolved */
applog(LO... | 183,000,939,413,061,300,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,411 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool show_message(struct pool *pool, json_t *val)
{
char *msg;
if (!json_is_array(val))
return false;
msg = (char *)json_string_value(json_array_get(val, 0));
if (!msg)
return false;
applog(LOG_NOTICE, "%s message: %s", get_pool_name(pool), msg);
return true;
}
| 87,515,285,358,907,350,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,412 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool sock_connecting(void)
{
#ifndef WIN32
return errno == EINPROGRESS;
#else
return WSAGetLastError() == WSAEWOULDBLOCK;
#endif
}
| 92,300,479,016,649,490,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,413 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool sock_full(struct pool *pool)
{
if (strlen(pool->sockbuf))
return true;
return (socket_full(pool, 0));
}
| 275,186,165,584,305,680,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,414 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool socket_full(struct pool *pool, int wait)
{
SOCKETTYPE sock = pool->sock;
struct timeval timeout;
fd_set rd;
if (unlikely(wait < 0))
wait = 0;
FD_ZERO(&rd);
FD_SET(sock, &rd);
timeout.tv_usec = 0;
timeout.tv_sec = wait;
if (select(sock + 1, &rd, NULL, NULL, &timeout) > 0)
return true;
return f... | 30,955,374,175,944,700,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,415 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static bool socks4_negotiate(struct pool *pool, int sockd, bool socks4a)
{
unsigned short port;
in_addr_t inp;
char buf[515];
int i, len;
int ret;
buf[0] = 0x04;
buf[1] = 0x01;
port = atoi(pool->stratum_port);
buf[2] = port >> 8;
buf[3] = port & 0xff;
sprintf(&buf[8], "SGMINER");
/* See if we've been give... | 252,953,607,849,380,460,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,416 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool stratum_send(struct pool *pool, char *s, ssize_t len)
{
enum send_ret ret = SEND_INACTIVE;
if (opt_protocol)
applog(LOG_DEBUG, "SEND: %s", s);
mutex_lock(&pool->stratum_lock);
if (pool->stratum_active)
ret = __stratum_send(pool, s, len);
mutex_unlock(&pool->stratum_lock);
/* This is to avoid doing app... | 90,496,703,599,251,220,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,417 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool subscribe_extranonce(struct pool *pool)
{
json_t *val = NULL, *res_val, *err_val;
char s[RBUFSIZE], *sret = NULL;
json_error_t err;
bool ret = false;
sprintf(s, "{\"id\": %d, \"method\": \"mining.extranonce.subscribe\", \"params\": []}",
swork_id++);
if (!stratum_send(pool, s, strlen(s)))
return ret;
... | 17,469,700,633,831,160,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,418 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | double tdiff(struct timeval *end, struct timeval *start)
{
return end->tv_sec - start->tv_sec + (end->tv_usec - start->tv_usec) / 1000000.0;
}
| 105,388,046,724,811,740,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,419 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void thr_info_cancel(struct thr_info *thr)
{
if (!thr)
return;
if (PTH(thr) != 0L) {
pthread_cancel(thr->pth);
PTH(thr) = 0L;
}
cgsem_destroy(&thr->sem);
}
| 169,299,604,294,445,540,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,420 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool time_less(struct timeval *a, struct timeval *b)
{
return timercmp(a, b, <);
}
| 309,008,260,330,035,670,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,421 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool time_more(struct timeval *a, struct timeval *b)
{
return timercmp(a, b, >);
}
| 54,368,138,437,993,470,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,422 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void timeraddspec(struct timespec *a, const struct timespec *b)
{
a->tv_sec += b->tv_sec;
a->tv_nsec += b->tv_nsec;
if (a->tv_nsec >= 1000000000) {
a->tv_nsec -= 1000000000;
a->tv_sec++;
}
}
| 297,043,187,700,236,370,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,423 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void __maybe_unused timersubspec(struct timespec *a, const struct timespec *b)
{
a->tv_sec -= b->tv_sec;
a->tv_nsec -= b->tv_nsec;
if (a->tv_nsec < 0) {
a->tv_nsec += 1000000000;
a->tv_sec--;
}
}
| 335,306,801,578,827,570,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,424 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void timeval_to_spec(struct timespec *spec, const struct timeval *val)
{
spec->tv_sec = val->tv_sec;
spec->tv_nsec = val->tv_usec * 1000;
}
| 164,340,090,265,402,760,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,425 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void tq_free(struct thread_q *tq)
{
struct tq_ent *ent, *iter;
if (!tq)
return;
list_for_each_entry_safe(ent, iter, &tq->q, q_node) {
list_del(&ent->q_node);
free(ent);
}
pthread_cond_destroy(&tq->cond);
pthread_mutex_destroy(&tq->mutex);
memset(tq, 0, sizeof(*tq)); /* poison */
free(tq);
}
| 271,444,268,056,000,140,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,426 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void tq_freeze(struct thread_q *tq)
{
tq_freezethaw(tq, true);
}
| 139,778,039,568,959,810,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,427 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static void tq_freezethaw(struct thread_q *tq, bool frozen)
{
mutex_lock(&tq->mutex);
tq->frozen = frozen;
pthread_cond_signal(&tq->cond);
mutex_unlock(&tq->mutex);
}
| 299,689,387,134,010,720,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,428 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void *tq_pop(struct thread_q *tq, const struct timespec *abstime)
{
struct tq_ent *ent;
void *rval = NULL;
int rc;
mutex_lock(&tq->mutex);
if (!list_empty(&tq->q))
goto pop;
if (abstime)
rc = pthread_cond_timedwait(&tq->cond, &tq->mutex, abstime);
else
rc = pthread_cond_wait(&tq->cond, &tq->mutex);
if (... | 28,567,300,134,608,780,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,429 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | bool tq_push(struct thread_q *tq, void *data)
{
struct tq_ent *ent;
bool rc = true;
ent = (struct tq_ent *)calloc(1, sizeof(*ent));
if (!ent)
return false;
ent->data = data;
INIT_LIST_HEAD(&ent->q_node);
mutex_lock(&tq->mutex);
if (!tq->frozen) {
list_add_tail(&ent->q_node, &tq->q);
} else {
free(ent)... | 326,061,449,448,965,870,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,430 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void tq_thaw(struct thread_q *tq)
{
tq_freezethaw(tq, false);
}
| 308,165,879,205,551,500,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,431 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | static size_t upload_data_cb(void *ptr, size_t size, size_t nmemb,
void *user_data)
{
struct upload_buffer *ub = (struct upload_buffer *)user_data;
unsigned int len = size * nmemb;
if (len > ub->len)
len = ub->len;
if (len) {
memcpy(ptr, ub->buf, len);
ub->buf = (uint8_t*)ub->buf + len;
ub->len -=... | 150,403,024,470,399,510,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,432 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | double us_tdiff(struct timeval *end, struct timeval *start)
{
/* Sanity check. We should only be using this for small differences so
* limit the max to 60 seconds. */
if (unlikely(end->tv_sec - start->tv_sec > 60))
return 60000000;
return (end->tv_sec - start->tv_sec) * 1000000 + (end->tv_usec - start->tv_usec);... | 257,264,166,157,643,800,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,433 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void us_to_timespec(struct timespec *spec, int64_t us)
{
lldiv_t tvdiv = lldiv(us, 1000000);
spec->tv_sec = tvdiv.quot;
spec->tv_nsec = tvdiv.rem * 1000;
}
| 6,022,116,004,638,577,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,434 | sgminer | 910c36089940e81fb85c65b8e63dcd2fac71470c | https://github.com/sgminer-dev/sgminer | https://github.com/sgminer-dev/sgminer/commit/910c36089940e81fb85c65b8e63dcd2fac71470c | stratum: parse_notify(): Don't die on malformed bbversion/prev_hash/nbit/ntime.
Might have introduced a memory leak, don't have time to check. :(
Should the other hex2bin()'s be checked?
Thanks to Mick Ayzenberg <mick.dejavusecurity.com> for finding this. | 0 | void us_to_timeval(struct timeval *val, int64_t us)
{
lldiv_t tvdiv = lldiv(us, 1000000);
val->tv_sec = tvdiv.quot;
val->tv_usec = tvdiv.rem;
}
| 257,657,283,026,342,430,000,000,000,000,000,000,000 | util.c | 79,021,405,279,685,970,000,000,000,000,000,000,000 | [
"CWE-20"
] | CVE-2014-4503 | The parse_notify function in util.c in sgminer before 4.2.2 and cgminer 3.3.0 through 4.0.1 allows man-in-the-middle attackers to cause a denial of service (application exit) via a crafted (1) bbversion, (2) prev_hash, (3) nbit, or (4) ntime parameter in a mining.notify action stratum message. | https://nvd.nist.gov/vuln/detail/CVE-2014-4503 |
37,435 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static enum send_ret __stratum_send(struct pool *pool, char *s, ssize_t len)
{
SOCKETTYPE sock = pool->sock;
ssize_t ssent = 0;
strcat(s, "\n");
len++;
while (len > 0 ) {
struct timeval timeout = {1, 0};
ssize_t sent;
fd_set wd;
retry:
FD_ZERO(&wd);
FD_SET(sock, &wd);
if (select(sock + 1, NULL, &wd, ... | 79,991,756,000,459,370,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,436 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void _cg_memcpy(void *dest, const void *src, unsigned int n, const char *file, const char *func, const int line)
{
if (unlikely(n < 1 || n > (1ul << 31))) {
applog(LOG_ERR, "ERR: Asked to memcpy %u bytes from %s %s():%d",
n, file, func, line);
return;
}
memcpy(dest, src, n);
}
| 227,736,087,496,867,800,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,437 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void _recalloc(void **ptr, size_t old, size_t new, const char *file, const char *func, const int line)
{
if (new == old)
return;
*ptr = realloc(*ptr, new);
if (unlikely(!*ptr))
quitfrom(1, file, func, line, "Failed to realloc");
if (new > old)
memset(*ptr + old, 0, new - old);
}
| 69,902,835,444,055,430,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,438 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void address_to_pubkeyhash(unsigned char *pkh, const char *addr)
{
unsigned char b58bin[25];
memset(b58bin, 0, 25);
b58tobin(b58bin, addr);
pkh[0] = 0x76;
pkh[1] = 0xa9;
pkh[2] = 0x14;
memcpy(&pkh[3], &b58bin[1], 20);
pkh[23] = 0x88;
pkh[24] = 0xac;
}
| 109,566,589,067,994,020,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,439 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static size_t all_data_cb(const void *ptr, size_t size, size_t nmemb,
void *user_data)
{
struct data_buffer *db = user_data;
size_t len = size * nmemb;
size_t oldlen, newlen;
void *newmem;
static const unsigned char zero = 0;
oldlen = db->len;
newlen = oldlen + len;
newmem = realloc(db->buf, newlen + 1);... | 334,111,520,252,702,500,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,440 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | bool auth_stratum(struct pool *pool)
{
json_t *val = NULL, *res_val, *err_val;
char s[RBUFSIZE], *sret = NULL;
json_error_t err;
bool ret = false;
sprintf(s, "{\"id\": %d, \"method\": \"mining.authorize\", \"params\": [\"%s\", \"%s\"]}",
swork_id++, pool->rpc_user, pool->rpc_pass);
if (!stratum_send(pool, s, ... | 144,531,036,283,650,370,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,441 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void b58tobin(unsigned char *b58bin, const char *b58)
{
uint32_t c, bin32[7];
int len, i, j;
uint64_t t;
memset(bin32, 0, 7 * sizeof(uint32_t));
len = strlen(b58);
for (i = 0; i < len; i++) {
c = b58[i];
c = b58tobin_tbl[c];
for (j = 6; j >= 0; j--) {
t = ((uint64_t)bin32[j]) * 58 + c;
c = (t & 0x3f0... | 85,455,490,002,015,480,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,442 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | char *bin2hex(const unsigned char *p, size_t len)
{
ssize_t slen;
char *s;
slen = len * 2 + 1;
if (slen % 4)
slen += 4 - (slen % 4);
s = calloc(slen, 1);
if (unlikely(!s))
quithere(1, "Failed to calloc");
__bin2hex(s, p, len);
return s;
}
| 322,489,482,821,022,330,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,443 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static int curl_debug_cb(__maybe_unused CURL *handle, curl_infotype type,
__maybe_unused char *data, size_t size, void *userdata)
{
struct pool *pool = (struct pool *)userdata;
switch(type) {
case CURLINFO_HEADER_IN:
case CURLINFO_DATA_IN:
case CURLINFO_SSL_DATA_IN:
pool->cgminer_pool_stats.net_bytes_re... | 316,661,071,972,705,600,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,444 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | char *get_proxy(char *url, struct pool *pool)
{
pool->rpc_proxy = NULL;
char *split;
int plen, len, i;
for (i = 0; proxynames[i].name; i++) {
plen = strlen(proxynames[i].name);
if (strncmp(url, proxynames[i].name, plen) == 0) {
if (!(split = strchr(url, '|')))
return url;
*split = '\0';
len = sp... | 281,076,402,956,552,860,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,445 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static void keep_sockalive(SOCKETTYPE fd)
{
const int tcp_one = 1;
#ifndef WIN32
const int tcp_keepidle = 45;
const int tcp_keepintvl = 30;
int flags = fcntl(fd, F_GETFL, 0);
fcntl(fd, F_SETFL, O_NONBLOCK | flags);
#else
u_long flags = 1;
ioctlsocket(fd, FIONBIO, &flags);
#endif
setsockopt(fd, SOL_SOCKET, SO... | 19,514,709,782,827,735,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,446 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static bool parse_diff(struct pool *pool, json_t *val)
{
double old_diff, diff;
diff = json_number_value(json_array_get(val, 0));
if (diff == 0)
return false;
cg_wlock(&pool->data_lock);
old_diff = pool->sdiff;
pool->sdiff = diff;
cg_wunlock(&pool->data_lock);
if (old_diff != diff) {
int idiff = diff;
... | 53,877,893,940,908,350,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,447 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | bool parse_method(struct pool *pool, char *s)
{
json_t *val = NULL, *method, *err_val, *params;
json_error_t err;
bool ret = false;
char *buf;
if (!s)
goto out;
val = JSON_LOADS(s, &err);
if (!val) {
applog(LOG_INFO, "JSON decode failed(%d): %s", err.line, err.text);
goto out;
}
method = json_object_g... | 154,481,633,427,799,860,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,448 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static void recalloc_sock(struct pool *pool, size_t len)
{
size_t old, new;
old = strlen(pool->sockbuf);
new = old + len + 1;
if (new < pool->sockbuf_size)
return;
new = new + (RBUFSIZE - (new % RBUFSIZE));
pool->sockbuf = realloc(pool->sockbuf, new);
if (!pool->sockbuf)
quithere(1, "Failed to realloc pool ... | 110,108,596,121,167,660,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,449 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static size_t resp_hdr_cb(void *ptr, size_t size, size_t nmemb, void *user_data)
{
struct header_info *hi = user_data;
size_t remlen, slen, ptrlen = size * nmemb;
char *rem, *val = NULL, *key = NULL;
void *tmp;
val = calloc(1, ptrlen);
key = calloc(1, ptrlen);
if (!key || !val)
goto out;
tmp = memchr(ptr, '... | 20,799,427,855,165,762,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,450 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | bool restart_stratum(struct pool *pool)
{
if (pool->stratum_active)
suspend_stratum(pool);
if (!initiate_stratum(pool))
return false;
if (!auth_stratum(pool))
return false;
return true;
}
| 74,920,651,293,042,915,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,451 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | int ser_number(unsigned char *s, int32_t val)
{
int32_t *i32 = (int32_t *)&s[1];
int len;
if (val < 128)
len = 1;
else if (val < 16512)
len = 2;
else if (val < 2113664)
len = 3;
else
len = 4;
*i32 = htole32(val);
s[0] = len++;
return len;
}
| 308,582,150,032,007,570,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,452 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | unsigned char *ser_string(char *s, int *slen)
{
size_t len = strlen(s);
unsigned char *ret;
ret = malloc(1 + len + 8); // Leave room for largest size
if (unlikely(!ret))
quit(1, "Failed to malloc ret in ser_string");
if (len < 253) {
ret[0] = len;
memcpy(ret + 1, s, len);
*slen = len + 1;
} else if (len ... | 120,979,688,604,353,100,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,453 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static bool setup_stratum_socket(struct pool *pool)
{
struct addrinfo servinfobase, *servinfo, *hints, *p;
char *sockaddr_url, *sockaddr_port;
int sockd;
mutex_lock(&pool->stratum_lock);
pool->stratum_active = false;
if (pool->sock)
CLOSESOCKET(pool->sock);
pool->sock = 0;
mutex_unlock(&pool->stratum_lock);
... | 83,287,968,531,651,920,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,454 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static bool show_message(struct pool *pool, json_t *val)
{
char *msg;
if (!json_is_array(val))
return false;
msg = (char *)json_string_value(json_array_get(val, 0));
if (!msg)
return false;
applog(LOG_NOTICE, "Pool %d message: %s", pool->pool_no, msg);
return true;
}
| 310,978,979,792,612,070,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,455 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void *str_text(char *ptr)
{
unsigned char *uptr;
char *ret, *txt;
if (ptr == NULL) {
ret = strdup("(null)");
if (unlikely(!ret))
quithere(1, "Failed to malloc null");
}
uptr = (unsigned char *)ptr;
ret = txt = malloc(strlen(ptr)*4+5); // Guaranteed >= needed
if (unlikely(!txt))
quithere(1, "Failed t... | 214,317,844,220,055,600,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,456 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | bool stratum_send(struct pool *pool, char *s, ssize_t len)
{
enum send_ret ret = SEND_INACTIVE;
if (opt_protocol)
applog(LOG_DEBUG, "SEND: %s", s);
mutex_lock(&pool->stratum_lock);
if (pool->stratum_active)
ret = __stratum_send(pool, s, len);
mutex_unlock(&pool->stratum_lock);
/* This is to avoid doing app... | 322,345,121,719,780,250,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,457 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void suspend_stratum(struct pool *pool)
{
applog(LOG_INFO, "Closing socket for stratum pool %d", pool->pool_no);
mutex_lock(&pool->stratum_lock);
__suspend_stratum(pool);
mutex_unlock(&pool->stratum_lock);
}
| 133,690,229,561,924,990,000,000,000,000,000,000,000 | util.c | 129,321,568,267,466,400,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,458 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | struct thread_q *tq_new(void)
{
struct thread_q *tq;
tq = calloc(1, sizeof(*tq));
if (!tq)
return NULL;
INIT_LIST_HEAD(&tq->q);
pthread_mutex_init(&tq->mutex, NULL);
pthread_cond_init(&tq->cond, NULL);
return tq;
}
| 329,592,921,656,869,840,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,459 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | void *tq_pop(struct thread_q *tq, const struct timespec *abstime)
{
struct tq_ent *ent;
void *rval = NULL;
int rc;
mutex_lock(&tq->mutex);
if (!list_empty(&tq->q))
goto pop;
if (abstime)
rc = pthread_cond_timedwait(&tq->cond, &tq->mutex, abstime);
else
rc = pthread_cond_wait(&tq->cond, &tq->mutex);
if (... | 307,526,879,241,795,800,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,460 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | bool tq_push(struct thread_q *tq, void *data)
{
struct tq_ent *ent;
bool rc = true;
ent = calloc(1, sizeof(*ent));
if (!ent)
return false;
ent->data = data;
INIT_LIST_HEAD(&ent->q_node);
mutex_lock(&tq->mutex);
if (!tq->frozen) {
list_add_tail(&ent->q_node, &tq->q);
} else {
free(ent);
rc = false;
... | 23,827,929,915,271,243,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,461 | cgminer | e1c5050734123973b99d181c45e74b2cbb00272e | https://github.com/ckolivas/cgminer | https://github.com/ckolivas/cgminer/commit/e1c5050734123973b99d181c45e74b2cbb00272e | Do some random sanity checking for stratum message parsing | 0 | static size_t upload_data_cb(void *ptr, size_t size, size_t nmemb,
void *user_data)
{
struct upload_buffer *ub = user_data;
unsigned int len = size * nmemb;
if (len > ub->len)
len = ub->len;
if (len) {
memcpy(ptr, ub->buf, len);
ub->buf += len;
ub->len -= len;
}
return len;
}
| 234,256,159,794,026,700,000,000,000,000,000,000,000 | util.c | 122,106,294,667,611,740,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4502 | Multiple heap-based buffer overflows in the parse_notify function in sgminer before 4.2.2, cgminer before 4.3.5, and BFGMiner before 4.1.0 allow remote pool servers to have unspecified impact via a (1) large or (2) negative value in the Extranonc2_size parameter in a mining.subscribe response and a crafted mining.notif... | https://nvd.nist.gov/vuln/detail/CVE-2014-4502 |
37,462 | krb5 | dc7ed55c689d57de7f7408b34631bf06fec9dab1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/dc7ed55c689d57de7f7408b34631bf06fec9dab1 | Fix LDAP key data segmentation [CVE-2014-4345]
For principal entries having keys with multiple kvnos (due to use of
-keepold), the LDAP KDB module makes an attempt to store all the keys
having the same kvno into a single krbPrincipalKey attribute value.
There is a fencepost error in the loop, causing currkvno to be se... | 0 | krb5_decode_krbsecretkey(krb5_context context, krb5_db_entry *entries,
struct berval **bvalues,
krb5_tl_data *userinfo_tl_data, krb5_kvno *mkvno)
{
char *user=NULL;
int i=0, j=0, noofkeys=0;
krb5_key_data ... | 302,009,641,932,363,470,000,000,000,000,000,000,000 | ldap_principal2.c | 316,523,537,587,346,200,000,000,000,000,000,000,000 | [
"CWE-189"
] | CVE-2014-4345 | Off-by-one error in the krb5_encode_krbsecretkey function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the LDAP KDB module in kadmind in MIT Kerberos 5 (aka krb5) 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 allows remote authenticated users to cause a denial of service (buffer overflow) or possi... | https://nvd.nist.gov/vuln/detail/CVE-2014-4345 |
37,463 | krb5 | dc7ed55c689d57de7f7408b34631bf06fec9dab1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/dc7ed55c689d57de7f7408b34631bf06fec9dab1 | Fix LDAP key data segmentation [CVE-2014-4345]
For principal entries having keys with multiple kvnos (due to use of
-keepold), the LDAP KDB module makes an attempt to store all the keys
having the same kvno into a single krbPrincipalKey attribute value.
There is a fencepost error in the loop, causing currkvno to be se... | 0 | krb5_ldap_get_principal(krb5_context context, krb5_const_principal searchfor,
unsigned int flags, krb5_db_entry **entry_ptr)
{
char *user=NULL, *filter=NULL, *filtuser=NULL;
unsigned int tree=0, ntrees=1, princlen=0;
krb5_error_code t... | 26,242,639,423,838,680,000,000,000,000,000,000,000 | ldap_principal2.c | 316,523,537,587,346,200,000,000,000,000,000,000,000 | [
"CWE-189"
] | CVE-2014-4345 | Off-by-one error in the krb5_encode_krbsecretkey function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the LDAP KDB module in kadmind in MIT Kerberos 5 (aka krb5) 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 allows remote authenticated users to cause a denial of service (buffer overflow) or possi... | https://nvd.nist.gov/vuln/detail/CVE-2014-4345 |
37,464 | krb5 | dc7ed55c689d57de7f7408b34631bf06fec9dab1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/dc7ed55c689d57de7f7408b34631bf06fec9dab1 | Fix LDAP key data segmentation [CVE-2014-4345]
For principal entries having keys with multiple kvnos (due to use of
-keepold), the LDAP KDB module makes an attempt to store all the keys
having the same kvno into a single krbPrincipalKey attribute value.
There is a fencepost error in the loop, causing currkvno to be se... | 0 | krb5_ldap_put_principal(krb5_context context, krb5_db_entry *entry,
char **db_args)
{
int l=0, kerberos_principal_object_type=0;
unsigned int ntrees=0, tre=0;
krb5_error_code st=0, tempst=0;
LDAP *ld=NULL;
... | 139,326,443,298,545,370,000,000,000,000,000,000,000 | ldap_principal2.c | 316,523,537,587,346,200,000,000,000,000,000,000,000 | [
"CWE-189"
] | CVE-2014-4345 | Off-by-one error in the krb5_encode_krbsecretkey function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the LDAP KDB module in kadmind in MIT Kerberos 5 (aka krb5) 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 allows remote authenticated users to cause a denial of service (buffer overflow) or possi... | https://nvd.nist.gov/vuln/detail/CVE-2014-4345 |
37,465 | krb5 | dc7ed55c689d57de7f7408b34631bf06fec9dab1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/dc7ed55c689d57de7f7408b34631bf06fec9dab1 | Fix LDAP key data segmentation [CVE-2014-4345]
For principal entries having keys with multiple kvnos (due to use of
-keepold), the LDAP KDB module makes an attempt to store all the keys
having the same kvno into a single krbPrincipalKey attribute value.
There is a fencepost error in the loop, causing currkvno to be se... | 0 | krb5_read_tkt_policy(krb5_context context, krb5_ldap_context *ldap_context,
krb5_db_entry *entries, char *policy)
{
krb5_error_code st=0;
int mask=0, omask=0;
int tkt_mask=(KDB_MAX_LIFE_ATTR | KDB_MAX_RLIFE_ATTR | KDB_TKT_FLAGS... | 337,994,694,402,691,540,000,000,000,000,000,000,000 | ldap_principal2.c | 316,523,537,587,346,200,000,000,000,000,000,000,000 | [
"CWE-189"
] | CVE-2014-4345 | Off-by-one error in the krb5_encode_krbsecretkey function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the LDAP KDB module in kadmind in MIT Kerberos 5 (aka krb5) 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 allows remote authenticated users to cause a denial of service (buffer overflow) or possi... | https://nvd.nist.gov/vuln/detail/CVE-2014-4345 |
37,466 | krb5 | dc7ed55c689d57de7f7408b34631bf06fec9dab1 | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/dc7ed55c689d57de7f7408b34631bf06fec9dab1 | Fix LDAP key data segmentation [CVE-2014-4345]
For principal entries having keys with multiple kvnos (due to use of
-keepold), the LDAP KDB module makes an attempt to store all the keys
having the same kvno into a single krbPrincipalKey attribute value.
There is a fencepost error in the loop, causing currkvno to be se... | 0 | process_db_args(krb5_context context, char **db_args, xargs_t *xargs,
OPERATION optype)
{
int i=0;
krb5_error_code st=0;
char *arg=NULL, *arg_val=NULL;
char **dptr=NULL;
unsigned int arg_val_len=0;
if (db_args) {... | 303,265,381,157,192,530,000,000,000,000,000,000,000 | ldap_principal2.c | 316,523,537,587,346,200,000,000,000,000,000,000,000 | [
"CWE-189"
] | CVE-2014-4345 | Off-by-one error in the krb5_encode_krbsecretkey function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c in the LDAP KDB module in kadmind in MIT Kerberos 5 (aka krb5) 1.6.x through 1.11.x before 1.11.6 and 1.12.x before 1.12.2 allows remote authenticated users to cause a denial of service (buffer overflow) or possi... | https://nvd.nist.gov/vuln/detail/CVE-2014-4345 |
37,520 | krb5 | f18ddf5d82de0ab7591a36e465bc24225776940f | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/f18ddf5d82de0ab7591a36e465bc24225776940f | Fix double-free in SPNEGO [CVE-2014-4343]
In commit cd7d6b08 ("Verify acceptor's mech in SPNEGO initiator") the
pointer sc->internal_mech became an alias into sc->mech_set->elements,
which should be considered constant for the duration of the SPNEGO
context. So don't free it.
CVE-2014-4343:
In MIT krb5 releases 1.1... | 0 | init_ctx_cont(OM_uint32 *minor_status, gss_ctx_id_t *ctx, gss_buffer_t buf,
gss_buffer_t *responseToken, gss_buffer_t *mechListMIC,
OM_uint32 *negState, send_token_flag *tokflag)
{
OM_uint32 ret, tmpmin, acc_negState;
unsigned char *ptr;
spnego_gss_ctx_id_t sc;
gss_OID supportedMech = GSS_C_NO_OID;
... | 89,014,843,785,111,810,000,000,000,000,000,000,000 | spnego_mech.c | 336,998,250,158,350,600,000,000,000,000,000,000,000 | [
"CWE-415"
] | CVE-2014-4343 | Double free vulnerability in the init_ctx_reselect function in the SPNEGO initiator in lib/gssapi/spnego/spnego_mech.c in MIT Kerberos 5 (aka krb5) 1.10.x through 1.12.x before 1.12.2 allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via network traffic that app... | https://nvd.nist.gov/vuln/detail/CVE-2014-4343 |
37,521 | krb5 | f18ddf5d82de0ab7591a36e465bc24225776940f | https://github.com/krb5/krb5 | https://github.com/krb5/krb5/commit/f18ddf5d82de0ab7591a36e465bc24225776940f | Fix double-free in SPNEGO [CVE-2014-4343]
In commit cd7d6b08 ("Verify acceptor's mech in SPNEGO initiator") the
pointer sc->internal_mech became an alias into sc->mech_set->elements,
which should be considered constant for the duration of the SPNEGO
context. So don't free it.
CVE-2014-4343:
In MIT krb5 releases 1.1... | 0 | mech_requires_mechlistMIC(spnego_gss_ctx_id_t sc)
{
OM_uint32 major, minor;
gss_ctx_id_t ctx = sc->ctx_handle;
gss_OID oid = (gss_OID)&spnego_req_mechlistMIC_oid;
gss_buffer_set_t bufs;
int result;
major = gss_inquire_sec_context_by_oid(&minor, ctx, oid, &bufs);
if (major != GSS_S_COMPLETE)
return 0;
/* Rep... | 6,118,100,478,890,110,000,000,000,000,000,000,000 | spnego_mech.c | 336,998,250,158,350,600,000,000,000,000,000,000,000 | [
"CWE-415"
] | CVE-2014-4343 | Double free vulnerability in the init_ctx_reselect function in the SPNEGO initiator in lib/gssapi/spnego/spnego_mech.c in MIT Kerberos 5 (aka krb5) 1.10.x through 1.12.x before 1.12.2 allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via network traffic that app... | https://nvd.nist.gov/vuln/detail/CVE-2014-4343 |
37,528 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_FUNCTION(gethostbyaddr)
{
char *addr;
int addr_len;
char *hostname;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &addr, &addr_len) == FAILURE) {
return;
}
hostname = php_gethostbyaddr(addr);
if (hostname == NULL) {
#if HAVE_IPV6 && HAVE_INET_PTON
php_error_docref(NULL TSRMLS_CC, E_WARNING... | 301,131,647,644,758,800,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,529 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_FUNCTION(gethostbyname)
{
char *hostname;
int hostname_len;
char *addr;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &hostname_len) == FAILURE) {
return;
}
addr = php_gethostbyname(hostname);
RETVAL_STRING(addr, 0);
}
| 120,317,521,952,926,160,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,530 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_FUNCTION(gethostbynamel)
{
char *hostname;
int hostname_len;
struct hostent *hp;
struct in_addr in;
int i;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hostname, &hostname_len) == FAILURE) {
return;
}
hp = gethostbyname(hostname);
if (hp == NULL || hp->h_addr_list == NULL) {
RETURN_FALS... | 105,133,704,959,030,600,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,531 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_FUNCTION(dns_check_record)
{
#ifndef MAXPACKET
#define MAXPACKET 8192 /* max packet size used internally by BIND */
#endif
u_char ans[MAXPACKET];
char *hostname, *rectype = NULL;
int hostname_len, rectype_len = 0;
int type = T_MX, i;
#if defined(HAVE_DNS_SEARCH)
struct sockaddr_storage from;
uint32_t fromsiz... | 229,257,325,679,847,730,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,532 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_FUNCTION(dns_get_mx)
{
char *hostname;
int hostname_len;
zval *mx_list, *weight_list = NULL;
int count, qdc;
u_short type, weight;
u_char ans[MAXPACKET];
char buf[MAXHOSTNAMELEN];
HEADER *hp;
u_char *cp, *end;
int i;
#if defined(HAVE_DNS_SEARCH)
struct sockaddr_storage from;
uint32_t fromsize = sizeof(f... | 168,032,653,954,806,670,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,533 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | PHP_MINIT_FUNCTION(dns) {
REGISTER_LONG_CONSTANT("DNS_A", PHP_DNS_A, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DNS_NS", PHP_DNS_NS, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DNS_CNAME", PHP_DNS_CNAME, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DNS_SOA", PHP_DNS_SOA... | 122,222,183,603,343,920,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,534 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | static void _php_dns_free_res(struct __res_state res) { /* {{{ */
int ns;
for (ns = 0; ns < MAXNS; ns++) {
if (res._u._ext.nsaddrs[ns] != NULL) {
free (res._u._ext.nsaddrs[ns]);
res._u._ext.nsaddrs[ns] = NULL;
}
}
} /* }}} */
| 219,442,203,287,337,670,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,535 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | static char *php_gethostbyaddr(char *ip)
{
#if HAVE_IPV6 && HAVE_INET_PTON
struct in6_addr addr6;
#endif
struct in_addr addr;
struct hostent *hp;
#if HAVE_IPV6 && HAVE_INET_PTON
if (inet_pton(AF_INET6, ip, &addr6)) {
hp = gethostbyaddr((char *) &addr6, sizeof(addr6), AF_INET6);
} else if (inet_pton(AF_INET, ip,... | 195,669,238,756,068,780,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,536 | php-src | b34d7849ed90ced9345f8ea1c59bc8d101c18468 | https://github.com/php/php-src | https://github.com/php/php-src/commit/b34d7849ed90ced9345f8ea1c59bc8d101c18468 | Merge branch 'PHP-5.6'
* PHP-5.6:
Fix potential segfault in dns_get_record() | 0 | static char *php_gethostbyname(char *name)
{
struct hostent *hp;
struct in_addr in;
hp = gethostbyname(name);
if (!hp || !*(hp->h_addr_list)) {
return estrdup(name);
}
memcpy(&in.s_addr, *(hp->h_addr_list), sizeof(in.s_addr));
return estrdup(inet_ntoa(in));
}
| 245,717,265,264,641,940,000,000,000,000,000,000,000 | dns.c | 85,838,985,084,908,530,000,000,000,000,000,000,000 | [
"CWE-119"
] | CVE-2014-4049 | Heap-based buffer overflow in the php_parserr function in ext/standard/dns.c in PHP 5.6.0beta4 and earlier allows remote servers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted DNS TXT record, related to the dns_get_record function. | https://nvd.nist.gov/vuln/detail/CVE-2014-4049 |
37,537 | linux | 4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | target/rd: Refactor rd_build_device_space + rd_release_device_space
This patch refactors rd_build_device_space() + rd_release_device_space()
into rd_allocate_sgl_table() + rd_release_device_space() so that they
may be used seperatly for setup + release of protection information
scatterlists.
Also add explicit memset ... | 0 | static inline struct rd_dev *RD_DEV(struct se_device *dev)
{
return container_of(dev, struct rd_dev, dev);
}
| 247,888,212,347,615,920,000,000,000,000,000,000,000 | target_core_rd.c | 66,009,037,141,069,600,000,000,000,000,000,000,000 | [
"CWE-264"
] | CVE-2014-4027 | The rd_build_device_space function in drivers/target/target_core_rd.c in the Linux kernel before 3.14 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from ramdisk_mcp memory by leveraging access to a SCSI initiator. | https://nvd.nist.gov/vuln/detail/CVE-2014-4027 |
37,538 | linux | 4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | target/rd: Refactor rd_build_device_space + rd_release_device_space
This patch refactors rd_build_device_space() + rd_release_device_space()
into rd_allocate_sgl_table() + rd_release_device_space() so that they
may be used seperatly for setup + release of protection information
scatterlists.
Also add explicit memset ... | 0 | static struct se_device *rd_alloc_device(struct se_hba *hba, const char *name)
{
struct rd_dev *rd_dev;
struct rd_host *rd_host = hba->hba_ptr;
rd_dev = kzalloc(sizeof(struct rd_dev), GFP_KERNEL);
if (!rd_dev) {
pr_err("Unable to allocate memory for struct rd_dev\n");
return NULL;
}
rd_dev->rd_host = rd_hos... | 197,191,789,887,663,820,000,000,000,000,000,000,000 | target_core_rd.c | 66,009,037,141,069,600,000,000,000,000,000,000,000 | [
"CWE-264"
] | CVE-2014-4027 | The rd_build_device_space function in drivers/target/target_core_rd.c in the Linux kernel before 3.14 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from ramdisk_mcp memory by leveraging access to a SCSI initiator. | https://nvd.nist.gov/vuln/detail/CVE-2014-4027 |
37,539 | linux | 4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | target/rd: Refactor rd_build_device_space + rd_release_device_space
This patch refactors rd_build_device_space() + rd_release_device_space()
into rd_allocate_sgl_table() + rd_release_device_space() so that they
may be used seperatly for setup + release of protection information
scatterlists.
Also add explicit memset ... | 0 | static int rd_configure_device(struct se_device *dev)
{
struct rd_dev *rd_dev = RD_DEV(dev);
struct rd_host *rd_host = dev->se_hba->hba_ptr;
int ret;
if (!(rd_dev->rd_flags & RDF_HAS_PAGE_COUNT)) {
pr_debug("Missing rd_pages= parameter\n");
return -EINVAL;
}
ret = rd_build_device_space(rd_dev);
if (ret < 0... | 29,883,503,940,701,134,000,000,000,000,000,000,000 | target_core_rd.c | 66,009,037,141,069,600,000,000,000,000,000,000,000 | [
"CWE-264"
] | CVE-2014-4027 | The rd_build_device_space function in drivers/target/target_core_rd.c in the Linux kernel before 3.14 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from ramdisk_mcp memory by leveraging access to a SCSI initiator. | https://nvd.nist.gov/vuln/detail/CVE-2014-4027 |
37,540 | linux | 4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/4442dc8a92b8f9ad8ee9e7f8438f4c04c03a22dc | target/rd: Refactor rd_build_device_space + rd_release_device_space
This patch refactors rd_build_device_space() + rd_release_device_space()
into rd_allocate_sgl_table() + rd_release_device_space() so that they
may be used seperatly for setup + release of protection information
scatterlists.
Also add explicit memset ... | 0 | static void rd_detach_hba(struct se_hba *hba)
{
struct rd_host *rd_host = hba->hba_ptr;
pr_debug("CORE_HBA[%d] - Detached Ramdisk HBA: %u from"
" Generic Target Core\n", hba->hba_id, rd_host->rd_host_id);
kfree(rd_host);
hba->hba_ptr = NULL;
}
| 34,622,038,583,971,390,000,000,000,000,000,000,000 | target_core_rd.c | 66,009,037,141,069,600,000,000,000,000,000,000,000 | [
"CWE-264"
] | CVE-2014-4027 | The rd_build_device_space function in drivers/target/target_core_rd.c in the Linux kernel before 3.14 does not properly initialize a certain data structure, which allows local users to obtain sensitive information from ramdisk_mcp memory by leveraging access to a SCSI initiator. | https://nvd.nist.gov/vuln/detail/CVE-2014-4027 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.