cpufreq: governor: fix double free in cpufreq_dbs_governor_init() error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.1.168, Kernel 5.10.253, Kernel 6.18.22 and 13 more.
In the Linux kernel, the following vulnerability has been resolved: cpufreq: governor: fix double free in cpufreq_dbs_governor_init() error path When kobject_init_and_add() fails, cpufreq_dbs_governor_init() calls kobject_put(&dbs_data->attr_set.kobj). The kobject release callback cpufreq_dbs_data_release() calls gov->exit(dbs_data) and kfree(dbs_data), but the current error path then calls gov->exit(dbs_data) and kfree(dbs_data) again, causing a double free. Keep the direct kfree(dbs_data) for the gov->init() failure path, but after kobject_init_and_add() has been called, let kobject_put() handle the cleanup through cpufreq_dbs_data_release().
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <6.1.168, >=5.2 <5.10.253, >=6.13 <6.18.22, >=6.19 <6.19.12, >=6.2 <6.6.134, >=6.7 <6.12.81, =5.1.6, =7.0, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <3bf9d023d2329a0e5379f2fd09d06ef09729cd9d, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <427d048e4f6acbfa01b5a8062449fe0ee8987c0d, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <4b9118e93d2499bb2808ef3742fa0ce06f4f8117, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <56bc91ee78babe9578585a2bc137abc4b3115ff3, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <6dcf9d0064ce2f3e3dfe5755f98b93abe6a98e1e, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <d2703b4f8fb7cc6f0dfdb2dc2359cc46189e7357, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <da39ee627fd82b52068d4d5f115749a8b7d271f9, >=5.1.6 <5.2, =5.2, =e977b1477a6725868302957e6b5c330220391797, >=4ebe36c94aed95de71a8ce6a6762226d31c938ee <019ea28629720c220daedf38107c8787f330dc05 | 6.1.168, 5.10.253, 6.18.22, 6.19.12, 6.6.134, 6.12.81, 3bf9d023d2329a0e5379f2fd09d06ef09729cd9d, 427d048e4f6acbfa01b5a8062449fe0ee8987c0d, 4b9118e93d2499bb2808ef3742fa0ce06f4f8117, 56bc91ee78babe9578585a2bc137abc4b3115ff3, 6dcf9d0064ce2f3e3dfe5755f98b93abe6a98e1e, d2703b4f8fb7cc6f0dfdb2dc2359cc46189e7357, da39ee627fd82b52068d4d5f115749a8b7d271f9, 5.2, 019ea28629720c220daedf38107c8787f330dc05 |
| linux-kernel: Kernel | >=5.1.6 <5.2, >=5.11.0 <5.15.209, >=5.16.0 <6.1.168, >=5.2.0 <5.10.253, >=6.13.0 <6.18.22, >=6.19.0 <6.19.12, >=6.2.0 <6.6.134, >=6.7.0 <6.12.81 | 5.2, 5.15.209, 6.1.168, 5.10.253, 6.18.22, 6.19.12, 6.6.134, 6.12.81 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket