ovl: Use "buf" flexible array for memcpy() destination
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ovl: Use "buf" flexible array for memcpy() destination
The "buf" flexible array needs to be the memcpy() destination to avoid false positive run-time warning from the recent FORTIFY_SOURCE hardening:
memcpy: detected field-spanning write (size 93) of single field "&fh->fb" at fs/overlayfs/export.c:799 (size 21)
From the CVE record · Linux
The overlayfs export code uses the wrong destination for a memcpy(), triggering a false-positive runtime warning from FORTIFY_SOURCE hardening. The input does not describe an attacker-controlled outcome or specify access, authentication, or user-interaction conditions.
Engineers running the Linux kernel should check whether their version includes the overlayfs fix; affected versions are not specified.