CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's watchdog subsystem, specifically during the unregistration of a watchdog governor, which can lead to use-after-free (UAF) conditions. This flaw allows new watchdog devices to inherit a dangling pointer to the `default_gov`, potentially causing system instability or crashes when they attempt to access it. System administrators and developers managing Linux environments with watchdog functionality should prioritize addressing this issue to mitigate risks associated with device management and system reliability.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: watchdog: pretimeout: Fix UAF in watchdog_unregister_governor() When a watchdog governor is unregistered, it updates existing watchdog devices that were using this governor by falling back to `default_gov`. If the governor being unregistered is currently set as `default_gov`, the `default_gov` is never cleared. This leads to 2 use-after-free issues: 1. New watchdog devices registered after this point will inherit the dangling `default_gov`. 2. Existing watchdog devices using the unregistered governor will have their `wdd->gov` reassigned to the dangling `default_gov`. Fix the UAF by clearing `default_gov` if it matches the governor being unregistered.