Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
CVE Vulnerability Details :
CVE-2024-42105
PUBLISHED
More InfoOfficial Page
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
View Known Exploited Vulnerability (KEV) details
Published At-30 Jul, 2024 | 07:46
Updated At-05 Jan, 2026 | 10:51
Rejected At-
▼CVE Numbering Authority (CNA)
nilfs2: fix inode number range checks

In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix inode number range checks Patch series "nilfs2: fix potential issues related to reserved inodes". This series fixes one use-after-free issue reported by syzbot, caused by nilfs2's internal inode being exposed in the namespace on a corrupted filesystem, and a couple of flaws that cause problems if the starting number of non-reserved inodes written in the on-disk super block is intentionally (or corruptly) changed from its default value. This patch (of 3): In the current implementation of nilfs2, "nilfs->ns_first_ino", which gives the first non-reserved inode number, is read from the superblock, but its lower limit is not checked. As a result, if a number that overlaps with the inode number range of reserved inodes such as the root directory or metadata files is set in the super block parameter, the inode number test macros (NILFS_MDT_INODE and NILFS_VALID_INODE) will not function properly. In addition, these test macros use left bit-shift calculations using with the inode number as the shift count via the BIT macro, but the result of a shift calculation that exceeds the bit width of an integer is undefined in the C specification, so if "ns_first_ino" is set to a large value other than the default value NILFS_USER_INO (=11), the macros may potentially malfunction depending on the environment. Fix these issues by checking the lower bound of "nilfs->ns_first_ino" and by preventing bit shifts equal to or greater than the NILFS_USER_INO constant in the inode number test macros. Also, change the type of "ns_first_ino" from signed integer to unsigned integer to avoid the need for type casting in comparisons such as the lower bound check introduced this time.

Affected Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/nilfs2/nilfs.h
  • fs/nilfs2/the_nilfs.c
  • fs/nilfs2/the_nilfs.h
Default Status
unaffected
Versions
Affected
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 57235c3c88bb430043728d0d02f44a4efe386476 (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 08cab183a624ba71603f3754643ae11cab34dbc4 (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 731011ac6c37cbe97ece229fc6daa486276052c5 (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 3be4dcc8d7bea52ea41f87aa4bbf959efe7a5987 (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before fae1959d6ab2c52677b113935e36ab4e25df37ea (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 9194f8ca57527958bee207919458e372d638d783 (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before 1c91058425a01131ea30dda6cf43c67b17884d6a (git)
  • From 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f before e2fec219a36e0993642844be0f345513507031f4 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/nilfs2/nilfs.h
  • fs/nilfs2/the_nilfs.c
  • fs/nilfs2/the_nilfs.h
Default Status
affected
Versions
Affected
  • 2.6.30
Unaffected
  • From 0 before 2.6.30 (semver)
  • From 4.19.318 through 4.19.* (semver)
  • From 5.4.280 through 5.4.* (semver)
  • From 5.10.222 through 5.10.* (semver)
  • From 5.15.163 through 5.15.* (semver)
  • From 6.1.98 through 6.1.* (semver)
  • From 6.6.39 through 6.6.* (semver)
  • From 6.9.9 through 6.9.* (semver)
  • From 6.10 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/57235c3c88bb430043728d0d02f44a4efe386476
N/A
https://git.kernel.org/stable/c/08cab183a624ba71603f3754643ae11cab34dbc4
N/A
https://git.kernel.org/stable/c/731011ac6c37cbe97ece229fc6daa486276052c5
N/A
https://git.kernel.org/stable/c/3be4dcc8d7bea52ea41f87aa4bbf959efe7a5987
N/A
https://git.kernel.org/stable/c/fae1959d6ab2c52677b113935e36ab4e25df37ea
N/A
https://git.kernel.org/stable/c/9194f8ca57527958bee207919458e372d638d783
N/A
https://git.kernel.org/stable/c/1c91058425a01131ea30dda6cf43c67b17884d6a
N/A
https://git.kernel.org/stable/c/e2fec219a36e0993642844be0f345513507031f4
N/A
Hyperlink: https://git.kernel.org/stable/c/57235c3c88bb430043728d0d02f44a4efe386476
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/08cab183a624ba71603f3754643ae11cab34dbc4
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/731011ac6c37cbe97ece229fc6daa486276052c5
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/3be4dcc8d7bea52ea41f87aa4bbf959efe7a5987
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/fae1959d6ab2c52677b113935e36ab4e25df37ea
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/9194f8ca57527958bee207919458e372d638d783
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/1c91058425a01131ea30dda6cf43c67b17884d6a
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/e2fec219a36e0993642844be0f345513507031f4
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/57235c3c88bb430043728d0d02f44a4efe386476
x_transferred
https://git.kernel.org/stable/c/08cab183a624ba71603f3754643ae11cab34dbc4
x_transferred
https://git.kernel.org/stable/c/731011ac6c37cbe97ece229fc6daa486276052c5
x_transferred
https://git.kernel.org/stable/c/3be4dcc8d7bea52ea41f87aa4bbf959efe7a5987
x_transferred
https://git.kernel.org/stable/c/fae1959d6ab2c52677b113935e36ab4e25df37ea
x_transferred
https://git.kernel.org/stable/c/9194f8ca57527958bee207919458e372d638d783
x_transferred
https://git.kernel.org/stable/c/1c91058425a01131ea30dda6cf43c67b17884d6a
x_transferred
https://git.kernel.org/stable/c/e2fec219a36e0993642844be0f345513507031f4
x_transferred
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
N/A
Hyperlink: https://git.kernel.org/stable/c/57235c3c88bb430043728d0d02f44a4efe386476
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/08cab183a624ba71603f3754643ae11cab34dbc4
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/731011ac6c37cbe97ece229fc6daa486276052c5
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/3be4dcc8d7bea52ea41f87aa4bbf959efe7a5987
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/fae1959d6ab2c52677b113935e36ab4e25df37ea
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/9194f8ca57527958bee207919458e372d638d783
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/1c91058425a01131ea30dda6cf43c67b17884d6a
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/e2fec219a36e0993642844be0f345513507031f4
Resource:
x_transferred
Hyperlink: https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Resource: N/A
2. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Details not found