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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34,567 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int ti_vsend_sync(struct usb_device *dev, __u8 request,
__u16 value, __u16 index, u8 *data, int size)
{
int status;
status = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request,
(USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_OUT),
value, index, data, size, 1000);
if (status < 0)
return status;
... | 168,742,558,763,207,700,000,000,000,000,000,000,000 | None | null | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,568 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int tx_active(struct edgeport_port *port)
{
int status;
struct out_endpoint_desc_block *oedb;
__u8 *lsr;
int bytes_left = 0;
oedb = kmalloc(sizeof(*oedb), GFP_KERNEL);
if (!oedb) {
dev_err(&port->port->dev, "%s - out of memory\n", __func__);
return -ENOMEM;
}
lsr = kmalloc(1, GFP_KERNEL); /* Sigh, ... | 2,321,494,202,032,526,400,000,000,000,000,000,000 | None | null | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,569 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int valid_csum(struct ti_i2c_desc *rom_desc, __u8 *buffer)
{
__u16 i;
__u8 cs = 0;
for (i = 0; i < rom_desc->Size; i++)
cs = (__u8)(cs + buffer[i]);
if (cs != rom_desc->CheckSum) {
pr_debug("%s - Mismatch %x - %x", __func__, rom_desc->CheckSum, cs);
return -EINVAL;
}
return 0;
}
| 107,822,021,082,184,450,000,000,000,000,000,000,000 | None | null | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,570 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int write_boot_mem(struct edgeport_serial *serial,
int start_address, int length, __u8 *buffer)
{
int status = 0;
int i;
u8 *temp;
/* Must do a read before write */
if (!serial->TiReadI2C) {
temp = kmalloc(1, GFP_KERNEL);
if (!temp) {
dev_err(&serial->serial->dev->dev,
"%s - out of memory\n... | 46,065,601,002,912,250,000,000,000,000,000,000,000 | None | null | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,571 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int write_i2c_mem(struct edgeport_serial *serial,
int start_address, int length, __u8 address_type, __u8 *buffer)
{
struct device *dev = &serial->serial->dev->dev;
int status = 0;
int write_length;
__be16 be_start_address;
/* We can only send a maximum of 1 aligned byte page at a time */
/* calculate t... | 245,302,896,696,899,800,000,000,000,000,000,000,000 | None | null | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,572 | linux | 1ee0a224bc9aad1de496c795f96bc6ba2c394811 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/1ee0a224bc9aad1de496c795f96bc6ba2c394811 | USB: io_ti: Fix NULL dereference in chase_port()
The tty is NULL when the port is hanging up.
chase_port() needs to check for this.
This patch is intended for stable series.
The behavior was observed and tested in Linux 3.2 and 3.7.1.
Johan Hovold submitted a more elaborate patch for the mainline kernel.
[ 56.277... | 0 | static int write_rom(struct edgeport_serial *serial, int start_address,
int length, __u8 *buffer)
{
if (serial->product_info.TiMode == TI_MODE_BOOT)
return write_boot_mem(serial, start_address, length,
buffer);
if (serial->product_info.TiMode == TI_MODE_DOWNLOAD)
return write_i2c_mem(serial, start_... | 5,201,789,815,983,335,000,000,000,000,000,000,000 | io_ti.c | 311,416,253,777,553,600,000,000,000,000,000,000,000 | [
"CWE-264"
] | CVE-2013-1774 | The chase_port function in drivers/usb/serial/io_ti.c in the Linux kernel before 3.7.4 allows local users to cause a denial of service (NULL pointer dereference and system crash) via an attempted /dev/ttyUSB read or write operation on a disconnected Edgeport USB serial converter. | https://nvd.nist.gov/vuln/detail/CVE-2013-1774 |
34,617 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | SYSCALL_DEFINE3(syslog, int, type, char __user *, buf, int, len)
{
return do_syslog(type, buf, len, SYSLOG_FROM_CALL);
}
| 26,075,795,760,171,634,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,618 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __add_preferred_console(char *name, int idx, char *options,
char *brl_options)
{
struct console_cmdline *c;
int i;
/*
* See if this tty is not yet registered, and
* if we have a slot free.
*/
for (i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; i++)
if (strcmp(console_cmdlin... | 132,187,810,568,453,920,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,619 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int __printk_ratelimit(const char *func)
{
return ___ratelimit(&printk_ratelimit_state, func);
}
| 34,737,816,558,264,496,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,620 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static void _call_console_drivers(unsigned start,
unsigned end, int msg_log_level)
{
trace_console(&LOG_BUF(0), start, end, log_buf_len);
if ((msg_log_level < console_loglevel || ignore_loglevel) &&
console_drivers && start != end) {
if ((start & LOG_BUF_MASK) > (end & LOG_BUF_MASK)) {
/* wrapped write *... | 326,426,154,466,162,350,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,621 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static void boot_delay_msec(void)
{
unsigned long long k;
unsigned long timeout;
if (boot_delay == 0 || system_state != SYSTEM_BOOTING)
return;
k = (unsigned long long)loops_per_msec * boot_delay;
timeout = jiffies + msecs_to_jiffies(boot_delay);
while (k) {
k--;
cpu_relax();
/*
* use (volatile) jif... | 9,149,636,945,136,012,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,622 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static inline void boot_delay_msec(void)
{
}
| 330,214,767,127,709,700,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,623 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static void call_console_drivers(unsigned start, unsigned end)
{
}
| 295,916,148,476,858,840,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,624 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static inline int can_use_console(unsigned int cpu)
{
return cpu_online(cpu) || have_callable_console();
}
| 224,131,888,008,028,300,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,625 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int check_syslog_permissions(int type, bool from_file)
{
/*
* If this is from /proc/kmsg and we've already opened it, then we've
* already done the capabilities checks at open time.
*/
if (from_file && type != SYSLOG_ACTION_OPEN)
return 0;
if (syslog_action_restricted(type)) {
if (capable(CAP_SYSLO... | 121,356,851,899,536,510,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,626 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void __sched console_conditional_schedule(void)
{
if (console_may_schedule)
cond_resched();
}
| 81,461,352,640,246,270,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,627 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __cpuinit console_cpu_notify(struct notifier_block *self,
unsigned long action, void *hcpu)
{
switch (action) {
case CPU_ONLINE:
case CPU_DEAD:
case CPU_DYING:
case CPU_DOWN_FAILED:
case CPU_UP_CANCELED:
console_lock();
console_unlock();
}
return NOTIFY_OK;
}
| 22,379,752,731,108,560,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,628 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | struct tty_driver *console_device(int *index)
{
struct console *c;
struct tty_driver *driver = NULL;
console_lock();
for_each_console(c) {
if (!c->device)
continue;
driver = c->device(c, index);
if (driver)
break;
}
console_unlock();
return driver;
}
| 267,657,177,025,302,860,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,629 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void console_lock(void)
{
BUG_ON(in_interrupt());
down(&console_sem);
if (console_suspended)
return;
console_locked = 1;
console_may_schedule = 1;
}
| 35,326,597,082,069,633,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,630 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __init console_setup(char *str)
{
char buf[sizeof(console_cmdline[0].name) + 4]; /* 4 for index */
char *s, *options, *brl_options = NULL;
int idx;
#ifdef CONFIG_A11Y_BRAILLE_CONSOLE
if (!memcmp(str, "brl,", 4)) {
brl_options = "";
str += 4;
} else if (!memcmp(str, "brl=", 4)) {
brl_options = str... | 115,037,007,964,691,400,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,631 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void console_start(struct console *console)
{
console_lock();
console->flags |= CON_ENABLED;
console_unlock();
}
| 292,902,652,350,794,100,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,632 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void console_stop(struct console *console)
{
console_lock();
console->flags &= ~CON_ENABLED;
console_unlock();
}
| 202,289,658,478,615,800,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,633 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __init console_suspend_disable(char *str)
{
console_suspend_enabled = 0;
return 1;
}
| 49,001,059,807,249,030,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,634 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int console_trylock(void)
{
if (down_trylock(&console_sem))
return 0;
if (console_suspended) {
up(&console_sem);
return 0;
}
console_locked = 1;
console_may_schedule = 0;
return 1;
}
| 66,351,402,591,488,635,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,635 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void console_unblank(void)
{
struct console *c;
/*
* console_unblank can no longer be called in interrupt context unless
* oops_in_progress is set to 1..
*/
if (oops_in_progress) {
if (down_trylock(&console_sem) != 0)
return;
} else
console_lock();
console_locked = 1;
console_may_schedule = 0;
for... | 283,251,320,599,340,900,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,636 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int do_syslog(int type, char __user *buf, int len, bool from_file)
{
unsigned i, j, limit, count;
int do_clear = 0;
char c;
int error;
error = check_syslog_permissions(type, from_file);
if (error)
goto out;
error = security_syslog(type);
if (error)
return error;
switch (type) {
case SYSLOG_ACTION_CLOSE... | 55,485,303,969,702,340,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,637 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void asmlinkage __attribute__((weak)) early_printk(const char *fmt, ...)
{
}
| 22,695,157,846,241,617,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,638 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static void emit_log_char(char c)
{
LOG_BUF(log_end) = c;
log_end++;
if (log_end - log_start > log_buf_len)
log_start = log_end - log_buf_len;
if (log_end - con_start > log_buf_len)
con_start = log_end - log_buf_len;
if (logged_chars < log_buf_len)
logged_chars++;
}
| 185,821,595,820,223,450,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,639 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int have_callable_console(void)
{
struct console *con;
for_each_console(con)
if (con->flags & CON_ANYTIME)
return 1;
return 0;
}
| 312,031,729,361,522,140,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,640 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __init ignore_loglevel_setup(char *str)
{
ignore_loglevel = 1;
printk(KERN_INFO "debug: ignoring loglevel setting.\n");
return 0;
}
| 184,065,710,546,587,900,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,641 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int is_console_locked(void)
{
return console_locked;
}
| 85,797,547,577,346,180,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,642 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void kdb_syslog_data(char *syslog_data[4])
{
syslog_data[0] = log_buf;
syslog_data[1] = log_buf + log_buf_len;
syslog_data[2] = log_buf + log_end -
(logged_chars < log_buf_len ? logged_chars : log_buf_len);
syslog_data[3] = log_buf + log_end;
}
| 159,925,556,345,156,500,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,643 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void kmsg_dump(enum kmsg_dump_reason reason)
{
unsigned long end;
unsigned chars;
struct kmsg_dumper *dumper;
const char *s1, *s2;
unsigned long l1, l2;
unsigned long flags;
if ((reason > KMSG_DUMP_OOPS) && !always_kmsg_dump)
return;
/* Theoretically, the log could move on after we do this, but
there's ... | 279,644,186,706,149,200,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,644 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int kmsg_dump_unregister(struct kmsg_dumper *dumper)
{
unsigned long flags;
int err = -EINVAL;
spin_lock_irqsave(&dump_list_lock, flags);
if (dumper->registered) {
dumper->registered = 0;
list_del_rcu(&dumper->list);
err = 0;
}
spin_unlock_irqrestore(&dump_list_lock, flags);
synchronize_rcu();
return er... | 68,967,528,592,305,280,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,645 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void log_buf_kexec_setup(void)
{
VMCOREINFO_SYMBOL(log_buf);
VMCOREINFO_SYMBOL(log_end);
VMCOREINFO_SYMBOL(log_buf_len);
VMCOREINFO_SYMBOL(logged_chars);
}
| 105,185,893,902,339,920,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,646 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __init log_buf_len_setup(char *str)
{
unsigned size = memparse(str, &str);
if (size)
size = roundup_pow_of_two(size);
if (size > log_buf_len)
new_log_buf_len = size;
return 0;
}
| 262,779,723,948,239,250,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,647 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static size_t log_prefix(const char *p, unsigned int *level, char *special)
{
unsigned int lev = 0;
char sp = '\0';
size_t len;
if (p[0] != '<' || !p[1])
return 0;
if (p[2] == '>') {
/* usual single digit level number or special char */
switch (p[1]) {
case '0' ... '7':
lev = p[1] - '0';
break;
ca... | 80,531,400,923,890,890,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,648 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | asmlinkage int printk(const char *fmt, ...)
{
va_list args;
int r;
#ifdef CONFIG_KGDB_KDB
if (unlikely(kdb_trap_printk)) {
va_start(args, fmt);
r = vkdb_printf(fmt, args);
va_end(args);
return r;
}
#endif
va_start(args, fmt);
r = vprintk(fmt, args);
va_end(args);
return r;
}
| 121,155,140,591,469,530,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,649 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static inline void printk_delay(void)
{
if (unlikely(printk_delay_msec)) {
int m = printk_delay_msec;
while (m--) {
mdelay(1);
touch_nmi_watchdog();
}
}
}
| 21,331,892,017,029,940,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,650 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int __init printk_late_init(void)
{
struct console *con;
for_each_console(con) {
if (!keep_bootcon && con->flags & CON_BOOT) {
printk(KERN_INFO "turn off boot console %s%d\n",
con->name, con->index);
unregister_console(con);
}
}
hotcpu_notifier(console_cpu_notify, 0);
return 0;
}
| 284,481,328,430,990,970,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,651 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int printk_needs_cpu(int cpu)
{
if (cpu_is_offline(cpu))
printk_tick();
return __this_cpu_read(printk_pending);
}
| 299,602,800,702,217,650,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,652 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void printk_tick(void)
{
if (__this_cpu_read(printk_pending)) {
int pending = __this_cpu_xchg(printk_pending, 0);
if (pending & PRINTK_PENDING_SCHED) {
char *buf = __get_cpu_var(printk_sched_buf);
printk(KERN_WARNING "[sched_delayed] %s", buf);
}
if (pending & PRINTK_PENDING_WAKEUP)
wake_up_interrupti... | 69,150,351,476,722,350,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,653 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | bool printk_timed_ratelimit(unsigned long *caller_jiffies,
unsigned int interval_msecs)
{
if (*caller_jiffies == 0
|| !time_in_range(jiffies, *caller_jiffies,
*caller_jiffies
+ msecs_to_jiffies(interval_msecs))) {
*caller_jiffies = jiffies;
return true;
}
return false;
}
| 122,617,587,807,106,560,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,654 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void register_console(struct console *newcon)
{
int i;
unsigned long flags;
struct console *bcon = NULL;
/*
* before we register a new CON_BOOT console, make sure we don't
* already have a valid console
*/
if (console_drivers && newcon->flags & CON_BOOT) {
/* find the last or real console */
for_each_co... | 227,589,102,770,161,460,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,655 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void resume_console(void)
{
if (!console_suspend_enabled)
return;
down(&console_sem);
console_suspended = 0;
console_unlock();
}
| 227,140,774,101,426,370,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,656 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | void __init setup_log_buf(int early)
{
unsigned long flags;
unsigned start, dest_idx, offset;
char *new_log_buf;
int free;
if (!new_log_buf_len)
return;
if (early) {
unsigned long mem;
mem = memblock_alloc(new_log_buf_len, PAGE_SIZE);
if (!mem)
return;
new_log_buf = __va(mem);
} else {
new_log_... | 34,668,560,816,771,744,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,657 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static int syslog_action_restricted(int type)
{
if (dmesg_restrict)
return 1;
/* Unless restricted, we allow "read all" and "get buffer size" for everybody */
return type != SYSLOG_ACTION_READ_ALL && type != SYSLOG_ACTION_SIZE_BUFFER;
}
| 288,837,265,045,189,350,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,658 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int unregister_console(struct console *console)
{
struct console *a, *b;
int res = 1;
#ifdef CONFIG_A11Y_BRAILLE_CONSOLE
if (console->flags & CON_BRL)
return braille_unregister_console(console);
#endif
console_lock();
if (console_drivers == console) {
console_drivers=console->next;
res = 0;
} else ... | 222,849,414,709,282,620,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,659 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | int update_console_cmdline(char *name, int idx, char *name_new, int idx_new, char *options)
{
struct console_cmdline *c;
int i;
for (i = 0; i < MAX_CMDLINECONSOLES && console_cmdline[i].name[0]; i++)
if (strcmp(console_cmdline[i].name, name) == 0 &&
console_cmdline[i].index == idx) {
c = &console_cmdline... | 159,553,935,089,088,110,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,660 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | asmlinkage int vprintk(const char *fmt, va_list args)
{
int printed_len = 0;
int current_log_level = default_message_loglevel;
unsigned long flags;
int this_cpu;
char *p;
size_t plen;
char special;
boot_delay_msec();
printk_delay();
/* This stops the holder of console_sem just where we want him */
local_ir... | 102,649,895,086,577,430,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,661 | linux | ce0030c00f95cf9110d9cdcd41e901e1fb814417 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/ce0030c00f95cf9110d9cdcd41e901e1fb814417 | None | 0 | static void zap_locks(void)
{
static unsigned long oops_timestamp;
if (time_after_eq(jiffies, oops_timestamp) &&
!time_after(jiffies, oops_timestamp + 30 * HZ))
return;
oops_timestamp = jiffies;
debug_locks_off();
/* If a crash is occurring, make sure we can't deadlock */
raw_spin_lock_init(&logbuf_lock);... | 246,160,128,913,205,170,000,000,000,000,000,000,000 | None | null | [
"CWE-119"
] | CVE-2013-1772 | The log_prefix function in kernel/printk.c in the Linux kernel 3.x before 3.4.33 does not properly remove a prefix string from a syslog header, which allows local users to cause a denial of service (buffer overflow and system crash) by leveraging /dev/kmsg write access and triggering a call_console_drivers function cal... | https://nvd.nist.gov/vuln/detail/CVE-2013-1772 |
34,662 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline struct shmem_sb_info *SHMEM_SB(struct super_block *sb)
{
return sb->s_fs_info;
}
| 113,297,180,994,315,120,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,663 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void do_shmem_file_read(struct file *filp, loff_t *ppos, read_descriptor_t *desc, read_actor_t actor)
{
struct inode *inode = filp->f_path.dentry->d_inode;
struct address_space *mapping = inode->i_mapping;
pgoff_t index;
unsigned long offset;
enum sgp_type sgp = SGP_READ;
/*
* Might this read be for a s... | 225,121,697,141,038,430,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,664 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline int shmem_acct_block(unsigned long flags)
{
return (flags & VM_NORESERVE) ?
security_vm_enough_memory_mm(current->mm, VM_ACCT(PAGE_CACHE_SIZE)) : 0;
}
| 23,974,446,811,892,867,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,665 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline int shmem_acct_size(unsigned long flags, loff_t size)
{
return (flags & VM_NORESERVE) ?
0 : security_vm_enough_memory_mm(current->mm, VM_ACCT(size));
}
| 282,561,469,182,622,700,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,666 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct inode *shmem_alloc_inode(struct super_block *sb)
{
struct shmem_inode_info *info;
info = kmem_cache_alloc(shmem_inode_cachep, GFP_KERNEL);
if (!info)
return NULL;
return &info->vfs_inode;
}
| 102,341,709,300,400,820,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,667 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct page *shmem_alloc_page(gfp_t gfp,
struct shmem_inode_info *info, pgoff_t index)
{
struct vm_area_struct pvma;
struct page *page;
/* Create a pseudo vma that just contains the policy */
pvma.vm_start = 0;
/* Bias interleave by inode number to distribute better across nodes */
pvma.vm_pgoff = inde... | 79,602,970,140,200,830,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,668 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline struct page *shmem_alloc_page(gfp_t gfp,
struct shmem_inode_info *info, pgoff_t index)
{
return alloc_page(gfp);
}
| 268,025,246,867,165,600,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,669 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static bool shmem_confirm_swap(struct address_space *mapping,
pgoff_t index, swp_entry_t swap)
{
void *item;
rcu_read_lock();
item = radix_tree_lookup(&mapping->page_tree, index);
rcu_read_unlock();
return item == swp_to_radix_entry(swap);
}
| 82,654,144,259,165,860,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,670 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_create(struct inode *dir, struct dentry *dentry, umode_t mode,
bool excl)
{
return shmem_mknod(dir, dentry, mode | S_IFREG, 0);
}
| 91,056,664,629,690,430,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,671 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static unsigned long shmem_default_max_blocks(void)
{
return totalram_pages / 2;
}
| 339,473,699,868,975,370,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,672 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static unsigned long shmem_default_max_inodes(void)
{
return min(totalram_pages - totalhigh_pages, totalram_pages / 2);
}
| 21,430,625,483,388,873,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,673 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_delete_from_page_cache(struct page *page, void *radswap)
{
struct address_space *mapping = page->mapping;
int error;
spin_lock_irq(&mapping->tree_lock);
error = shmem_radix_tree_replace(mapping, page->index, page, radswap);
page->mapping = NULL;
mapping->nrpages--;
__dec_zone_page_state(page, ... | 154,835,910,745,826,470,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,674 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_destroy_callback(struct rcu_head *head)
{
struct inode *inode = container_of(head, struct inode, i_rcu);
kmem_cache_free(shmem_inode_cachep, SHMEM_I(inode));
}
| 224,297,268,793,130,150,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,675 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_destroy_inode(struct inode *inode)
{
if (S_ISREG(inode->i_mode))
mpol_free_shared_policy(&SHMEM_I(inode)->policy);
call_rcu(&inode->i_rcu, shmem_destroy_callback);
}
| 229,352,696,517,440,160,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,676 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_destroy_inodecache(void)
{
kmem_cache_destroy(shmem_inode_cachep);
}
| 299,261,439,099,240,540,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,677 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_deswap_pagevec(struct pagevec *pvec)
{
int i, j;
for (i = 0, j = 0; i < pagevec_count(pvec); i++) {
struct page *page = pvec->pages[i];
if (!radix_tree_exceptional_entry(page))
pvec->pages[j++] = page;
}
pvec->nr = j;
}
| 98,111,985,772,381,600,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,678 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_encode_fh(struct inode *inode, __u32 *fh, int *len,
struct inode *parent)
{
if (*len < 3) {
*len = 3;
return 255;
}
if (inode_unhashed(inode)) {
/* Unfortunately insert_inode_hash is not idempotent,
* so as we hash inodes here rather than at creation
* time, we need a lock to ensure... | 297,380,378,926,740,300,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,679 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_evict_inode(struct inode *inode)
{
struct shmem_inode_info *info = SHMEM_I(inode);
if (inode->i_mapping->a_ops == &shmem_aops) {
shmem_unacct_size(info->flags, inode->i_size);
inode->i_size = 0;
shmem_truncate_range(inode, 0, (loff_t)-1);
if (!list_empty(&info->swaplist)) {
mutex_lock(&s... | 1,399,891,514,380,010,400,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,680 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static long shmem_fallocate(struct file *file, int mode, loff_t offset,
loff_t len)
{
struct inode *inode = file->f_path.dentry->d_inode;
struct shmem_sb_info *sbinfo = SHMEM_SB(inode->i_sb);
struct shmem_falloc shmem_falloc;
pgoff_t start, index, end;
int error;
mutex_lock(&inode->i_mutex);
if (mode &... | 289,463,759,640,099,000,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,681 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct dentry *shmem_fh_to_dentry(struct super_block *sb,
struct fid *fid, int fh_len, int fh_type)
{
struct inode *inode;
struct dentry *dentry = NULL;
u64 inum;
if (fh_len < 3)
return NULL;
inum = fid->raw[2];
inum = (inum << 32) | fid->raw[1];
inode = ilookup5(sb, (unsigned long)(inum + fid->raw... | 72,542,429,545,747,440,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,682 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static ssize_t shmem_file_aio_read(struct kiocb *iocb,
const struct iovec *iov, unsigned long nr_segs, loff_t pos)
{
struct file *filp = iocb->ki_filp;
ssize_t retval;
unsigned long seg;
size_t count;
loff_t *ppos = &iocb->ki_pos;
retval = generic_segment_checks(iov, &nr_segs, &count, VERIFY_WRITE);
if (retva... | 98,789,146,662,691,300,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,683 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | struct file *shmem_file_setup(const char *name, loff_t size, unsigned long flags)
{
int error;
struct file *file;
struct inode *inode;
struct path path;
struct dentry *root;
struct qstr this;
if (IS_ERR(shm_mnt))
return (void *)shm_mnt;
if (size < 0 || size > MAX_LFS_FILESIZE)
return ERR_PTR(-EINVAL);
i... | 114,852,564,810,564,130,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,684 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static ssize_t shmem_file_splice_read(struct file *in, loff_t *ppos,
struct pipe_inode_info *pipe, size_t len,
unsigned int flags)
{
struct address_space *mapping = in->f_mapping;
struct inode *inode = mapping->host;
unsigned int loff, nr_pages, req_pages;
struct page *pages[PIPE_DEF_BUFFERS];
struct parti... | 101,514,053,329,788,800,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,685 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | int shmem_fill_super(struct super_block *sb, void *data, int silent)
{
struct inode *inode;
struct shmem_sb_info *sbinfo;
int err = -ENOMEM;
/* Round up to L1_CACHE_BYTES to resist false sharing */
sbinfo = kzalloc(max((int)sizeof(struct shmem_sb_info),
L1_CACHE_BYTES), GFP_KERNEL);
if (!sbinfo)
return -EN... | 117,542,236,266,957,500,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,686 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static unsigned shmem_find_get_pages_and_swap(struct address_space *mapping,
pgoff_t start, unsigned int nr_pages,
struct page **pages, pgoff_t *indices)
{
void **slot;
unsigned int ret = 0;
struct radix_tree_iter iter;
if (!nr_pages)
return 0;
rcu_read_lock();
restart:
radix_tree_for_each_slot(slot... | 83,071,604,081,651,010,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,687 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void *shmem_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct page *page = NULL;
int error = shmem_getpage(dentry->d_inode, 0, &page, SGP_READ, NULL);
nd_set_link(nd, error ? ERR_PTR(error) : kmap(page));
if (page)
unlock_page(page);
return page;
}
| 270,249,538,168,998,980,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,688 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void *shmem_follow_short_symlink(struct dentry *dentry, struct nameidata *nd)
{
nd_set_link(nd, SHMEM_I(dentry->d_inode)->symlink);
return NULL;
}
| 232,484,640,585,460,940,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,689 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_free_inode(struct super_block *sb)
{
struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
if (sbinfo->max_inodes) {
spin_lock(&sbinfo->stat_lock);
sbinfo->free_inodes++;
spin_unlock(&sbinfo->stat_lock);
}
}
| 1,861,039,227,717,794,500,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,690 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_free_swap(struct address_space *mapping,
pgoff_t index, void *radswap)
{
int error;
spin_lock_irq(&mapping->tree_lock);
error = shmem_radix_tree_replace(mapping, index, radswap, NULL);
spin_unlock_irq(&mapping->tree_lock);
if (!error)
free_swap_and_cache(radix_to_swp_entry(radswap));
ret... | 303,399,503,216,525,200,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,691 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct inode *shmem_get_inode(struct super_block *sb, const struct inode *dir,
umode_t mode, dev_t dev, unsigned long flags)
{
struct inode *inode;
struct shmem_inode_info *info;
struct shmem_sb_info *sbinfo = SHMEM_SB(sb);
if (shmem_reserve_inode(sb))
return NULL;
inode = new_inode(sb);
if (i... | 45,365,575,779,312,160,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,692 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct dentry *shmem_get_parent(struct dentry *child)
{
return ERR_PTR(-ESTALE);
}
| 305,160,655,267,656,800,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,693 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct mempolicy *shmem_get_policy(struct vm_area_struct *vma,
unsigned long addr)
{
struct inode *inode = vma->vm_file->f_path.dentry->d_inode;
pgoff_t index;
index = ((addr - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
return mpol_shared_policy_lookup(&SHMEM_I(inode)->policy, index);
}
| 157,859,990,006,658,750,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,694 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo)
{
struct mempolicy *mpol = NULL;
if (sbinfo->mpol) {
spin_lock(&sbinfo->stat_lock); /* prevent replace/use races */
mpol = sbinfo->mpol;
mpol_get(mpol);
spin_unlock(&sbinfo->stat_lock);
}
return mpol;
}
| 210,635,995,357,716,400,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,695 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline struct mempolicy *shmem_get_sbmpol(struct shmem_sb_info *sbinfo)
{
return NULL;
}
| 66,014,267,247,925,130,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,696 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static inline int shmem_getpage(struct inode *inode, pgoff_t index,
struct page **pagep, enum sgp_type sgp, int *fault_type)
{
return shmem_getpage_gfp(inode, index, pagep, sgp,
mapping_gfp_mask(inode->i_mapping), fault_type);
}
| 230,808,121,935,368,170,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,697 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static ssize_t shmem_getxattr(struct dentry *dentry, const char *name,
void *buffer, size_t size)
{
struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
int err;
/*
* If this is a request for a synthetic attribute in the system.*
* namespace use the generic infrastructure to resolve a handler
* ... | 157,823,591,544,904,300,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,698 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | int __init shmem_init(void)
{
int error;
error = bdi_init(&shmem_backing_dev_info);
if (error)
goto out4;
error = shmem_init_inodecache();
if (error)
goto out3;
error = register_filesystem(&shmem_fs_type);
if (error) {
printk(KERN_ERR "Could not register tmpfs\n");
goto out2;
}
shm_mnt = vfs_kern_m... | 45,507,525,379,142,930,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,699 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | int __init shmem_init(void)
{
BUG_ON(register_filesystem(&shmem_fs_type) != 0);
shm_mnt = kern_mount(&shmem_fs_type);
BUG_ON(IS_ERR(shm_mnt));
return 0;
}
| 77,695,634,836,542,855,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,700 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static void shmem_init_inode(void *foo)
{
struct shmem_inode_info *info = foo;
inode_init_once(&info->vfs_inode);
}
| 102,787,537,822,604,960,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,701 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_init_inodecache(void)
{
shmem_inode_cachep = kmem_cache_create("shmem_inode_cache",
sizeof(struct shmem_inode_info),
0, SLAB_PANIC, shmem_init_inode);
return 0;
}
| 313,687,149,049,884,980,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,702 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_initxattrs(struct inode *inode,
const struct xattr *xattr_array,
void *fs_info)
{
struct shmem_inode_info *info = SHMEM_I(inode);
const struct xattr *xattr;
struct simple_xattr *new_xattr;
size_t len;
for (xattr = xattr_array; xattr->name != NULL; xattr++) {
new_xattr = simple_xat... | 261,716,153,914,811,600,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,703 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
{
struct inode *inode = old_dentry->d_inode;
int ret;
/*
* No ordinary (disk based) filesystem counts links as inodes;
* but each new link needs a new dentry, pinning lowmem, and
* tmpfs dentries cannot be pruned until ... | 153,174,062,701,822,900,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,704 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static ssize_t shmem_listxattr(struct dentry *dentry, char *buffer, size_t size)
{
struct shmem_inode_info *info = SHMEM_I(dentry->d_inode);
return simple_xattr_list(&info->xattrs, buffer, size);
}
| 13,562,532,897,649,146,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,705 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | int shmem_lock(struct file *file, int lock, struct user_struct *user)
{
struct inode *inode = file->f_path.dentry->d_inode;
struct shmem_inode_info *info = SHMEM_I(inode);
int retval = -ENOMEM;
spin_lock(&info->lock);
if (lock && !(info->flags & VM_LOCKED)) {
if (!user_shm_lock(inode->i_size, user))
goto out... | 140,683,338,299,260,830,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,706 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | int shmem_lock(struct file *file, int lock, struct user_struct *user)
{
return 0;
}
| 129,327,635,775,906,190,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,707 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_match(struct inode *ino, void *vfh)
{
__u32 *fh = vfh;
__u64 inum = fh[2];
inum = (inum << 32) | fh[1];
return ino->i_ino == inum && fh[0] == ino->i_generation;
}
| 32,363,285,963,794,834,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,708 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
{
int error;
if ((error = shmem_mknod(dir, dentry, mode | S_IFDIR, 0)))
return error;
inc_nlink(dir);
return 0;
}
| 97,844,882,880,208,830,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,709 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | shmem_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
{
struct inode *inode;
int error = -ENOSPC;
inode = shmem_get_inode(dir->i_sb, dir, mode, dev, VM_NORESERVE);
if (inode) {
error = security_inode_init_security(inode, dir,
&dentry->d_name,
shmem_initxattrs, NULL)... | 25,474,418,702,939,360,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
34,710 | linux | 5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | https://github.com/torvalds/linux | https://github.com/torvalds/linux/commit/5f00110f7273f9ff04ac69a5f85bb535a4fd0987 | tmpfs: fix use-after-free of mempolicy object
The tmpfs remount logic preserves filesystem mempolicy if the mpol=M
option is not specified in the remount request. A new policy can be
specified if mpol=M is given.
Before this patch remounting an mpol bound tmpfs without specifying
mpol= mount option in the remount re... | 0 | static int shmem_mmap(struct file *file, struct vm_area_struct *vma)
{
file_accessed(file);
vma->vm_ops = &shmem_vm_ops;
return 0;
}
| 110,047,014,845,211,600,000,000,000,000,000,000,000 | shmem.c | 316,744,144,878,516,760,000,000,000,000,000,000,000 | [
"CWE-399"
] | CVE-2013-1767 | Use-after-free vulnerability in the shmem_remount_fs function in mm/shmem.c in the Linux kernel before 3.7.10 allows local users to gain privileges or cause a denial of service (system crash) by remounting a tmpfs filesystem without specifying a required mpol (aka mempolicy) mount option. | https://nvd.nist.gov/vuln/detail/CVE-2013-1767 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.