rtmutex: Drop rt_mutex::wait_lock before scheduling (Linux Linux)

CVE-2024-46829
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: rtmutex: Drop rt_mutex::wait_lock before scheduling rt_mutex_handle_deadlock() is called with rt_mutex::wait_lock held. In the good case it returns with the lock held and in the deadlock case it emits a warning and goes into an endless scheduling loop with the lock held, which triggers the 'scheduling in atomic' warning. Unlock rt_mutex::wait_lock in the dead lock case before issuing the warning and dropping into the schedule for ever loop. [ tglx: Moved unlock before the WARN(), removed the pointless comment, massaged changelog, added Fixes tag ]

Weaknesses (CWE)

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 3d5c9340d1949733eb37616abd15db36aef9a57c < 432efdbe7da5ecfcbc0c2180cfdbab1441752a38 ; affected 3d5c9340d1949733eb37616abd15db36aef9a57c < 6a976e9a47e8e5b326de671811561cab12e6fb1f ; affected 3d5c9340d1949733eb37616abd15db36aef9a57c < 1401da1486dc1cdbef6025fd74a3977df3a3e5d0 ; affected 3d5c9340d1949733eb37616abd15db36aef9a57c < 93f44655472d9cd418293d328f9d141ca234ad83 ; affected 3d5c9340d1949733eb37616abd15db36aef9a57c < a92d81c9efec9280681c27a2c0a963fd0f1338e0 ; affected 3d5c9340d1949733eb37616abd15db36aef9a57c < 85f03ca98e07cd0786738b56ae73740bce0ac27f
Linux · Linuxaffected 3.16 ; unaffected 0 < 3.16 ; unaffected 4.19.322 ≤ 4.19.* ; unaffected 5.4.284 ≤ 5.4.* ; unaffected 5.10.226 ≤ 5.10.* ; unaffected 5.15.167 ≤ 5.15.*

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