Skip to contentSkip to conversation

CVE-2026-98872: freevxfs: don't BUG() on unknown typed-extent type

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

freevxfs: don't BUG() on unknown typed-extent type

vxfs_bmap_typed() handles four typed-extent types and calls BUG() in its default case, so an on-disk typed extent with any other type value crashes the kernel. It is reachable from ioctl(FIBMAP) on a regular file:

kernel BUG at fs/freevxfs/vxfs_bmap.c:230!

  RIP: vxfs_bmap_typed fs/freevxfs/vxfs_bmap.c:230 [inline]
       vxfs_bmap1+0x128a/0x12d0 fs/freevxfs/vxfs_bmap.c:257

Replace the BUG() with WARN_ON_ONCE() and return 0 -- the value vxfs_bmap_typed() already returns on failure (and from the DEV4 case above); vxfs_getblk() maps 0 to -EIO, so the ioctl fails cleanly.

The Linux kernel CVE team has assigned CVE-2026-98872 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.10.271 with commit fe40a19d571cbb584eea46038ee919d8712b2d2c
	Fixed in 5.15.222 with commit 500e9d5bf9eff2096a21b7ac25a0a06ca46ab821
	Fixed in 6.1.189 with commit f1f2d54a576f0e4133b979e545abcfefd439c300
	Fixed in 6.6.158 with commit 7ada9807e37103b41f586d34e3075e1209182b65
	Fixed in 6.12.111 with commit 1284d687d46953fff9c0d969df108114611aca8b
	Fixed in 6.18.53 with commit 405f13d7b270913e06e8e2b4de568985f94ef7d6
	Fixed in 7.2 with commit 704d48d81dc41470e108811c32c577ada66192d4

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-98872

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
fs/freevxfs/vxfs_bmap.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/fe40a19d571cbb584eea46038ee919d8712b2d2c
	https://git.kernel.org/stable/c/500e9d5bf9eff2096a21b7ac25a0a06ca46ab821
	https://git.kernel.org/stable/c/f1f2d54a576f0e4133b979e545abcfefd439c300
	https://git.kernel.org/stable/c/7ada9807e37103b41f586d34e3075e1209182b65
	https://git.kernel.org/stable/c/1284d687d46953fff9c0d969df108114611aca8b
	https://git.kernel.org/stable/c/405f13d7b270913e06e8e2b4de568985f94ef7d6
	https://git.kernel.org/stable/c/704d48d81dc41470e108811c32c577ada66192d4