CVE-2024-56633
Linux Kernel vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Mitigation and workarounds

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

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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-64k-debug-core
NoYesDec 09, 2025
CVE-2025-40340MEDIUM6.4
  • Linux KernelLinux Kernel
  • kernel-rt-debug-kvm
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesDec 09, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-fde-6.14
NoYesDec 09, 2025

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