Memory disclosure via unchecked negative SMB offset
Published Dec 27, 2024 · Updated Aug 5, 2026
Out-of-bounds read in affected Linux ksmbd versions allows attackers to read memory before stream_buf via a negative SMB stream offset. ksmbd_vfs_stream_read uses the client-controlled signed offset to index stream_buf without first rejecting negative values, so memcpy reads before the allocated stream data. The path is reachable only when a share enables vfs objects = streams_xattr and the attacker can issue SMB reads against that share.
Summary
What happened
Out-of-bounds read in affected Linux ksmbd versions allows attackers to read memory before stream_buf via a negative SMB stream offset. ksmbd_vfs_stream_read uses the client-controlled signed offset to index stream_buf without first rejecting negative values, so memcpy reads before the allocated stream data. The path is reachable only when a share enables vfs objects = streams_xattr and the attacker can issue SMB reads against that share.
The record
- CVE
- CVE-2024-56627
- Published
- Dec 27, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1210
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Dec 27, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <27de4295522e9a33e4a3fc72f7b8193df9eebe41
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <6bd1bf0e8c42f10a9a9679a4c103a9032d30594d
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <81eed631935f2c52cdaf6691c6d48e0b06e8ad73
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <de4d790dcf53be41736239d7ee63849a16ff5d10
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <fc342cf86e2dc4d2edb0fc2ff5e28b6c7845adb9
- Affected versionversion=5.15
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo