nvmet-auth: zero the AUTH_RECEIVE response buffer
- 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.1.185, 6.6.154, 6.12.106, 6.18.47, 7.1.11, and 1 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
Summary
In the Linux kernel, the following vulnerability has been resolved: nvmet-auth: zero the AUTH_RECEIVE response buffer nvmet_execute_auth_receive() allocates the response buffer with kmalloc() sized by the host-supplied AUTH_RECEIVE allocation length, but the DH-HMAC-CHAP builders write only a fixed-size message into it. The full allocation length is then copied to the wire by nvmet_copy_to_sgl(), so a remote initiator receives the bytes past the built message -- up to nearly a page of uninitialized slab -- during the pre-authentication handshake. Allocate the buffer with kzalloc() so the unwritten tail is zeroed before it is sent; conforming responses are unaffected.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in 447b668faa14710f611e714031e3739ac3ec3a4f; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in 8f6363c8d54dde95982f0ab45e77cf57ec0efd62; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in dfcf013f77709ebdb282767edc2795a37cab5b57; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in b26189d28442183a8b5edb754f4a6918f77ca84e; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in 2dcc9226203da7275a9c29d20007da278d73d5e9; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in 1d6837d98bf966a041af65de5f78de7409ff83bc; From db1312dd95488b5e6ff362ff66fcf953a46b1821 · fixed in 3ddcfb013322aa37eaa7a0d344b73079c38dfa21
- Linux Linux
6.0
- KernelLinux
From 6.0.0 · fixed in 6.1.185; From 6.2.0 · fixed in 6.6.154; From 6.7.0 · fixed in 6.12.106; From 6.13.0 · fixed in 6.18.47; From 6.19.0 · fixed in 7.1.11; From 7.2.0 · fixed in 7.2.1
References 7
git.kernel.org
- stable/c/447b668faa14710f611e714031e3739ac3ec3a4f
- stable/c/8f6363c8d54dde95982f0ab45e77cf57ec0efd62
- stable/c/dfcf013f77709ebdb282767edc2795a37cab5b57
- stable/c/b26189d28442183a8b5edb754f4a6918f77ca84e
- stable/c/2dcc9226203da7275a9c29d20007da278d73d5e9
- stable/c/1d6837d98bf966a041af65de5f78de7409ff83bc
- stable/c/3ddcfb013322aa37eaa7a0d344b73079c38dfa21