CVE-2021-47459

medium
Published 2024-07-31 · Modified 2024-11-03
CVSS v3
CVSS v2
VIR risk
5.5

Description

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: alma — https://errata.almalinux.org/9/ALSA-2024-4928.html

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2293412

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2293316

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2284598

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2284506

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2282898

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2282669

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2281700

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2281647

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2281247

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2278473

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2278435

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2278337

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2275761

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2275690

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2273274

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2273236

vendor Authored 2026-05-27

Vendor advisory: alma — https://bugzilla.redhat.com/2265794

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RLSA-2024:4928

vendor Authored 2026-05-27

Vendor advisory: rocky — https://errata.rockylinux.org/RXSA-2024:4928

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-47459

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2021-47459.html

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHSA-2024:4928

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
suse slesaffected
debian debianbookwormfixed5.14.16-1
debian debianbullseyefixed5.10.84-1
debian debianforkyfixed5.14.16-1
debian debiansidfixed5.14.16-1
debian debiantrixiefixed5.14.16-1
rockylinux rocky9fixed

References

Verify integrity in audit chain (admin only). AS-IS.