Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2022-50478— nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于nilfs_sb2_bad_offset函数存在移位越界或溢出,可能导致内核崩溃。

AI Predicted 5.5 Difficulty: Moderate EPSS 0.17% · P6

Affected Version Matrix 20

VendorProduct Version RangeStatus
Linux Linux e339ad31f59925b48a92ee3947692fdf9758b8c7< 6b0ea3df56cccd53398d0289f399f19d43136b2e affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< a6f89b10042baca218c8598d6db5a44c7e32625f affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< 9b3ba54025357440d6c4414c670984f628c6f6bf affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< d706485dffbbbf848e681edda29c7a46ac55698c affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< d464b035c0613856d012cf1704879d3ff3f057fb affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< b47f5c579c8186f7f5ab5e4254e0734ea5b7bf7a affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< 1012ff77284e3bec0ec0a35a820b03ec43dec2cc affected
e339ad31f59925b48a92ee3947692fdf9758b8c7< 62d11ec205ef14d8acf172cfc9904fdbf200025a affected
… +12 more rows
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2022-50478

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
nilfs2: fix shift-out-of-bounds/overflow in nilfs_sb2_bad_offset()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于nilfs_sb2_bad_offset函数存在移位越界或溢出,可能导致内核崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Linux Linux e339ad31f59925b48a92ee3947692fdf9758b8c7 ~ 6b0ea3df56cccd53398d0289f399f19d43136b2e -
Linux Linux 2.6.30 -

II. Public POCs for CVE-2022-50478

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2022-50478

请登录查看更多情报信息。

Patches & Fixes for CVE-2022-50478 (9)

Same Patch Batch · Linux · 2025-10-04 · 144 CVEs total

CVE-2025-39932 9.8 CRITICAL smb: client: let smbd_destroy() call disable_work_sync(&info->post_send_credits_work)
CVE-2025-39948 9.8 CRITICAL ice: fix Rx page leak on multi-buffer frames
CVE-2025-39946 9.8 CRITICAL tls: make sure to abort the stream if headers are bogus
CVE-2025-39933 9.4 CRITICAL smb: client: let recv_done verify data_offset, data_length and remaining_data_length
CVE-2025-39943 9.4 CRITICAL ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer
CVE-2023-53600 9.1 CRITICAL tunnels: fix kasan splat when generating ipv4 pmtu error
CVE-2023-53615 8.8 HIGH scsi: qla2xxx: Fix deletion race condition
CVE-2025-39952 8.8 HIGH wifi: wilc1000: avoid buffer overflow in WID string configuration
CVE-2023-53589 8.8 HIGH wifi: iwlwifi: mvm: don't trust firmware n_channels
CVE-2023-53586 8.8 HIGH scsi: target: Fix multiple LUN_RESET handling
CVE-2022-50493 8.8 HIGH scsi: qla2xxx: Fix crash when I/O abort times out
CVE-2023-53598 8.4 HIGH bus: mhi: host: Range check CHDBOFF and ERDBOFF
CVE-2023-53566 7.8 HIGH netfilter: nft_set_rbtree: fix null deref on element insertion
CVE-2023-53536 7.8 HIGH blk-crypto: make blk_crypto_evict_key() more robust
CVE-2023-53560 7.8 HIGH tracing/histograms: Add histograms to hist_vars if they have referenced variables
CVE-2023-53559 7.8 HIGH ip_vti: fix potential slab-use-after-free in decode_session6
CVE-2023-53557 7.8 HIGH fprobe: Release rethook after the ftrace_ops is unregistered
CVE-2023-53537 7.8 HIGH f2fs: fix to avoid use-after-free for cached IPU bio
CVE-2023-53539 7.8 HIGH RDMA/rxe: Fix incomplete state save in rxe_requester
CVE-2023-53545 7.8 HIGH drm/amdgpu: unmap and remove csa_va properly

Showing top 20 of 144 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-50478

No comments yet


Leave a comment