CVE-2021-47388

HIGH

Linux kernel 4.4.271-4.4.285 - Use-After-Free in mac80211 CCMP/GCMP RX

Title source: llm
STIX 2.1

Description

In the Linux kernel, the following vulnerability has been resolved: mac80211: fix use-after-free in CCMP/GCMP RX When PN checking is done in mac80211, for fragmentation we need to copy the PN to the RX struct so we can later use it to do a comparison, since commit bf30ca922a0c ("mac80211: check defrag PN against current frame"). Unfortunately, in that commit I used the 'hdr' variable without it being necessarily valid, so use-after-free could occur if it was necessary to reallocate (parts of) the frame. Fix this by reloading the variable after the code that results in the reallocations, if any. This fixes https://bugzilla.kernel.org/show_bug.cgi?id=214401.

Scores

CVSS v3 7.8
EPSS 0.0024
EPSS Percentile 15.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416
Status published
Products (28)
Linux/Linux < 5.13
Linux/Linux 0f716b48ed25503e6961f4b5b40ece36f7e4ed26 - 3d5d629c99c468458022e9b381789de3595bf4dd
Linux/Linux 1f0bf30c01d3f4de7d6c5e27b102a808c5646676
Linux/Linux 4.14.235 - 4.14.249
Linux/Linux 4.14.249 - 4.14.*
Linux/Linux 4.19.193 - 4.19.209
Linux/Linux 4.19.209 - 4.19.*
Linux/Linux 4.4.271 - 4.4.286
Linux/Linux 4.4.286 - 4.4.*
Linux/Linux 4.9.271 - 4.9.285
... and 18 more
Published May 21, 2024
Tracked Since Feb 18, 2026