CVE-2021-47298
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2021-47298 is a memory leak vulnerability discovered in the Linux kernel's BPF sockmap functionality. The vulnerability was identified during a code review and affects Linux kernel versions from 5.10 through 5.13.6, as well as 5.14-rc1 and 5.14-rc2. The issue occurs in the error handling path when skb_linearize fails, potentially leading to a memory leak (NVD).

Technical details

The vulnerability exists in the Linux kernel's network core subsystem, specifically in the skmsg.c file. The issue occurs when skb_linearize is needed and fails, which could lead to a memory leak in the msg block during error handling. The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. The vulnerability is classified as CWE-401: Missing Release of Memory after Effective Lifetime (NVD).

Impact

The primary impact of this vulnerability is a potential memory leak in the Linux kernel, which could lead to resource exhaustion and system performance degradation. The vulnerability affects the system's availability but does not compromise confidentiality or integrity (NVD).

Exploitability

The vulnerability requires local access and low privileges to exploit. It occurs in an unlikely error case scenario when skb_linearize fails during packet processing in the BPF sockmap functionality (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed by ensuring proper memory cleanup in the error handling path. The fix involves adding proper kfree(msg) calls before returning errors in the affected functions. The patch has been merged into the Linux kernel, and users should upgrade to patched versions (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-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 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