CVE-2025-39979

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-39979
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39979.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39979
Downstream
Published
2025-10-15T07:55:59.609Z
Modified
2025-12-02T20:20:53.169672Z
Summary
net/mlx5: fs, fix UAF in flow counter release
Details

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

net/mlx5: fs, fix UAF in flow counter release

Fix a kernel trace [1] caused by releasing an HWS action of a local flow counter in mlx5cmdhwsdeletefte(), where the HWS action refcount and mutex were not initialized and the counter struct could already be freed when deleting the rule.

Fix it by adding the missing initializations and adding refcount for the local flow counter struct.

[1] Kernel log: Call Trace: <TASK> dumpstacklvl+0x34/0x48 mlx5fsputhwsaction.part.0.cold+0x21/0x94 [mlx5core] mlx5fcputhwsaction+0x96/0xad [mlx5core] mlx5fsdestroyfsactions+0x8b/0x152 [mlx5core] mlx5cmdhwsdeletefte+0x5a/0xa0 [mlx5core] delhwfte+0x1ce/0x260 [mlx5core] mlx5delflowrules+0x12d/0x240 [mlx5core] ? ttwuqueuewakelist+0xf4/0x110 mlx5ibdestroyflow+0x103/0x1b0 [mlx5ib] uverbsfreeflow+0x20/0x50 [ibuverbs] destroyhwidruobject+0x1b/0x50 [ibuverbs] uverbsdestroyuobject+0x34/0x1a0 [ibuverbs] uobjdestroy+0x3c/0x80 [ibuverbs] ibuverbsrunmethod+0x23e/0x360 [ibuverbs] ? uverbsfinalizeobject+0x60/0x60 [ibuverbs] ibuverbscmdverbs+0x14f/0x2c0 [ibuverbs] ? dottywrite+0x1a9/0x270 ? filettywrite.constprop.0+0x98/0xc0 ? newsyncwrite+0xfc/0x190 ibuverbsioctl+0xd7/0x160 [ibuverbs] _x64sysioctl+0x87/0xc0 dosyscall64+0x59/0x90

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39979.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b581f4266928d3b5d1bbe711e39623d9a1696091
Fixed
3c77f6d244188c3fb11f6aec40bbfe884f1803b5
Fixed
6043819e707cefb1c9e59d6e431dcfa735c4f975

Affected versions

v6.*

v6.13
v6.13-rc7
v6.14
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.14-rc5
v6.14-rc6
v6.14-rc7
v6.15
v6.15-rc1
v6.15-rc2
v6.15-rc3
v6.15-rc4
v6.15-rc5
v6.15-rc6
v6.15-rc7
v6.16
v6.16-rc1
v6.16-rc2
v6.16-rc3
v6.16-rc4
v6.16-rc5
v6.16-rc6
v6.16-rc7
v6.16.1
v6.16.2
v6.16.3
v6.16.4
v6.16.5
v6.16.6
v6.16.7
v6.16.8
v6.16.9
v6.17-rc1
v6.17-rc2
v6.17-rc3
v6.17-rc4
v6.17-rc5
v6.17-rc6

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.14.0
Fixed
6.16.10