wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param (Linux Linux)

CVE-2024-47712
HIGH 8.3

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: fix potential RCU dereference issue in wilc_parse_join_bss_param In the `wilc_parse_join_bss_param` function, the TSF field of the `ies` structure is accessed after the RCU read-side critical section is unlocked. According to RCU usage rules, this is illegal. Reusing this pointer can lead to unpredictable behavior, including accessing memory that has been updated or causing use-after-free issues. This possible bug was identified using a static analysis tool developed by myself, specifically designed to detect RCU-related issues. To address this, the TSF value is now stored in a local variable `ies_tsf` before the RCU lock is released. The `param->tsf_lo` field is then assigned using this local variable, ensuring that the TSF value is safely accessed.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.3CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:HLinux
CVSS 3.1HIGH 8.3CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:L/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)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e556006de4ea93abe2b46cba202a2556c544b8b2 < 5a24cedc243ace5ed7c1016f52a7bfc8f5b07815 ; affected b4bbf38c350acb6500cbe667b1e2e68f896e4b38 < 557418e1704605a81c9e26732449f71b1d40ba1e ; affected d80fc436751cfa6b02a8eda74eb6cce7dadfe5a2 < bf090f4fe935294361eabd9dc5a949fdd77d3d1b ; affected 745003b5917b610352f52fe0d11ef658d6471ec2 < b040b71d99ee5e17bb7a743dc01cbfcae8908ce1 ; affected 4bfd20d5f5c62b5495d6c0016ee6933bd3add7ce < 84398204c5df5aaf89453056cf0647cda9664d2b ; affected 205c50306acf58a335eb19fa84e40140f4fe814f < 2f944e6255c2fc1c9bd9ee32f6b14ee0b2a51eb5
Linux · Linuxaffected 6.9 ; unaffected 0 < 6.9 ; unaffected 5.4.285 ≤ 5.4.* ; unaffected 5.10.227 ≤ 5.10.* ; unaffected 5.15.168 ≤ 5.15.* ; unaffected 6.1.113 ≤ 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