5.5medium
fs/mount_setattr: always cleanup mount_kattr
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.21% (higher than 11% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 5.12.0 before 5.15.13 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: fs/mount_setattr: limpiar siempre mount_kattr. Asegúrese de que se llame a finish_mount_kattr() después de que mount_kattr se haya compilado con éxito tanto en el caso de éxito como en el de fracaso para evitar que se filtren las referencias que tomamos cuando lo compilamos. Regresamos temprano si falla la búsqueda de ruta, por lo que corremos el riesgo de filtrar una referencia adicional que tomamos al compilar mount_kattr cuando se solicitó un montaje con idmapped.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-46923 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-46923 changed 2026-06-17 | Public domain |