Skip to contentSkip to conversation

CVE-2026-98005: erofs: delimit inode_share cache key components

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

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

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

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

erofs: delimit inode_share cache key components

Previously, inode_share keys were encoded as follows:

  fingerprint || domain_id

It would be better to have a separator between the fingerprint and domain ID so that the fingerprint won't be parsed as part of a domain ID.

Change the key encoding as follows:

  domain_id || '\0' || fingerprint

Since domain_id is a NUL-terminated string, this makes the in-memory key indices unambiguous.

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

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

	Issue introduced in 7.0 with commit e0bf7d1c074dc4252223ae897560345ccc24100d and fixed in 7.2.7 with commit 16322a67336cfeea0af4b05206ef8d0e0eda55bb
	Issue introduced in 7.0 with commit e0bf7d1c074dc4252223ae897560345ccc24100d and fixed in 7.3-rc3 with commit 96bf9831fbf423b8104f7948cd8fe7007ecfb46c

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-98005

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/erofs/xattr.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/16322a67336cfeea0af4b05206ef8d0e0eda55bb
	https://git.kernel.org/stable/c/96bf9831fbf423b8104f7948cd8fe7007ecfb46c