octeontx2-af: avoid off-by-one read from userspace
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3a2eb515d1367c0f667b76089a6e727279c688b8 · < f299ee709fb45036454ca11e90cb2810fe771878| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
octeontx2-af: avoid off-by-one read from userspace
We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead.
From the CVE record · Linux
The Linux kernel's octeontx2-af component copies one byte beyond the verified userspace buffer when given a buffer of count bytes. A local user supplying that buffer can trigger the off-by-one read; the input does not establish any further impact.
Engineers running Linux kernels with octeontx2-af should check their installations; affected versions are not specified.