CVE-2025-38675: xfrm: state: initialize state_ptrs earlier in xfrm_state_find

Published Aug 22, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

xfrm: state: initialize stateptrs earlier in xfrmstatefind

In case of preemption, xfrmstatelookat will find a different pcpuid and look up states for that other CPU. If we matched a state for CPU2 in the statecache while the lookup started on CPU1, we will jump to "found", but the "best" state that we got will be ignored and we will enter the "acquire" block. This block uses stateptrs, which isn't initialized at this point.

Let's initialize stateptrs just after taking rcureadlock. This will also prevent a possible misuse in the future, if someone adjusts this function.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=6.12.13<6.12.41
Linux Linux kernel>=6.13.2<6.15.9
Linux Linux kernel=6.16-rc1
Linux Linux kernel=6.16-rc2
Linux Linux kernel=6.16-rc3
Linux Linux kernel=6.16-rc4
Linux Linux kernel=6.16-rc5
Linux Linux kernel=6.16-rc6
Linux Linux kernel=6.16-rc7

Event History

Aug 22, 2025
CVE Published
via MITRE·04:04 PM
Data Sourced
via MITRE·04:04 PM
DescriptionSeverity
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38675?

The severity of CVE-2025-38675 is currently assessed as high due to potential state corruption in the Linux kernel.

2

How do I fix CVE-2025-38675?

To fix CVE-2025-38675, upgrade to the latest version of the Linux kernel that includes the necessary patches.

3

What are the potential impacts of CVE-2025-38675?

CVE-2025-38675 may lead to unexpected behavior or security vulnerabilities in kernel-level state management.

4

Which versions of the Linux kernel are affected by CVE-2025-38675?

CVE-2025-38675 affects multiple versions of the Linux kernel prior to the release of the fix that addresses the vulnerability.

5

Is CVE-2025-38675 being actively exploited?

As of now, there is no public evidence indicating active exploitation of CVE-2025-38675 in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203