CVE-2022-48858

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48858
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48858.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48858
Related
Published
2024-07-16T13:15:12Z
Modified
2024-09-18T03:22:38.657763Z
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

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.106-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1
5.10.84-1
5.10.92-1~bpo10+1
5.10.92-1
5.10.92-2
5.10.103-1~bpo10+1
5.10.103-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.16.18-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.16.18-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}