In the Linux kernel, the following vulnerability has been resolved:
xen/netback: avoid entering xenvifrxnext_skb() with an empty rx queue
xenvifrxnextskb() is expecting the rx queue not being empty, but in case the loop in xenvifrx_action() is doing multiple iterations, the availability of another skb in the rx queue is not being checked.
This can lead to crashes:
[40072.537261] BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 [40072.537407] IP: xenvifrxskb+0x23/0x590 [xennetback] [40072.537534] PGD 0 P4D 0 [40072.537644] Oops: 0000 [#1] SMP NOPTI [40072.537749] CPU: 0 PID: 12505 Comm: v1-c40247-q2-gu Not tainted 4.12.14-122.121-default #1 SLE12-SP5 [40072.537867] Hardware name: HP ProLiant DL580 Gen9/ProLiant DL580 Gen9, BIOS U17 11/23/2021 [40072.537999] task: ffff880433b38100 task.stack: ffffc90043d40000 [40072.538112] RIP: e030:xenvifrxskb+0x23/0x590 [xennetback] [40072.538217] RSP: e02b:ffffc90043d43de0 EFLAGS: 00010246 [40072.538319] RAX: 0000000000000000 RBX: ffffc90043cd7cd0 RCX: 00000000000000f7 [40072.538430] RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffffc90043d43df8 [40072.538531] RBP: 000000000000003f R08: 000077ff80000000 R09: 0000000000000008 [40072.538644] R10: 0000000000007ff0 R11: 00000000000008f6 R12: ffffc90043ce2708 [40072.538745] R13: 0000000000000000 R14: ffffc90043d43ed0 R15: ffff88043ea748c0 [40072.538861] FS: 0000000000000000(0000) GS:ffff880484600000(0000) knlGS:0000000000000000 [40072.538988] CS: e033 DS: 0000 ES: 0000 CR0: 0000000080050033 [40072.539088] CR2: 0000000000000080 CR3: 0000000407ac8000 CR4: 0000000000040660 [40072.539211] Call Trace: [40072.539319] xenvifrxaction+0x71/0x90 [xennetback] [40072.539429] xenvifkthreadguestrx+0x14a/0x29c [xen_netback]
Fix that by stopping the loop in case the rx queue becomes empty.
[
{
"id": "CVE-2022-49649-0d187b22",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a071aefd6414af5a20321ab58a0557b81993687",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-28030edb",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0b5c819b062df8bf5f2acf4697e3871cb3722da",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-2fe627c9",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94e8100678889ab428e68acadf042de723f094b9",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-3274b32c",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9c32a6886af79d6e0ad87a7b01800ed079cdd02",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-373fe001",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0b5c819b062df8bf5f2acf4697e3871cb3722da",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-3dcdc590",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94e8100678889ab428e68acadf042de723f094b9",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-46e55823",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7425479d20f9e96f7c3ec8e8a93fe0d7478724cb",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-92739e30",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5320c6a27aa975aff740f9cb481dcbde48f4348",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-9bf2b2ad",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0fcceb5f3f1ec197c014fe218c2f28108cacd27",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-9d83ff18",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7425479d20f9e96f7c3ec8e8a93fe0d7478724cb",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-a6b1ee25",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b99174ac57fe5d8867448c03b23828e63f24cb1c",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-bc9ca8a7",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b99174ac57fe5d8867448c03b23828e63f24cb1c",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-be1492ec",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9c32a6886af79d6e0ad87a7b01800ed079cdd02",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-bf2d531a",
"signature_type": "Line",
"digest": {
"line_hashes": [
"206848373878657883206831122107319201091",
"249151951939683457287393753289435129151",
"312864141351454427151502757647836013513",
"147973258530958165577833990789556690092"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c0fcceb5f3f1ec197c014fe218c2f28108cacd27",
"target": {
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-f4e5c7ab",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5a071aefd6414af5a20321ab58a0557b81993687",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
},
{
"id": "CVE-2022-49649-f50830be",
"signature_type": "Function",
"digest": {
"length": 240.0,
"function_hash": "171247541650320979841746791421247119979"
},
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d5320c6a27aa975aff740f9cb481dcbde48f4348",
"target": {
"function": "xenvif_rx_action",
"file": "drivers/net/xen-netback/rx.c"
}
}
]