Kernel panic via unchecked superblock arithmetic
Published Oct 4, 2025 · Updated Oct 4, 2025
Out-of-bounds arithmetic in Linux kernel NILFS2 allows local users to crash the kernel by mounting a filesystem with a malformed superblock. The nilfs_sb2_bad_offset function shifts an unchecked block-size exponent and multiplies unbounded disk-layout parameters, causing an invalid shift or integer overflow. The crash requires mount access and panic_on_warn; otherwise the malformed metadata triggers a bounds warning rather than the documented panic.
Summary
What happened
Out-of-bounds arithmetic in Linux kernel NILFS2 allows local users to crash the kernel by mounting a filesystem with a malformed superblock. The nilfs_sb2_bad_offset function shifts an unchecked block-size exponent and multiplies unbounded disk-layout parameters, causing an invalid shift or integer overflow. The crash requires mount access and panic_on_warn; otherwise the malformed metadata triggers a bounds warning rather than the documented panic.
The record
- CVE
- CVE-2022-50478
- Published
- Oct 4, 2025
- Updated
- Oct 4, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 4, 2025CVE publishedPublication date reported by the CVE source.
- Oct 4, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1012ff77284e3bec0ec0a35a820b03ec43dec2cc
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <610a2a3d7d8be3537458a378ec69396a76c385b6
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <62d11ec205ef14d8acf172cfc9904fdbf200025a
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <6b0ea3df56cccd53398d0289f399f19d43136b2e
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <9b3ba54025357440d6c4414c670984f628c6f6bf
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a6f89b10042baca218c8598d6db5a44c7e32625f
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b47f5c579c8186f7f5ab5e4254e0734ea5b7bf7a
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d464b035c0613856d012cf1704879d3ff3f057fb
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d706485dffbbbf848e681edda29c7a46ac55698c
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo