Skip to content
Heist/ feed
Back to feed
MediumFix available

net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link When using a fixed-link, the altr_tse_pcs driver crashes due to null-pointer dereference as no phy_device is provided to tse_pcs_fix_mac_speed function. Fix this by adding a check for phy_dev before calling the tse_pcs_fix_mac_speed() function. Also clean up the tse_pcs_fix_mac_speed function a bit. There is no need to check for splitter_base and sgmii_adapter_base because the driver will fail if these 2 variables are not derived from the device tree.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.112, 5.15.35, 5.17.4, 5.4.190
CVEs
CVE-2022-49061
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 00:48 UTC · Revision 1

Source evidence

net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link

core-osv · Original source

Published 26 Feb 2025, 01:54 UTC

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link When using a fixed-link, the altr_tse_pcs driver crashes due to null-pointer dereference as no phy_device is provided to tse_pcs_fix_mac_speed function. Fix this by adding a check for phy_dev before calling the tse_pcs_fix_mac_speed() function. Also clean up the tse_pcs_fix_mac_speed function a bit. There is no need to check for splitter_base and sgmii_adapter_base because the driver will fail if these 2 variables are not derived from the device tree.

osv:CVE-2022-49061

Kernel

Fixed versions: 5.4.190, 5.10.112, 5.15.35, 5.17.4

Complete source record
{
  "id": "fde4a66d3eef67bc5ac4c9d5b823eb6bf6b483b558698b90199dc4695be68863",
  "url": "https://osv.dev/vulnerability/CVE-2022-49061",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: ethernet: stmmac: fix altr_tse_pcs function when using a fixed-link When using a fixed-link, the altr_tse_pcs driver crashes due to null-pointer dereference as no phy_device is provided to tse_pcs_fix_mac_speed function. Fix this by adding a check for phy_dev before calling the tse_pcs_fix_mac_speed() function. Also clean up the tse_pcs_fix_mac_speed function a bit. There is no need to check for splitter_base and sgmii_adapter_base because the driver will fail if these 2 variables are not derived from the device tree.",
    "evidence": "osv:CVE-2022-49061",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.190",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.35",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-49061",
      "aliases": [
        "CVE-2022-49061"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "fb3bbdb859891e6bc27fd1afb3a07319f82c2ee4"
                },
                {
                  "fixed": "7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb"
                },
                {
                  "fixed": "08d5e3e954537931c8da7428034808d202e98299"
                },
                {
                  "fixed": "62a48383ebe2e159fd68425dd3e16d4c6bd6599a"
                },
                {
                  "fixed": "6c020f05253df04c3480b586fe188a3582740049"
                },
                {
                  "fixed": "a6aaa00324240967272b451bfa772547bd576ee6"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49061.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.8.0"
                },
                {
                  "fixed": "5.4.190"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.112"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.35"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.17.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49061.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.528894820Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/08d5e3e954537931c8da7428034808d202e98299",
        "https://git.kernel.org/stable/c/62a48383ebe2e159fd68425dd3e16d4c6bd6599a",
        "https://git.kernel.org/stable/c/6c020f05253df04c3480b586fe188a3582740049",
        "https://git.kernel.org/stable/c/7e59fdf9547c4f948d1d917ec7ffa5fb5ac53bdb",
        "https://git.kernel.org/stable/c/a6aaa00324240967272b451bfa772547bd576ee6",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49061.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49061",
        "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/2022/49xxx/CVE-2022-49061.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49061",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521091,
  "published_at": "2025-02-26T01:54:31.142+00:00"
}