In the Linux kernel, the following vulnerability has been resolved:
netlink: Bounds-check struct nlmsgerr creation
In preparation for FORTIFYSOURCE doing bounds-check on memcpy(), switch from _nlmsgput to nlmsgput(), 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)
[
{
"deprecated": false,
"id": "CVE-2022-49766-370b0675",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@710d21fdff9a98d621cd4e64167f3ef8af4e2fd1",
"digest": {
"function_hash": "178669007950569858088285781513276958240",
"length": 1443.0
},
"target": {
"function": "call_ad",
"file": "net/netfilter/ipset/ip_set_core.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-4210fdae",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@710d21fdff9a98d621cd4e64167f3ef8af4e2fd1",
"digest": {
"line_hashes": [
"39362768650189187474581801803688176499",
"333121814354578449126840381745784907216",
"257577175633203964090447952089245404370",
"47493984966970182338477288586400616370",
"215634092764429293460809679245350804983",
"6995700185086699736945966218891815899",
"40477219359321686053634585160750775685",
"30901792548400389263842245455091748230"
],
"threshold": 0.9
},
"target": {
"file": "net/netfilter/ipset/ip_set_core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-775afdd1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@710d21fdff9a98d621cd4e64167f3ef8af4e2fd1",
"digest": {
"function_hash": "257690957626909789631281857629229177274",
"length": 992.0
},
"target": {
"function": "netlink_ack",
"file": "net/netlink/af_netlink.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-7d10d1c4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aff4eb16f589c3af322a2582044bca365381fcd6",
"digest": {
"line_hashes": [
"289148036063613929909441368719454626239",
"197493644735099033335798174126985131620",
"95303054456153514949680247410715257479",
"68041957679527895199996417759850830770",
"237269095686248186439795249930802267149",
"91414822079513818928086815018774420125",
"218607778532657836594376685036517704107",
"307896586668281957537618654197614205243"
],
"threshold": 0.9
},
"target": {
"file": "net/netlink/af_netlink.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-993e3032",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aff4eb16f589c3af322a2582044bca365381fcd6",
"digest": {
"line_hashes": [
"39362768650189187474581801803688176499",
"333121814354578449126840381745784907216",
"257577175633203964090447952089245404370",
"47493984966970182338477288586400616370",
"215634092764429293460809679245350804983",
"6995700185086699736945966218891815899",
"40477219359321686053634585160750775685",
"30901792548400389263842245455091748230"
],
"threshold": 0.9
},
"target": {
"file": "net/netfilter/ipset/ip_set_core.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-b307fab4",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aff4eb16f589c3af322a2582044bca365381fcd6",
"digest": {
"function_hash": "201595313101213015411882302453934800491",
"length": 1876.0
},
"target": {
"function": "netlink_ack",
"file": "net/netlink/af_netlink.c"
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-d185279b",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@710d21fdff9a98d621cd4e64167f3ef8af4e2fd1",
"digest": {
"line_hashes": [
"289148036063613929909441368719454626239",
"197493644735099033335798174126985131620",
"95303054456153514949680247410715257479",
"68041957679527895199996417759850830770",
"237269095686248186439795249930802267149",
"61661353051169040870614274555030387036",
"186604436156656811853220248334922204236",
"284820449927494370701167330197488122806"
],
"threshold": 0.9
},
"target": {
"file": "net/netlink/af_netlink.c"
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"id": "CVE-2022-49766-e5db5c96",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aff4eb16f589c3af322a2582044bca365381fcd6",
"digest": {
"function_hash": "178669007950569858088285781513276958240",
"length": 1443.0
},
"target": {
"function": "call_ad",
"file": "net/netfilter/ipset/ip_set_core.c"
},
"signature_type": "Function",
"signature_version": "v1"
}
]