CVE-2024-50152CWE-415

CVE-2024-50152

Critical · published November 7, 2024

CVSS v3.1
9.8
EPSS
0%
Percentile
40.5
In the wild
Unconfirmed
What it is

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

smb: client: fix possible double free in smb2_set_ea()

Clang static checker(scan-build) warning:

fs/smb/client/smb2ops.c:1304:2: Attempt to free released memory.

1304 | kfree(ea);

| ^~~~~~~~~

There is a double free in such case:

'ea is initialized to NULL' -> 'first successful memory allocation for

ea' -> 'something failed, goto sea_exit' -> 'first memory release for ea'

-> 'goto replay_again' -> 'second goto sea_exit before allocate memory

for ea' -> 'second memory release for ea resulted in double free'.

Re-initialie 'ea' to NULL near to the replay_again label, it can fix this

double free problem.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00481 · 40.5th percentile
Weakness
CWE-415 · Double Free
Published
2024-11-07T15:15Z
Affected products (5)
ProductVersionsFixed in
linux/linux_kernel≥ 6.6.32, < 6.6.596.6.59
linux/linux_kernel≥ 6.8, < 6.11.66.11.6
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (3)
EPSS history
Timeline
  • 07 NOV 09:31Z
    smb: client: fix possible double free in smb2_set_ea()
    cvelistv5