Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48647
HistoryApr 28, 2024 - 1:00 p.m.

CVE-2022-48647 sfc: fix TX channel offset when using legacy interrupts

2024-04-2813:00:19
Linux
www.cve.org
6
linux kernel
sfc
vulnerability

AI Score

6.4

Confidence

Low

EPSS

0

Percentile

15.5%

In the Linux kernel, the following vulnerability has been resolved:

sfc: fix TX channel offset when using legacy interrupts

In legacy interrupt mode the tx_channel_offset was hardcoded to 1, but
that’s not correct if efx_sepparate_tx_channels is false. In that case,
the offset is 0 because the tx queues are in the single existing channel
at index 0, together with the rx queue.

Without this fix, as soon as you try to send any traffic, it tries to
get the tx queues from an uninitialized channel getting these errors:
WARNING: CPU: 1 PID: 0 at drivers/net/ethernet/sfc/tx.c:540 efx_hard_start_xmit+0x12e/0x170 [sfc]
[…]
RIP: 0010:efx_hard_start_xmit+0x12e/0x170 [sfc]
[…]
Call Trace:
<IRQ>
dev_hard_start_xmit+0xd7/0x230
sch_direct_xmit+0x9f/0x360
__dev_queue_xmit+0x890/0xa40
[…]
BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
[…]
RIP: 0010:efx_hard_start_xmit+0x153/0x170 [sfc]
[…]
Call Trace:
<IRQ>
dev_hard_start_xmit+0xd7/0x230
sch_direct_xmit+0x9f/0x360
__dev_queue_xmit+0x890/0xa40
[…]

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/sfc/efx_channels.c"
    ],
    "versions": [
      {
        "version": "bf2af9b24313",
        "lessThan": "b4afd3878f96",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "06cb7e134f8f",
        "lessThan": "360910b88d14",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c308dfd1b43e",
        "lessThan": "5f623a77cfc2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c308dfd1b43e",
        "lessThan": "f232af429565",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/sfc/efx_channels.c"
    ],
    "versions": [
      {
        "version": "5.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.146",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.71",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.19.12",
        "lessThanOrEqual": "5.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.0",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.4

Confidence

Low

EPSS

0

Percentile

15.5%