{"id":"CVE-2026-99443","state":"PUBLISHED","title":"pps: generators: don't use the driver's info after unregister","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npps: generators: don't use the driver's info after unregister\n\nA file that was opened before pps_gen_unregister_source() keeps\npps_gen, and with it the pointer to the driver's pps_gen_source_info.\nPPS_GEN_SETENABLE and PPS_GEN_USESYSTEMCLOCK keep using that pointer\nafter the driver has gone:\n\n - pps_gen_tio allocates its info with devm_kzalloc(), so after an\n   unbind both ioctls read freed memory, and SETENABLE calls the\n   driver's enable() with its freed private data.\n\n - pps_gen-dummy does not set info->owner, so it can be unloaded while\n   the file is open, and the ioctls then read the unloaded module's\n   data and call its code.\n\nTIO can't probe in a VM, as it needs ART. A test driver that registers\nits info in devm memory like TIO does, unbound while /dev/pps-gen0 is\nopen, gives:\n\n  BUG: KASAN: slab-use-after-free in pps_gen_cdev_ioctl+0x4c1/0x580\n  Read of size 1 at addr ffff88800e647f38 by task ppsgen64/145\n  ...\n  Freed by task 146:\n   kfree+0x25a/0x6d0\n   release_nodes+0xd1/0x140\n   devres_release_all+0x10e/0x1a0\n   device_unbind_cleanup+0x71/0x250\n   device_release_driver_internal+0x41b/0x570\n   unbind_store+0xd9/0x100\n\nand unloading pps_gen-dummy while its file is open oopses:\n\n  BUG: unable to handle page fault for address: ffffffffa0203040\n  Oops: Oops: 0000 [#1] SMP KASAN NOPTI\n  RIP: 0010:pps_gen_cdev_ioctl+0x372/0x580\n\nProtect info in the ioctl handler with a mutex, and clear it under the\nmutex on unregister, so that unregister waits for the ioctls using it\nand later ones fail with -ENODEV. PPS_KC_BIND does the same for a\nremoved PPS device since commit 3649f9a6b897 (\"pps: don't allow\nPPS_KC_BIND on removed devices\"). The sysfs attributes need nothing\nnew: they are removed, and their callbacks drained, before info is\ncleared.","publishedAt":"2026-11-19T14:41:29.531Z","updatedAt":"2026-11-19T14:41:29.531Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"a7ba1a5a0c16d3aad161681b01933703419fd52d","versionType":"git"},{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb","versionType":"git"},{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"4e8063cae337cb7328e6856235cf4de5d165516e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pps/generators/pps_gen.c","include/linux/pps_gen_kernel.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pps/generators/pps_gen.c","include/linux/pps_gen_kernel.h"]}],"references":["https://git.kernel.org/stable/c/a7ba1a5a0c16d3aad161681b01933703419fd52d","https://git.kernel.org/stable/c/ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb","https://git.kernel.org/stable/c/4e8063cae337cb7328e6856235cf4de5d165516e"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99443.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99443","state":"PUBLISHED","datePublished":"2026-11-19T14:41:29.531Z","dateUpdated":"2026-11-19T14:41:29.531Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.415Z"},"containers":{"cna":{"title":"pps: generators: don't use the driver's info after unregister","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npps: generators: don't use the driver's info after unregister\n\nA file that was opened before pps_gen_unregister_source() keeps\npps_gen, and with it the pointer to the driver's pps_gen_source_info.\nPPS_GEN_SETENABLE and PPS_GEN_USESYSTEMCLOCK keep using that pointer\nafter the driver has gone:\n\n - pps_gen_tio allocates its info with devm_kzalloc(), so after an\n   unbind both ioctls read freed memory, and SETENABLE calls the\n   driver's enable() with its freed private data.\n\n - pps_gen-dummy does not set info->owner, so it can be unloaded while\n   the file is open, and the ioctls then read the unloaded module's\n   data and call its code.\n\nTIO can't probe in a VM, as it needs ART. A test driver that registers\nits info in devm memory like TIO does, unbound while /dev/pps-gen0 is\nopen, gives:\n\n  BUG: KASAN: slab-use-after-free in pps_gen_cdev_ioctl+0x4c1/0x580\n  Read of size 1 at addr ffff88800e647f38 by task ppsgen64/145\n  ...\n  Freed by task 146:\n   kfree+0x25a/0x6d0\n   release_nodes+0xd1/0x140\n   devres_release_all+0x10e/0x1a0\n   device_unbind_cleanup+0x71/0x250\n   device_release_driver_internal+0x41b/0x570\n   unbind_store+0xd9/0x100\n\nand unloading pps_gen-dummy while its file is open oopses:\n\n  BUG: unable to handle page fault for address: ffffffffa0203040\n  Oops: Oops: 0000 [#1] SMP KASAN NOPTI\n  RIP: 0010:pps_gen_cdev_ioctl+0x372/0x580\n\nProtect info in the ioctl handler with a mutex, and clear it under the\nmutex on unregister, so that unregister waits for the ioctls using it\nand later ones fail with -ENODEV. PPS_KC_BIND does the same for a\nremoved PPS device since commit 3649f9a6b897 (\"pps: don't allow\nPPS_KC_BIND on removed devices\"). The sysfs attributes need nothing\nnew: they are removed, and their callbacks drained, before info is\ncleared."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"a7ba1a5a0c16d3aad161681b01933703419fd52d","versionType":"git"},{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb","versionType":"git"},{"version":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","status":"affected","lessThan":"4e8063cae337cb7328e6856235cf4de5d165516e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pps/generators/pps_gen.c","include/linux/pps_gen_kernel.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pps/generators/pps_gen.c","include/linux/pps_gen_kernel.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/a7ba1a5a0c16d3aad161681b01933703419fd52d"},{"url":"https://git.kernel.org/stable/c/ea2aaf6bda6ba90e92abe3aeaff426bba082c0eb"},{"url":"https://git.kernel.org/stable/c/4e8063cae337cb7328e6856235cf4de5d165516e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:41:29.531Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}