7.8
HIGH
CVE-2024-26981
Linux Nilfs2 Array Out-of-Bounds Buffer Vulnerability
Description

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.

INFO

Published Date :

May 1, 2024, 6:15 a.m.

Last Modified :

Dec. 23, 2024, 8:42 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2024-26981 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
1 Debian debian_linux
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-26981.

URL Resource
https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 Patch
https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 Patch
https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 Patch
https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 Patch
https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f Patch
https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 Patch
https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 Patch
https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 Patch
https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 Patch
https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 Patch
https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 Patch
https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 Patch
https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f Patch
https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 Patch
https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 Patch
https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 Patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-26981 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-26981 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Dec. 23, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-129
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.30 up to (excluding) 4.19.313 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.275 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.216 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.157 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.88 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.29 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.8 *cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
    Changed Reference Type https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 No Types Assigned https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 Patch
    Changed Reference Type https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 No Types Assigned https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 No Types Assigned https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 No Types Assigned https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 No Types Assigned https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 Patch
    Changed Reference Type https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 No Types Assigned https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 Patch
    Changed Reference Type https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 No Types Assigned https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 Patch
    Changed Reference Type https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 No Types Assigned https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 Patch
    Changed Reference Type https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f No Types Assigned https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f Patch
    Changed Reference Type https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f No Types Assigned https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f Patch
    Changed Reference Type https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 No Types Assigned https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 Patch
    Changed Reference Type https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 No Types Assigned https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 Patch
    Changed Reference Type https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 No Types Assigned https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 Patch
    Changed Reference Type https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 No Types Assigned https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 Patch
    Changed Reference Type https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 No Types Assigned https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 Patch
    Changed Reference Type https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 No Types Assigned https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 Patch
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html Mailing List, Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html Mailing List, Third Party Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243
    Added Reference https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9
    Added Reference https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1
    Added Reference https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611
    Added Reference https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f
    Added Reference https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8
    Added Reference https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0
    Added Reference https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
    Added Reference https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Nov. 05, 2024

    Action Type Old Value New Value
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
    Removed Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 27, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 25, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html [No types assigned]
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 29, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 03, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://git.kernel.org/stable/c/054f29e9ca05be3906544c5f2a2c7321c30a4243 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/90f43980ea6be4ad903e389be9a27a2a0018f1c8 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7061c7efbb9e8f11ce92d6b4646405ea2b0b4de1 [No types assigned]
    Removed Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
    Removed Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/
    Removed Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 03, 2024

    Action Type Old Value New Value
    Added Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/ [No types assigned]
    Added Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/ [No types assigned]
    Added Reference kernel.org https://lists.fedoraproject.org/archives/list/[email protected]/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/ [No types assigned]
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 01, 2024

    Action Type Old Value New Value
    Added Description 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/bdbe483da21f852c93b22557b146bc4d989260f0 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/897ac5306bbeb83e90c437326f7044c79a17c611 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/2382eae66b196c31893984a538908c3eb7506ff9 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/90823f8d9ecca3d5fa6b102c8e464c62f416975f [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/c4a7dc9523b59b3e73fd522c73e95e072f876b16 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-26981 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-26981 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
© cvefeed.io
Latest DB Update: Jul. 14, 2025 14:40