btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bc074524e123ded281cde25ebc5661910f9679e3 · < 2e4adfaec97ee053ad1bdfb5036845e66f7e0d8a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
btrfs: tracepoints: get correct superblock from dentry in event btrfs_sync_file()
If overlay is used on top of btrfs, dentry->d_sb translates to overlay's super block and fsid assignment will lead to a crash.
Use file_inode(file)->i_sb to always get btrfs_sb.
From the CVE record · Linux
The btrfs_sync_file() tracepoint can use the overlay superblock instead of the btrfs superblock when overlay is used on top of btrfs, causing a crash during fsid assignment. The input does not specify how an attacker could trigger the crash or whether network access, authentication, or user interaction is required.
Engineers running Linux with overlay on top of btrfs should check their kernel; affected versions are not specified.