# CVE-2022-49062: cachefiles: Fix KASAN slab-out-of-bounds in cachefiles\_set\_volume\_xattr

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-02-26T01:54:31.788Z
- **Modified:** 2026-08-05T08:53:41.182Z

## Who should check

- Anyone running Linux \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 09a5df1b88c8f126c8ff9938edf160edd4e92f42; \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 7b2f6c306601240635c72caa61f682e74d4591b2
- Anyone running Linux 5.17

## Description

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

cachefiles: Fix KASAN slab-out-of-bounds in cachefiles\_set\_volume\_xattr

Use the actual length of volume coherency data when setting the
xattr to avoid the following KASAN report.

 BUG: KASAN: slab-out-of-bounds in cachefiles\_set\_volume\_xattr+0xa0/0x350 \[cachefiles\]
 Write of size 4 at addr ffff888101e02af4 by task kworker/6:0/1347

 CPU: 6 PID: 1347 Comm: kworker/6:0 Kdump: loaded Not tainted 5.18.0-rc1-nfs-fscache-netfs+ \#13
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-4.fc34 04/01/2014
 Workqueue: events fscache\_create\_volume\_work \[fscache\]
 Call Trace:
  \<TASK\>
  dump\_stack\_lvl+0x45/0x5a
  print\_report.cold+0x5e/0x5db
  ? \_\_lock\_text\_start+0x8/0x8
  ? cachefiles\_set\_volume\_xattr+0xa0/0x350 \[cachefiles\]
  kasan\_report+0xab/0x120
  ? cachefiles\_set\_volume\_xattr+0xa0/0x350 \[cachefiles\]
  kasan\_check\_range+0xf5/0x1d0
  memcpy+0x39/0x60
  cachefiles\_set\_volume\_xattr+0xa0/0x350 \[cachefiles\]
  cachefiles\_acquire\_volume+0x2be/0x500 \[cachefiles\]
  ? \_\_cachefiles\_free\_volume+0x90/0x90 \[cachefiles\]
  fscache\_create\_volume\_work+0x68/0x160 \[fscache\]
  process\_one\_work+0x3b7/0x6a0
  worker\_thread+0x2c4/0x650
  ? process\_one\_work+0x6a0/0x6a0
  kthread+0x16c/0x1a0
  ? kthread\_complete\_and\_exit+0x20/0x20
  ret\_from\_fork+0x22/0x30
  \</TASK\>

 Allocated by task 1347:
  kasan\_save\_stack+0x1e/0x40
  \_\_kasan\_kmalloc+0x81/0xa0
  cachefiles\_set\_volume\_xattr+0x76/0x350 \[cachefiles\]
  cachefiles\_acquire\_volume+0x2be/0x500 \[cachefiles\]
  fscache\_create\_volume\_work+0x68/0x160 \[fscache\]
  process\_one\_work+0x3b7/0x6a0
  worker\_thread+0x2c4/0x650
  kthread+0x16c/0x1a0
  ret\_from\_fork+0x22/0x30

 The buggy address belongs to the object at ffff888101e02af0
 which belongs to the cache kmalloc-8 of size 8
 The buggy address is located 4 bytes inside of
 8-byte region \[ffff888101e02af0, ffff888101e02af8)

 The buggy address belongs to the physical page:
 page:00000000a2292d70 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e02
 flags: 0x17ffffc0000200(slab\|node=0\|zone=2\|lastcpupid=0x1fffff)
 raw: 0017ffffc0000200 0000000000000000 dead000000000001 ffff888100042280
 raw: 0000000000000000 0000000080660066 00000001ffffffff 0000000000000000
 page dumped because: kasan: bad access detected

 Memory state around the buggy address:
 ffff888101e02980: fc 00 fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc
 ffff888101e02a00: 00 fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc 00
 \>ffff888101e02a80: fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc 04 fc
                                                            ^
 ffff888101e02b00: fc fc fc 00 fc fc fc fc 00 fc fc fc fc 00 fc fc
 ffff888101e02b80: fc fc 00 fc fc fc fc 00 fc fc fc fc 00 fc fc fc
 ==================================================================

## Affected and fixed versions

- Linux: \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 09a5df1b88c8f126c8ff9938edf160edd4e92f42; \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 7b2f6c306601240635c72caa61f682e74d4591b2 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 7b2f6c306601240635c72caa61f682e74d4591b2 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49062.md
Affected: Linux >= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, < 09a5df1b88c8f126c8ff9938edf160edd4e92f42; >= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, < 7b2f6c306601240635c72caa61f682e74d4591b2; Linux 5.17
Fixed in: Linux 09a5df1b88c8f126c8ff9938edf160edd4e92f42, Linux 7b2f6c306601240635c72caa61f682e74d4591b2

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-2022-49062 being exploited?

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

### How serious is CVE-2022-49062?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49062?

Linux \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 09a5df1b88c8f126c8ff9938edf160edd4e92f42; \>= 413a4a6b0b5553f2423d210f65e98c211b99c3f8, \< 7b2f6c306601240635c72caa61f682e74d4591b2; Linux 5.17.

### Is there a fix for CVE-2022-49062?

Yes. Fixed in Linux 09a5df1b88c8f126c8ff9938edf160edd4e92f42, Linux 7b2f6c306601240635c72caa61f682e74d4591b2. Upgrade Linux to 7b2f6c306601240635c72caa61f682e74d4591b2 or later.

### How do I check if I'm affected by CVE-2022-49062?

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/09a5df1b88c8f126c8ff9938edf160edd4e92f42>
- patch: <https://git.kernel.org/stable/c/7b2f6c306601240635c72caa61f682e74d4591b2>

## 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-2022-49062>

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