Bug 2363478 (CVE-2022-49766) - CVE-2022-49766 kernel: netlink: Bounds-check struct nlmsgerr creation
Summary: CVE-2022-49766 kernel: netlink: Bounds-check struct nlmsgerr creation
Keywords:
Status: NEW
Alias: CVE-2022-49766
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 15:06 UTC by OSIDB Bzimport
Modified: 2025-07-10 17:09 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:06:16 UTC
In the Linux kernel, the following vulnerability has been resolved:

netlink: Bounds-check struct nlmsgerr creation

In preparation for FORTIFY_SOURCE doing bounds-check on memcpy(),
switch from __nlmsg_put to nlmsg_put(), and explain the bounds check
for dealing with the memcpy() across a composite flexible array struct.
Avoids this future run-time warning:

  memcpy: detected field-spanning write (size 32) of single field "&errmsg->msg" at net/netlink/af_netlink.c:2447 (size 16)

Comment 1 Avinash Hanwate 2025-05-02 05:12:30 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050114-CVE-2022-49766-7b16@gregkh/T


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