Use-after-free in Linux kernel - CVE-2021-47232
Published: May 31, 2024 / Updated: May 14, 2025
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
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
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
- https://git.kernel.org/stable/c/22cba878abf646cd3a02ee7c8c2cef7afe66a256
- https://git.kernel.org/stable/c/509ab6bfdd0c76daebbad0f0af07da712116de22
- https://git.kernel.org/stable/c/1071065eeb33d32b7d98c2ce7591881ae7381705
- https://git.kernel.org/stable/c/2030043e616cab40f510299f09b636285e0a3678
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10.46
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.12.13
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.13
- https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.4.128