smb: client: fix ALIGN() overflow in symlink_data() error context loop
- 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, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 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: smb: client: fix ALIGN() overflow in symlink_data() error context loop The check added by commit 7d9a7f1f96cd ("smb/client: fix possible infinite loop and oob read in symlink_data()") compared the post-ALIGN length against the remaining buffer, but ALIGN() itself can overflow: for ErrorDataLength near UINT32_MAX (e.g. 0xFFFFFFF9), ALIGN(x, 8) wraps to 0, so the subsequent bounds check passes, and the loop advances by zero bytes leaving 'p' pointing into stale data. Fix by checking the raw ErrorDataLength against the remaining space before applying ALIGN(), then checking again after. Since raw_len is bounded by the buffer, raw_len + 7 cannot overflow, so the second check is an exact post-alignment bounds guard.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in 2b4a25baa0b936fef6915c0459925077b324ecaf; From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in b89d678f9eafcf8d74885983166ba26b40a04ea0; From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in 657372ba6ea50b4474d2a6a610097eae8cd1f3e9; From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in 1f824f61d1df52392eaf0b74dfa5659d724fde30; From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in 62a3025983c8c735a3c6fc85a59316f31b59af07; From 76894f3e2f71177747b8b4763fb180e800279585 · fixed in 62656b024efc21c3230eade1a847f25871c3d2bb; From 6.0.16 · fixed in 6.1
- Linux Linux
6.1
- KernelLinux
From 6.1.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.109; From 6.13.0 · fixed in 6.18.50; From 6.19.0 · fixed in 7.2.4