filelock: fix potential use-after-free in posix_lock_inode (Linux Linux)

CVE-2024-41049
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.28 % · centile 21 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: filelock: fix potential use-after-free in posix_lock_inode Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode(). The request pointer had been changed earlier to point to a lock entry that was added to the inode's list. However, before the tracepoint could fire, another task raced in and freed that lock. Fix this by moving the tracepoint inside the spinlock, which should ensure that this doesn't happen.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 117fb80cd1e63c419c7a221ce070becb4bfc7b6d < 1cbbb3d9475c403ebedc327490c7c2b991398197 ; affected a6f4129378ca15f62cbdde09a7d3ccc35adcf49d < 7d4c14f4b511fd4c0dc788084ae59b4656ace58b ; affected 766e56faddbec2eaf70c9299e1c9ef74d846d32b < 02a8964260756c70b20393ad4006948510ac9967 ; affected 34bff6d850019e00001129d6de3aa4874c2cf471 < 5cb36e35bc10ea334810937990c2b9023dacb1b0 ; affected 74f6f5912693ce454384eaeec48705646a21c74f < 432b06b69d1d354a171f7499141116536579eb6a ; affected 74f6f5912693ce454384eaeec48705646a21c74f < 116599f6a26906cf33f67975c59f0692ecf7e9b2
Linux · Linuxaffected 6.6 ; unaffected 0 < 6.6 ; unaffected 5.4.280 ≤ 5.4.* ; unaffected 5.10.222 ≤ 5.10.* ; unaffected 5.15.163 ≤ 5.15.* ; unaffected 6.1.100 ≤ 6.1.*

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