Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB197426EBA for ; Wed, 6 May 2026 11:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067076; cv=none; b=FrbpwfxgoXKtWwox00kxMaRMiXhUHGsAkXlEfNH7LWQLTF8qveQCOpLhan2rwFlMtlbYs2OXSKktVbqWDQ6I6vgpedBah1FdRBY2lohCRDPMgebMxAdASSkQP8IeqiZVNosaO7WGsdlE6oYzvPoxEioB04MGyD9Tnu8IxCXb3Ng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067076; c=relaxed/simple; bh=lA2FpKjBsjTyshzlAh18ZtUT1A4nE/lzV1E424g4N0A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=G210IT6SsZwkRTZTJIqo8JL3e3l0UPPcvYAvx6jPq4A1JOoxV5NMzdilhC8S4v2TF/LhJFtkczT982VKArxNF9FsNrj6vgvhqlIsYuFK1o/+MSfgqPjnqzL7H1oAUX2dX0aYiUiC8UjqW6Lv9PDULkujS7VnNC647u+rneC7Jtw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dtg4xafB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Dtg4xafB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82E15C2BCB8; Wed, 6 May 2026 11:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067075; bh=lA2FpKjBsjTyshzlAh18ZtUT1A4nE/lzV1E424g4N0A=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Dtg4xafBmdHn2zsEiFHPXWNQn8L0JXp9ZM+l3lN/qp1pu02h+jeq24gZWsK+2muhl cdiEQSHGtiYAG/53xnqWzh5Xa+E2pzNHrq6zgsPJQyLX42KUBJrUX2jlgg2jh9/vLl l+olTHESo0KQYraAWSS/s6xQKUIllrHdFDuuLQ7Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43178: procfs: fix possible double mmput() in do_procmap_query() Date: Wed, 6 May 2026 13:28:14 +0200 Message-ID: <2026050638-CVE-2026-43178-3c95@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2578; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OfEU1f4TYq45tH1Qu9CAKKg9F0zPJnD40zLICnTb+p4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VVdZnJshcPlbvJjS6sU1ofeYRWb1fnMq9jcIq3VIb l+WXXypI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbybS7Dghnfz570W+rGyCJ2 Zvd/viv2F7dxyDDMj1+//ohlmPsb71f8j2XeLdTxWWhgAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-43178 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.70 with commit b9b97e6aeb534315f9646b2090d1a5024c6a4e82 and fixed in 6.12.75 with commit f9fe092084cd04deea18747f58a2304026e76aaa Issue introduced in 6.18.10 with commit cbc03ce3e6ce7e21214c3f02218213574c1a2d08 and fixed in 6.18.16 with commit 8adaff87db143583e08eec4f4e7788f1ef8af94d Issue introduced in 6.19 with commit b5cbacd7f86f4f62b8813688c8e73be94e8e1951 and fixed in 6.19.6 with commit 90f5e87c9b75833b9ef3a4415b92c0247f28ab2f Issue introduced in 6.19 with commit b5cbacd7f86f4f62b8813688c8e73be94e8e1951 and fixed in 7.0 with commit 61dc9f776705d6db6847c101b98fa4f0e9eb6fa3 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-43178 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/proc/task_mmu.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/f9fe092084cd04deea18747f58a2304026e76aaa https://git.kernel.org/stable/c/8adaff87db143583e08eec4f4e7788f1ef8af94d https://git.kernel.org/stable/c/90f5e87c9b75833b9ef3a4415b92c0247f28ab2f https://git.kernel.org/stable/c/61dc9f776705d6db6847c101b98fa4f0e9eb6fa3