What’s Vulnerable › Vulnerabilities

CVE-2024-36957: octeontx2-af: avoid off-by-one read from userspace

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.217, 5.15.159, 6.1.91, 6.6.31. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-36957 or the next vulnerability affects your stack