Bug 1225762 (CVE-2024-36957) - VUL-0: CVE-2024-36957: kernel: octeontx2-af: avoid off-by-one read from userspace
Summary: VUL-0: CVE-2024-36957: kernel: octeontx2-af: avoid off-by-one read from users...
Status: IN_PROGRESS
Alias: CVE-2024-36957
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/408183/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36957:3.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-31 15:50 UTC by SMASH SMASH
Modified: 2024-07-08 15:09 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-31 15:50:59 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36957
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36957.mbox
https://git.kernel.org/stable/c/bcdac70adceb44373da204c3c297f2a98e13216e
https://git.kernel.org/stable/c/ec697fbd38cbe2eef0948b58673b146caa95402f
https://git.kernel.org/stable/c/8f11fe3ea3fc261640cfc8a5addd838000407c67
https://git.kernel.org/stable/c/0a0285cee11c7dcc2657bcd456e469958a5009e7
https://git.kernel.org/stable/c/fc3e0076c1f82fe981d321e3a7bad4cbee542c19
https://git.kernel.org/stable/c/f299ee709fb45036454ca11e90cb2810fe771878
https://www.cve.org/CVERecord?id=CVE-2024-36957
Comment 2 Ivan Ivanov 2024-06-20 08:14:45 UTC
Ah, I forgot to update status on this. Fix was merged in relevant branches.

Tag rpm-6.4.0-150600.21--SLE-15-SP6-Full-GM-2377-gd3dcfbbcbd2 contain the fix.

Back to security team.