Skip to content
Heist/ feed
Back to feed
HighFix available

spi: mpc52xx: Add cancel_work_sync before module remove

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: spi: mpc52xx: Add cancel_work_sync before module remove If we remove the module which will call mpc52xx_spi_remove it will free 'ms' through spi_unregister_controller. while the work ms->work will be used. The sequence of operations that may lead to a UAF bug. Fix it by ensuring that the work is canceled before proceeding with the cleanup in mpc52xx_spi_remove.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.231, 5.15.174, 5.4.287, 6.1.120, 6.12.5, 6.6.66
CVEs
CVE-2024-50051
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:10 UTC · Revision 1

Source evidence

spi: mpc52xx: Add cancel_work_sync before module remove

core-osv · Original source

Published 11 Jan 2025, 12:25 UTC

In the Linux kernel, the following vulnerability has been resolved: spi: mpc52xx: Add cancel_work_sync before module remove If we remove the module which will call mpc52xx_spi_remove it will free 'ms' through spi_unregister_controller. while the work ms->work will be used. The sequence of operations that may lead to a UAF bug. Fix it by ensuring that the work is canceled before proceeding with the cleanup in mpc52xx_spi_remove.

osv:CVE-2024-50051

Kernel

Fixed versions: 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.66, 6.12.5

Complete source record
{
  "id": "59df54e00732953defba5257835470ee1ad508f43e1d191706779b36ca12cbd7",
  "url": "https://osv.dev/vulnerability/CVE-2024-50051",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "spi: mpc52xx: Add cancel_work_sync before module remove",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: spi: mpc52xx: Add cancel_work_sync before module remove If we remove the module which will call mpc52xx_spi_remove it will free 'ms' through spi_unregister_controller. while the work ms->work will be used. The sequence of operations that may lead to a UAF bug. Fix it by ensuring that the work is canceled before proceeding with the cleanup in mpc52xx_spi_remove.",
    "evidence": "osv:CVE-2024-50051",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.287",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.231",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.174",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.120",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.66",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-50051",
      "aliases": [
        "CVE-2024-50051"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "ca632f556697d45d67ed5cada7cedf3ddfe0db4b"
                },
                {
                  "fixed": "d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1"
                },
                {
                  "fixed": "e0c6ce8424095c2da32a063d3fc027494c689817"
                },
                {
                  "fixed": "cd5106c77d6d6828aa82449f01f4eb436d602a21"
                },
                {
                  "fixed": "373d55a47dc662e5e30d12ad5d334312f757c1f1"
                },
                {
                  "fixed": "f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59"
                },
                {
                  "fixed": "90b72189de2cddacb26250579da0510b29a8b82b"
                },
                {
                  "fixed": "984836621aad98802d92c4a3047114cf518074c8"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50051.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "3.1.0"
                },
                {
                  "fixed": "5.4.287"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.231"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.174"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.120"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.66"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50051.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.548466049Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/373d55a47dc662e5e30d12ad5d334312f757c1f1",
        "https://git.kernel.org/stable/c/90b72189de2cddacb26250579da0510b29a8b82b",
        "https://git.kernel.org/stable/c/984836621aad98802d92c4a3047114cf518074c8",
        "https://git.kernel.org/stable/c/cd5106c77d6d6828aa82449f01f4eb436d602a21",
        "https://git.kernel.org/stable/c/d0cde3911cf24e1bcdd4caa1d1b9ef57589db5a1",
        "https://git.kernel.org/stable/c/e0c6ce8424095c2da32a063d3fc027494c689817",
        "https://git.kernel.org/stable/c/f65d85bc1ffd8a2c194bb2cd65e35ed3648ddd59",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50051.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-50051",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50051.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-50051",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507854,
  "published_at": "2025-01-11T12:25:20.277+00:00"
}