{"id":"CVE-2026-138924","aliases":["CVE-2026-138924"],"related":[],"kind":"vulnerability","state":"published","title":"pps: generators: stop the generator on unregister","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\npps: generators: stop the generator on unregister\n\nBoth generator drivers stop their timer and then call\npps_gen_unregister_source(): pps_gen_tio_remove() cancels its hrtimer\nand disables the TIO, and pps_gen_dummy_exit() deletes its timer. But\n/dev/pps-genN and the sysfs \"enable\" attribute are still there until\nthe unregister, and a PPS_GEN_SETENABLE or a write to \"enable\" in\nbetween starts the timer again. Nothing stops it after that: TIO's\nhrtimer keeps running in the devm memory freed by the unbind, and the\ndummy's timer is left in the unloaded module.\n\nThe drivers can't avoid this by unregistering first, as TIO's timer\ncallback uses pps_gen, which the unregister may free.\n\nStop the generator in pps_gen_unregister_cdev() instead, under\ninfo_lock after the device and its sysfs files are gone, when nothing\ncan enable it again. pps_gen_unregister_source() then also does what\nits kernel-doc says: \"it disables the generator so no pulses are\ngenerated anymore\".","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\npps: generators: stop the generator on unregister\n\nBoth generator drivers stop their timer and then call\npps_gen_unregister_source(): pps_gen_tio_remove() cancels its hrtimer\nand disables the TIO, and pps_gen_dummy_exit() deletes its timer. But\n/dev/pps-genN and the sysfs \"enable\" attribute are still there until\nthe unregister, and a PPS_GEN_SETENABLE or a write to \"enable\" in\nbetween starts the timer again. Nothing stops it after that: TIO's\nhrtimer keeps running in the devm memory freed by the unbind, and the\ndummy's timer is left in the unloaded module.\n\nThe drivers can't avoid this by unregistering first, as TIO's timer\ncallback uses pps_gen, which the unregister may free.\n\nStop the generator in pps_gen_unregister_cdev() instead, under\ninfo_lock after the device and its sysfs files are gone, when nothing\ncan enable it again. pps_gen_unregister_source() then also does what\nits kernel-doc says: \"it disables the generator so no pulses are\ngenerated anymore\".","source":"cvelist"}],"published":"2026-11-30T13:26:15.094Z","modified":"2026-11-30T14:17:51.420Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","fixed":"aaed8f7c2a65319745bd969e2e2dbbd13a2e45dc","status":"affected"},{"type":"git","introduced":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","fixed":"de19ed83caaa891a8e2ff8b658003650bcea7691","status":"affected"},{"type":"git","introduced":"86b525bed2758878e788c9fb6b8fb281fd61bdb0","fixed":"3e75af9f41c7509884d0955245dec2b791287e8c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/aaed8f7c2a65319745bd969e2e2dbbd13a2e45dc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de19ed83caaa891a8e2ff8b658003650bcea7691","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e75af9f41c7509884d0955245dec2b791287e8c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138924","url":"https://www.cve.org/CVERecord?id=CVE-2026-138924","licence":"CVE Terms of Use","modified":"2026-11-30T13:26:15.094Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138924","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138924","licence":"Public domain","modified":"2026-11-30T14:17:51.420Z"}],"updatedAt":"2026-11-30T14:33:02.459Z","epss":{"score":0.00211,"percentile":0.11959,"date":"2026-12-01T12:00:22.000Z"}}