CVE-2022-50478
published 2025-10-04CVE-2022-50478: In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset() Patch series "nilfs2…
PriorityP429high7.1CVSS 3.1
AVLACLPRLUINSUCHINAH
EPSS
0.15%
5.2th percentile
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Patch series "nilfs2: fix UBSAN shift-out-of-bounds warnings on mount
time".
The first patch fixes a bug reported by syzbot, and the second one fixes
the remaining bug of the same kind. Although they are triggered by the
same super block data anomaly, I divided it into the above two because the
details of the issues and how to fix it are different.
Both are required to eliminate the shift-out-of-bounds issues at mount
time.
This patch (of 2):
If the block size exponent information written in an on-disk superblock is
corrupted, nilfs_sb2_bad_offset helper function can trigger
shift-out-of-bounds warning followed by a kernel panic (if panic_on_warn
is set):
shift exponent 38983 is too large for 64-bit type 'unsigned long long'
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
ubsan_epilogue lib/ubsan.c:151 [inline]
__ubsan_handle_shift_out_of_bounds+0x33d/0x3b0 lib/ubsan.c:322
nilfs_sb2_bad_offset fs/nilfs2/the_nilfs.c:449 [inline]
nilfs_load_super_block+0xdf5/0xe00 fs/nilfs2/the_nilfs.c:523
init_nilfs+0xb7/0x7d0 fs/nilfs2/the_nilfs.c:577
nilfs_fill_super+0xb1/0x5d0 fs/nilfs2/super.c:1047
nilfs_mount+0x613/0x9b0 fs/nilfs2/super.c:1317
...
In addition, since nilfs_sb2_bad_offset() performs multiplication without
considering the upper bound, the computation may overflow if the disk
layout parameters are not normal.
This fixes these issues by inserting preliminary sanity checks for those
parameters and by converting the comparison from one involving
multiplication and left bit-shifting to one using division and right
bit-shifting.
Affected
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < 6b0ea3df56cccd53398d0289f399f19d43136b2e | 6b0ea3df56cccd53398d0289f399f19d43136b2e |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < a6f89b10042baca218c8598d6db5a44c7e32625f | a6f89b10042baca218c8598d6db5a44c7e32625f |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < 9b3ba54025357440d6c4414c670984f628c6f6bf | 9b3ba54025357440d6c4414c670984f628c6f6bf |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < d706485dffbbbf848e681edda29c7a46ac55698c | d706485dffbbbf848e681edda29c7a46ac55698c |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < d464b035c0613856d012cf1704879d3ff3f057fb | d464b035c0613856d012cf1704879d3ff3f057fb |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < b47f5c579c8186f7f5ab5e4254e0734ea5b7bf7a | b47f5c579c8186f7f5ab5e4254e0734ea5b7bf7a |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < 1012ff77284e3bec0ec0a35a820b03ec43dec2cc | 1012ff77284e3bec0ec0a35a820b03ec43dec2cc |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < 62d11ec205ef14d8acf172cfc9904fdbf200025a | 62d11ec205ef14d8acf172cfc9904fdbf200025a |
| linux | linux | >= e339ad31f59925b48a92ee3947692fdf9758b8c7 < 610a2a3d7d8be3537458a378ec69396a76c385b6 | 610a2a3d7d8be3537458a378ec69396a76c385b6 |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 2.6.30 < 4.9.337 | 4.9.337 |
| linux | linux_kernel | >= 4.10 < 4.14.303 | 4.14.303 |
| linux | linux_kernel | >= 4.15 < 4.19.270 | 4.19.270 |
| linux | linux_kernel | >= 4.20 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1 < 6.1.2 | 6.1.2 |
CVSS provenance
nvdv3.17.1HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
osv7.1HIGH
vendor_debian7.1HIGH
vendor_redhat7.1HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-2gq6-55f4-4v54: In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Patch series
ghsa_unreviewed·2025-10-04
CVE-2022-50478 [HIGH] CWE-125 GHSA-2gq6-55f4-4v54: In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Patch series
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Patch series "nilfs2: fix UBSAN shift-out-of-bounds warnings on mount
time".
The first patch fixes a bug reported by syzbot, and the second one fixes
the remaining bug of the same kind. Although they are triggered by the
same super block data anomaly, I divided it into the above two because the
details of the issues and how to fix it are different.
Both are required to eliminate the shift-out-of-bounds issues at mount
time.
This patch (of 2):
If the block size exponent information written in an on-disk superblock is
corrupted, nilfs_sb2_bad_offset helper function can trigger
shift-out-of-bounds warning followed by a kernel panic (if panic_on_warn
is
OSV
CVE-2022-50478: In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset() Patch series "n
osv·2025-10-04·CVSS 7.1
CVE-2022-50478 [HIGH] CVE-2022-50478: In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset() Patch series "n
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset() Patch series "nilfs2: fix UBSAN shift-out-of-bounds warnings on mount time". The first patch fixes a bug reported by syzbot, and the second one fixes the remaining bug of the same kind. Although they are triggered by the same super block data anomaly, I divided it into the above two because the details of the issues and how to fix it are different. Both are required to eliminate the shift-out-of-bounds issues at mount time. This patch (of 2): If the block size exponent information written in an on-disk superblock is corrupted, nilfs_sb2_bad_offset helper function can trigger shift-out-of-bounds warning followed by a kernel panic (if panic_on_warn is set): s
Red Hat
kernel: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
vendor_redhat·2025-10-04·CVSS 7.1
CVE-2022-50478 [HIGH] kernel: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
kernel: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Patch series "nilfs2: fix UBSAN shift-out-of-bounds warnings on mount
time".
The first patch fixes a bug reported by syzbot, and the second one fixes
the remaining bug of the same kind. Although they are triggered by the
same super block data anomaly, I divided it into the above two because the
details of the issues and how to fix it are different.
Both are required to eliminate the shift-out-of-bounds issues at mount
time.
This patch (of 2):
If the block size exponent information written in an on-disk superblock is
corrupted, nilfs_sb2_bad_offset helper function can trigger
shift-o
Debian
CVE-2022-50478: linux - In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix...
vendor_debian·2022·CVSS 7.1
CVE-2022-50478 [HIGH] CVE-2022-50478: linux - In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix...
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset() Patch series "nilfs2: fix UBSAN shift-out-of-bounds warnings on mount time". The first patch fixes a bug reported by syzbot, and the second one fixes the remaining bug of the same kind. Although they are triggered by the same super block data anomaly, I divided it into the above two because the details of the issues and how to fix it are different. Both are required to eliminate the shift-out-of-bounds issues at mount time. This patch (of 2): If the block size exponent information written in an on-disk superblock is corrupted, nilfs_sb2_bad_offset helper function can trigger shift-out-of-bounds warning followed by a kernel panic (if panic_on_warn is set): s
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/1012ff77284e3bec0ec0a35a820b03ec43dec2cchttps://git.kernel.org/stable/c/610a2a3d7d8be3537458a378ec69396a76c385b6https://git.kernel.org/stable/c/62d11ec205ef14d8acf172cfc9904fdbf200025ahttps://git.kernel.org/stable/c/6b0ea3df56cccd53398d0289f399f19d43136b2ehttps://git.kernel.org/stable/c/9b3ba54025357440d6c4414c670984f628c6f6bfhttps://git.kernel.org/stable/c/a6f89b10042baca218c8598d6db5a44c7e32625fhttps://git.kernel.org/stable/c/b47f5c579c8186f7f5ab5e4254e0734ea5b7bf7ahttps://git.kernel.org/stable/c/d464b035c0613856d012cf1704879d3ff3f057fbhttps://git.kernel.org/stable/c/d706485dffbbbf848e681edda29c7a46ac55698c
2025-10-04
Published