# CVE-2024-50152: smb: client: fix possible double free in smb2\_set\_ea()

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-11-07 · Modified: 2026-08-05
- Aliases: UBUNTU-CVE-2024-50152, DEBIAN-CVE-2024-50152
- Record: https://cvemate.com/vulnerability/CVE-2024-50152 · JSON: https://cvemate.com/vulnerability/CVE-2024-50152/json

## Description

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

smb: client: fix possible double free in smb2_set_ea()

Clang static checker(scan-build) warning：
fs/smb/client/smb2ops.c:1304:2: Attempt to free released memory.
 1304 |         kfree(ea);
      |         ^~~~~~~~~

There is a double free in such case:
'ea is initialized to NULL' -> 'first successful memory allocation for
ea' -> 'something failed, goto sea_exit' -> 'first memory release for ea'
-> 'goto replay_again' -> 'second goto sea_exit before allocate memory
for ea' -> 'second memory release for ea resulted in double free'.

Re-initialie 'ea' to NULL near to the replay_again label, it can fix this
double free problem.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.481%, percentile 43.155%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 106)

- debian linux (Debian): \< 6.11.6-1
- ubuntu linux (Ubuntu): \< 6.8.0-58.60
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1027.29
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1027.29~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1027.32
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1012.12~24.04.1

## References

- <https://git.kernel.org/stable/c/b1813c220b76f60b1727984794377c4aa849d4c1>
- <https://git.kernel.org/stable/c/c9f758ecf2562dfdd4adf12c22921b5de8366123>
- <https://git.kernel.org/stable/c/19ebc1e6cab334a8193398d4152deb76019b5d34>
- <https://ubuntu.com/security/CVE-2024-50152>
- <https://www.cve.org/CVERecord?id=CVE-2024-50152>
- <https://git.kernel.org/linus/19ebc1e6cab334a8193398d4152deb76019b5d34>
- <https://ubuntu.com/security/notices/USN-7276-1>
- <https://ubuntu.com/security/notices/USN-7277-1>
- <https://ubuntu.com/security/notices/USN-7310-1>
- <https://ubuntu.com/security/notices/USN-7449-1>
- <https://ubuntu.com/security/notices/USN-7450-1>
- <https://ubuntu.com/security/notices/USN-7451-1>
- <https://ubuntu.com/security/notices/USN-7452-1>
- <https://ubuntu.com/security/notices/USN-7453-1>
- <https://ubuntu.com/security/notices/USN-7449-2>
- <https://ubuntu.com/security/notices/USN-7468-1>
- <https://ubuntu.com/security/notices/USN-7523-1>
- <https://ubuntu.com/security/notices/USN-7524-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-50152>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50152>

---

Data as of 2026-12-05T04:55:28.503Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
