{"id":"CVE-2026-43178","summary":"procfs: fix possible double mmput() in do_procmap_query()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nprocfs: fix possible double mmput() in do_procmap_query()\n\nWhen user provides incorrectly sized buffer for build ID for PROCMAP_QUERY\nwe return with -ENAMETOOLONG error.  After recent changes this condition\nhappens later, after we unlocked mmap_lock/per-VMA lock and did mmput(),\nso original goto out is now wrong and will double-mmput() mm_struct.  Fix\nby jumping further to clean up only vm_file and name_buf.","modified":"2026-07-16T03:31:09.313675382Z","published":"2026-05-06T11:27:51.524Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43178.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/61dc9f776705d6db6847c101b98fa4f0e9eb6fa3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8adaff87db143583e08eec4f4e7788f1ef8af94d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/90f5e87c9b75833b9ef3a4415b92c0247f28ab2f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f9fe092084cd04deea18747f58a2304026e76aaa"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43178.json"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-43178"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/43xxx/CVE-2026-43178.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43178"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2467227"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b9b97e6aeb534315f9646b2090d1a5024c6a4e82"},{"fixed":"f9fe092084cd04deea18747f58a2304026e76aaa"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cbc03ce3e6ce7e21214c3f02218213574c1a2d08"},{"fixed":"8adaff87db143583e08eec4f4e7788f1ef8af94d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b5cbacd7f86f4f62b8813688c8e73be94e8e1951"},{"fixed":"90f5e87c9b75833b9ef3a4415b92c0247f28ab2f"},{"fixed":"61dc9f776705d6db6847c101b98fa4f0e9eb6fa3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.12.70"},{"fixed":"6.12.75"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.18.10"},{"fixed":"6.18.16"}]}],"versions":["v6.12.74","v6.12.73","v6.12.72","v6.12.71","v6.12.70","v6.18.15","v6.18.14","v6.18.13","v6.18.12","v6.18.11","v6.18.10"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43178.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.12.75"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-43178.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}