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=1795100437; b=fZQ08VLkDgZcVb5GlhbQGBtw6Ui002GGJBWbNRL4O80PqvSWf72wJDHBqyn1l93U268W XzXihlzzGNY0TEyHSJQJmkZpgP8/sWJQbOYzZN5/MKtgcz0+4ycPuu8htLje4oY0vQZhS t6pQPDmp0Srerv8cVvzTuiwQJpjdpQymaU9VMorlWtgccxCQVzTIg/s0H+TnwwQFJBCUj yzImZl5tVDqaXixfvgN7g9X7KKT3UqANcyuOnpfs9ny3qAh4/G2aOA6C06W7dxKPmZQ1Y KApgQepckO8fvFwXcl/wnMxoTrBsGmnZCCbalR+rAGN44SXToCk/6RGH+WuRv86oRLw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100437; 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=0ZvE87ffxPcYIJ5rqEee0nkgFuxfZ3gzqCTbiPxmKpc=; b=XlQRU2MWUjnaz3XLgMz46+VcGhWPrJdhA6ywimT7E3sDIAEEQNeFElIPRZkhq+p0oP1m +RISFi2AzlYhQTdMz39vSCETrW7+5VFk0RWnIXAboG2MIhBFKJWFGX5anSXDJa/n4KBvP ar2DYTdyZ0U9sUKhMm6BAuOCTl2vHr/qTQdwTduLfyMlcln7oCkFSAt2awr9AnpBn9dFg Om6D0DB1E3PEZmmKSs35SvlcvyWqxhGu6rPec8maRJFPnVsmaL8eFjqBPCiIIlydISOhS uAZaediZjk45bBCml999CMeY/MkWkn2I+kBORONLUx1K9rS5aamI9nYG2NssbBlnLmQ== 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=vtLjpCMZ; 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 ED572606A320 for ; Thu, 19 Nov 2026 15:00:36 +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=vtLjpCMZ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87CAD1F000CF; Thu, 19 Nov 2026 15:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100436; bh=0ZvE87ffxPcYIJ5rqEee0nkgFuxfZ3gzqCTbiPxmKpc=; h=From:To:Cc:Subject:Date:Reply-To; b=vtLjpCMZ9XvAcLHozlx30yFwRZXVSZWuIS9XQCHyMKGiyiK5x41g2PcLDioYaC+au vTC6Sb2DsKRBN+kFaUP30/9nGu3nmioLAsMfTQVNSUx65f1dkQjD9XJhxwpLKS0z4m gtsqPxL3hgPEQqa6BnmzAYRUOEdU80D6U9nZDZko= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99514: landlock: Fix superblock use-after-free in release_inode() Date: Thu, 19 Nov 2026 15:26:52 +0100 Message-ID: <2026111918-CVE-2026-99514-d5c5@gregkh> X-Mailer: git-send-email 2.56.0 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=4047; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pyq0hZ37xeU8wwIJonQhTEXwi1cozfvEgneHYIl1v4w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SZpX9yu32KswGFWvlTg/6VeDcaLtef3l8fUJzjm9 fhNK77WEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZ9IxhrmBbtiLr16iNdeUa U4o/mfnInVhqzLDg5Ps/O4P//7r2p6XB1PsG65KOML5PAA== 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: landlock: Fix superblock use-after-free in release_inode() Without this fix, release_inode() (task 1) can race with a umount operation in hook_sb_delete() (task 2). The order of operations in which the race occurs is: * task 2: hook_sb_delete() arrives at the end of the function, waiting for landlock_superblock(sb)->inode_refs to become zero. * task 1: release_inode(): does atomic_long_dec_and_test(), decrementing inode_refs to zero. * task 2: gets woken up through some other means, sees that inode_refs is zero and returns. The caller is the unmount operation and proceeds to release the superblock. * task 1: Runs wake_up_var(&landlock_superblock(sb)->inode_refs), *dereferencing the sb_security on the freed-up superblock*. Notably, wake_up_var() does not dereference the pointer passed to it, and only uses it to determine an overapproximated set of tasks to wake up. So while it's potentially possible for an attacker to provide a different value for that pointer, this only results in the wrong set of tasks getting woken up, and in this scenario, no further tasks are actually waiting. Nevertheless, KASAN detects it as a slab-use-after-free read on sb->s_security: BUG: KASAN: slab-use-after-free in release_inode+0x196/0x290 Read of size 8 at addr ffff888103b6c0a8 by task repro/217 release_inode+0x196/0x290 landlock_put_object+0x71/0x90 landlock_free_rules+0x38/0xc0 landlock_put_ruleset+0x47/0x130 fop_ruleset_release+0x33/0x40 __fput+0x305/0x780 Freed by task 54: kfree+0x11c/0x390 process_scheduled_works+0x766/0xe50 worker_thread+0x7bc/0xb20 The fix is to determine &landlock_superblock(inode->i_sb)->inode_refs only once earlier in release_inode(), and later use that precalculated address for the wake_up_var() call, without having to dereference through the superblock. The Linux kernel CVE team has assigned CVE-2026-99514 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit cb2c7d1a1776057c9a1f48ed1250d85e94d4850d and fixed in 6.12.117 with commit 1824d884e5076e3fdd83f44256746f2f95d062ec Issue introduced in 5.13 with commit cb2c7d1a1776057c9a1f48ed1250d85e94d4850d and fixed in 6.18.61 with commit 2b61008c9f884ead174a67f1cc70342a9efee3e4 Issue introduced in 5.13 with commit cb2c7d1a1776057c9a1f48ed1250d85e94d4850d and fixed in 7.3.2 with commit f79a0195db1f2568fd82999fd814af071b2dbca7 Issue introduced in 5.13 with commit cb2c7d1a1776057c9a1f48ed1250d85e94d4850d and fixed in 7.4-rc1 with commit 3e271a27c46fd591d1011c7de5a644a41e2010f1 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-99514 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: security/landlock/fs.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/1824d884e5076e3fdd83f44256746f2f95d062ec https://git.kernel.org/stable/c/2b61008c9f884ead174a67f1cc70342a9efee3e4 https://git.kernel.org/stable/c/f79a0195db1f2568fd82999fd814af071b2dbca7 https://git.kernel.org/stable/c/3e271a27c46fd591d1011c7de5a644a41e2010f1