xfs: fix UAF in xchk_btree_check_block_owner
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix UAF in xchk_btree_check_block_owner
We cannot dereference bs->cur when trying to determine if bs->cur aliases bs->sc->sa.{bno,rmap}_cur after the latter has been freed. Fix this by sampling before type before any freeing could happen. The correct temporal ordering was broken when we removed xfs_btnum_t.
From the CVE record · Linux
The Linux kernel's XFS btree owner check can dereference a cursor after it has been freed. The input does not specify what an attacker could do or whether exploitation requires local or network access, authentication, or user interaction.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.