HomeDefectsLIN1025-1989
Acknowledged

LIN1025-1989 : Security Advisory - linux - CVE-2022-50174

Created: Jun 18, 2025    Updated: Sep 4, 2026
Resolved Date: Jun 19, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]net: hinic: avoid kernel hung in hinic_get_stats64()[EOL][EOL]When using hinic device as a bond slave device, and reading device stats[EOL]of master bond device, the kernel may hung.[EOL][EOL]The kernel panic calltrace as follows:[EOL]Kernel panic - not syncing: softlockup: hung tasks[EOL]Call trace:[EOL]  native_queued_spin_lock_slowpath+0x1ec/0x31c[EOL]  dev_get_stats+0x60/0xcc[EOL]  dev_seq_printf_stats+0x40/0x120[EOL]  dev_seq_show+0x1c/0x40[EOL]  seq_read_iter+0x3c8/0x4dc[EOL]  seq_read+0xe0/0x130[EOL]  proc_reg_read+0xa8/0xe0[EOL]  vfs_read+0xb0/0x1d4[EOL]  ksys_read+0x70/0xfc[EOL]  __arm64_sys_read+0x20/0x30[EOL]  el0_svc_common+0x88/0x234[EOL]  do_el0_svc+0x2c/0x90[EOL]  el0_svc+0x1c/0x30[EOL]  el0_sync_handler+0xa8/0xb0[EOL]  el0_sync+0x148/0x180[EOL][EOL]And the calltrace of task that actually caused kernel hungs as follows:[EOL]  __switch_to+124[EOL]  __schedule+548[EOL]  schedule+72[EOL]  schedule_timeout+348[EOL]  __down_common+188[EOL]  __down+24[EOL]  down+104[EOL]  hinic_get_stats64+44 [hinic][EOL]  dev_get_stats+92[EOL]  bond_get_stats+172 [bonding][EOL]  dev_get_stats+92[EOL]  dev_seq_printf_stats+60[EOL]  dev_seq_show+24[EOL]  seq_read_iter+964[EOL]  seq_read+220[EOL]  proc_reg_read+164[EOL]  vfs_read+172[EOL]  ksys_read+108[EOL]  __arm64_sys_read+28[EOL]  el0_svc_common+132[EOL]  do_el0_svc+40[EOL]  el0_svc+24[EOL]  el0_sync_handler+164[EOL]  el0_sync+324[EOL][EOL]When getting device stats from bond, kernel will call bond_get_stats().[EOL]It first holds the spinlock bond->stats_lock, and then call[EOL]hinic_get_stats64() to collect hinic device's stats.[EOL]However, hinic_get_stats64() calls `down(&nic_dev->mgmt_lock)` to[EOL]protect its critical section, which may schedule current task out.[EOL]And if system is under high pressure, the task cannot be woken up[EOL]immediately, which eventually triggers kernel hung panic.[EOL][EOL]Since previous patch has replaced hinic_dev.tx_stats/rx_stats with local[EOL]variable in hinic_get_stats64(), there is nothing need to be protected[EOL]by lock, so just removing down()/up() is ok.

CREATE(Triage):(User=lchen-cn) [CVE-2022-50174 (https://nvd.nist.gov/vuln/detail/CVE-2022-50174)