# CVE-2026-43178: procfs: fix possible double mmput() in do_procmap_query()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.17%, higher than 3% of CVEs (2026-11-30)
- Published: 2026-05-06T11:27:51.524Z
- Modified: 2026-11-11T20:10:00.273Z
- Weaknesses: CWE-415, CWE-1341
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from b9b97e6aeb534315f9646b2090d1a5024c6a4e82 before f9fe092084cd04deea18747f58a2304026e76aaa; from cbc03ce3e6ce7e21214c3f02218213574c1a2d08 before 8adaff87db143583e08eec4f4e7788f1ef8af94d; from b5cbacd7f86f4f62b8813688c8e73be94e8e1951 before 90f5e87c9b75833b9ef3a4415b92c0247f28ab2f; from b5cbacd7f86f4f62b8813688c8e73be94e8e1951 before 61dc9f776705d6db6847c101b98fa4f0e9eb6fa3; from 6.12.70 before 6.12.75; from 6.18.10 before 6.18.16; 6.19 (not affected: before 6.19; from 6.12.75 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- kernel: no versions given
- kernel-rt: no versions given
- linux linux_kernel: from 6.12.70 before 6.12.75; from 6.18.10 before 6.18.16; from 6.19.1 before 6.19.6; 6.19

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/f9fe092084cd04deea18747f58a2304026e76aaa> (patch)
- <https://git.kernel.org/stable/c/8adaff87db143583e08eec4f4e7788f1ef8af94d> (patch)
- <https://git.kernel.org/stable/c/90f5e87c9b75833b9ef3a4415b92c0247f28ab2f> (patch)
- <https://git.kernel.org/stable/c/61dc9f776705d6db6847c101b98fa4f0e9eb6fa3> (patch)
- <https://access.redhat.com/security/cve/CVE-2026-43178> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467227> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43178.json>

## Sources

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

---

Page: https://cve.day/CVE-2026-43178 · Whole record: https://cve.day/CVE-2026-43178.json · Rebuilt by cve.day 2026-11-25T22:59:20.715Z
