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=1795100425; b=oUB22IfhOhv/Ee7dOOZmvCZM3Xk4Te2QraF3dfwO9VhJMkJnDtmuZEe0AZK0j7I2fpIP VxA2drdcxpDUovYKi0aKuNL/ArxeI1XDkX5lnWULrO7EfDkOd+HJgMWpAhQrhFiPCq2As WEdHgVUvdVcGz4ZHRwDdYmgm3DmviL/c1IpKLmGbEJAP/bZ37nwN+uxYfbEE/TY8o9Okk 8bolM6ULncQip9d+T9pJWl7kHDZofDLfneBG8p1Yw8joJQD83UTTSJShx/YKbvnGN7TJL yYcpHWN9/FcbMM7r8pr/fHZ/4TCJM3RcwV7ikJ5GouXSJCanRkziEcLeSJwPXT/I6XA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100425; 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=1lC/Z9nyXfEoP65lYUNk8Nf4gi+fvY9TAxwQQSPTKNI=; b=ZmPQTtD69738tFc2G7ms7oyUCChqCZIkdq6uwFJ6pDUIeQ/LcKIrlST4jL5wjhj4BSDM Own4YC4HOKb2IE1+GLg8ijUDNSWEfN7tNabiKKc0l2vcZESfToX/k2ItHxi54IyPjlWv2 ILDchH3pK7IbOsvo+BgzE5pdlVp/IS7M01YkxEVuSeILSWvRrAUIxIfh6CozTHGhCvlAi XtTKXLAz3NWX6JA4BiuIKD1KI1yofcQyNLeDx3f54pzesDvsPjpOuQQxEWthr23A6Vqz9 Z5PviHjIgdb0J4zhVOp9HZZ6OSRvkcMUKCf3YwpPnjuxazD2FvQevXLKcRckPsVu9+A== 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=tchwX1Z5; 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 C9F5E606A324 for ; Thu, 19 Nov 2026 15:00:25 +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=tchwX1Z5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C73DB1F000C5; Thu, 19 Nov 2026 15:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100425; bh=1lC/Z9nyXfEoP65lYUNk8Nf4gi+fvY9TAxwQQSPTKNI=; h=From:To:Cc:Subject:Date:Reply-To; b=tchwX1Z5wREVhY+2NxSNA8BsIlWAHv6jPoL5uIEkG45rAhBQvnWjyFP8r7PSSzrQZ uGBwaoF3d86Y/nwVs8Cle5W7SDd+TK8Lo5Ozv7lt8rAdlRhkMifh2YadOoz7BJnQ47 sJaUJNJ/AOeziN4iKXm3MgIKMkP2Y1MdFoHoKDpU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99513: lockd: Fix use-after-free in nlmsvc_retry_blocked Date: Thu, 19 Nov 2026 15:26:51 +0100 Message-ID: <2026111918-CVE-2026-99513-2d6b@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=3340; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GXs2UC/Q99wHgCwSGRutHK/NbBhqnXpSUKn+z3jdg0o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SZVXNPd1ss4xUvj3KRfL33PNviJHv0aG/2scBXn8 /78dr8VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR9OUM8/19WyQZVK/NPDVB 1eWx52XlpFmTXBnmhxmF82dd0HvTx/lNQLWeqSnq/wsBAA== 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: lockd: Fix use-after-free in nlmsvc_retry_blocked nlmsvc_retry_blocked() examines the block at the head of nlm_blocked under nlm_blocked_lock, then releases the lock before calling nlmsvc_grant_blocked() or retry_deferred_block(). The nlm_blocked list reference is all that keeps the block alive across that window. nlmsvc_grant_blocked() does take one of its own, but not until after the lock has been dropped. Unmounting the nfsd filesystem while a lock request is still blocked reaches nlmsvc_traverse_blocks(), which drops the list reference and frees the block along with the nlm_rqst hanging off it. BUG: KASAN: slab-use-after-free in nlm_async_call+0xd6/0x230 Read of size 8 at addr ffff88811b04c808 by task lockd/8377 nlm_async_call+0xd6/0x230 nlmsvc_retry_blocked+0x61c/0x800 lockd+0x144/0x1c0 Freed by task 8392: nlmsvc_release_block+0x231/0x290 nlmsvc_traverse_blocks+0x139/0x1b0 nlm_traverse_files+0x1aa/0xa00 nlmsvc_free_host_resources+0x12/0x60 nlm_shutdown_hosts_net+0x127/0x280 lockd_down+0xd5/0x1c0 Take a reference before releasing nlm_blocked_lock and drop it once the retry has run. The Linux kernel CVE team has assigned CVE-2026-99513 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.22 with commit 0e4ac9d93515b27fd7635332d73eae3192ed5d4e and fixed in 6.12.117 with commit 6506c27da6756c0c7590ef60774ee5d35f6a4100 Issue introduced in 2.6.22 with commit 0e4ac9d93515b27fd7635332d73eae3192ed5d4e and fixed in 6.18.61 with commit 70825b251e5f7855fd7bd93afc0b698154e00e70 Issue introduced in 2.6.22 with commit 0e4ac9d93515b27fd7635332d73eae3192ed5d4e and fixed in 7.3.2 with commit 25d0baa6adb4a0b3f6889d42033ce8df3232bea7 Issue introduced in 2.6.22 with commit 0e4ac9d93515b27fd7635332d73eae3192ed5d4e and fixed in 7.4-rc1 with commit f5b7634f0f213299a07b461fb10385c8639a4ab8 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-99513 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/lockd/svclock.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/6506c27da6756c0c7590ef60774ee5d35f6a4100 https://git.kernel.org/stable/c/70825b251e5f7855fd7bd93afc0b698154e00e70 https://git.kernel.org/stable/c/25d0baa6adb4a0b3f6889d42033ce8df3232bea7 https://git.kernel.org/stable/c/f5b7634f0f213299a07b461fb10385c8639a4ab8