CVE-2022-48858

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48858
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-48858.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-48858
Downstream
Related
Published
2024-07-16T13:15:12Z
Modified
2025-08-09T20:01:28Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: Fix a race on command flush flow

Fix a refcount use after free warning due to a race on command entry. Such race occurs when one of the commands releases its last refcount and frees its index and entry while another process running command flush flow takes refcount to this command entry. The process which handles commands flush may see this command as needed to be flushed if the other process released its refcount but didn't release the index yet. Fix it by adding the needed spin lock.

It fixes the following warning trace:

refcountt: addition on 0; use-after-free. WARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcountwarnsaturate+0x80/0xe0 ... RIP: 0010:refcountwarnsaturate+0x80/0xe0 ... Call Trace: <TASK> mlx5cmdtriggercompletions+0x293/0x340 [mlx5core] mlx5cmdflush+0x3a/0xf0 [mlx5core] entererrorstate+0x44/0x80 [mlx5core] mlx5fwfatalreportererrwork+0x37/0xe0 [mlx5core] processonework+0x1be/0x390 workerthread+0x4d/0x3d0 ? rescuerthread+0x350/0x350 kthread+0x141/0x160 ? setkthreadstruct+0x40/0x40 retfrom_fork+0x1f/0x30 </TASK>

References

Affected packages