mac802154: llsec: reject frames shorter than the authentication tag
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.265, 5.15.216, 6.1.183, 6.6.148, 6.12.101, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: mac802154: llsec: reject frames shorter than the authentication tag llsec_do_decrypt_auth() computes the associated-data length for the AEAD request as assoclen += datalen - authlen; where datalen is the number of bytes after the MAC header and authlen (4, 8 or 16) is the length of the authentication tag. Nothing verifies that the frame actually carries at least authlen payload bytes. A secured frame whose payload is shorter than the tag makes datalen - authlen negative; assoclen is then passed to aead_request_set_ad() as an unsigned value close to 4 GiB, so crypto_aead_decrypt() walks far off the end of the scatterlist that only spans the real frame. The frame is fully attacker-controlled and reaches this path from any IEEE 802.15.4 peer in radio range. Reject frames whose payload is shorter than the authentication tag before the subtraction. Dynamically reproduced on a KASAN kernel as a general-protection-fault in the AEAD scatterwalk, and the fix confirmed.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in f27ce82eb04960465df71634b196a48a4ecafd50; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in 2d6b42a61373144298070668fddf06efe79cf2ff; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in ec7e62d77193131227df49d654d118fdf5a59892; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in 5bbf0cd9b6a7076af86c75e87e180099be2e11ae; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in de80808f37d99c6dc67bb6f97eea00c8f57a8821; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in f20dedce0429b293d4bad604e0d3f65d8ac96c83; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in e09e0301d616c1ef38a5e64e8e4326fd39df13cc; From 4c14a2fb5d143e4ed94143be2b8c1961b47df9af · fixed in fd3a3f28ed60c6af4b2a39933b151d6b27842c3b
- Linux Linux
3.16
- KernelLinux
From 3.16.0 · fixed in 5.10.265; From 5.11.0 · fixed in 5.15.216; From 5.16.0 · fixed in 6.1.183; From 6.2.0 · fixed in 6.6.148; From 6.7.0 · fixed in 6.12.101; From 6.13.0 · fixed in 6.18.42; From 6.19.0 · fixed in 7.1.6
References 8
git.kernel.org
- stable/c/f27ce82eb04960465df71634b196a48a4ecafd50
- stable/c/2d6b42a61373144298070668fddf06efe79cf2ff
- stable/c/ec7e62d77193131227df49d654d118fdf5a59892
- stable/c/5bbf0cd9b6a7076af86c75e87e180099be2e11ae
- stable/c/de80808f37d99c6dc67bb6f97eea00c8f57a8821
- stable/c/f20dedce0429b293d4bad604e0d3f65d8ac96c83
- stable/c/e09e0301d616c1ef38a5e64e8e4326fd39df13cc
- stable/c/fd3a3f28ed60c6af4b2a39933b151d6b27842c3b