CVE-2025-71102: scs: fix a wrong parameter in __scs_magic

Published Jan 14, 2026
·
Updated

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

scs: fix a wrong parameter in scsmagic

scsmagic() needs a 'void ' variable, but a 'struct taskstruct ' is given. 'taskscs(tsk)' is the starting address of the task's shadow call stack, and 'scsmagic(taskscs(tsk))' is the end address of the task's shadow call stack. Here should be 'scsmagic(taskscs(tsk))'.

The user-visible effect of this bug is that when CONFIGDEBUGSTACKUSAGE is enabled, the shadow call stack usage checking function (scscheckusage) would scan an incorrect memory range. This could lead

1. Inaccurate stack usage reporting: The function would calculate wrong usage statistics for the shadow call stack, potentially showing incorrect value in kmsg.

2. Potential kernel crash: If the value of scsmagic(tsk)is greater than that of scsmagic(taskscs(tsk)), the for loop may access unmapped memory, potentially causing a kernel panic. However, this scenario is unlikely because taskstruct is allocated via the slab allocator (which typically returns lower addresses), while the shadow call stack returned by taskscs(tsk) is allocated via vmalloc(which typically returns higher addresses).

However, since this is purely a debugging feature (CONFIGDEBUGSTACKUSAGE), normal production systems should be not unaffected. The bug only impacts developers and testers who are actively debugging stack usage with this configuration enabled.

Affected Software

16 affected components
Linux Linux kernel
Linux Linux kernel>=5.8.1<5.10.248
Linux Linux kernel>=5.11<5.15.198
Linux Linux kernel>=5.16<6.1.160
Linux Linux kernel>=6.2<6.6.120
Linux Linux kernel>=6.7<6.12.64
Linux Linux kernel>=6.13<6.18.3
Linux Linux kernel=5.8
Linux Linux kernel=6.19-rc1
Linux Linux kernel=6.19-rc2
Linux Linux kernel=6.19-rc3
Linux Linux kernel=6.19-rc4
Linux Linux kernel=6.19-rc5
Linux Linux kernel=6.19-rc6
Linux Linux kernel=6.19-rc7
Linux Linux kernel=6.19-rc8

Event History

Jan 14, 2026
CVE Published
via MITRE·03:05 PM
Data Sourced
via MITRE·03:05 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-71102?

The severity of CVE-2025-71102 is classified as medium due to potential impacts on system stability.

2

How do I fix CVE-2025-71102?

To fix CVE-2025-71102, update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What systems are affected by CVE-2025-71102?

CVE-2025-71102 affects various versions of the Linux kernel, particularly those that utilize the __scs_magic function.

4

What are the potential consequences of CVE-2025-71102?

The potential consequences of CVE-2025-71102 include system crashes and unstable behavior due to incorrect parameter handling.

5

Is CVE-2025-71102 exploitable remotely?

CVE-2025-71102 is not directly exploitable remotely, as it requires access to the system to trigger the vulnerability.

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