Bug 2266427 (CVE-2021-46914) - CVE-2021-46914 kernel: unbalanced device enable/disable in suspend/resume
Summary: CVE-2021-46914 kernel: unbalanced device enable/disable in suspend/resume
Keywords:
Status: NEW
Alias: CVE-2021-46914
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2266428
Blocks: 2266369
TreeView+ depends on / blocked
 
Reported: 2024-02-27 19:43 UTC by Rohit Keshri
Modified: 2024-03-26 18:33 UTC (History)
49 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2024-02-27 19:43:20 UTC
In the Linux kernel, the following vulnerability has been resolved:

ixgbe: fix unbalanced device enable/disable in suspend/resume

pci_disable_device() called in __ixgbe_shutdown() decreases
dev->enable_cnt by 1. pci_enable_device_mem() which increases
dev->enable_cnt by 1, was removed from ixgbe_resume() in commit
6f82b2558735 ("ixgbe: use generic power management"). This caused
unbalanced increase/decrease. So add pci_enable_device_mem() back.

Fix the following call trace.

  ixgbe 0000:17:00.1: disabling already-disabled device
  Call Trace:
   __ixgbe_shutdown+0x10a/0x1e0 [ixgbe]
   ixgbe_suspend+0x32/0x70 [ixgbe]
   pci_pm_suspend+0x87/0x160
   ? pci_pm_freeze+0xd0/0xd0
   dpm_run_callback+0x42/0x170
   __device_suspend+0x114/0x460
   async_suspend+0x1f/0xa0
   async_run_entry_fn+0x3c/0xf0
   process_one_work+0x1dd/0x410
   worker_thread+0x34/0x3f0
   ? cancel_delayed_work+0x90/0x90
   kthread+0x14c/0x170
   ? kthread_park+0x90/0x90
   ret_from_fork+0x1f/0x30

https://git.kernel.org/stable/c/be07581aacae7cd0a073afae8e8862032f794309
https://git.kernel.org/stable/c/debb9df311582c83fe369baa35fa4b92e8a9c58a
https://git.kernel.org/stable/c/f1b4be4a753caa4056496f679d70550d0c11a264

Comment 1 Rohit Keshri 2024-02-27 19:46:17 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2266428]

Comment 3 Justin M. Forbes 2024-02-27 23:01:33 UTC
This was fixed for Fedora with the 5.11.16 stable kernel updates.


Note You need to log in before you can comment on or make changes to this bug.