CVE-2023-52757: smb: client: fix potential deadlock when releasing mids

Published May 21, 2024
·
Updated

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

smb: client: fix potential deadlock when releasing mids

All releasemid() callers seem to hold a reference of @mid so there is no need to call krefput(&mid->refcount, releasemid) under @server->midlock spinlock. If they don't, then an use-after-free bug would have occurred anyways.

By getting rid of such spinlock also fixes a potential deadlock as shown below

CPU 0 CPU 1 ------------------------------------------------------------------ cifsdemultiplexthread() cifsdebugdataprocshow() releasemid() spinlock(&server->midlock); spinlock(&cifstcpseslock) spinlock(&server->midlock) releasemid() smb2findsmbtcon() spinlock(&cifstcpseslock) deadlock

Other sources

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

smb: client: fix potential deadlock when releasing mids

The Linux kernel CVE team has assigned CVE-2023-52757 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052146-CVE-2023-52757-5028@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
Linux Linux kernel<6.1.64
Linux Linux kernel>=6.2<6.5.13
Linux Linux kernel>=6.6<6.6.3
debian/linux<=5.10.223-1, <=5.10.234-1
6.1.129-16.1.135-16.12.25-16.12.27-1
Debian Debian Linux=11.0
Linux Linux kernel<5.10.237
Linux Linux kernel>=5.11<5.15.181
Linux Linux kernel>=5.16<6.1.64
redhat/kernel<6.1.64
6.1.64
redhat/kernel<6.5.13
6.5.13
redhat/kernel<6.6.3
6.6.3
redhat/kernel<6.7
6.7
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.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

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

    Fixed in 6.1.64
  3. Upgrade

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

    Fixed in 6.5.13
  4. Upgrade

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

    Fixed in 6.6.3
  5. Upgrade

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

    Fixed in 6.7
  6. Upgrade

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

    Fixed in 5.15.182.1-1

Event History

May 21, 2024
CVE Published
via MITRE·03:30 PM
Data Sourced
via MITRE·03:30 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 22, 2024
Data Sourced
via Red Hat·05:24 PM
DescriptionSeverityAffected Software
Nov 24, 2024
Data Sourced
via Launchpad·02:26 PM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·12:11 AM
RemedyDescriptionSeverityAffected Software
May 13, 2025
Data Sourced
via Debian·12:15 AM
DescriptionAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·06:17 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:17 AM
Affected Software
Updated
via Microsoft·06:17 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2023-52757?

The severity of CVE-2023-52757 is categorized as moderate.

2

How do I fix CVE-2023-52757?

To fix CVE-2023-52757, update to kernel version 6.1.64 or later for Red Hat, or the corresponding patched version for Debian.

3

Which systems are affected by CVE-2023-52757?

CVE-2023-52757 affects specific versions of the Linux kernel up to 6.1.64, 6.5.13, 6.6.3, and 6.7.

4

Is there a specific kernel patch for CVE-2023-52757?

Yes, the fix for CVE-2023-52757 is included in the kernel updates mentioned in the vulnerability report.

5

What impact does CVE-2023-52757 have on Linux systems?

CVE-2023-52757 could potentially lead to a deadlock in certain SMB client operations, affecting system stability.

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