CVE-2024-26981: nilfs2: fix OOB in nilfs_set_de_type
Noroxi assessment
Priority: Monitor (action score 31/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.27% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 054f29e9ca05be3906544c5f2a2c7321c30a4243, 2382eae66b196c31893984a538908c3eb7506ff9, 7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1.
- Mentioned 2 times in Turkish national cyber security advisories (siberguvenlik.gov.tr).
Low priority for now. Upgrade to Linux Linux 054f29e9ca05be3906544c5f2a2c7321c30a4243, 2382eae66b196c31893984a538908c3eb7506ff9, 7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix OOB in nilfs_set_de_type The size of the nilfs_type_by_mode array in the fs/nilfs2/dir.c file is defined as "S_IFMT >> S_SHIFT", but the nilfs_set_de_type() function, which uses this array, specifies the index to read from the array in the same way as "(mode & S_IFMT) >> S_SHIFT". static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode *inode) { umode_t mode = inode->i_mode; de->file_type = nilfs_type_by_mode[(mode & S_IFMT)>>S_SHIFT]; // oob } However, when the index is determined this way, an out-of-bounds (OOB) error occurs by referring to an index that is 1 larger than the array size when the condition "mode & S_IFMT == S_IFMT" is satisfied. Therefore, a patch to resize the nilfs_type_by_mode array should be applied to prevent OOB errors.
- Published
- May 1, 2024
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 19th percentile
- CWE
- CWE-129
Report tools
Action score
31
Low priority for now.
- CVSS
- 31 / 40 · 7.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 2.6.30affected
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 054f29e9ca05be3906544c5f2a2c7321c30a4243affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 90f43980ea6be4ad903e389be9a27a2a0018f1c8affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before bdbe483da21f852c93b22557b146bc4d989260f0affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 897ac5306bbeb83e90c437326f7044c79a17c611affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 2382eae66b196c31893984a538908c3eb7506ff9affected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before 90823f8d9ecca3d5fa6b102c8e464c62f416975faffected · git
- 2ba466d74ed74f073257f86e61519cb8f8f46184 and later · before c4a7dc9523b59b3e73fd522c73e95e072f876b16affected · git
- before 2.6.30not affected · semver
Affected versions · NVD (9)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux10.0
- linux linux kernel4.20 and later · before 5.4.275
- linux linux kernel5.5 and later · before 5.10.216
- linux linux kernel5.11 and later · before 5.15.157
- linux linux kernel2.6.30 and later · before 4.19.313
- linux linux kernel6.2 and later · before 6.6.29
- linux linux kernel6.7 and later · before 6.8.8
- linux linux kernel5.16 and later · before 6.1.88
- linux linux kernel6.9
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.90-1 | 6.1.90-1 |
| Debian:13 | linux | before 6.8.9-1 | 6.8.9-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2024-26978May 1, 2024 · serial: max310x: fix NULL pointer dereference in I2C instantiation22Monitor
- ← EarlierCVE-2024-26980May 1, 2024 · ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf32Monitor
- Later →CVE-2024-26983May 1, 2024 · bootconfig: use memblock_free_late to free xbc memory to buddy31Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 054f29e9ca05be3906544c5f2a2c7321c30a4243 | Vendor (CNA) |
| Linux Linux | 2382eae66b196c31893984a538908c3eb7506ff9 | Vendor (CNA) |
| Linux Linux | 7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 | Vendor (CNA) |
| Linux Linux | 897ac5306bbeb83e90c437326f7044c79a17c611 | Vendor (CNA) |
| Linux Linux | 90823f8d9ecca3d5fa6b102c8e464c62f416975f | Vendor (CNA) |
| Linux Linux | 90f43980ea6be4ad903e389be9a27a2a0018f1c8 | Vendor (CNA) |
| Linux Linux | bdbe483da21f852c93b22557b146bc4d989260f0 | Vendor (CNA) |
| Linux Linux | c4a7dc9523b59b3e73fd522c73e95e072f876b16 | Vendor (CNA) |
| debian:linux | 6.1.90-1 · Debian:12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2021-4754823 days apartethernet: hisilicon: hns: hns_dsaf_misc: fix a possible array overflow in hns_dsaf_ge_srst_by_port()39Monitor
- CVE-2023-2008383 days apartKernel: udmabuf: improper validation of array index leading to local privilege escalation32Monitor
- CVE-2023-526490 days apartdrm/vkms: Avoid reading beyond LUT array31Monitor
- CVE-2022-487022 days apartALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc()31Monitor
- CVE-2024-2691414 days apartdrm/amd/display: fix incorrect mpc_combine array size31Monitor
- CVE-2024-3590518 days apartbpf: Protect against int overflow for stack access size31Monitor
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-24-0494 · May 16, 2024(Linux Kernel Güncellemesi)
- TR-24-0387 · May 2, 2024(Linux Kernel Güncellemesi)
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-129 · Improper Validation of Array IndexCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (12 more)Show less
- git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9
- git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1
- git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611
- git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f
- git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8
- git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0
- git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16
- lists.debian.org/debian-lts-announce/2024/06/msg00017.html
- lists.debian.org/debian-lts-announce/2024/06/msg00020.html
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.