CVE-2024-26980: ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf

Published May 1, 2024
·
Updated

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

ksmbd: fix slab-out-of-bounds in smb2allocaterspbuf

If ->ProtocolId is SMB2TRANSFORMPROTONUM, smb2 request size validation could be skipped. if request size is smaller than sizeof(struct smb2queryinforeq), slab-out-of-bounds read can happen in smb2allocaterspbuf(). This patch allocate response buffer after decrypting transform request. smb3decryptreq() will validate transform request size and avoid slab-out-of-bound in smb2allocaterspbuf().

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=5.15<5.15.159
Linux Linux kernel>=5.16<6.1.88
Linux Linux kernel>=6.2<6.6.29
Linux Linux kernel>=6.7<6.8.8
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4
Linux Linux kernel=6.9-rc5
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

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. Upgrade

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

    Patch ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
  3. Configuration

    Ensure smb2 request size validation is performed before allocating the response buffer for SMB2_TRANSFORM_PROTO_NUM requests; allocate the smb2 rsp buffer only after decrypting the transform request and verify request size is not smaller than sizeof(struct smb2_query_info_req) to prevent slab-out-of-bounds in smb2_allocate_rsp_buf().

    ksmbd smb2 request size validation for SMB2_TRANSFORM_PROTO_NUM = required

Event History

May 1, 2024
CVE Published
via MITRE·05:26 AM
Data Sourced
via MITRE·05:26 AM
DescriptionSeverity
Data Sourced
via NVD·06:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:45 PM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·12:16 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-26980?

CVE-2024-26980 is classified as a medium severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-26980?

To fix CVE-2024-26980, upgrade to the patched versions of the Linux kernel specified in the advisory.

3

What does CVE-2024-26980 affect?

CVE-2024-26980 affects various versions of the Linux kernel that utilize ksmbd and are vulnerable to slab-out-of-bounds issues.

4

What are the affected software versions for CVE-2024-26980?

Affected software versions for CVE-2024-26980 include specifically Linux kernel versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, and 6.12.11-1.

5

What is the impact of CVE-2024-26980?

The impact of CVE-2024-26980 could potentially allow an attacker to bypass request size validation in the ksmbd module, leading to memory corruption.

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