# CVE-2024-53179: smb: client: fix use-after-free of signing key

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.82% (percentile 54, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-12-27T13:49:22.982Z
- **Modified:** 2026-10-30T13:17:44.720Z

## Who should check

- Anyone running Linux \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0944c2596c2a3442735b5bb6714a17a16188a68f; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 39619c65ab4bbb3e78c818f537687653e112764d; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 343d7fe6df9e247671440a932b6a73af4fa86d95
- Anyone running Linux 3.12

## Description

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

smb: client: fix use-after-free of signing key

Customers have reported use-after-free in @ses-\>auth\_key.response with
SMB2.1 + sign mounts which occurs due to following race:

task A                         task B
cifs\_mount()
 dfs\_mount\_share()
  get\_session()
   cifs\_mount\_get\_session()    cifs\_send\_recv()
    cifs\_get\_smb\_ses()          compound\_send\_recv()
     cifs\_setup\_session()        smb2\_setup\_request()
      kfree\_sensitive()           smb2\_calc\_signature()
                                   crypto\_shash\_setkey() \*UAF\*

Fix this by ensuring that we have a valid @ses-\>auth\_key.response by
checking whether @ses-\>ses\_status is SES\_GOOD or SES\_EXITING with
@ses-\>ses\_lock held.  After commit 24a9799aa8ef ("smb: client: fix UAF
in smb2\_reconnect\_server()"), we made sure to call -\>logoff() only
when @ses was known to be good (e.g. valid -\>auth\_key.response), so
it's safe to access signing key when @ses-\>ses\_status == SES\_EXITING.

## Affected and fixed versions

- Linux: \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0944c2596c2a3442735b5bb6714a17a16188a68f; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 39619c65ab4bbb3e78c818f537687653e112764d; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 343d7fe6df9e247671440a932b6a73af4fa86d95 (cvelist)
- Linux: 3.12 (cvelist)

## Mitigation

- Upgrade Linux to 343d7fe6df9e247671440a932b6a73af4fa86d95 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-53179. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-53179.md
Affected: Linux >= 32811d242ff6f28da2ab18c90a15e32fd958e774, < 0944c2596c2a3442735b5bb6714a17a16188a68f; >= 32811d242ff6f28da2ab18c90a15e32fd958e774, < 39619c65ab4bbb3e78c818f537687653e112764d; >= 32811d242ff6f28da2ab18c90a15e32fd958e774, < 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591; >= 32811d242ff6f28da2ab18c…
Fixed in: Linux 0944c2596c2a3442735b5bb6714a17a16188a68f, Linux 39619c65ab4bbb3e78c818f537687653e112764d, Linux 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591, Linux 343d7fe6df9e247671440a932b6a73af4fa86d95

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-53179 being exploited?

There is no confirmed exploitation: CVE-2024-53179 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.82% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-53179?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-53179?

Linux \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0944c2596c2a3442735b5bb6714a17a16188a68f; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 39619c65ab4bbb3e78c818f537687653e112764d; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591; \>= 32811d242ff6f28da2ab18c90a15e32fd958e774, \< 343d7fe6df9e247671440a932b6a73af4fa86d95; Linux 3.12.

### Is there a fix for CVE-2024-53179?

Yes. Fixed in Linux 0944c2596c2a3442735b5bb6714a17a16188a68f, Linux 39619c65ab4bbb3e78c818f537687653e112764d, Linux 0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591, Linux 343d7fe6df9e247671440a932b6a73af4fa86d95. Upgrade Linux to 343d7fe6df9e247671440a932b6a73af4fa86d95 or later.

### How do I check if I'm affected by CVE-2024-53179?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/39619c65ab4bbb3e78c818f537687653e112764d>
- patch: <https://git.kernel.org/stable/c/0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591>
- patch: <https://git.kernel.org/stable/c/343d7fe6df9e247671440a932b6a73af4fa86d95>
- other: <https://git.kernel.org/stable/c/0944c2596c2a3442735b5bb6714a17a16188a68f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-53179>

HTML: <https://flawdb.com/CVE-2024-53179> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-53179>
