CVE-2025-37742: Linux kernel · jfs: Fix uninit-value access of imap allocated in the diMount() function
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 4 Nov 2026, 17:23 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.
What to do
AI-suggested
A fix is available that replaces kmalloc with kzalloc in the diMount() function to ensure proper initialization of the imap structure. Users should apply the official Linux kernel patches that address this issue once available. Until patched, avoid mounting JFS filesystems if possible to reduce exposure.
Description
CVE-2025-37742 is a medium severity vulnerability in the Linux kernel's JFS filesystem code. It involves uninitialized value access of the imap structure allocated in the diMount() function. This flaw causes the snprintf() function to write uninitialized data into a buffer during hex dumping, potentially leading to kernel memory corruption and a denial of service. The issue is fixed by initializing the allocated memory with kzalloc instead of kmalloc in diMount().
References
- nvd.nist.gov/vuln/detail/CVE-2025-37742 (opens in a new tab)
- git.kernel.org/stable/c/067347e00a3a7d04afed93f080c6c131e5dd15ee (opens in a new tab)
- git.kernel.org/stable/c/4f10732712fce33e53703ffe5ed9155f23814097 (opens in a new tab)
- git.kernel.org/stable/c/63148ce4904faa668daffdd1d3c1199ae315ef2c (opens in a new tab)
- git.kernel.org/stable/c/7057f3aab47629d38e54eae83505813cf0da1e4b (opens in a new tab)
- git.kernel.org/stable/c/9629d7d66c621671d9a47afe27ca9336bfc8a9ea (opens in a new tab)
- git.kernel.org/stable/c/cab1852368dd74d629ee02abdbc559218ca64dde (opens in a new tab)
- git.kernel.org/stable/c/d0d7eca253ccd0619b3d2b683ffe32218ebca9ac (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00045.html (opens in a new tab)