cve.bz

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

7.8 highEPSS 0.7%Fix available

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

On this page
In the Linux kernel, the following vulnerability has been resolved: sctp: do asoc update earlier in sctp_sf_do_dupcook_a There's a panic that occurs in a few of envs, the call trace is as below: [] general protection fault, ... 0x29acd70f1000a: 0000 [#1] SMP PTI [] RIP: 0010:sctp_ulpevent_notify_peer_addr_change+0x4b/0x1fa [sctp] [] sctp_assoc_control_transport+0x1b9/0x210 [sctp] [] sctp_do_8_2_transport_strike.isra.16+0x15c/0x220 [sctp] [] sctp_cmd_interpreter.isra.21+0x1231/0x1a10 [sctp] [] sctp_do_sm+0xc3/0x2a0 [sctp] [] sctp_generate_timeout_event+0x81/0xf0 [sctp] This is caused by a transport use-after-free issue. When processing a duplicate COOKIE-ECHO chunk in sctp_sf_do_dupcook_a(), both COOKIE-ACK and SHUTDOWN chunks are allocated with the transort from the new asoc. However, later in the sideeffect machine, the old asoc is used to send them out and old asoc's shutdown_last_sent_to is set to the transport that SHUTDOWN chunk attached to in sctp_cmd_setup_t2(), which actually belongs to the new asoc. After the new_asoc is freed and the old asoc T2 timeout, the old asoc's shutdown_last_sent_to that is already freed would be accessed in sctp_sf_t2_timer_expire(). Thanks Alexander and Jere for helping dig into this issue. To fix it, this patch is to do the asoc update first, then allocate the COOKIE-ACK and SHUTDOWN chunks with the 'updated' old asoc. This would make more sense, as a chunk from an asoc shouldn't be sent out with another asoc. We had fixed quite a few issues caused by this.

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.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th 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-06-21. 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-46999 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-46999?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-46999?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-46999 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
Linuxfrom 4.19.123 before 4.19.191
Linuxfrom 5.4.41 before 5.4.120
Linuxfrom 5.6.13 before 5.7
Linux5.7 and later

Fixed in

ProductRelease lineFixed in
Linux4.194.19.191
Linux5.45.4.120
Linux5.105.10.38
Linux5.115.11.22
Linux5.125.12.5
Linuxlater releases5.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.10.38-1DEBIAN-CVE-2021-46999
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux4.15.0-151.157UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-aws4.15.0-1109.116UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1054.57~18.04.1UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1121.134UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1055.57~18.04.1UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1106.120UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1049.53~18.04.1UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-80.90~18.04.1UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-kvm4.15.0-1097.99UBUNTU-CVE-2021-46999
Ubuntu18.04:LTSlinux-oracle4.15.0-1078.86UBUNTU-CVE-2021-46999
30 more for Ubuntu in the JSON and on Ubuntu's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelOut of support scope
Red Hat Enterprise Linux 7kernel-rtOut of support scope
Red Hat Enterprise Linux 8kernelAffected
Red Hat Enterprise Linux 8kernel-rtAffected
Red Hat Enterprise Linux 9kernelAffected
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-46999.

References

Check your stackJSON