CVE-2011-1163: Input Validation
Last updated 24 July 2024
Other sources
The kernel automatically evaluates partition tables of storage devices. The code for evaluating OSF partitions (in fs/partitions/osf.c) contains a bug that leaks data from kernel heap memory to userspace for certain corrupted OSF partitions.
In more detail (from Kernel 2.6.37 fs/partition/osf.c):
(66) for (i = 0 ; i < le16tocpu(label->dnpartitions); i++, partition++) {
iterates from 0 to dnpartitions - 1, where
dnpartitions is read from the partition table without validation and partition is a pointer to an array of at most 8 dpartitions.
(70) putpartition(state, slot, (71) le32tocpu(partition->poffset), (72) le32tocpu(partition->psize));
adds a partition based on data referenced by partition. As partition may point beyond the partition table data structure, poffset and psize are read from kernel heap beyond the partition table.
In some cases, putpartition logs error messages to userspace including the poffset and psize values. Hence, some values from kernel heap are leaked to userspace.
So validate the value of dnpartitions.
Reference: http://www.spinics.net/lists/mm-commits/msg82737.html
Acknowledgements:
Red Hat would like to thank Timo Warns for reporting this issue.
— Red Hat
The osfpartition function in fs/partitions/osf.c in the Linux kernel before 2.6.38 does not properly handle an invalid number of partitions, which might allow local users to obtain potentially sensitive information from kernel heap memory via vectors related to partition-table parsing.
— Launchpad
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2011-1163?
CVE-2011-1163 is classified as a high-severity vulnerability due to its potential to leak sensitive kernel heap memory to userspace.
How do I fix CVE-2011-1163?
To mitigate CVE-2011-1163, update your kernel to a version higher than 2.6.38 where the vulnerability is patched.
Which systems are affected by CVE-2011-1163?
CVE-2011-1163 affects various Linux kernel versions including those in Debian, Red Hat, and SUSE distributions that are below the patched versions.
What type of vulnerability is CVE-2011-1163?
CVE-2011-1163 is a memory disclosure vulnerability caused by improper handling of corrupted OSF partition tables.
Can CVE-2011-1163 be exploited remotely?
Exploitation of CVE-2011-1163 typically requires local access to the affected system, as it involves accessing kernel memory.