CVE-2011-0699
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management