CVE-2022-48648
Assigner: Linux
Published: 2024-04-28T13:00:28.994Z
State: PUBLISHED
descriptions: value: In the Linux kernel, the following vulnerability has been resolved:

sfc: fix null pointer dereference in efx_hard_start_xmit

Trying to get the channel from the tx_queue variable here is wrong
because we can only be here if tx_queue is NULL, so we shouldn't
dereference it. As the above comment in the code says, this is very
unlikely to happen, but it's wrong anyway so let's fix it.

I hit this issue because of a different bug that caused tx_queue to be
NULL. If that happens, this is the error message that we get here:
  BUG: unable to handle kernel NULL pointer dereference at 0000000000000020
  [...]
  RIP: 0010:efx_hard_start_xmit+0x153/0x170 [sfc]
affected: product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 12804793b17c
lessThan: b3b41d4d95d3
status: affected
versionType: git
version: 12804793b17c
lessThan: 8547c7bfc061
status: affected
versionType: git
version: 12804793b17c
lessThan: b3b952168ee1
status: affected
versionType: git
version: 12804793b17c
lessThan: 0a242eb2913a
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 5.10
status: affected
version: 0
lessThan: 5.10
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
title: sfc: fix null pointer dereference in efx_hard_start_xmit
x_generator: engine: bippy-d175d3acf727