All reports
Medium

kernel: Stack corruption while reading /proc/keys when gcc stack protector is enabled

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2016-7042

Probability of exploitation in the next 30 days: 0.40%

FIRST EPSS · 2026-11-18

Description

The proc_keys_show function in security/keys/proc.c in the Linux kernel through 4.8.2, when the GNU Compiler Collection (gcc) stack protector is enabled, uses an incorrect buffer size for certain timeout data, which allows local users to cause a denial of service (stack memory corruption and panic) by reading the /proc/keys file.

It was found that when the gcc stack protector was enabled, reading the /proc/keys file could cause a panic in the Linux kernel due to stack corruption. This happened because an incorrect buffer size was used to hold a 64-bit timeout value rendered as weeks.