CVE-2022-48934

nfp: flower: Fix a potential leak in nfp_tunnel_add_shared_mac()

MEDIUM
5.5
CVSS Score
Published: August 22, 2024 at 03:31 AM UTC
Updated: June 17, 2026 at 05:16 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%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: nfp: flower: Fix a potential leak in nfp_tunnel_add_shared_mac() ida_simple_get() returns an id between min (0) and max (NFP_MAX_MAC_INDEX) inclusive. So NFP_MAX_MAC_INDEX (0xff) is a valid id. In order for the error handling path to work correctly, the 'invalid' value for 'ida_idx' should not be in the 0..NFP_MAX_MAC_INDEX range, inclusive. So set it to -1.

Affected

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

5.1 ≤ v < 5.10.1035.1 ≤ v < 5.15.265.1 ≤ v < 5.16.125.1 ≤ v < 5.175.1 ≤ v < 5.4.1825.11 ≤ v < 5.15.265.16 ≤ v < 5.16.125.5 ≤ v < 5.10.10320cce88650981ec504d328dbbdd004d991eb85355.1
Vendor states this is fixed in 3a14d0888eb4b0045884126acc69abfb7b87814d (fixed)
Vendor states this is fixed in 4086d2433576baf85f0e538511df97c8101e0a10 (fixed)
Vendor states this is fixed in 5ad5886f85b6bd893e3ed19013765fb0c243c069 (fixed)
Vendor states this is fixed in 9d8097caa73200710d52b9f4d9f430548f46a900 (fixed)
Vendor states this is fixed in af4bc921d39dffdb83076e0a7eed1321242b7d87 (fixed)
Vendor states this is fixed in 5.1 (unaffected)
Vendor states this is fixed in 5.10.103 (unaffected)
Vendor states this is fixed in 5.15.26 (unaffected)
Vendor states this is fixed in 5.16.12 (unaffected)
Vendor states this is fixed in 5.17 (unaffected)
Vendor states this is fixed in 5.4.182 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3a14d0888eb4b0045884126acc69abfb7b87814d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4086d2433576baf85f0e538511df97c8101e0a10
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ad5886f85b6bd893e3ed19013765fb0c243c069
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9d8097caa73200710d52b9f4d9f430548f46a900
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af4bc921d39dffdb83076e0a7eed1321242b7d87

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-401

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