# CVE-2022-50174: net: hinic: avoid kernel hung in hinic\_get\_stats64()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-06-18T11:03:25.675Z
- **Modified:** 2026-11-05T20:17:26.027Z

## Who should check

- Anyone running Linux \>= edd384f682cc2981420628b769a1929db680f02f, \< e74f3097a9c713ce855cda07713393bcc23a005d; \>= edd384f682cc2981420628b769a1929db680f02f, \< 693f31dc91568e61047fd2980a8235e856cd9ce8; \>= edd384f682cc2981420628b769a1929db680f02f, \< fced5bce712122654ec8a20356342698cce104d2; \>= edd384f682cc2981420628b769a1929db680f02f, \< 3ba59bbe4f306bb6ee15753db0a40564c0eb7909; \>= edd384f682cc2981420628b769a1929db680f02f, \< 98f9fcdee35add80505b6c73f72de5f750d5c03c
- Anyone running Linux 4.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

net: hinic: avoid kernel hung in hinic\_get\_stats64()

When using hinic device as a bond slave device, and reading device stats
of master bond device, the kernel may hung.

The kernel panic calltrace as follows:
Kernel panic - not syncing: softlockup: hung tasks
Call trace:
  native\_queued\_spin\_lock\_slowpath+0x1ec/0x31c
  dev\_get\_stats+0x60/0xcc
  dev\_seq\_printf\_stats+0x40/0x120
  dev\_seq\_show+0x1c/0x40
  seq\_read\_iter+0x3c8/0x4dc
  seq\_read+0xe0/0x130
  proc\_reg\_read+0xa8/0xe0
  vfs\_read+0xb0/0x1d4
  ksys\_read+0x70/0xfc
  \_\_arm64\_sys\_read+0x20/0x30
  el0\_svc\_common+0x88/0x234
  do\_el0\_svc+0x2c/0x90
  el0\_svc+0x1c/0x30
  el0\_sync\_handler+0xa8/0xb0
  el0\_sync+0x148/0x180

And the calltrace of task that actually caused kernel hungs as follows:
  \_\_switch\_to+124
  \_\_schedule+548
  schedule+72
  schedule\_timeout+348
  \_\_down\_common+188
  \_\_down+24
  down+104
  hinic\_get\_stats64+44 \[hinic\]
  dev\_get\_stats+92
  bond\_get\_stats+172 \[bonding\]
  dev\_get\_stats+92
  dev\_seq\_printf\_stats+60
  dev\_seq\_show+24
  seq\_read\_iter+964
  seq\_read+220
  proc\_reg\_read+164
  vfs\_read+172
  ksys\_read+108
  \_\_arm64\_sys\_read+28
  el0\_svc\_common+132
  do\_el0\_svc+40
  el0\_svc+24
  el0\_sync\_handler+164
  el0\_sync+324

When getting device stats from bond, kernel will call bond\_get\_stats().
It first holds the spinlock bond-\>stats\_lock, and then call
hinic\_get\_stats64() to collect hinic device's stats.
However, hinic\_get\_stats64() calls \`down(&nic\_dev-\>mgmt\_lock)\` to
protect its critical section, which may schedule current task out.
And if system is under high pressure, the task cannot be woken up
immediately, which eventually triggers kernel hung panic.

Since previous patch has replaced hinic\_dev.tx\_stats/rx\_stats with local
variable in hinic\_get\_stats64(), there is nothing need to be protected
by lock, so just removing down()/up() is ok.

## Affected and fixed versions

- Linux: \>= edd384f682cc2981420628b769a1929db680f02f, \< e74f3097a9c713ce855cda07713393bcc23a005d; \>= edd384f682cc2981420628b769a1929db680f02f, \< 693f31dc91568e61047fd2980a8235e856cd9ce8; \>= edd384f682cc2981420628b769a1929db680f02f, \< fced5bce712122654ec8a20356342698cce104d2; \>= edd384f682cc2981420628b769a1929db680f02f, \< 3ba59bbe4f306bb6ee15753db0a40564c0eb7909; \>= edd384f682cc2981420628b769a1929db680f02f, \< 98f9fcdee35add80505b6c73f72de5f750d5c03c (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 98f9fcdee35add80505b6c73f72de5f750d5c03c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50174. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50174.md
Affected: Linux >= edd384f682cc2981420628b769a1929db680f02f, < e74f3097a9c713ce855cda07713393bcc23a005d; >= edd384f682cc2981420628b769a1929db680f02f, < 693f31dc91568e61047fd2980a8235e856cd9ce8; >= edd384f682cc2981420628b769a1929db680f02f, < fced5bce712122654ec8a20356342698cce104d2; >= edd384f682cc2981420628b…
Fixed in: Linux 693f31dc91568e61047fd2980a8235e856cd9ce8, Linux 3ba59bbe4f306bb6ee15753db0a40564c0eb7909, Linux 98f9fcdee35add80505b6c73f72de5f750d5c03c

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50174 being exploited?

There is no confirmed exploitation: CVE-2022-50174 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50174?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50174?

Linux \>= edd384f682cc2981420628b769a1929db680f02f, \< e74f3097a9c713ce855cda07713393bcc23a005d; \>= edd384f682cc2981420628b769a1929db680f02f, \< 693f31dc91568e61047fd2980a8235e856cd9ce8; \>= edd384f682cc2981420628b769a1929db680f02f, \< fced5bce712122654ec8a20356342698cce104d2; \>= edd384f682cc2981420628b769a1929db680f02f, \< 3ba59bbe4f306bb6ee15753db0a40564c0eb7909; \>= edd384f682cc2981420628b769a1929db680f02f, \< 98f9fcdee35add80505b6c73f72de5f750d5c03c; Linux 4.14.

### Is there a fix for CVE-2022-50174?

Yes. Fixed in Linux 693f31dc91568e61047fd2980a8235e856cd9ce8, Linux 3ba59bbe4f306bb6ee15753db0a40564c0eb7909, Linux 98f9fcdee35add80505b6c73f72de5f750d5c03c. Upgrade Linux to 98f9fcdee35add80505b6c73f72de5f750d5c03c or later.

### How do I check if I'm affected by CVE-2022-50174?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e74f3097a9c713ce855cda07713393bcc23a005d>
- patch: <https://git.kernel.org/stable/c/693f31dc91568e61047fd2980a8235e856cd9ce8>
- patch: <https://git.kernel.org/stable/c/fced5bce712122654ec8a20356342698cce104d2>
- patch: <https://git.kernel.org/stable/c/3ba59bbe4f306bb6ee15753db0a40564c0eb7909>
- patch: <https://git.kernel.org/stable/c/98f9fcdee35add80505b6c73f72de5f750d5c03c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50174>

HTML: <https://flawdb.com/CVE-2022-50174> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50174>
