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=1795099742; b=Qwuw+quWMlU+TItvfToyFs3lFnMJ2SPzqSQIlXXQHJGld2YoWJjJ6zaLXpXpzz3AXGVl x2I0ZH5E/O0B4AHFi4NrISRNpxePoLD9fIPnfDyXMalxGGWlogKmmQX+T7Jz84IxtZrqu hm+fl9Mn5+GFl92YzTJRPAlcTbm2SGav+JG3eewoRF2UPa0OUyuQVpKv05OPylpHWNlDJ IucU2U0V/X4ir70MAbrfQZz+Zx7+jpI61Oyz/rrK1oAnpu5nZK87EqFxYpLq7rLo6hBKl xZK6Zxh0q48hqqrNC2VSFh24B5wsPVReGaNAtZH4u/BBgmWhJEavYIjltb0jaOXimoA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099742; 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=TSdqKZyeCVnoNVLMnvBSAykb1z4hFUsXttXmv91jKbU=; b=Eya+5lYWoKkHpC4ZjUdd9yu4tMa8NndpaatBeCjyG5rL4/UknSITDq+5ezeY8tv0vuEc Jsbu3tP/k1XnDphxuYg6aZM8MzQ5Xte2BGVhRLCAUtulPTtlYGfnsL4Tzeidej8ToUUuL A0pKGPEUCnu8CHAloJNZRL2YJx7+Zs1YBMRD1dnvRaNecuJ/aHA/51gESos1aVTL1y5bg LfR3Bru8659IzTdBGx05wHxWpQZlzjt0sWtZItpn1M4xNu7MkN2rCbAnZqPPMo5R/6f3l EYt9OcSIHNMtO5euVZtjW1Xpy+3hAULGJXvnGNjC4pQeMXaueEBEZqGD/Zb6iBYrrHA== 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=lCZ0whLk; 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 E1776606E892 for ; Thu, 19 Nov 2026 14:49:01 +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=lCZ0whLk Received: by smtp.kernel.org (Postfix) with ESMTPSA id E41911F000C9; Thu, 19 Nov 2026 14:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099741; bh=TSdqKZyeCVnoNVLMnvBSAykb1z4hFUsXttXmv91jKbU=; h=From:To:Cc:Subject:Date:Reply-To; b=lCZ0whLk8qRv7TJZfEjooAtlp9ZYtkuqEvjUCMem6UPKHEZeYntzFPhzMTRj7mhZl VwqcgRlrKthHUEgiE9d1KKwHRAqQkdMVE+EqW+zqmcz4P9Ui7NPUMzapKzw6nbbu2t Ope8htGW6D/kP9ro7NTbHQP/iUFEghMublTnGbOg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99443: pps: generators: don't use the driver's info after unregister Date: Thu, 19 Nov 2026 15:25:41 +0100 Message-ID: <2026111905-CVE-2026-99443-637a@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=3791; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5kL+2ntmQehCIAIYTjZZsxgA2mCfvw8CeZYhxc7ZafU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Vrvcs1V+abk/909ZJv9m+UxW17fNnzxuufdUgazE ssElsxpHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR8DqG+bk7dsowtYa98z3P svD4oZaO4toV0xhms12z8t4w4auSgoKWn0by4eX//vCzAgA= 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: pps: generators: don't use the driver's info after unregister A file that was opened before pps_gen_unregister_source() keeps pps_gen, and with it the pointer to the driver's pps_gen_source_info. PPS_GEN_SETENABLE and PPS_GEN_USESYSTEMCLOCK keep using that pointer after the driver has gone: - pps_gen_tio allocates its info with devm_kzalloc(), so after an unbind both ioctls read freed memory, and SETENABLE calls the driver's enable() with its freed private data. - pps_gen-dummy does not set info->owner, so it can be unloaded while the file is open, and the ioctls then read the unloaded module's data and call its code. TIO can't probe in a VM, as it needs ART. A test driver that registers its info in devm memory like TIO does, unbound while /dev/pps-gen0 is open, gives: BUG: KASAN: slab-use-after-free in pps_gen_cdev_ioctl+0x4c1/0x580 Read of size 1 at addr ffff88800e647f38 by task ppsgen64/145 ... Freed by task 146: kfree+0x25a/0x6d0 release_nodes+0xd1/0x140 devres_release_all+0x10e/0x1a0 device_unbind_cleanup+0x71/0x250 device_release_driver_internal+0x41b/0x570 unbind_store+0xd9/0x100 and unloading pps_gen-dummy while its file is open oopses: BUG: unable to handle page fault for address: ffffffffa0203040 Oops: Oops: 0000 [#1] SMP KASAN NOPTI RIP: 0010:pps_gen_cdev_ioctl+0x372/0x580 Protect info in the ioctl handler with a mutex, and clear it under the mutex on unregister, so that unregister waits for the ioctls using it and later ones fail with -ENODEV. PPS_KC_BIND does the same for a removed PPS device since commit 3649f9a6b897 ("pps: don't allow PPS_KC_BIND on removed devices"). The sysfs attributes need nothing new: they are removed, and their callbacks drained, before info is cleared. The Linux kernel CVE team has assigned CVE-2026-99443 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 86b525bed2758878e788c9fb6b8fb281fd61bdb0 and fixed in 6.18.63 with commit a7ba1a5a0c16d3aad161681b01933703419fd52d Issue introduced in 6.14 with commit 86b525bed2758878e788c9fb6b8fb281fd61bdb0 and fixed in 7.3.2 with commit ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb Issue introduced in 6.14 with commit 86b525bed2758878e788c9fb6b8fb281fd61bdb0 and fixed in 7.4-rc1 with commit 4e8063cae337cb7328e6856235cf4de5d165516e 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-99443 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: drivers/pps/generators/pps_gen.c include/linux/pps_gen_kernel.h 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/a7ba1a5a0c16d3aad161681b01933703419fd52d https://git.kernel.org/stable/c/ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb https://git.kernel.org/stable/c/4e8063cae337cb7328e6856235cf4de5d165516e