gfs2: fiemap page fault fix
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e9079cce201784632aed4b1a3121ee38c1ced0b6 · < 9d15fee888f0e8938c9aeed71ec9c2cbba0c88ab| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gfs2: fiemap page fault fix
In gfs2_fiemap(), we are calling iomap_fiemap() while holding the inode glock. This can lead to recursive glock taking if the fiemap buffer is memory mapped to the same inode and accessing it triggers a page fault.
Fix by disabling page faults for iomap_fiemap() and faulting in the buffer by hand if necessary.
Fixes xfstest generic/742.
From the CVE record · Linux
The Linux kernel’s gfs2_fiemap() can recursively acquire an inode glock when a fiemap buffer is mapped to the same inode and accessing it triggers a page fault. This can disrupt the fiemap operation; the input does not specify whether exploitation requires authentication or user interaction.
Engineers running the Linux kernel with gfs2 should check their kernel versions against the vendor advisory; affected versions are not specified.