cifs: prevent use-after-free by freeing the cfile later
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: prevent use-after-free by freeing the cfile later
In smb2_compound_op we have a possible use-after-free which can cause hard to debug problems later on.
This was revealed during stress testing with KASAN enabled kernel. Fixing it by moving the cfile free call to a few lines below, after the usage.
From the CVE record · Linux
The Linux kernel's CIFS smb2_compound_op can use a cfile after it has been freed, potentially causing problems later. The issue was found during stress testing with KASAN enabled; the input does not establish how an attacker could trigger it or what access they would need.
Engineers running Linux kernels with CIFS should check their kernel versions; affected versions are not specified.