CVE-2021-46923

fs/mount_setattr: always cleanup mount_kattr

State
Published
Severity
Not scored
Published
Feb 27, 2024
Updated
May 11, 2026
Reserved
Feb 25, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 9caccd41541a6f7d6279928d9f971f6642c361af to before 47b5d0a7532d39e42a938f81e3904268145c341dAffected
  • 9caccd41541a6f7d6279928d9f971f6642c361af to before 012e332286e2bb9f6ac77d195f17e74b2963d663Affected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.15.13 through 5.15.*Not affected
  • 5.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.