SecurityContext

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

IdName
CWE-416Use After Free

References

Same in every row:

  • Source: nvd
UrlTags
https://git.kernel.org/stable/c/07e4dc2fe000ab008bcfe90be4324ef56b5b4355Patch
https://git.kernel.org/stable/c/1cf1f7e8cd47244fa947d357ef1f642d91e219a3Patch
https://git.kernel.org/stable/c/35a9a7a7d94662146396199b0cfd95f9517cdd14Patch
https://git.kernel.org/stable/c/5787fcaab9eb5930f5378d6a1dd03d916d146622Patch
https://git.kernel.org/stable/c/8e2d1e9d93c4ec51354229361ac3373058529ec4Patch
https://git.kernel.org/stable/c/9d8c3a585d564d776ee60d4aabec59b404be7403Patch
https://git.kernel.org/stable/c/ca92c4bff2833cb30d493b935168d6cccd5c805dPatch
https://git.kernel.org/stable/c/da02f9eb333333b2e4f25d2a14967cff785ac82ePatch
https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

Products

ProductAffectedPlatform boundSourcesUrl
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.322nonvd/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/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