Skip to content
Heist/ feed
Back to feed
MediumFix available

linux — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2024-43834

In the Linux kernel, the following vulnerability has been resolved: xdp: fix invalid wait context of page_pool_destroy() If the driver uses a page pool, it creates a page pool with page_pool_create(). The reference count of page pool is 1 as default. A page pool will be destroyed only when a reference count reaches 0. page_pool_destroy() is used to destroy page pool, it decreases a reference count. When a page pool is destroyed, ->disconnect() is called, which is mem_allocator_disconnect(). This function internally acquires mutex_lock(). If the driver uses XDP, it registers a memory model with xdp_rxq_info_reg_mem_model(). The xdp_rxq_info_reg_mem_model() internally increases a page pool reference count if a memory model is a page pool. Now the reference count is 2. To destroy a page pool, the driver should call both page_pool_destroy() and xdp_unreg_mem_model(). The xdp_unreg_mem_model() internally calls page_pool_destroy(). Only page_pool_destroy() decreases a reference count. If a driver calls page_pool_destroy() then xdp_unreg_mem_model(), we will face an invalid wait context warning. Because xdp_unreg_mem_model() calls page_pool_destroy() with rcu_read_lock(). The page_pool_destroy() internally acquires mutex_lock(). Splat looks like: ============================= [ BUG: Invalid wait context ] 6.10.0-rc6+ #4 Tainted: G W ----------------------------- ethtool/1806 is trying to lock: ffffffff90387b90 (mem_id_lock){+.+.}-{4:4}, at: mem_allocator_disconnect+0x73/0x150 other

Products
linux
Affected versions
6.1.27-1, 6.1.37-1, 6.1.38-1, 6.1.38-2, 6.1.38-2~bpo11+1, 6.1.38-3, 6.1.38-4, 6.1.38-4~bpo11+1, 6.1.52-1, 6.1.55-1, 6.1.55-1~bpo11+1, 6.1.64-1, 6.1.66-1, 6.1.67-1, 6.1.69-1, 6.1.69-1~bpo11+1, 6.1.76-1, 6.1.76-1~bpo11+1, 6.1.82-1, 6.1.85-1, 6.1.90-1, 6.1.90-1~bpo11+1, 6.1.94-1, 6.1.94-1~bpo11+1, 6.1.98-1, 6.1.99-1
Fixed versions
6.1.106-1, 6.10.3-1
CVEs
CVE-2024-43834
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 16:43 UTC · Revision 1

Source evidence

DEBIAN-CVE-2024-43834

core-osv · Original source

Published 17 Aug 2024, 10:15 UTC

In the Linux kernel, the following vulnerability has been resolved: xdp: fix invalid wait context of page_pool_destroy() If the driver uses a page pool, it creates a page pool with page_pool_create(). The reference count of page pool is 1 as default. A page pool will be destroyed only when a reference count reaches 0. page_pool_destroy() is used to destroy page pool, it decreases a reference count. When a page pool is destroyed, ->disconnect() is called, which is mem_allocator_disconnect(). This function internally acquires mutex_lock(). If the driver uses XDP, it registers a memory model with xdp_rxq_info_reg_mem_model(). The xdp_rxq_info_reg_mem_model() internally increases a page pool reference count if a memory model is a page pool. Now the reference count is 2. To destroy a page pool, the driver should call both page_pool_destroy() and xdp_unreg_mem_model(). The xdp_unreg_mem_model() internally calls page_pool_destroy(). Only page_pool_destroy() decreases a reference count. If a driver calls page_pool_destroy() then xdp_unreg_mem_model(), we will face an invalid wait context warning. Because xdp_unreg_mem_model() calls page_pool_destroy() with rcu_read_lock(). The page_pool_destroy() internally acquires mutex_lock(). Splat looks like: ============================= [ BUG: Invalid wait context ] 6.10.0-rc6+ #4 Tainted: G W ----------------------------- ethtool/1806 is trying to lock: ffffffff90387b90 (mem_id_lock){+.+.}-{4:4}, at: mem_allocator_disconnect+0x73/0x150 other

osv:DEBIAN-CVE-2024-43834

linux

Fixed versions: 6.1.106-1

linux

Fixed versions: 6.10.3-1

linux

Fixed versions: 6.10.3-1

Complete source record
{
  "id": "e11212e80969fd5bb8e10cfe166e124fe6d25bfdda75e9479e5b74758f7e85a3",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2024-43834",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2024-43834",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: xdp: fix invalid wait context of page_pool_destroy() If the driver uses a page pool, it creates a page pool with page_pool_create(). The reference count of page pool is 1 as default. A page pool will be destroyed only when a reference count reaches 0. page_pool_destroy() is used to destroy page pool, it decreases a reference count. When a page pool is destroyed, ->disconnect() is called, which is mem_allocator_disconnect(). This function internally acquires mutex_lock(). If the driver uses XDP, it registers a memory model with xdp_rxq_info_reg_mem_model(). The xdp_rxq_info_reg_mem_model() internally increases a page pool reference count if a memory model is a page pool. Now the reference count is 2. To destroy a page pool, the driver should call both page_pool_destroy() and xdp_unreg_mem_model(). The xdp_unreg_mem_model() internally calls page_pool_destroy(). Only page_pool_destroy() decreases a reference count. If a driver calls page_pool_destroy() then xdp_unreg_mem_model(), we will face an invalid wait context warning. Because xdp_unreg_mem_model() calls page_pool_destroy() with rcu_read_lock(). The page_pool_destroy() internally acquires mutex_lock(). Splat looks like: ============================= [ BUG: Invalid wait context ] 6.10.0-rc6+ #4 Tainted: G W ----------------------------- ethtool/1806 is trying to lock: ffffffff90387b90 (mem_id_lock){+.+.}-{4:4}, at: mem_allocator_disconnect+0x73/0x150 other ",
    "evidence": "osv:DEBIAN-CVE-2024-43834",
    "products": [
      {
        "name": {
          "value": "linux",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.106-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "6.1.27-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.37-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-2~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.38-4~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.52-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.55-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.55-1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.64-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.66-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.67-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.69-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.69-1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.76-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.76-1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.82-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.85-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.90-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.90-1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.94-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.94-1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.98-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.1.99-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "linux",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.10.3-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "linux",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.10.3-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2024-43834",
      "aliases": [
        "DEBIAN-CVE-2024-43834"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.1.106-1"
                }
              ]
            }
          ],
          "package": {
            "name": "linux",
            "purl": "pkg:deb/debian/linux?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "6.1.27-1",
            "6.1.37-1",
            "6.1.38-1",
            "6.1.38-2",
            "6.1.38-2~bpo11+1",
            "6.1.38-3",
            "6.1.38-4",
            "6.1.38-4~bpo11+1",
            "6.1.52-1",
            "6.1.55-1",
            "6.1.55-1~bpo11+1",
            "6.1.64-1",
            "6.1.66-1",
            "6.1.67-1",
            "6.1.69-1",
            "6.1.69-1~bpo11+1",
            "6.1.76-1",
            "6.1.76-1~bpo11+1",
            "6.1.82-1",
            "6.1.85-1",
            "6.1.90-1",
            "6.1.90-1~bpo11+1",
            "6.1.94-1",
            "6.1.94-1~bpo11+1",
            "6.1.98-1",
            "6.1.99-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-43834.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.10.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "linux",
            "purl": "pkg:deb/debian/linux?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-43834.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.10.3-1"
                }
              ]
            }
          ],
          "package": {
            "name": "linux",
            "purl": "pkg:deb/debian/linux?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2024-43834.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T09:47:37.711246231Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-43834"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2024-43834"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-43834",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 328034,
  "published_at": "2024-08-17T10:15:09.113+00:00"
}