# CVE-2025-71105: f2fs: use global inline\_xattr\_slab instead of per-sb slab cache

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **Published:** 2026-01-14T15:05:54.510Z
- **Modified:** 2026-06-17T10:03:40.450Z

## Who should check

- Anyone running Linux \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 474cc3ed37436ddfd63cac8dbffe3b1e219e9100; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 72ce19dfed162da6e430467333b2da70471d08a4; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< be4c3a3c6c2304a8fcd14095d18d26f0cc4e222a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1eb0b130196bcbc56c5c80c83139fa70c0aa82c5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< e6d828eae00ec192e18c2ddaa2fd32050a96048a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05
- Anyone running Linux 5.7

## Description

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

f2fs: use global inline\_xattr\_slab instead of per-sb slab cache

As Hong Yun reported in mailing list:

loop7: detected capacity change from 0 to 131072
------------\[ cut here \]------------
kmem\_cache of name 'f2fs\_xattr\_entry-7:7' already exists
WARNING: CPU: 0 PID: 24426 at mm/slab\_common.c:110 kmem\_cache\_sanity\_check mm/slab\_common.c:109 \[inline\]
WARNING: CPU: 0 PID: 24426 at mm/slab\_common.c:110 \_\_kmem\_cache\_create\_args+0xa6/0x320 mm/slab\_common.c:307
CPU: 0 UID: 0 PID: 24426 Comm: syz.7.1370 Not tainted 6.17.0-rc4 \#1 PREEMPT(full)
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:kmem\_cache\_sanity\_check mm/slab\_common.c:109 \[inline\]
RIP: 0010:\_\_kmem\_cache\_create\_args+0xa6/0x320 mm/slab\_common.c:307
Call Trace:
 \_\_kmem\_cache\_create include/linux/slab.h:353 \[inline\]
 f2fs\_kmem\_cache\_create fs/f2fs/f2fs.h:2943 \[inline\]
 f2fs\_init\_xattr\_caches+0xa5/0xe0 fs/f2fs/xattr.c:843
 f2fs\_fill\_super+0x1645/0x2620 fs/f2fs/super.c:4918
 get\_tree\_bdev\_flags+0x1fb/0x260 fs/super.c:1692
 vfs\_get\_tree+0x43/0x140 fs/super.c:1815
 do\_new\_mount+0x201/0x550 fs/namespace.c:3808
 do\_mount fs/namespace.c:4136 \[inline\]
 \_\_do\_sys\_mount fs/namespace.c:4347 \[inline\]
 \_\_se\_sys\_mount+0x298/0x2f0 fs/namespace.c:4324
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0x8e/0x3a0 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

The bug can be reproduced w/ below scripts:
- mount /dev/vdb /mnt1
- mount /dev/vdc /mnt2
- umount /mnt1
- mounnt /dev/vdb /mnt1

The reason is if we created two slab caches, named f2fs\_xattr\_entry-7:3
and f2fs\_xattr\_entry-7:7, and they have the same slab size. Actually,
slab system will only create one slab cache core structure which has
slab name of "f2fs\_xattr\_entry-7:3", and two slab caches share the same
structure and cache address.

So, if we destroy f2fs\_xattr\_entry-7:3 cache w/ cache address, it will
decrease reference count of slab cache, rather than release slab cache
entirely, since there is one more user has referenced the cache.

Then, if we try to create slab cache w/ name "f2fs\_xattr\_entry-7:3" again,
slab system will find that there is existed cache which has the same name
and trigger the warning.

Let's changes to use global inline\_xattr\_slab instead of per-sb slab cache
for fixing.

## Affected and fixed versions

- Linux: \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 474cc3ed37436ddfd63cac8dbffe3b1e219e9100; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 72ce19dfed162da6e430467333b2da70471d08a4; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< be4c3a3c6c2304a8fcd14095d18d26f0cc4e222a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1eb0b130196bcbc56c5c80c83139fa70c0aa82c5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< e6d828eae00ec192e18c2ddaa2fd32050a96048a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-71105. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71105.md
Affected: Linux >= a999150f4fe3abbb7efd05411fd5b460be699943, < 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5; >= a999150f4fe3abbb7efd05411fd5b460be699943, < 474cc3ed37436ddfd63cac8dbffe3b1e219e9100; >= a999150f4fe3abbb7efd05411fd5b460be699943, < 72ce19dfed162da6e430467333b2da70471d08a4; >= a999150f4fe3abbb7efd054…
Fixed in: Linux 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5, Linux 474cc3ed37436ddfd63cac8dbffe3b1e219e9100, Linux 72ce19dfed162da6e430467333b2da70471d08a4, Linux 1eb0b130196bcbc56c5c80c83139fa70c0aa82c5, Linux 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-71105 being exploited?

There is no confirmed exploitation: CVE-2025-71105 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-71105?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-71105?

Linux \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 474cc3ed37436ddfd63cac8dbffe3b1e219e9100; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 72ce19dfed162da6e430467333b2da70471d08a4; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< be4c3a3c6c2304a8fcd14095d18d26f0cc4e222a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1eb0b130196bcbc56c5c80c83139fa70c0aa82c5; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< e6d828eae00ec192e18c2ddaa2fd32050a96048a; \>= a999150f4fe3abbb7efd05411fd5b460be699943, \< 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05; Linux 5.7.

### Is there a fix for CVE-2025-71105?

Yes. Fixed in Linux 93d30fe19660dec6bf1bd3d5c186c1c737b21aa5, Linux 474cc3ed37436ddfd63cac8dbffe3b1e219e9100, Linux 72ce19dfed162da6e430467333b2da70471d08a4, Linux 1eb0b130196bcbc56c5c80c83139fa70c0aa82c5, Linux 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05. Upgrade Linux to 1f27ef42bb0b7c0740c5616ec577ec188b8a1d05 or later.

### How do I check if I'm affected by CVE-2025-71105?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/93d30fe19660dec6bf1bd3d5c186c1c737b21aa5>
- patch: <https://git.kernel.org/stable/c/474cc3ed37436ddfd63cac8dbffe3b1e219e9100>
- patch: <https://git.kernel.org/stable/c/72ce19dfed162da6e430467333b2da70471d08a4>
- patch: <https://git.kernel.org/stable/c/be4c3a3c6c2304a8fcd14095d18d26f0cc4e222a>
- patch: <https://git.kernel.org/stable/c/1eb0b130196bcbc56c5c80c83139fa70c0aa82c5>
- patch: <https://git.kernel.org/stable/c/e6d828eae00ec192e18c2ddaa2fd32050a96048a>
- patch: <https://git.kernel.org/stable/c/1f27ef42bb0b7c0740c5616ec577ec188b8a1d05>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-71105>

HTML: <https://flawdb.com/CVE-2025-71105> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-71105>
