# CVE-2024-46786: fscache: delete fscache\_cookie\_lru\_timer when fscache exits to avoid UAF

> 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, NVD) `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.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-09-18T07:12:42.332Z
- **Modified:** 2026-11-10T13:17:22.923Z

## Who should check

- Anyone running Linux \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< c1fc36d5470335546c45799d94d7bb2cbc09e8b7; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< e0d724932ad12e3528f4ce97fc0f6078d0cce4bc; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 0a11262549ac2ac6fb98c7cd40a67136817e5a52; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f
- Anyone running Linux 5.17

## Description

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

fscache: delete fscache\_cookie\_lru\_timer when fscache exits to avoid UAF

The fscache\_cookie\_lru\_timer is initialized when the fscache module
is inserted, but is not deleted when the fscache module is removed.
If timer\_reduce() is called before removing the fscache module,
the fscache\_cookie\_lru\_timer will be added to the timer list of
the current cpu. Afterwards, a use-after-free will be triggered
in the softIRQ after removing the fscache module, as follows:

==================================================================
BUG: unable to handle page fault for address: fffffbfff803c9e9
 PF: supervisor read access in kernel mode
 PF: error\_code(0x0000) - not-present page
PGD 21ffea067 P4D 21ffea067 PUD 21ffe6067 PMD 110a7c067 PTE 0
Oops: Oops: 0000 \[\#1\] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Tainted: G W 6.11.0-rc3 \#855
Tainted: \[W\]=WARN
RIP: 0010:\_\_run\_timer\_base.part.0+0x254/0x8a0
Call Trace:
 \<IRQ\>
 tmigr\_handle\_remote\_up+0x627/0x810
 \_\_walk\_groups.isra.0+0x47/0x140
 tmigr\_handle\_remote+0x1fa/0x2f0
 handle\_softirqs+0x180/0x590
 irq\_exit\_rcu+0x84/0xb0
 sysvec\_apic\_timer\_interrupt+0x6e/0x90
 \</IRQ\>
 \<TASK\>
 asm\_sysvec\_apic\_timer\_interrupt+0x1a/0x20
RIP: 0010:default\_idle+0xf/0x20
 default\_idle\_call+0x38/0x60
 do\_idle+0x2b5/0x300
 cpu\_startup\_entry+0x54/0x60
 start\_secondary+0x20d/0x280
 common\_startup\_64+0x13e/0x148
 \</TASK\>
Modules linked in: \[last unloaded: netfs\]
==================================================================

Therefore delete fscache\_cookie\_lru\_timer when removing the fscahe module.

## Affected and fixed versions

- Linux: \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< c1fc36d5470335546c45799d94d7bb2cbc09e8b7; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< e0d724932ad12e3528f4ce97fc0f6078d0cce4bc; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 0a11262549ac2ac6fb98c7cd40a67136817e5a52; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-46786.md
Affected: Linux >= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, < c1fc36d5470335546c45799d94d7bb2cbc09e8b7; >= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, < e0d724932ad12e3528f4ce97fc0f6078d0cce4bc; >= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, < 0a11262549ac2ac6fb98c7cd40a67136817e5a52; >= 12bb21a29c19aae50cfad4e…
Fixed in: Linux 0a11262549ac2ac6fb98c7cd40a67136817e5a52, Linux 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f

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-2024-46786 being exploited?

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

### How serious is CVE-2024-46786?

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

### Which versions are affected by CVE-2024-46786?

Linux \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< c1fc36d5470335546c45799d94d7bb2cbc09e8b7; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< e0d724932ad12e3528f4ce97fc0f6078d0cce4bc; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 0a11262549ac2ac6fb98c7cd40a67136817e5a52; \>= 12bb21a29c19aae50cfad4e2bb5c943108f34a7d, \< 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f; Linux 5.17.

### Is there a fix for CVE-2024-46786?

Yes. Fixed in Linux 0a11262549ac2ac6fb98c7cd40a67136817e5a52, Linux 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f. Upgrade Linux to 72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f or later.

### How do I check if I'm affected by CVE-2024-46786?

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/c1fc36d5470335546c45799d94d7bb2cbc09e8b7>
- patch: <https://git.kernel.org/stable/c/e0d724932ad12e3528f4ce97fc0f6078d0cce4bc>
- patch: <https://git.kernel.org/stable/c/0a11262549ac2ac6fb98c7cd40a67136817e5a52>
- patch: <https://git.kernel.org/stable/c/72a6e22c604c95ddb3b10b5d3bb85b6ff4dbc34f>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## 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-2024-46786>

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