# CVE-2024-35998: smb3: fix lock ordering potential deadlock in cifs_sync_mid_result

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 35% of CVEs (2026-12-01)
- Published: 2024-05-20T09:48:01.009Z
- Modified: 2026-08-05T11:31:29.368Z
- Weaknesses: CWE-667
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

smb3: fix lock ordering potential deadlock in cifs_sync_mid_result

Coverity spotted that the cifs_sync_mid_result function could deadlock

"Thread deadlock (ORDER_REVERSAL) lock_order: Calling spin_lock acquires
lock TCP_Server_Info.srv_lock while holding lock TCP_Server_Info.mid_lock"

Addresses-Coverity: 1590401 ("Thread deadlock (ORDER_REVERSAL)")

(As written by CVE List.)

## Affected

- Linux Linux: from 64d62ac6d6514cba1305bd08e271ec1843bdd612 before c7a4bca289e50bb4b2650f845c41bb3e453f4c66; from 90c49fce1c43e1cc152695e20363ff5087897c09 before 699f8958dece132709c0bff6a9700999a2a63b75; from 90c49fce1c43e1cc152695e20363ff5087897c09 before 8248224ab5b8ca7559b671917c224296a4d671fc; from 90c49fce1c43e1cc152695e20363ff5087897c09 before 8861fd5180476f45f9e8853db154600469a0284f; c511954bf142fe1995aec3c739a9f1a76990283a; 0b08c4c499200be67d54c439d56e5ea866869945; from 6.1.28 before 6.1.90; from 6.2.15 before 6.3; from 6.3.2 before 6.4; 6.4 (not affected: before 6.4; from 6.1.90 up to 6.1.*; from 6.6.30 up to 6.6.*; from 6.8.9 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: before 6.1.90; from 6.2 before 6.6.30; from 6.7 before 6.8.9; 6.9

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c7a4bca289e50bb4b2650f845c41bb3e453f4c66> (patch)
- <https://git.kernel.org/stable/c/699f8958dece132709c0bff6a9700999a2a63b75> (patch)
- <https://git.kernel.org/stable/c/8248224ab5b8ca7559b671917c224296a4d671fc> (patch)
- <https://git.kernel.org/stable/c/8861fd5180476f45f9e8853db154600469a0284f> (patch)

## Sources

- CVE List: [CVE-2024-35998](https://www.cve.org/CVERecord?id=CVE-2024-35998), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35998](https://nvd.nist.gov/vuln/detail/CVE-2024-35998), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35998 · Whole record: https://cve.day/CVE-2024-35998.json · Rebuilt by cve.day 2026-11-25T22:58:40.660Z
