CVE-2026-23164 (GCVE-0-2026-23164)

Vulnerability from cvelistv5 – Published: 2026-02-14 16:01 – Updated: 2026-02-14 16:01
VLAI?
Title
rocker: fix memory leak in rocker_world_port_post_fini()
Summary
In the Linux kernel, the following vulnerability has been resolved: rocker: fix memory leak in rocker_world_port_post_fini() In rocker_world_port_pre_init(), rocker_port->wpriv is allocated with kzalloc(wops->port_priv_size, GFP_KERNEL). However, in rocker_world_port_post_fini(), the memory is only freed when wops->port_post_fini callback is set: if (!wops->port_post_fini) return; wops->port_post_fini(rocker_port); kfree(rocker_port->wpriv); Since rocker_ofdpa_ops does not implement port_post_fini callback (it is NULL), the wpriv memory allocated for each port is never freed when ports are removed. This leads to a memory leak of sizeof(struct ofdpa_port) bytes per port on every device removal. Fix this by always calling kfree(rocker_port->wpriv) regardless of whether the port_post_fini callback exists.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < 2a3a64d75d2d0727da285749476761ebcad557a3 (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < b11e6f926480ab0939fec44781f28558c54be4e7 (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < 8ce2e85889939c02740b4245301aa5c35fc94887 (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < d448bf96889f1905e740c554780f5c9fa0440566 (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < d8723917efda3b4f4c3de78d1ec1e1af015c0be1 (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < dce375f4afc348c310d171abcde7ec1499a4c26a (git)
Affected: e420114eef4a3a5025a243b89b0dc343101e3d3c , < 8d7ba71e46216b8657a82ca2ec118bc93812a4d0 (git)
Create a notification for this product.
    Linux Linux Affected: 4.6
Unaffected: 0 , < 4.6 (semver)
Unaffected: 5.10.249 , ≤ 5.10.* (semver)
Unaffected: 5.15.199 , ≤ 5.15.* (semver)
Unaffected: 6.1.162 , ≤ 6.1.* (semver)
Unaffected: 6.6.123 , ≤ 6.6.* (semver)
Unaffected: 6.12.69 , ≤ 6.12.* (semver)
Unaffected: 6.18.9 , ≤ 6.18.* (semver)
Unaffected: 6.19 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/rocker/rocker_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "2a3a64d75d2d0727da285749476761ebcad557a3",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "b11e6f926480ab0939fec44781f28558c54be4e7",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "8ce2e85889939c02740b4245301aa5c35fc94887",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "d448bf96889f1905e740c554780f5c9fa0440566",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "d8723917efda3b4f4c3de78d1ec1e1af015c0be1",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "dce375f4afc348c310d171abcde7ec1499a4c26a",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            },
            {
              "lessThan": "8d7ba71e46216b8657a82ca2ec118bc93812a4d0",
              "status": "affected",
              "version": "e420114eef4a3a5025a243b89b0dc343101e3d3c",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/rocker/rocker_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.6"
            },
            {
              "lessThan": "4.6",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.249",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.199",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.162",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.123",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.69",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.249",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.199",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.162",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.123",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.69",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.9",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19",
                  "versionStartIncluding": "4.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrocker: fix memory leak in rocker_world_port_post_fini()\n\nIn rocker_world_port_pre_init(), rocker_port-\u003ewpriv is allocated with\nkzalloc(wops-\u003eport_priv_size, GFP_KERNEL). However, in\nrocker_world_port_post_fini(), the memory is only freed when\nwops-\u003eport_post_fini callback is set:\n\n    if (!wops-\u003eport_post_fini)\n        return;\n    wops-\u003eport_post_fini(rocker_port);\n    kfree(rocker_port-\u003ewpriv);\n\nSince rocker_ofdpa_ops does not implement port_post_fini callback\n(it is NULL), the wpriv memory allocated for each port is never freed\nwhen ports are removed. This leads to a memory leak of\nsizeof(struct ofdpa_port) bytes per port on every device removal.\n\nFix this by always calling kfree(rocker_port-\u003ewpriv) regardless of\nwhether the port_post_fini callback exists."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-02-14T16:01:28.624Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/2a3a64d75d2d0727da285749476761ebcad557a3"
        },
        {
          "url": "https://git.kernel.org/stable/c/b11e6f926480ab0939fec44781f28558c54be4e7"
        },
        {
          "url": "https://git.kernel.org/stable/c/8ce2e85889939c02740b4245301aa5c35fc94887"
        },
        {
          "url": "https://git.kernel.org/stable/c/d448bf96889f1905e740c554780f5c9fa0440566"
        },
        {
          "url": "https://git.kernel.org/stable/c/d8723917efda3b4f4c3de78d1ec1e1af015c0be1"
        },
        {
          "url": "https://git.kernel.org/stable/c/dce375f4afc348c310d171abcde7ec1499a4c26a"
        },
        {
          "url": "https://git.kernel.org/stable/c/8d7ba71e46216b8657a82ca2ec118bc93812a4d0"
        }
      ],
      "title": "rocker: fix memory leak in rocker_world_port_post_fini()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-23164",
    "datePublished": "2026-02-14T16:01:28.624Z",
    "dateReserved": "2026-01-13T15:37:45.980Z",
    "dateUpdated": "2026-02-14T16:01:28.624Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-23164\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-02-14T16:15:56.590\",\"lastModified\":\"2026-02-14T16:15:56.590\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nrocker: fix memory leak in rocker_world_port_post_fini()\\n\\nIn rocker_world_port_pre_init(), rocker_port-\u003ewpriv is allocated with\\nkzalloc(wops-\u003eport_priv_size, GFP_KERNEL). However, in\\nrocker_world_port_post_fini(), the memory is only freed when\\nwops-\u003eport_post_fini callback is set:\\n\\n    if (!wops-\u003eport_post_fini)\\n        return;\\n    wops-\u003eport_post_fini(rocker_port);\\n    kfree(rocker_port-\u003ewpriv);\\n\\nSince rocker_ofdpa_ops does not implement port_post_fini callback\\n(it is NULL), the wpriv memory allocated for each port is never freed\\nwhen ports are removed. This leads to a memory leak of\\nsizeof(struct ofdpa_port) bytes per port on every device removal.\\n\\nFix this by always calling kfree(rocker_port-\u003ewpriv) regardless of\\nwhether the port_post_fini callback exists.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/2a3a64d75d2d0727da285749476761ebcad557a3\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8ce2e85889939c02740b4245301aa5c35fc94887\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8d7ba71e46216b8657a82ca2ec118bc93812a4d0\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b11e6f926480ab0939fec44781f28558c54be4e7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d448bf96889f1905e740c554780f5c9fa0440566\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/d8723917efda3b4f4c3de78d1ec1e1af015c0be1\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/dce375f4afc348c310d171abcde7ec1499a4c26a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…