Linux kernel reference leak in Btrfs scrub warnings
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 558540c17771eaf89b1a3be39aa2c8bc837da1a6 · < 12ba7d8b9cd45a2c6aa8f37c3f4b8a50422fb549| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
btrfs: scrub: fix local_root reference leak in scrub_print_warning_inode()
When paths_from_inode() fails, scrub_print_warning_inode() jumps to err without dropping the reference taken by btrfs_get_fs_root(), leaking a reference to the root every time path resolution fails while printing scrub warnings. Every other error and success path of the function drops the reference.
Drop the reference on the paths_from_inode() failure path too.
From the CVE record · Linux
The Linux kernel's btrfs scrub warning function leaks a root reference when inode path resolution fails. The leak occurs each time that failure happens while printing a scrub warning. The input does not describe an attacker, access requirements, or user interaction.
Engineers running the Linux kernel with btrfs should check their versions against the vendor advisory; affected versions are not specified.