Shellfeed logo Shellfeed

CVE-2026-68331 · UNKNOWN

Summary: dpaa2-eth: put MAC endpoint device on disconnect

Details

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

dpaa2-eth: put MAC endpoint device on disconnect

fsl_mc_get_endpoint() returns the MAC endpoint device with a reference
taken through device_find_child(). The Ethernet connect path stores that
device in mac->mc_dev and keeps it for the lifetime of the connected MAC
object.

However, the disconnect path only disconnects and closes the MAC before
freeing the dpaa2_mac object. It does not drop the endpoint device
reference stored in mac->mc_dev, so every successful connect leaks that
device reference when the MAC is later disconnected.

Drop the endpoint device reference after closing the MAC and before
freeing the dpaa2_mac object.

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [71947923089353f23f4f210864903c4dcf2c1696 – 6b6ffdb9ca4547a3c4c274aa3e25b6c68dbc62e1]
  • Linux Kernel [5.5.0 – 5.15.216] [5.16.0 – 6.1.183] [6.2.0 – 6.6.148] [6.7.0 – 6.12.101] [6.13.0 – 6.18.42] [6.19.0 – 7.1.6]

References