CVE-2025-22042
Description
A flaw was found in the Linux kernel's ksmbd (in-kernel Server Message Block server) component. A missing bounds check during the processing of create lease context requests allows an authenticated remote attacker to cause an out-of-bounds memory read by sending specially crafted SMB requests. This flaw primarily allows an attacker to trigger a system crash, resulting in a Denial of Service (DoS), and may also lead to information disclosure from kernel memory.
Statement
This vulnerability does not impact Red Hat Enterprise Linux because the in-kernel SMB server (ksmbd) is neither enabled nor shipped in supported kernel packages. Red Hat delivers SMB network file sharing services exclusively through the user-space Samba suite. Consequently, supported Red Hat platforms do not include the vulnerable code and are not susceptible to this flaw.
Understanding the Weakness (CWE)
Confidentiality
Technical Impact: Read Memory
An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.
Confidentiality
Technical Impact: Bypass Protection Mechanism
Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.
Availability
Technical Impact: DoS: Crash, Exit, or Restart
An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.
Other
Technical Impact: Varies by Context
The read operation could produce other undefined or unexpected results.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.