# CVE-2022-49766: netlink: Bounds-check struct nlmsgerr creation

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2025-05-01T14:09:05.569Z
- Modified: 2026-11-05T20:17:09.297Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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)

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before aff4eb16f589c3af322a2582044bca365381fcd6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 710d21fdff9a98d621cd4e64167f3ef8af4e2fd1; 2.6.12 (not affected: before 2.6.12; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: before 6.0.10

## References

- <https://git.kernel.org/stable/c/aff4eb16f589c3af322a2582044bca365381fcd6> (patch)
- <https://git.kernel.org/stable/c/710d21fdff9a98d621cd4e64167f3ef8af4e2fd1> (patch)

## Sources

- CVE List: [CVE-2022-49766](https://www.cve.org/CVERecord?id=CVE-2022-49766), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49766](https://nvd.nist.gov/vuln/detail/CVE-2022-49766), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49766 · Whole record: https://cve.day/CVE-2022-49766.json · Rebuilt by cve.day 2026-11-25T22:58:20.859Z
