Bug 2338851 (CVE-2024-57925) - CVE-2024-57925 kernel: ksmbd: fix a missing return value check bug
Summary: CVE-2024-57925 kernel: ksmbd: fix a missing return value check bug
Keywords:
Status: NEW
Alias: CVE-2024-57925
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-19 12:02 UTC by OSIDB Bzimport
Modified: 2025-03-03 02:06 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-19 12:02:17 UTC
In the Linux kernel, the following vulnerability has been resolved:

ksmbd: fix a missing return value check bug

In the smb2_send_interim_resp(), if ksmbd_alloc_work_struct()
fails to allocate a node, it returns a NULL pointer to the
in_work pointer. This can lead to an illegal memory write of
in_work->response_buf when allocate_interim_rsp_buf() attempts
to perform a kzalloc() on it.

To address this issue, incorporating a check for the return
value of ksmbd_alloc_work_struct() ensures that the function
returns immediately upon allocation failure, thereby preventing
the aforementioned illegal memory access.

Comment 1 Avinash Hanwate 2025-01-20 05:08:14 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025011944-CVE-2024-57925-b738@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.