# CVE-2022-50318: perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2025-09-15T14:48:51.035Z
- Modified: 2026-06-17T05:23:13.497Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a8e87042482fd2d31c5cee62875b2ae75759ae8b before 5a96c10a56037db006ba6769307a9731cf6073be; from 319a06e58ed7f1443f7133c05513de470f90628d before e293263248f25c6b8aa1caf7c1103d40aa03311e; from 6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b before c0539d5d474ee6fa4ebc41f927a0f98f81244f25; from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 before 3485f197518061371568f842405159aa9e4df551; from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 before 48f32b9a74e2ac8e854bb87bfefdbc745125a123; from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 before bd66877c0b3b42eed0ecee0bd2a2a505c1e54177; from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5 before 1ff9dd6e7071a561f803135c1d684b13c7a7d01d; d2c79105a90323a2a93484c85f9ac419ae9b183d; from 4.19.189 before 4.19.270; from 5.4.115 before 5.4.229; from 5.10.33 before 5.10.163; from 5.11.17 before 5.12; and 1 more (not affected: before 5.12; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 4.19.189 before 4.19.270; from 5.4.115 before 5.4.229; from 5.10.33 before 5.10.163; from 5.11.17 before 5.12; from 5.12.1 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2; 5.12

## References

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

## Sources

- CVE List: [CVE-2022-50318](https://www.cve.org/CVERecord?id=CVE-2022-50318), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-50318](https://nvd.nist.gov/vuln/detail/CVE-2022-50318), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50318 · Whole record: https://cve.day/CVE-2022-50318.json · Rebuilt by cve.day 2026-11-25T22:58:21.162Z
