CVE-2006-0555: Low severity Linux Linux kernel vulnerability
Mike O'Connor of SGI reported this flaw where a normal user who has access to write to a NFS mounted fs can panic an NFS client and therefore cause a local DoS using ODIRECT.
Quote:
Any ODIRECT write to an NFS file where the user buffer starts with a valid mapped page and contains an unmapped page, will crash in this way. I haven't followed the code, but ODIRECT reads with similar user buffers will probably also crash albeit in different ways.
Details: when nfsgetuserpages() calls getuserpages(), it detects and correctly handles getuserpages() returning an error, which happens if the first page covered by the user buffer's address range is unmapped. However, if the first page is mapped but some subsequent page isn't, getuserpages() will return a positive number which is less than the number of pages requested (this behaviour is sort of analagous to a short write() call and appears to be intentional). nfsgetuserpages() doesn't detect this and hands off the array of pages (whose last few elements are random rubbish from the newly allocated array memory) to it's caller, whence they go to nfsdirectwriteseg(), which then totally ignores the nrpages it's given, and calculates its own idea of how many pages are in the array from the user buffer length. Needless to say, when it comes to transmit those uninitialised page pointers, we see a crash in the network stack.
Other sources
The Linux Kernel before 2.6.15.5 allows local users to cause a denial of service (NFS client panic) via unknown attack vectors related to the use of ODIRECT (direct I/O).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/RHSA-2006to a version that resolves this vulnerability.Fixed in 0493
Event History
Frequently Asked Questions
What is the severity of CVE-2006-0555?
The severity of CVE-2006-0555 is classified as high due to its potential to cause a denial of service.
How do I fix CVE-2006-0555?
To mitigate CVE-2006-0555, it is recommended to upgrade the Linux Kernel to version 2.6.15.5 or later.
Who is affected by CVE-2006-0555?
CVE-2006-0555 affects local users running vulnerable versions of the Linux Kernel prior to 2.6.15.5.
What kind of attack does CVE-2006-0555 exploit?
CVE-2006-0555 exploits vulnerabilities related to the use of O_DIRECT in the NFS client of the Linux Kernel.
Can CVE-2006-0555 be exploited remotely?
CVE-2006-0555 cannot be exploited remotely as it requires local user access to trigger the denial of service.