# CVE-2021-46923: fs/mount_setattr: always cleanup mount_kattr

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- 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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-02-27T09:43:54.159Z
- Modified: 2026-06-17T04:15:51.740Z
- Weaknesses: CWE-668
- 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/mount_setattr: always cleanup mount_kattr

Make sure that finish_mount_kattr() is called after mount_kattr was
succesfully built in both the success and failure case to prevent
leaking any references we took when we built it.  We returned early if
path lookup failed thereby risking to leak an additional reference we
took when building mount_kattr when an idmapped mount was requested.

(As written by CVE List.)

## Affected

- Linux Linux: from 9caccd41541a6f7d6279928d9f971f6642c361af before 47b5d0a7532d39e42a938f81e3904268145c341d; from 9caccd41541a6f7d6279928d9f971f6642c361af before 012e332286e2bb9f6ac77d195f17e74b2963d663; 5.12 (not affected: before 5.12; from 5.15.13 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 5.12.0 before 5.15.13

## References

- <https://git.kernel.org/stable/c/47b5d0a7532d39e42a938f81e3904268145c341d> (patch)
- <https://git.kernel.org/stable/c/012e332286e2bb9f6ac77d195f17e74b2963d663> (patch)

## Sources

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

---

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