In the Linux kernel, the following vulnerability has been resolved:
macvlan: enforce a consistent minimal mtu
macvlan should enforce a minimal mtu of 68, even at link creation.
This patch avoids the current behavior (which could lead to crashes in ipv6 stack if the link is brought up)
$ ip link add macvlan1 link eno1 mtu 8 type macvlan # This should fail ! $ ip link sh dev macvlan1 5: macvlan1@eno1: <BROADCAST,MULTICAST> mtu 8 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 02:47:6c:24:74:82 brd ff:ff:ff:ff:ff:ff $ ip link set macvlan1 mtu 67 Error: mtu less than device minimum. $ ip link set macvlan1 mtu 68 $ ip link set macvlan1 mtu 8 Error: mtu less than device minimum.
[
{
"id": "CVE-2022-49776-053ad293",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a62aa84fe19eb24d083d600a074c009a0a66d4f3",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-2d2346e4",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b64085b00044bdf3cd1c9825e9ef5b2e0feae91a",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-55ef3ca0",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2fee7d121d189c6dc905b727d60e7043a6655bb",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-73d87d00",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e41cbf98df22d08402e65174d147cbb187fe1a33",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-7f7b3131",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e929ec98c0c3b10d9c07f3776df0c1a02d7a763e",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-7fbf9d74",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@650137a7c0b2892df2e5b0bc112d7b09a78c93c8",
"signature_type": "Line"
},
{
"id": "CVE-2022-49776-90f46c12",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 398.0,
"function_hash": "271673888949635510083209350859640719082"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e929ec98c0c3b10d9c07f3776df0c1a02d7a763e",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-9bc69881",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 398.0,
"function_hash": "271673888949635510083209350859640719082"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a62aa84fe19eb24d083d600a074c009a0a66d4f3",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-aa2b18a3",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 398.0,
"function_hash": "271673888949635510083209350859640719082"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e41cbf98df22d08402e65174d147cbb187fe1a33",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-b40a0d61",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 398.0,
"function_hash": "271673888949635510083209350859640719082"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@650137a7c0b2892df2e5b0bc112d7b09a78c93c8",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-b711d7c4",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 398.0,
"function_hash": "271673888949635510083209350859640719082"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2fee7d121d189c6dc905b727d60e7043a6655bb",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-bf92ae40",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 468.0,
"function_hash": "162282687950036815467186866725632160232"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b055c719d8f94c15ec9b7659978133030c6a353",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-c0038d2d",
"target": {
"function": "macvlan_common_setup",
"file": "drivers/net/macvlan.c"
},
"digest": {
"length": 468.0,
"function_hash": "162282687950036815467186866725632160232"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b64085b00044bdf3cd1c9825e9ef5b2e0feae91a",
"signature_type": "Function"
},
{
"id": "CVE-2022-49776-d8d0c7f6",
"target": {
"file": "drivers/net/macvlan.c"
},
"digest": {
"line_hashes": [
"246184779820484963954449858358793711273",
"324442809480780364999861778363058775792",
"22101365710017921638625194257378862187",
"107252930616418701027183340462264449536"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b055c719d8f94c15ec9b7659978133030c6a353",
"signature_type": "Line"
}
]