CVE-2024-35866: smb: client: fix potential UAF in cifs_dump_full_key()

Published May 19, 2024
·
Updated

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

smb: client: fix potential UAF in cifsdumpfullkey()

Skip sessions that are being teared down (status == SESEXITING) to avoid UAF.

Other sources

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

smb: client: fix potential UAF in cifsdumpfullkey()

The Linux kernel CVE team has assigned CVE-2024-35866 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051939-CVE-2024-35866-97e5@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
Linux Linux kernel<6.6.26
Linux Linux kernel>=6.7<6.8.5
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1
6.1.133-16.12.22-1
Debian Debian Linux=11.0
Linux Linux kernel>=5.13<5.15.181
Linux Linux kernel>=5.16<6.1.132
Linux Linux kernel>=6.2<6.6.26
redhat/kernel<6.6.26
6.6.26
redhat/kernel<6.8.5
6.8.5
redhat/kernel<6.9
6.9
Microsoft cbl2 kernel 5.15.182.1-1
Microsoft cbl2 kernel 5.15.182.1-1<5.15.182.1-1
5.15.182.1-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 6.1.133-1Fixed in 6.12.22-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.6.26
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8.5
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.9
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.182.1-1
  6. Compensating control

    Apply the described fix: in the Linux SMB client code (cifs_dump_full_key()), skip CIFS/SMB sessions that are being torn down by checking for status == SES_EXITING, to avoid the potential UAF associated with CVE-2024-35866.

Event History

May 19, 2024
CVE Published
via MITRE·08:34 AM
Data Sourced
via MITRE·08:34 AM
Description
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
May 20, 2024
Data Sourced
via Red Hat·01:30 PM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:46 PM
Description
Apr 19, 2025
Data Sourced
via Ubuntu·12:18 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·05:12 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·05:12 AM
Affected Software
Updated
via Microsoft·05:12 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2024-35866?

CVE-2024-35866 has a medium severity rating due to its potential for causing a use-after-free condition.

2

How do I fix CVE-2024-35866?

To fix CVE-2024-35866, update the kernel to version 6.6.26, 6.8.5, or 6.9 as appropriate for your system.

3

Which systems are affected by CVE-2024-35866?

CVE-2024-35866 affects versions of the Linux kernel prior to 6.6.26 and between 6.7 and 6.8.5, as well as specific release candidates of version 6.9.

4

What type of vulnerability is CVE-2024-35866?

CVE-2024-35866 is a use-after-free vulnerability in the SMB client of the Linux kernel.

5

Is there a patch available for CVE-2024-35866?

Yes, patches to address CVE-2024-35866 are included in the latest kernel updates for affected systems.

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