{"id":"DEBIAN-CVE-2024-26981","details":"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 \u003e\u003e 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) \u003e\u003e S_SHIFT\".  static void nilfs_set_de_type(struct nilfs_dir_entry *de, struct inode  *inode) { \tumode_t mode = inode-\u003ei_mode;  \tde-\u003efile_type = nilfs_type_by_mode[(mode & S_IFMT)\u003e\u003eS_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.","modified":"2026-09-15T09:03:06.079474915Z","published":"2024-05-01T06:15:15.517Z","upstream":["CVE-2024-26981"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-26981"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.90-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1","6.1.52-1","6.1.55-1","6.1.55-1~bpo11+1","6.1.64-1","6.1.66-1","6.1.67-1","6.1.69-1","6.1.69-1~bpo11+1","6.1.76-1","6.1.76-1~bpo11+1","6.1.82-1","6.1.85-1","6.1.90-1~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26981.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.9-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26981.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.8.9-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2024-26981.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}