SUNRPC: always drain cache_cleaner before destroying a cache_detail (Linux Linux)

CVE-2026-89548
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.13 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

Description

In the Linux kernel, the following vulnerability has been resolved: SUNRPC: always drain cache_cleaner before destroying a cache_detail sunrpc_destroy_cache_detail() only cancels the global cache_cleaner delayed_work when cache_list is empty. During per-netns teardown cache_list is never empty because init_net's caches remain registered, so the cancel never fires. After unlink, the caller proceeds to cache_destroy_net() which kfrees the cache_detail while cache_clean() may still hold a dangling pointer to it. The result is a use-after-free: cache_dequeue() takes cd->queue_lock on freed memory, and cache_put() dereferences cd->cache_put as a function pointer from freed slab. Drop the list_empty guard so that cancel_delayed_work_sync() always runs, ensuring any in-flight cache_clean() completes before the cache_detail is freed. Re-arm the cleaner afterwards if other caches are still registered.

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)

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < dec787a15c96a5665e9ffc61b429a6a4ab26e6b9 ; affected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < 5eea874a696201c31e7c2d7badbfa0d90e9961b5 ; affected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < cf239de7fdcc8336259b01ea4bcf650dadad1040 ; affected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < 6d74ecc2be120a0c300b224b7649fe93c0453714 ; affected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < 9d44836f60c8c29bcdb1471fd9202387c642a890 ; affected 820f9442e711a81749e70c40f149fc54c4ce0ca8 < 2e861ce2aaa468351a6a47c4cbb4971ebb740c7b
Linux · Linuxaffected 3.4 ; unaffected 0 < 3.4 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 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