fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e0bdfe8e36f3fbbdc91e70bf927f743ca23917b0 · < 52007bfdce5310e8c8a29849bfbfb188a1e50ca0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
fs/resctrl: Fix double-add of pseudo-locked region's RMID to free list
A pseudo-locked group's RMID is freed when it is created. On unmount rmdir_all_sub() unconditionally frees all RMID of all groups, resulting in a double-free of the pseudo-locked group's RMID. The consequence of this is that the original free results in the pseudo-locked group's RMID being added to the rmid_free_lru linked list and the second free then attempts to add the same RMID entry to the rmid_free_lru again.
Do not double-free a pseudo-locked group's RMID.
From the CVE record · Linux
The Linux kernel's fs/resctrl code can free a pseudo-locked group's RMID twice during unmount, adding the same entry to the free list twice. The input does not specify an attacker impact or whether triggering this requires particular access or user interaction.
Engineers running Linux kernels with fs/resctrl should check their versions; affected versions are not specified.