CVE-2022-50318

perf/x86/intel/uncore: Fix reference count leak in hswep_has_limit_sbox()

No CVSS score yet EPSS 0.17%

Published 15 Sep 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2022-50318

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50318 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.16% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a8e87042482fd2d31c5cee62875b2ae75759ae8b, before 5a96c10a56037db006ba6769307a9731cf6073be
affected from 319a06e58ed7f1443f7133c05513de470f90628d, before e293263248f25c6b8aa1caf7c1103d40aa03311e
affected from 6f8315e5d9511ed1cf28ee2afbc9f89ff693de7b, before c0539d5d474ee6fa4ebc41f927a0f98f81244f25
affected from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5, before 3485f197518061371568f842405159aa9e4df551
affected from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5, before 48f32b9a74e2ac8e854bb87bfefdbc745125a123
affected from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5, before bd66877c0b3b42eed0ecee0bd2a2a505c1e54177
affected from 9d480158ee86ad606d3a8baaf81e6b71acbfd7d5, before 1ff9dd6e7071a561f803135c1d684b13c7a7d01d
affected d2c79105a90323a2a93484c85f9ac419ae9b183d
affected from 4.19.189, before 4.19.270
affected from 5.4.115, before 5.4.229
affected from 5.10.33, before 5.10.163
affected from 5.11.17, before 5.12
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50318 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50318

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50318
trivy image --scanners vuln IMAGE | grep CVE-2022-50318

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50318 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.