ipv6/addrconf: fix a potential refcount underflow for idev (Linux Linux)

CVE-2023-53189
HIGH 7.8

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: ipv6/addrconf: fix a potential refcount underflow for idev Now in addrconf_mod_rs_timer(), reference idev depends on whether rs_timer is not pending. Then modify rs_timer timeout. There is a time gap in [1], during which if the pending rs_timer becomes not pending. It will miss to hold idev, but the rs_timer is activated. Thus rs_timer callback function addrconf_rs_timer() will be executed and put idev later without holding idev. A refcount underflow issue for idev can be caused by this. if (!timer_pending(&idev->rs_timer)) in6_dev_hold(idev); <--------------[1] mod_timer(&idev->rs_timer, jiffies + when); To fix the issue, hold idev if mod_timer() return 0.

Faiblesses (CWE)

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.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)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < c6395e32935d35e6f935e7caf1c2dac5a95943b4 ; affected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < df62fdcd004afa72ecbed0e862ebb983acd3aa57 ; affected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < c7eeba47058532f6077d6a658e38b6698f6ae71a ; affected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < 2ad31ce40e8182860b631e37209e93e543790b7c ; affected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < 82abd1c37d3bf2a2658b34772c17a25a6f9cca42 ; affected b7b1bfce0bb68bd8f6e62a28295922785cc63781 < 436b7cc7eae7851c184b671ed7a4a64c750b86f7
Linux · Linuxaffected 3.11 ; unaffected 0 < 3.11 ; unaffected 4.14.322 ≤ 4.14.* ; unaffected 4.19.291 ≤ 4.19.* ; unaffected 5.4.251 ≤ 5.4.* ; unaffected 5.10.188 ≤ 5.10.*

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