CVE-2024-50142

xfrm: validate new SA's prefixlen using SA family when sel.family is unset

MEDIUM
5.5
CVSS Score
Published: November 7, 2024 at 09:31 AM UTC
Updated: October 15, 2026 at 01:19 AM UTC
2 products affected across 2 vendorsLinux KernelSIMATIC S7-1500 TM MFP

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.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: xfrm: validate new SA's prefixlen using SA family when sel.family is unset This expands the validation introduced in commit 07bf7908950a ("xfrm: Validate address prefix lengths in the xfrm selector.") syzbot created an SA with usersa.sel.family = AF_UNSPEC usersa.sel.prefixlen_s = 128 usersa.family = AF_INET Because of the AF_UNSPEC selector, verify_newsa_info doesn't put limits on prefixlen_{s,d}. But then copy_from_user_state sets x->sel.family to usersa.family (AF_INET). Do the same conversion in verify_newsa_info before validating prefixlen_{s,d}, since that's how prefixlen is going to be used later on.

Affected

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

2.6.12 ≤ v < 4.19.3234.20 ≤ v < 5.4.2855.11 ≤ v < 5.15.1705.16 ≤ v < 6.1.1155.5 ≤ v < 5.10.2296.2 ≤ v < 6.6.596.7 ≤ v < 6.11.61da177e4c3f41524e886b7f1b8a0c1fc7321cac26.126.12 rc16.12 rc26.12 rc36.12 rc4
Vendor states this is fixed in 2d08a6c31c65f23db71a5385ee9cf9d8f9a67a71 (fixed)
Vendor states this is fixed in 3f0ab59e6537c6a8f9e1b355b48f9c05a76e8563 (fixed)
Vendor states this is fixed in 401ad99a5ae7180dd9449eac104cb755f442e7f3 (fixed)
Vendor states this is fixed in 7d9868180bd1e4cf37e7c5067362658971162366 (fixed)
Vendor states this is fixed in 8df5cd51fd70c33aa1776e5cbcd82b0a86649d73 (fixed)
Vendor states this is fixed in bce1afaa212ec380bf971614f70909a27882b862 (fixed)
Vendor states this is fixed in e68dd80ba498265d2266b12dc3459164f4ff0c4a (fixed)
Vendor states this is fixed in f31398570acf0f0804c644006f7bfa9067106b0a (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.19.323 (unaffected)
Vendor states this is fixed in 5.10.229 (unaffected)
Vendor states this is fixed in 5.15.170 (unaffected)
Vendor states this is fixed in 5.4.285 (unaffected)
Vendor states this is fixed in 6.1.115 (unaffected)
Vendor states this is fixed in 6.11.6 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.59 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2d08a6c31c65f23db71a5385ee9cf9d8f9a67a71
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3f0ab59e6537c6a8f9e1b355b48f9c05a76e8563
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/401ad99a5ae7180dd9449eac104cb755f442e7f3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7d9868180bd1e4cf37e7c5067362658971162366
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8df5cd51fd70c33aa1776e5cbcd82b0a86649d73
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bce1afaa212ec380bf971614f70909a27882b862
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e68dd80ba498265d2266b12dc3459164f4ff0c4a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f31398570acf0f0804c644006f7bfa9067106b0a

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

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

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

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