# CVE-2023-53377: cifs: prevent use-after-free by freeing the cfile later

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-09-18T13:33:23.162Z
- Modified: 2026-08-05T09:13:45.155Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

cifs: prevent use-after-free by freeing the cfile later

In smb2_compound_op we have a possible use-after-free
which can cause hard to debug problems later on.

This was revealed during stress testing with KASAN enabled
kernel. Fixing it by moving the cfile free call to
a few lines below, after the usage.

(As written by CVE List.)

## Affected

- Linux Linux: from 76894f3e2f71177747b8b4763fb180e800279585 before 4fe07d55a5461e66a55fbefb57f85ff0facea32b; from 76894f3e2f71177747b8b4763fb180e800279585 before b6353518ef8180816e863aa23b06456f395404d6; from 76894f3e2f71177747b8b4763fb180e800279585 before d017880782cf71f8820ee4a2002843893176501d; from 76894f3e2f71177747b8b4763fb180e800279585 before 33f736187d08f6bc822117629f263b97d3df4165; 2d046892a493d9760c35fdaefc3017f27f91b621; from 6.0.16 before 6.1; 6.1 (not affected: before 6.1; from 6.1.39 up to 6.1.*; from 6.3.13 up to 6.3.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 6.0.16 before 6.1.39; from 6.2 before 6.3.13; from 6.4 before 6.4.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/4fe07d55a5461e66a55fbefb57f85ff0facea32b> (patch)
- <https://git.kernel.org/stable/c/b6353518ef8180816e863aa23b06456f395404d6> (patch)
- <https://git.kernel.org/stable/c/d017880782cf71f8820ee4a2002843893176501d> (patch)
- <https://git.kernel.org/stable/c/33f736187d08f6bc822117629f263b97d3df4165> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-53377 · Whole record: https://cve.day/CVE-2023-53377.json · Rebuilt by cve.day 2026-11-25T22:58:34.857Z
