CVEvulnerability
CVE-2021-47298
5.5 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2024-05-21
- Last modified
- 2026-06-17
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-401
Description
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.
Affected configurations
• linux linux kernel (>= 5.10 < 5.10.54)
• linux linux kernel (>= 5.11 < 5.13.6)
• linux linux kernel 5.14
Related
Weakness · CWE (1)
- CWE-401 Missing Release of Memory after Effective Lifetime weakness
References
- https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9 Patch
- https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889 Patch
- https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470 Patch
- https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9 Patch
- https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889 Patch
- https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470 Patch