CVE-2026-43178

procfs: fix possible double mmput() in do_procmap_query()

State
Published
Severity
7.8 High
Published
May 6, 2026
Updated
Aug 5, 2026
Reserved
May 1, 2026

Read the record on cve.org

Description

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

procfs: fix possible double mmput() in do_procmap_query()

When user provides incorrectly sized buffer for build ID for PROCMAP_QUERY we return with -ENAMETOOLONG error. After recent changes this condition happens later, after we unlocked mmap_lock/per-VMA lock and did mmput(), so original goto out is now wrong and will double-mmput() mm_struct. Fix by jumping further to clean up only vm_file and name_buf.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.17.0 HighCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat-SADP

Weaknesses

  • CWE-1341 Multiple Releases of Same Resource or Handle

Affected Products

ProductVersions
LinuxLinux
  • b9b97e6aeb534315f9646b2090d1a5024c6a4e82 to before f9fe092084cd04deea18747f58a2304026e76aaaAffected
  • cbc03ce3e6ce7e21214c3f02218213574c1a2d08 to before 8adaff87db143583e08eec4f4e7788f1ef8af94dAffected
  • b5cbacd7f86f4f62b8813688c8e73be94e8e1951 to before 90f5e87c9b75833b9ef3a4415b92c0247f28ab2fAffected
  • b5cbacd7f86f4f62b8813688c8e73be94e8e1951 to before 61dc9f776705d6db6847c101b98fa4f0e9eb6fa3Affected
  • 6.12.70 to before 6.12.75Affected
  • 6.18.10 to before 6.18.16Affected
LinuxLinux
  • 6.19Affected
  • before 6.19Not affected
  • 6.12.75 through 6.12.*Not affected
  • 6.18.16 through 6.18.*Not affected
  • 6.19.6 through 6.19.*Not affected
  • 7.0 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.