CVE-2023-3865: Linux Kernel ksmbd Out-Of-Bounds Read Information Disclosure Vulnerability

Published Aug 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix out-of-bound read in smb2write

ksmbdsmb2checkmessage doesn't validate hdr->NextCommand. If ->NextCommand is bigger than Offset + Length of smb2 write, It will allow oversized smb2 write length. It will cause OOB read in smb2write.

Other sources

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Linux Kernel. Authentication may or may not be required to exploit this vulnerability, depending upon configuration. Furthermore, only systems with ksmbd enabled are vulnerable. The specific flaw exists within the parsing of smb2hdr structure. The issue results from the lack of proper validation of user-supplied data, which can result in a read past the end of an allocated buffer. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel.

ZDI

Affected Software

12 affected componentsFixes available
Linux Kernel
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
Linux Linux kernel>=5.15<5.15.121
Linux Linux kernel>=5.16<6.1.36
Linux Linux kernel>=6.2<6.3.10
Linux Linux kernel=6.4-rc1
Linux Linux kernel=6.4-rc2
Linux Linux kernel=6.4-rc3
Linux Linux kernel=6.4-rc4
Linux Linux kernel=6.4-rc5
Linux Linux kernel=6.4-rc6
Linux Linux kernel=6.4-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  2. Compensating control

    Since only systems with ksmbd enabled are vulnerable, ensure ksmbd is disabled on systems where it is not required.

Event History

Feb 26, 2025
Advisory Published
via ZDI·03:45 PM
Apr 28, 2025
Data Sourced
via Ubuntu·02:13 PM
RemedyDescriptionSeverityAffected Software
Aug 16, 2025
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-3865?

CVE-2023-3865 has been classified with a moderate severity rating due to its ability to allow remote attackers to disclose sensitive information.

2

How do I fix CVE-2023-3865?

To fix CVE-2023-3865, update to one of the patched versions of the Linux Kernel such as 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.

3

Who is affected by CVE-2023-3865?

CVE-2023-3865 affects installations of the Linux Kernel that are running vulnerable versions.

4

Is authentication required to exploit CVE-2023-3865?

Authentication may or may not be required depending on the specific installation and configuration when exploiting CVE-2023-3865.

5

What type of vulnerability is CVE-2023-3865?

CVE-2023-3865 is an out-of-bounds read vulnerability that can lead to the disclosure of sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203