posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path (Linux Linux)

CVE-2026-64370
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: Fix pid refcount leak in do_cpu_nanosleep() error path In do_cpu_nanosleep(), posix_cpu_timer_create() takes a pid reference via get_pid() and stores it in timer.it.cpu.pid. If the subsequent posix_cpu_timer_set() call fails, the function returns immediately without calling posix_cpu_timer_del() to release the pid reference, causing a leak. Fix it by calling posix_cpu_timer_del() before the unlock-and-return on the error path, consistent with the other exit paths in the same function.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < afed3cdc1cca133f804fcf57ff228974f424b23a ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8a270b1258797f61b61da44f8bfd41a581b5c85b ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < d605d00085adc3fddf67de01dc2a44aebf1a3fb5 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < e5ffc638faf5dc7d9dc85c9a95e10bf97442e0c0 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < eb4cec29a78334d09bcfb41c0660cdd62ba05843 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 7776f9226e99eb49d97492b0b445027cfcb189da
Linux · Linuxaffected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD