Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2024-26981: nilfs2: fix OOB in nilfs_set_de_type

HighCVSS 7.8 · v3.1—No exploit Fix available

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

Report tools

JSON

Action score

31

Monitor

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.

Follow CVE-2024-26981

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
linuxlinux kernel
debiandebian 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

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.90-16.1.90-1
Debian:13linuxbefore 6.8.9-16.8.9-1

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • 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…KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2024-26978May 1, 2024 · serial: max310x: fix NULL pointer dereference in I2C instantiation
    22Monitor
  • ← EarlierCVE-2024-26980May 1, 2024 · ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf
    32Monitor
  • Later →CVE-2024-26983May 1, 2024 · bootconfig: use memblock_free_late to free xbc memory to buddy
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux054f29e9ca05be3906544c5f2a2c7321c30a4243Vendor (CNA)
Linux Linux2382eae66b196c31893984a538908c3eb7506ff9Vendor (CNA)
Linux Linux7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1Vendor (CNA)
Linux Linux897ac5306bbeb83e90c437326f7044c79a17c611Vendor (CNA)
Linux Linux90823f8d9ecca3d5fa6b102c8e464c62f416975fVendor (CNA)
Linux Linux90f43980ea6be4ad903e389be9a27a2a0018f1c8Vendor (CNA)
Linux Linuxbdbe483da21f852c93b22557b146bc4d989260f0Vendor (CNA)
Linux Linuxc4a7dc9523b59b3e73fd522c73e95e072f876b16Vendor (CNA)
debian:linux6.1.90-1 · Debian:12Package 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 escalation
    32Monitor
  • CVE-2023-526490 days apartdrm/vkms: Avoid reading beyond LUT array
    31Monitor
  • 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 size
    31Monitor
  • CVE-2024-3590518 days apartbpf: Protect against int overflow for stack access size
    31Monitor

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

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

CVSS 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.

ATT&CK techniques

—

References

All records