CVE-2021-47298: bpf, sockmap: Fix potential memory leak on unlikely error case
In the Linux kernel, the following vulnerability has been resolved:
bpf, sockmap: Fix potential memory leak on unlikely error case
If skb_linearize is needed and fails we could leak a msg on the error
handling. To fix ensure we kfree the msg block before returning error.
Found during code review.
Security readout for executives and security teams
Plain-English summary
CVE-2021-47298 is a Linux kernel issue in the BPF sockmap path where an unusual error case could leak memory. The public record describes it as found during code review, with no CVSS score and no KEV listing. Treat it as a kernel hygiene fix unless vendor guidance says otherwise.
Executive priority
Handle through normal Linux kernel patch management. Escalation is warranted for unsupported kernels or high-density hosts where memory leaks can affect availability, but the supplied evidence does not justify emergency response.
Technical view
When skb_linearize is required and fails, sockmap error handling could return without freeing a msg block. The upstream resolution frees the msg before returning an error. The source bundle provides Linux stable commit references but no exploitability analysis, CVSS vector, or CWE classification.
Likely exposure
Exposure is limited to Linux systems running kernel versions or commits covered by the CVE record. The bundle lists Linux kernel 5.10-related data and stable fixes, but version range details are not complete enough to infer every affected distribution kernel.
Exploitation context
There is no source evidence of active exploitation. The CVE is not in KEV, and the description says it was found during code review in an unlikely error case. Public sources here do not describe practical exploitation or weaponized use.
Researcher notes
The public record is sparse: no CVSS, CWE, exploit status, or detailed affected distribution matrix. Analysis should center on upstream commit inclusion, vendor backports, and whether local workloads exercise BPF sockmap paths.
Mitigation direction
Review Linux vendor advisories for CVE-2021-47298 applicability.
Update affected kernels to vendor-supported builds containing the stable fix.
Prioritize systems using BPF or sockmap functionality if affected.
Track distribution backports instead of relying only on upstream version numbers.
Validation and detection
Inventory kernel versions across Linux assets.
Map installed kernels to vendor advisories for CVE-2021-47298.
Confirm whether referenced stable commits are included or backported.
Document exceptions where kernels are unsupported or cannot be updated.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2021-47298 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.