Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154411; b=0TZZnrRTScqxqxHdGEzkAnxH4zy2G/eqvJiB225rESbjQ9mTA6TjPkD00gXPz9GH042r 78BZGr+oas36hVi+EgQ7/o+roIqP1snnfOt1wwJ8j40zD0wJik5y6c0EIN041HjNuUL3q OUFs4hZPG93B8Vaw91ugIV12LxCjaiSXaQfEToOhaAaf9e+r/6ZaUPe/UzyEGx1XnbOPA DK6vlk4f6/7ouWsC1229Wrld0urLbJAv3qpFbVMkW/kGc2j9kmKvQK4uWLvdc6BCxFuNg 7tKBjm0otPvB8sifrxENZ690lUZbpx3XscgzKgB165uHFjRL88bOgxCXK/W4dQXqNcQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154411; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=zu8Clra2UUOmuvWjzjD/gwbgzV6qfhmatMbXBOwH90Y=; b=pyIUzdWIxnF2qWUfPu36oCU6DXhh3gA/eNyOyivm6QQY5gf0bX9Bttt5jiUHKpsrwZiJ f2GQ1W3ynMNxyXbQxt33N5KyV7M1l2/B0wvfI7kDyRKkAmbK9GKAhe8tBA6YdDxU9n0T2 upzj1UeCC2l+RS+UlAJOHxZTGn/ZoHAxcQudC8HAyVCkljSk0reGwnZTa03nCOkuqxmxI NwAvPqs77Om986auhba0Y97RfK6079jM1ilruPDKAeR/yKnC4jNQsplyy6a3qhlYdnDnV 9qUO/KJePPt6j6P2wdYIiBUtm3XG7Pohkc5phnYKhGMRWh9/ZjFULJVpkV3JvsKvLyA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pkFowW1H; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C77F5606A337 for ; Fri, 20 Nov 2026 06:00:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=pkFowW1H Received: by smtp.kernel.org (Postfix) with ESMTPSA id 229D41F000D0; Fri, 20 Nov 2026 06:00:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154411; bh=zu8Clra2UUOmuvWjzjD/gwbgzV6qfhmatMbXBOwH90Y=; h=From:To:Cc:Subject:Date:Reply-To; b=pkFowW1HeimjkLVA/JYX8R/yC9SGsvHrL0f9TdYz3bUhnvgDwtfion4B3KjUspYup uN5JI7chIOt8Hw8bfZu1S2EhswKP13UC3fS+dJrzk97bqtc7KuI5rigtkJUSQwbm5W YiASeARVjzjBoVf/P2P+kVwVAFn1TmechEFRpG9Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99734: mm/shmem: make shmem_file() check the file's inode Date: Fri, 20 Nov 2026 06:52:00 +0100 Message-ID: <2026112015-CVE-2026-99734-a731@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2640; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Jq2ODcutxMviIeM/S2ucALgEjYEWN0+bb/seWd7Fs2I=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/708XeFPyq0/dIf3jdIb2H9fm/8vf8C3EQlrigI3ex wev97spdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEnmxnWHAoPn/ROY+Fjt37 7DarMfq4LWi5sINhfvSBx4ey/1at2eaYmHqXK2uxQJHRewA= 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: mm/shmem: make shmem_file() check the file's inode shmem_file() only checks if file->f_mapping is a shmem mapping. This mapping can belong to another file, however, as with a Coda file backed by a tmpfs container after mmap(). So it does not guarantee that the file inode is an actual shmem inode. Seal handling and memfd preservation use this check before accessing shmem inode state, so they can access an inode of the wrong type. Let's make shmem_file() check the inode's file operations instead, to identify shmem inodes reliably. This will identify regular shmem inodes, including memfds and ordinary tmpfs files, independently of wrapper file operations. Use shmem_mapping() in collapse_file() instead to not change the behavior of collapse_file(): it operates on the page cache and uses mapping->host for shmem inode operations. Focusing on the file does not seem relevant. The Linux kernel CVE team has assigned CVE-2026-99734 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit c49fcfcda8b5b06529103664f0291f433f5e6d24 and fixed in 7.3.5 with commit ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d Issue introduced in 4.18 with commit c49fcfcda8b5b06529103664f0291f433f5e6d24 and fixed in 7.4-rc2 with commit d3710111839d11339e414b1bb3fea3d05ab83f6e 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-99734 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: include/linux/shmem_fs.h mm/khugepaged.c mm/shmem.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/ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d https://git.kernel.org/stable/c/d3710111839d11339e414b1bb3fea3d05ab83f6e