CVE-2025-22039: ksmbd: fix overflow in dacloffset bounds check

Published Apr 16, 2025
·
Updated

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

ksmbd: fix overflow in dacloffset bounds check

The dacloffset field was originally typed as int and used in an unchecked addition, which could overflow and bypass the existing bounds check in both smbcheckpermdacl() and smbinheritdacl().

This could result in out-of-bounds memory access and a kernel crash when dereferencing the DACL pointer.

This patch converts dacloffset to unsigned int and uses checkaddoverflow() to validate access to the DACL.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=5.15<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch ksmbd: fix overflow in dacloffset bounds check

Event History

Apr 16, 2025
CVE Published
via MITRE·02:11 PM
Data Sourced
via MITRE·02:11 PM
DescriptionSeverity
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·02:38 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-22039?

The severity of CVE-2025-22039 is considered moderate due to potential overflow issues.

2

How do I fix CVE-2025-22039?

To fix CVE-2025-22039, users should update their Linux kernel to the latest patched version.

3

Which Linux versions are affected by CVE-2025-22039?

CVE-2025-22039 affects several versions of the Linux kernel that utilize the ksmbd module.

4

What are the implications of CVE-2025-22039?

CVE-2025-22039 could allow an attacker to exploit an overflow to bypass permission checks.

5

Is CVE-2025-22039 publicly known?

Yes, CVE-2025-22039 has been publicly disclosed and documented.

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