CVE-2021-47298
published 2024-05-21CVE-2021-47298: 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…
PriorityP415medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.23%
14.2th percentile
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
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.14.6-1 (bookworm) | linux 5.14.6-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= 4363023d2668e621b0743db351a9555d6e6ea57e < 715f378f42909c401ec043f5150c4fdf57fb8889 | 715f378f42909c401ec043f5150c4fdf57fb8889 |
| linux | linux | >= 4363023d2668e621b0743db351a9555d6e6ea57e < 6c508a1c6c62793dc6e6872cad4b200097bab7c9 | 6c508a1c6c62793dc6e6872cad4b200097bab7c9 |
| linux | linux | >= 4363023d2668e621b0743db351a9555d6e6ea57e < 7e6b27a69167f97c56b5437871d29e9722c3e470 | 7e6b27a69167f97c56b5437871d29e9722c3e470 |
| linux | linux_kernel | — | — |
| linux | linux_kernel | >= 0 < 5.10.70-1 | 5.10.70-1 |
| linux | linux_kernel | >= 0 < 5.14.6-1 | 5.14.6-1 |
| linux | linux_kernel | >= 0 < 5.14.6-1 | 5.14.6-1 |
| linux | linux_kernel | >= 0 < 5.14.6-1 | 5.14.6-1 |
| linux | linux_kernel | >= 5.10 < 5.10.54 | 5.10.54 |
| linux | linux_kernel | >= 5.11 < 5.13.6 | 5.13.6 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: bpf, sockmap: Fix potential memory leak on unlikely error case
vendor_redhat·2024-05-21·CVSS 5.5
CVE-2021-47298 [MEDIUM] CWE-401 kernel: bpf, sockmap: Fix potential memory leak on unlikely error case
kernel: 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.
Statement: The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged_bpf_disabled sysctl. This would require a privileged user with CAP_SYS_ADMIN or root to be able to abuse this flaw reducing its attack space.
For the Red Hat Enterprise Linux 9 to confirm the current state, inspect the sysctl with the command:
cat /proc/sys/kernel/unprivileged_bpf_disabled
Debian
CVE-2021-47298: linux - In the Linux kernel, the following vulnerability has been resolved: bpf, sockma...
vendor_debian·2021·CVSS 5.5
CVE-2021-47298 [MEDIUM] CVE-2021-47298: linux - In the Linux kernel, the following vulnerability has been resolved: bpf, sockma...
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.
Scope: local
bookworm: resolved (fixed in 5.14.6-1)
bullseye: resolved (fixed in 5.10.70-1)
forky: resolved (fixed in 5.14.6-1)
sid: resolved (fixed in 5.14.6-1)
trixie: resolved (fixed in 5.14.6-1)
GHSA
GHSA-482h-984g-m9qw: In the Linux kernel, the following vulnerability has been resolved:
bpf, sockmap: Fix potential memory leak on unlikely error case
If skb_linearize
ghsa_unreviewed·2024-05-21
CVE-2021-47298 [MEDIUM] CWE-401 GHSA-482h-984g-m9qw: In the Linux kernel, the following vulnerability has been resolved:
bpf, sockmap: Fix potential memory leak on unlikely error case
If skb_linearize
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.
OSV
CVE-2021-47298: In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix potential memory leak on unlikely error case If skb_linearize is
osv·2024-05-21·CVSS 5.5
CVE-2021-47298 [MEDIUM] CVE-2021-47298: In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: Fix potential memory leak on unlikely error case If skb_linearize is
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.
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470https://git.kernel.org/stable/c/6c508a1c6c62793dc6e6872cad4b200097bab7c9https://git.kernel.org/stable/c/715f378f42909c401ec043f5150c4fdf57fb8889https://git.kernel.org/stable/c/7e6b27a69167f97c56b5437871d29e9722c3e470
2024-05-21
Published