Nixpkgs security tracker

Login with GitHub

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 7 hours ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path

In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path In do_cpu_nanosleep(), posix_cpu_timer_create() takes a pid reference via get_pid() and stores it in timer.it.cpu.pid. If the subsequent posix_cpu_timer_set() call fails, the function returns immediately without calling posix_cpu_timer_del() to release the pid reference, causing a leak. Fix it by calling posix_cpu_timer_del() before the unlock-and-return on the error path, consistent with the other exit paths in the same function.

Affected products

Linux
  • <8a270b1258797f61b61da44f8bfd41a581b5c85b
  • =<6.18.*
  • <afed3cdc1cca133f804fcf57ff228974f424b23a
  • =<5.15.*
  • =<6.12.*
  • <e5ffc638faf5dc7d9dc85c9a95e10bf97442e0c0
  • =<7.1.*
  • <d605d00085adc3fddf67de01dc2a44aebf1a3fb5
  • <eb4cec29a78334d09bcfb41c0660cdd62ba05843
  • <8f06363446c5d043c9a7c008b250040e9de98cf9
  • <87bd2ad568e15b90d5f7d4bcd70342d05dad649c
  • =<*
  • <2.6.12
  • ==2.6.12
  • <7776f9226e99eb49d97492b0b445027cfcb189da
  • =<6.1.*
  • =<6.6.*
  • =<5.10.*