cve.bz

CVE-2021-47459 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: can: j1939: j1939_netdev_start(): fix UAF for rx_kref of j1939_priv It will trigger UAF for rx_kref of j1939_priv as following. cpu0 cpu1 j1939_sk_bind(socket0, ndev0, ...) j1939_netdev_start j1939_sk_bind(socket1, ndev0, ...) j1939_netdev_start j1939_priv_set j1939_priv_get_by_ndev_locked j1939_jsk_add ..... j1939_netdev_stop kref_put_lock(&priv->rx_kref, ...) kref_get(&priv->rx_kref, ...) REFCOUNT_WARN("addition on 0;...") ==================================================== refcount_t: addition on 0; use-after-free. WARNING: CPU: 1 PID: 20874 at lib/refcount.c:25 refcount_warn_saturate+0x169/0x1e0 RIP: 0010:refcount_warn_saturate+0x169/0x1e0 Call Trace: j1939_netdev_start+0x68b/0x920 j1939_sk_bind+0x426/0xeb0 ? security_socket_bind+0x83/0xb0 The rx_kref's kref_get() and kref_put() should use j1939_netdev_lock to protect.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-47459 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-47459?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-47459?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-47459 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux5.4 and later

Fixed in

ProductRelease lineFixed in
Linux5.45.4.156
Linux5.105.10.76
Linux5.145.14.15
Linuxlater releases5.15

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.14.16-1DEBIAN-CVE-2021-47459
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1061.64~18.04.1UBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1065.68~18.04.1UBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-gcp-5.4, linux-oracle-5.45.4.0-1059.63~18.04.1UBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-92.103~18.04.2UBUNTU-CVE-2021-47459
Ubuntu18.04:LTSlinux-raspi-5.45.4.0-1048.53~18.04.1UBUNTU-CVE-2021-47459
Ubuntu20.04:LTSlinux5.4.0-92.103UBUNTU-CVE-2021-47459
Ubuntu20.04:LTSlinux-aws5.4.0-1061.64UBUNTU-CVE-2021-47459
Ubuntu20.04:LTSlinux-azure5.4.0-1065.68UBUNTU-CVE-2021-47459
Ubuntu20.04:LTSlinux-bluefield5.4.0-1023.26UBUNTU-CVE-2021-47459
Ubuntu20.04:LTSlinux-gcp, linux-oracle5.4.0-1059.63UBUNTU-CVE-2021-47459
12 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.28.1.el9_4RHSA-2024:4928
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.28.1.el9_4RHSA-2024:4928
Red Hatrhel_eus:9.2::appstreamperf, rtla, kernel-doc and 22 more0:5.14.0-284.75.1.el9_2RHSA-2024:4823
Red Hatrhel_eus:9.2::appstream, rhel_eus:9.2::crbbpftool-debuginfo0:7.0.0-284.75.1.el9_2RHSA-2024:4823
Red Hatrhel_eus:9.2::baseosbpftool, bpftool-debuginfo0:7.0.0-284.75.1.el9_2RHSA-2024:4823
Red Hatrhel_eus:9.2::baseoskernel, kernel-64k, kernel-core and 40 more0:5.14.0-284.75.1.el9_2RHSA-2024:4823
Red Hatrhel_eus:9.2::crbperf-debuginfo, kernel-debuginfo, kernel-64k-debuginfo and 10 more0:5.14.0-284.75.1.el9_2RHSA-2024:4823
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 2 morekernel-default5.14.21-150400.24.122.2SUSE-SU-2024:2189-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.68.1SUSE-SU-2024:2190-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-default and 1 more5.14.21-150400.24.122.2SUSE-SU-2024:2189-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.122.2.150400.24.58.2SUSE-SU-2024:2189-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 3 morekernel-syms, kernel-source5.14.21-150400.24.122.1SUSE-SU-2024:2189-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_271-150400.9.3.2SUSE-SU-2024:2189-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_161-150500.11.3.1SUSE-SU-2024:2008-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_151-150500.11.3.1SUSE-SU-2024:2190-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4kernel-rt, kernel-source-rt5.14.21-150400.15.82.1SUSE-SU-2024:2011-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.58.1SUSE-SU-2024:2008-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5kernel-default-base5.14.21-150500.55.68.1.150500.6.31.1SUSE-SU-2024:2190-1
SUSELinux Enterprise Module for Basesystem 15 SP5kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.68.1SUSE-SU-2024:2190-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.68.1SUSE-SU-2024:2190-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.57.1SUSE-SU-2024:2019-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.68.1.150500.6.31.1SUSE-SU-2024:2190-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.58.1SUSE-SU-2024:2008-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.122.2SUSE-SU-2024:2189-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.122.2.150400.24.58.2SUSE-SU-2024:2189-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.82.1SUSE-SU-2024:2011-1
AlmaLinux9bpftool7.3.0-427.28.1.el9_4ALSA-2024:4928
AlmaLinux9rv, perf, rtla and 58 more5.14.0-427.28.1.el9_4ALSA-2024:4928
Rocky Linux9kernel0:5.14.0-427.28.1.el9_4RLSA-2024:4928
Rocky Linux9kernel0:5.14.0-427.28.1.el9_4.cloud.1.0RXSA-2024:4928

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as having Moderate impact because exploitation requires local system access and interaction with the CAN J1939 networking protocol. The Controller Area Network subsystem is designed for specialized automotive or industrial environments and is not configured or exposed in standard enterprise server or cloud deployments by default. Although memory corruption from a use-after-free condition could lead to a kernel crash or privilege escalation, the requirement for active CAN interfaces substantially limits the realistic exposure for typical installations.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.28.1.el9_4Fixed 2024-07-31RHSA-2024:4928
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-0:5.14.0-284.75.1.el9_2Fixed 2024-07-24RHSA-2024:4823
Red Hat Enterprise Linux 9.2 Extended Update Supportkernel-rt-0:5.14.0-284.75.1.rt14.360.el9_2Fixed 2024-07-24RHSA-2024:4831
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-47459.

References

Check your stackJSON