Use-after-free in Linux kernel - CVE-2021-47232

 

Use-after-free in Linux kernel - CVE-2021-47232

Published: May 31, 2024 / Updated: May 14, 2025


Vulnerability identifier: #VU90088
CSH Severity: Low
CVSS v4 BT: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]
CVE-ID: CVE-2021-47232
CWE-ID: CWE-416
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a use-after-free error within the j1939_session_skb_drop_old(), j1939_session_skb_queue(), j1939_session_skb_find_by_offset(), j1939_session_tx_dat(), j1939_xtp_txnext_receiver(), j1939_simple_txnext(), j1939_session_completed() and j1939_xtp_rx_dat_one() functions in net/can/j1939/transport.c. A local user can escalate privileges on the system.


Affected software

Linux kernel
openEuler
kernel
perf-debuginfo
kernel-debugsource
python2-perf-debuginfo
bpftool
kernel-tools-debuginfo
kernel-source
kernel-debuginfo
python2-perf
perf
python3-perf-debuginfo
kernel-tools-devel
kernel-tools
bpftool-debuginfo
python3-perf
kernel-devel

How to mitigate CVE-2021-47232

Install update from vendor's website.

Linux kernel - addressed in versions 5.4.128, 5.10.46, 5.12.13, 5.13
kernel - update to 4.19.90-2406.4.0.0283
perf-debuginfo - update to 4.19.90-2406.4.0.0283
kernel-debugsource - update to 4.19.90-2406.4.0.0283
python2-perf-debuginfo - update to 4.19.90-2406.4.0.0283
bpftool - update to 4.19.90-2406.4.0.0283
kernel-tools-debuginfo - update to 4.19.90-2406.4.0.0283
kernel-source - update to 4.19.90-2406.4.0.0283
kernel-debuginfo - update to 4.19.90-2406.4.0.0283
python2-perf - update to 4.19.90-2406.4.0.0283
perf - update to 4.19.90-2406.4.0.0283
python3-perf-debuginfo - update to 4.19.90-2406.4.0.0283
kernel-tools-devel - update to 4.19.90-2406.4.0.0283
kernel-tools - update to 4.19.90-2406.4.0.0283
bpftool-debuginfo - update to 4.19.90-2406.4.0.0283
python3-perf - update to 4.19.90-2406.4.0.0283
kernel-devel - update to 4.19.90-2406.4.0.0283

External References

Related Security Bulletins