dm-crypt: reject the lmk IV mode with AEAD ciphers
- 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 6.6.160, 6.12.113, 6.18.57, 7.2.11
- 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
Summary
In the Linux kernel, the following vulnerability has been resolved: dm-crypt: reject the lmk IV mode with AEAD ciphers A "capi:" table line that pairs an AEAD cipher with the lmk IV mode, for example "capi:gcm(aes)-lmk" with the integrity:28:aead option, causes an oops when it is loaded. lmk sets tfms_count to 64, but crypt_alloc_tfms_aead only allocates one transform, so crypt_setkey reads past the end of the tfms_aead array and calls crypto_aead_setkey on the values it finds there. lmk exists for compatibility with Loop-AES, which uses CBC, so refuse it with an AEAD cipher rather than allocate 64 AEAD transforms. The check cannot go in crypt_iv_lmk_ctr with the other lmk checks, because the IV constructor runs after crypt_set_key. Note that this is not a security bug because the memory corruption can only be triggered by root.
Timeline
- CVE published
- First seen by cve.now
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
4.12
- KernelLinux
From 4.12.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.11
References 8
git.kernel.org
- stable/c/a04546fa65cbcf4a2774f93f365d747a19abb9b8
- stable/c/412d1c1f490ed9ec5bd029883e8a626626613a70
- stable/c/a50e830ded5a0d0cb9e897d1521716ba654f8c3e
- stable/c/9a0dab8a9d9975dec14a118b55cae2517aea5ca9
- stable/c/962ce265fbf5d87afeb78cf19c12e083ab0ffeb8
- stable/c/a1a875614dae43b43d311bb9e7a7a70eed78efe6
- stable/c/40ea7dfa8cd5f9aed72a55c9ca3008aee5880e6f
- stable/c/3195e0daf590683992edb4eed32269e569e04924