net/mlx5: Use del_timer_sync in fw reset flow of halting poll (Linux Linux)

CVE-2022-48745
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Use del_timer_sync in fw reset flow of halting poll Substitute del_timer() with del_timer_sync() in fw reset polling deactivation flow, in order to prevent a race condition which occurs when del_timer() is called and timer is deactivated while another process is handling the timer interrupt. A situation that led to the following call trace: RIP: 0010:run_timer_softirq+0x137/0x420 <IRQ> recalibrate_cpu_khz+0x10/0x10 ktime_get+0x3e/0xa0 ? sched_clock_cpu+0xb/0xc0 __do_softirq+0xf5/0x2ea irq_exit_rcu+0xc1/0xf0 sysvec_apic_timer_interrupt+0x9e/0xc0 asm_sysvec_apic_timer_interrupt+0x12/0x20 </IRQ>

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/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 38b9f903f22b9baa5c4b9bfb07c8bbc49f5efbba < 502c37b033fab7cde3e95a570af4f073306be45e ; affected 38b9f903f22b9baa5c4b9bfb07c8bbc49f5efbba < f895ebeb44d09d02674cfdd0cfc2bf687603918c ; affected 38b9f903f22b9baa5c4b9bfb07c8bbc49f5efbba < 2a038dd1d942f8fbc495c58fa592ff24af05f1c2 ; affected 38b9f903f22b9baa5c4b9bfb07c8bbc49f5efbba < 3c5193a87b0fea090aa3f769d020337662d87b5e
Linux · Linuxaffected 5.10 ; unaffected 0 < 5.10 ; unaffected 5.10.97 ≤ 5.10.* ; unaffected 5.15.20 ≤ 5.15.* ; unaffected 5.16.6 ≤ 5.16.* ; unaffected 5.17 ≤ *

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