CVE-2026-43178
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.17% (higher than 3% of CVEs)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
kernelNot specifiedCVE List
kernel-rtNot specifiedCVE List
linux linux_kernelfrom 6.12.70 before 6.12.75, from 6.18.10 before 6.18.16, from 6.19.1 before 6.19.6, 6.19NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
redhat-SADP7.0high CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: procfs: soluciona una posible doble llamada a mmput() en do_procmap_query() Cuando el usuario proporciona un búfer de tamaño incorrecto para el ID de compilación para PROCMAP_QUERY, devolvemos un error -ENAMETOOLONG. Después de cambios recientes, esta condición ocurre más tarde, después de que desbloqueamos mmap_lock/per-VMA lock e hicimos mmput(), por lo que el goto out original ahora es incorrecto y realizará una doble llamada a mmput() en mm_struct. Se soluciona saltando más allá para limpiar solo vm_file y name_buf.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43178 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-43178 changed 2026-11-11Public domain