# CVE-2022-50478: linux: In the Linux kernel, the following vulnerability has been resolved:  nilfs2: fix shift-out-of-bounds/overflow in nilf...

CVE-2022-50478 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50478, released October 4, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-50478
- Priority: High
- CVSS: 7.1 (high)
- EPSS: 0.0017
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 4, 2025

## Description

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:   <TASK>   __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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 6.1.4-1 | [DEBIAN-CVE-2022-50478](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50478.md) | Oct 4, 2025 |
| Linux | linux Debian 13.5 (trixie) | 6.1.4-1 | [DEBIAN-CVE-2022-50478](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50478.md) | Oct 4, 2025 |
| Linux | linux Debian 14 | 6.1.4-1 | [DEBIAN-CVE-2022-50478](https://patchblox.com/security/data/fix/linux/debian-cve-2022-50478.md) | Oct 4, 2025 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
