Vulnerabilities/

CVE-2025-38352

CVE

CVE-2025-38352

posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del()

Severity

High

Base CVSS

7.8

Fixed in

f90fff1e152dedf52b932240ebbd670d83330eca,5.4.295,5.10.239,5.15.186,6.1.142,6.6.94,6.12.34,6.15.3,0:4.18.0-553.74.1.rt7.415.el8_10,0:4.18.0-553.74.1.el8_10,0:1-1.el8_10,0:1-8.el8_10,0:1-7.el8_10,0:1-5.el8_10,0:1-3.el8_10,0:5.14.0-570.42.2.el9_6,0:1-8.el9_6,0:1-1.el9_6,6.1.147-1,5.10.244-1,6.1.153-1~deb11u1,6.12.35-1,4.15.0-243.255,4.15.0-1186.199,5.4.0-1152.162~18.04.1,4.15.0-1194.209,5.4.0-1156.163~18.04.1,4.15.0-1179.196,5.4.0-1155.164~18.04.1,5.4.0-223.243~18.04.1,5.4.0-1098.103~18.04.1,4.15.0-1168.173,4.15.0-1148.159,5.4.0-1150.160~18.04.1,5.4.0-1135.148~18.04.1,5.4.0-223.243,5.4.0-1152.162,5.15.0-1092.99~20.04.1,5.4.0-1156.163,5.15.0-1096.105~20.04.1,5.4.0-1111.118,5.4.0-1155.164,5.15.0-1092.101~20.04.1,5.15.0-156.166~20.04.1,5.4.0-1098.103,5.15.0-1086.89~20.04.1,5.15.0-1087.93~20.04.1,5.4.0-1056.59,5.4.0-1139.148,5.15.0-1045.45~20.04.1,5.4.0-1150.160,5.15.0-1090.96~20.04.1,5.4.0-1135.148,5.15.0-1087.91~20.04.1,5.4.0-1070.74,6.8.0-87.88,6.8.0-1042.44,6.14.0-1013.13~24.04.1,6.8.0-1044.50,6.8.0-1029.32,6.14.0-1007.7,6.8.0-1043.46,6.14.0-1016.17~24.04.1,6.8.0-1039.44,6.8.0-1026.29,6.8.0-1040.40,6.8.0-87.88.1,6.8.0-1042.45,6.11.0-1016.16,6.8.0-1042.45.1,6.8.0-1012.12,6.14.0-1012.12,6.8.0-1039.40,6.8.0-1042.46,6.14.0-32.32.1~24.04.1,6.8.0-1019.20,5.15.0-156.166,5.15.0-1092.99,6.8.0-1042.44~22.04.1,5.15.0-1096.105,6.8.0-1044.50~22.04.1,5.15.0-1092.101,6.8.0-1043.46~22.04.1,5.15.0-1089.95,5.15.0-1075.83,6.8.0-87.88~22.04.1,5.15.0-1086.89,6.8.0-1040.40~22.04.1,5.15.0-1087.93,5.15.0-1088.93,6.8.0-87.88.1~22.04.1,5.15.0-1087.88,6.8.0-1042.45~22.04.1,5.15.0-1045.45,5.15.0-1034.34,5.15.0-1090.96,6.8.0-1039.40~22.04.1,5.15.0-1056.60,0:5.15.0-312.187.5.el8uek,0:5.4.17-2136.347.6.el8uek,0:5.4.17-2136.347.6.el7uek,0:3.10.0-1160.119.1.0.12.el7,0:6.12.0-103.40.4.1.el9uek,0:5.15.0-312.187.5.el9uek,0:5.14.0-570.42.2.0.1.el9_6,0:4.14.355-280.679.amzn2,0:1.0-0.amzn2,0:5.4.295-216.421.amzn2,0:5.10.239-236.958.amzn2,0:5.15.186-128.192.amzn2,0:6.12.35-55.103.amzn2023,0:1.0-0.amzn2023,1:6.1.144-170.251.amzn2023,1:1.0-0.amzn2023

Description

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

posix-cpu-timers: fix race between handleposixcputimers() and posixcputimerdel()

If an exiting non-autoreaping task has already passed exit_notify() and

calls handleposixcpu_timers() from IRQ, it can be reaped by its parent

or debugger right after unlocktasksighand().

If a concurrent posixcputimer_del() runs at that moment, it won't be

able to detect timer->it.cpu.firing != 0: cputimertask_rcu() and/or

locktasksighand() will fail.

Add the tsk->exitstate check into runposixcputimers() to fix this.

This fix is not needed if CONFIGPOSIXCPUTIMERSTASK_WORK=y, because

exittaskwork() is called before exit_notify(). But the check still

makes sense, taskworkadd(&tsk->posixcputimerswork.work) will fail

anyway in this case.

Severity scores

Source

Severity

Base score

CVSS version

Score vector

NVD

High

7.8

3.1

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

OSV

0

3.1

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Endor Labs

Required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Known ransomware campaign use

Unknown

References

https://git.kernel.org/stable/c/2c72fe18cc5f9f1750f5bc148cf1c94c29e106ff, https://git.kernel.org/stable/c/2f3daa04a9328220de46f0d5c919a6c0073a9f0b, https://git.kernel.org/stable/c/460188bc042a3f40f72d34b9f7fc6ee66b0b757b, https://git.kernel.org/stable/c/764a7a5dfda23f69919441f2eac2a83e7db6e5bb, https://git.kernel.org/stable/c/78a4b8e3795b31dae58762bc091bb0f4f74a2200, https://git.kernel.org/stable/c/c076635b3a42771ace7d276de8dc3bc76ee2ba1b, https://git.kernel.org/stable/c/c29d5318708e67ac13c1b6fc1007d179fb65b4d7, https://git.kernel.org/stable/c/f90fff1e152dedf52b932240ebbd670d83330eca, https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html, https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-38352, https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38352.json, https://nvd.nist.gov/vuln/detail/CVE-2025-38352, https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git, https://github.com/farazsth98/chronomaly

Basic information

Base CVSS

7.8

EPSS probability

0.0

EPSS percentile

0.67534

Introduced version

0bdd2ed4138ec04e09b4f8165981efc99e439f55,2.6.36,5.5.0,5.11.0,5.16.0,6.2.0,6.7.0,6.13.0,0

Fix available

f90fff1e152dedf52b932240ebbd670d83330eca,5.4.295,5.10.239,5.15.186,6.1.142,6.6.94,6.12.34,6.15.3,0:4.18.0-553.74.1.rt7.415.el8_10,0:4.18.0-553.74.1.el8_10,0:1-1.el8_10,0:1-8.el8_10,0:1-7.el8_10,0:1-5.el8_10,0:1-3.el8_10,0:5.14.0-570.42.2.el9_6,0:1-8.el9_6,0:1-1.el9_6,6.1.147-1,5.10.244-1,6.1.153-1~deb11u1,6.12.35-1,4.15.0-243.255,4.15.0-1186.199,5.4.0-1152.162~18.04.1,4.15.0-1194.209,5.4.0-1156.163~18.04.1,4.15.0-1179.196,5.4.0-1155.164~18.04.1,5.4.0-223.243~18.04.1,5.4.0-1098.103~18.04.1,4.15.0-1168.173,4.15.0-1148.159,5.4.0-1150.160~18.04.1,5.4.0-1135.148~18.04.1,5.4.0-223.243,5.4.0-1152.162,5.15.0-1092.99~20.04.1,5.4.0-1156.163,5.15.0-1096.105~20.04.1,5.4.0-1111.118,5.4.0-1155.164,5.15.0-1092.101~20.04.1,5.15.0-156.166~20.04.1,5.4.0-1098.103,5.15.0-1086.89~20.04.1,5.15.0-1087.93~20.04.1,5.4.0-1056.59,5.4.0-1139.148,5.15.0-1045.45~20.04.1,5.4.0-1150.160,5.15.0-1090.96~20.04.1,5.4.0-1135.148,5.15.0-1087.91~20.04.1,5.4.0-1070.74,6.8.0-87.88,6.8.0-1042.44,6.14.0-1013.13~24.04.1,6.8.0-1044.50,6.8.0-1029.32,6.14.0-1007.7,6.8.0-1043.46,6.14.0-1016.17~24.04.1,6.8.0-1039.44,6.8.0-1026.29,6.8.0-1040.40,6.8.0-87.88.1,6.8.0-1042.45,6.11.0-1016.16,6.8.0-1042.45.1,6.8.0-1012.12,6.14.0-1012.12,6.8.0-1039.40,6.8.0-1042.46,6.14.0-32.32.1~24.04.1,6.8.0-1019.20,5.15.0-156.166,5.15.0-1092.99,6.8.0-1042.44~22.04.1,5.15.0-1096.105,6.8.0-1044.50~22.04.1,5.15.0-1092.101,6.8.0-1043.46~22.04.1,5.15.0-1089.95,5.15.0-1075.83,6.8.0-87.88~22.04.1,5.15.0-1086.89,6.8.0-1040.40~22.04.1,5.15.0-1087.93,5.15.0-1088.93,6.8.0-87.88.1~22.04.1,5.15.0-1087.88,6.8.0-1042.45~22.04.1,5.15.0-1045.45,5.15.0-1034.34,5.15.0-1090.96,6.8.0-1039.40~22.04.1,5.15.0-1056.60,0:5.15.0-312.187.5.el8uek,0:5.4.17-2136.347.6.el8uek,0:5.4.17-2136.347.6.el7uek,0:3.10.0-1160.119.1.0.12.el7,0:6.12.0-103.40.4.1.el9uek,0:5.15.0-312.187.5.el9uek,0:5.14.0-570.42.2.0.1.el9_6,0:4.14.355-280.679.amzn2,0:1.0-0.amzn2,0:5.4.295-216.421.amzn2,0:5.10.239-236.958.amzn2,0:5.15.186-128.192.amzn2,0:6.12.35-55.103.amzn2023,0:1.0-0.amzn2023,1:6.1.144-170.251.amzn2023,1:1.0-0.amzn2023

Endor Patches

Fix critical vulnerabilities instantly

Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.

Fix without upgrading

Get a demo of Endor Labs today.