跳转到帖子

Huawei EulerOS: CVE-2021-47416: kernel security update

recommended_posts

发布于
  • Members

Huawei EulerOS: CVE-2021-47416: kernel security update

Severity
5
CVSS
(AV:L/AC:L/Au:S/C:N/I:N/A:C)
Published
05/21/2024
Created
10/09/2024
Added
10/08/2024
Modified
01/28/2025

Description

In the Linux kernel, the following vulnerability has been resolved: phy: mdio: fix memory leak Syzbot reported memory leak in MDIO bus interface, the problem was in wrong state logic. MDIOBUS_ALLOCATED indicates 2 states: 1. Bus is only allocated 2. Bus allocated and __mdiobus_register() fails, but device_register() was called In case of device_register() has been called we should call put_device() to correctly free the memory allocated for this device, but mdiobus_free() calls just kfree(dev) in case of MDIOBUS_ALLOCATED state To avoid this behaviour we need to set bus->state to MDIOBUS_UNREGISTERED _before_ calling device_register(), because put_device() should be called even in case of device_register() failure.

Solution(s)

  • huawei-euleros-2_0_sp9-upgrade-kernel
  • huawei-euleros-2_0_sp9-upgrade-kernel-tools
  • huawei-euleros-2_0_sp9-upgrade-kernel-tools-libs
  • huawei-euleros-2_0_sp9-upgrade-python3-perf

References

  • https://attackerkb.com/topics/cve-2021-47416
  • CVE - 2021-47416
  • EulerOS-SA-2024-2394
  • 查看数 702
  • 已创建
  • 最后回复