CVE-2024-57925: ksmbd: fix a missing return value check bug

Published Jan 19, 2025
·
Updated

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

ksmbd: fix a missing return value check bug

In the smb2sendinterimresp(), if ksmbdallocworkstruct() fails to allocate a node, it returns a NULL pointer to the inwork pointer. This can lead to an illegal memory write of inwork->responsebuf when allocateinterimrspbuf() attempts to perform a kzalloc() on it.

To address this issue, incorporating a check for the return value of ksmbdallocworkstruct() ensures that the function returns immediately upon allocation failure, thereby preventing the aforementioned illegal memory access.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

13 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.15.145<5.16
Linux Linux kernel>=6.1.71<6.1.125
Linux Linux kernel>=6.6<6.6.72
Linux Linux kernel>=6.7<6.12.10
Linux Linux kernel=6.13-rc1
Linux Linux kernel=6.13-rc2
Linux Linux kernel=6.13-rc3
Linux Linux kernel=6.13-rc4
Linux Linux kernel=6.13-rc5
Linux Linux kernel=6.13-rc6
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

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.27-1
  2. Upgrade

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

    Fixed in 6.1.129-1~deb11u1
  3. Upgrade

    Upgrade Linux kernel (ksmbd) to a version that resolves this vulnerability.

    Patch ksmbd: fix a missing return value check bug

Event History

Jan 19, 2025
CVE Published
via MITRE·11:52 AM
Data Sourced
via MITRE·11:52 AM
Description
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 13, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Mar 27, 2025
Data Sourced
via Launchpad·06:49 PM
Description
May 2, 2025
Data Sourced
via Ubuntu·06:57 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-57925?

CVE-2024-57925 has a severity rating that indicates it poses a risk due to a missing return value check that could lead to illegal memory access.

2

How do I fix CVE-2024-57925?

The fix for CVE-2024-57925 involves updating to the latest version of the Linux kernel that addresses this allocation issue.

3

What systems are affected by CVE-2024-57925?

CVE-2024-57925 affects systems running the Linux kernel that utilize the ksmbd SMB server.

4

What conditions lead to the exploitation of CVE-2024-57925?

CVE-2024-57925 can potentially be exploited when the ksmbd_alloc_work_struct fails, resulting in a NULL pointer being used.

5

Is there a workaround for CVE-2024-57925?

While the best practice is to update the kernel, limiting access to the SMB functionality can serve as a temporary workaround for CVE-2024-57925.

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