
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-56633 is a vulnerability discovered in the Linux kernel's TCP BPF implementation, specifically in the skmemuncharge logic within tcpbpfsendmsg. The issue was identified and disclosed on December 27, 2024, affecting the memory accounting mechanism in the _SKREDIRECT functionality (NVD).
The vulnerability stems from the sk memory accounting logic in _SKREDIRECT pre-uncharging tosend bytes, which can be either msg->sg.size or a smaller value applybytes. Two specific issues were identified: 1) When actual sent bytes are smaller than tosend, some bytes need to be charged back, and 2) When tosend is set to applybytes and (ret < 0), the system may miss uncharging (msg->sg.size - applybytes) bytes. The issue manifests when running the selftest testtxmsgredirwaitsndmem with txmsgapply, triggering a warning in the inetsockdestruct function (Kernel Commit).
The vulnerability affects the memory management system of the Linux kernel's TCP BPF implementation, potentially leading to memory accounting inconsistencies. This could result in memory leaks or incorrect memory allocation tracking in the kernel (Debian Tracker).
The issue has been fixed in multiple Linux kernel versions, including 5.10.234-1 for Debian 11 bullseye and 6.1.128-1~deb11u1 for the linux-6.1 package. The fix involves modifying the memory uncharging logic to delay the uncharging until after sent bytes are finalized, and using skmsgfree instead of skmsgfree_partial in certain cases (DLA-4075-1, DLA-4076-1).
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."