
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2011-0699 is a security vulnerability discovered in the Linux kernel version 2.6.37, specifically in the btrfs_ioctl_space_info function. The vulnerability was identified as an integer signedness error that could allow local users to cause a denial of service through a heap-based buffer overflow or potentially have other unspecified impacts by using a crafted slot value (NVD, CVE).
The vulnerability stems from an integer signedness error in the btrfs_ioctl_space_info function. The issue arose when space_args.space_slots, an unsigned 64-bit type controlled by a possibly unprivileged caller, was compared as a signed int type. This comparison allowed values to be treated as negative, causing subsequent allocation size calculations to wrap or be truncated to 0. When the size was truncated to 0, kmalloc() would return ZERO_SIZE_PTR. Additionally, providing a value smaller than the slot count would cause the subsequent loop to ignore the allocation size when copying data, resulting in a heap overflow or write to ZERO_SIZE_PTR (Linux Kernel Patch).
The vulnerability could allow local users to cause a denial of service through a heap-based buffer overflow. Additionally, there was potential for unspecified other impacts through the exploitation of the integer signedness error (NVD).
The issue was fixed by changing the slot count type and comparison typecast to u64, which prevents truncation or signedness errors. The fix also ensures that data copying doesn't exceed the allocated size in the subsequent loop. The patch was implemented in the Linux kernel, ensuring that zero-size allocations are no longer possible due to an explicit check for space_args.space_slots being 0 (Linux Kernel Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."