accel/rocket: clear rdev on device init failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4ac852419f0d317c7bd8db5b8acb3cc78be7fe33, Kernel 79071b67182e1b352d51a3917729b8d424710b49 and Kernel dd47a6c920083b069f00f0920e4566915a6aec46.
In the Linux kernel, the following vulnerability has been resolved: accel/rocket: clear rdev on device init failure rocket_probe() stores the return value from rocket_device_init() in the file-scoped rdev pointer before checking whether it is an error pointer. If rocket_device_init() fails, rdev is left as an ERR_PTR. The rdev pointer is also used as the marker for whether the shared rocket device has already been initialized. A later core probe can therefore see a non-NULL rdev, skip rocket_device_init(), and dereference the error pointer when reading rdev->num_cores. Save the error code and clear rdev before returning from the rocket_device_init() failure path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=ed98261b41687323ffa02ca20fef1e60b38fd1aa <4ac852419f0d317c7bd8db5b8acb3cc78be7fe33, >=ed98261b41687323ffa02ca20fef1e60b38fd1aa <79071b67182e1b352d51a3917729b8d424710b49, >=ed98261b41687323ffa02ca20fef1e60b38fd1aa <dd47a6c920083b069f00f0920e4566915a6aec46 | 4ac852419f0d317c7bd8db5b8acb3cc78be7fe33, 79071b67182e1b352d51a3917729b8d424710b49, dd47a6c920083b069f00f0920e4566915a6aec46 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket