CVE-2022-50318

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

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:48 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.11.174.19.189 ≤ v < 4.19.2705.10.33 ≤ v < 5.10.1635.11.17 ≤ v < 5.125.12 ≤ v < 5.15.865.12 ≤ v < 6.0.165.12 ≤ v < 6.1.25.12 ≤ v < 6.25.12.1 ≤ v < 5.15.865.16 ≤ v < 6.0.165.4.115 ≤ v < 5.4.2296.1 ≤ v < 6.1.2319a06e58ed7f1443f7133c05513de470f90628d4.19.1895.10.335.11.175.125.4.1156f8315e5d9511ed1cf28ee2afbc9f89ff693de7b9d480158ee86ad606d3a8baaf81e6b71acbfd7d5a8e87042482fd2d31c5cee62875b2ae75759ae8bd2c79105a90323a2a93484c85f9ac419ae9b183d
Vendor states this is fixed in 1ff9dd6e7071a561f803135c1d684b13c7a7d01d (fixed)
Vendor states this is fixed in 3485f197518061371568f842405159aa9e4df551 (fixed)
Vendor states this is fixed in 48f32b9a74e2ac8e854bb87bfefdbc745125a123 (fixed)
Vendor states this is fixed in 5a96c10a56037db006ba6769307a9731cf6073be (fixed)
Vendor states this is fixed in bd66877c0b3b42eed0ecee0bd2a2a505c1e54177 (fixed)
Vendor states this is fixed in c0539d5d474ee6fa4ebc41f927a0f98f81244f25 (fixed)
Vendor states this is fixed in e293263248f25c6b8aa1caf7c1103d40aa03311e (fixed)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1ff9dd6e7071a561f803135c1d684b13c7a7d01d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3485f197518061371568f842405159aa9e4df551
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/48f32b9a74e2ac8e854bb87bfefdbc745125a123
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5a96c10a56037db006ba6769307a9731cf6073be
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bd66877c0b3b42eed0ecee0bd2a2a505c1e54177
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c0539d5d474ee6fa4ebc41f927a0f98f81244f25
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e293263248f25c6b8aa1caf7c1103d40aa03311e

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card