# CVE-2021-47660: fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()'

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/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.25%, higher than 16% of CVEs (2026-12-02)
- Published: 2025-02-26T02:05:57.461Z
- Modified: 2026-06-17T04:18:16.373Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

fs/ntfs3: Fix some memory leaks in an error handling path of 'log_replay()'

All error handling paths lead to 'out' where many resources are freed.

Do it as well here instead of a direct return, otherwise 'log', 'ra' and
'log->one_page_buf' (at least) will leak.

(As written by CVE List.)

## Affected

- Linux Linux: from b46acd6a6a627d876898e1c84d3f84902264b445 before d8be98ab88250dc12a98efdb703792a537b0eac3; from b46acd6a6a627d876898e1c84d3f84902264b445 before bc4a1d384a04c6dba9312e1421a9f9f7c03339a4; from b46acd6a6a627d876898e1c84d3f84902264b445 before 2c97519ed6b4239594c58ddacf3d0d576cf070cc; from b46acd6a6a627d876898e1c84d3f84902264b445 before e589f9b7078e1c0191613cd736f598e81d2390de; 5.15 (not affected: before 5.15; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.15 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## Every score

- CISA-ADP: 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`
- 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/d8be98ab88250dc12a98efdb703792a537b0eac3> (patch)
- <https://git.kernel.org/stable/c/bc4a1d384a04c6dba9312e1421a9f9f7c03339a4> (patch)
- <https://git.kernel.org/stable/c/2c97519ed6b4239594c58ddacf3d0d576cf070cc> (patch)
- <https://git.kernel.org/stable/c/e589f9b7078e1c0191613cd736f598e81d2390de> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47660 · Whole record: https://cve.day/CVE-2021-47660.json · Rebuilt by cve.day 2026-11-25T22:58:09.010Z
