CVE-2024-46781: Linux Kernel nilfs2 - Use After Free
- Cve: CVE-2024-46781
- Name: Linux Kernel nilfs2 - Use After Free
- Description: In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix missing cleanup on rollforward recovery error In an error injection test of a routine for mount-time recovery, KASAN found a use-after-free bug. It turned out that if data recovery was performed using partial logs created by dsync writes, but an error occurred before starting the log writer to create a recovered checkpoint, the inodes whose data had been recovered were left in the ns_dirty_files list of the nilfs object and were not freed. Fix this issue by cleaning up inodes that have read the recovery data if the recovery routine fails midway before the log writer starts.
- Impact: Potential memory leak and use-after-free vulnerabilities, which could lead to system instability or privilege escalation.
- Remediation: Apply the latest kernel updates that include the fix for nilfs2 recovery cleanup.
- Vulnerability type: use_after_free
- Vulnerability impact: privilege_escalation
- Requirements: Exploit requires error during recovery process.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.00251
- Epss percentile: 0.16454
- Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- Published at: 2024-09-18T08:15:05Z
- Age in days: 797
- Modified at: 2026-08-04T11:20:25Z
- Patch available: yes
- References total: 10
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-46781
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-416 | Use After Free |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | = 6.11 rc1; = 6.11 rc2; = 6.11 rc3; = 6.11 rc4; = 6.11 rc5; = 6.11 rc6; >= 6.7, < 6.10.10; >= 6.2, < 6.6.51; >= 5.16, < 6.1.110; >= 5.11, < 5.15.167; >= 5.5, < 5.10.226; >= 4.20, < 5.4.284; >= 2.6.30, < 4.19.322 | no | nvd | /v1/products/linux/linux_kernel |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | cna_commit, commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 10038339
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports