can: bcm: add locking for bcm_op runtime updates (Linux Linux)

CVE-2025-38004
HIGH 7.3

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: can: bcm: add locking for bcm_op runtime updates The CAN broadcast manager (CAN BCM) can send a sequence of CAN frames via hrtimer. The content and also the length of the sequence can be changed resp reduced at runtime where the 'currframe' counter is then set to zero. Although this appeared to be a safe operation the updates of 'currframe' can be triggered from user space and hrtimer context in bcm_can_tx(). Anderson Nascimento created a proof of concept that triggered a KASAN slab-out-of-bounds read access which can be prevented with a spin_lock_bh. At the rework of bcm_can_tx() the 'count' variable has been moved into the protected section as this variable can be modified from both contexts too.

Faiblesses (CWE)

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HLinux
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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 ffd980f976e7fd666c2e61bf8ab35107efd11828 < 8f1c022541bf5a923c8d6fa483112c15250f30a4 ; affected ffd980f976e7fd666c2e61bf8ab35107efd11828 < 7595de7bc56e0e52b74e56c90f7e247bf626d628 ; affected ffd980f976e7fd666c2e61bf8ab35107efd11828 < fbd8fdc2b218e979cfe422b139b8f74c12419d1f ; affected ffd980f976e7fd666c2e61bf8ab35107efd11828 < 2a437b86ac5a9893c902f30ef66815bf13587bf6 ; affected ffd980f976e7fd666c2e61bf8ab35107efd11828 < 76c84c3728178b2d38d5604e399dfe8b0752645e ; affected ffd980f976e7fd666c2e61bf8ab35107efd11828 < cc55dd28c20a6611e30596019b3b2f636819a4c0
Linux · Linuxaffected 2.6.25 ; unaffected 0 < 2.6.25 ; unaffected 5.4.294 ≤ 5.4.* ; unaffected 5.10.238 ≤ 5.10.* ; unaffected 5.15.185 ≤ 5.15.* ; unaffected 6.1.141 ≤ 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