{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3aa31a8bb11e47c0ff2b306988d1756b810c1c3c"
            },
            {
              "fixed": "49698d8985e029879a3b3df60d5d6b5e92aa4c45"
            },
            {
              "fixed": "052947a3b5e7402eaad53379dfec2ecab27a2d80"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143388.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: Restore the scatterlist entry count before freeing\n\ndma_buf_phys_vec_to_sgt() clears orig_nents to mark the returned table\nas DMA-only. Since sg_free_table() uses orig_nents to walk and free the\nscatterlist, dma_buf_free_sgt() leaks the allocation on every successful\nmap/unmap cycle.\n\nRestore orig_nents from nents before freeing the table. The helper\nallocates the DMA list directly, so nents retains the allocation count,\nincluding for chained scatterlists.\n\nThe reported kmemleak output was:\n\nKMEMLEAK LEAK: 2 driver-related leak(s)\nKMEMLEAK LEAK: unreferenced object 0xff11000125ceff00 (size 32):\nKMEMLEAK LEAK:   comm dtr, pid 4432, jiffies 4295031027\nKMEMLEAK LEAK:   hex dump (first 32 bytes):\nKMEMLEAK LEAK:     02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\nKMEMLEAK LEAK:     00 00 01 00 28 38 00 00 00 10 00 00 00 00 00 00  ....(8..........\nKMEMLEAK LEAK:   backtrace (crc 4e8077f2):\nKMEMLEAK LEAK:     __kmalloc_noprof+0x451/0x8b0\nKMEMLEAK LEAK:     __sg_alloc_table+0x2a0/0x4d0\nKMEMLEAK LEAK:     sg_alloc_table+0x24/0x170\nKMEMLEAK LEAK:     dma_buf_phys_vec_to_sgt+0x84f/0xed0\nKMEMLEAK LEAK:     0xffffffffa1ad21a8\nKMEMLEAK LEAK:     dma_buf_map_attachment+0x138/0x690\nKMEMLEAK LEAK:     ib_umem_dmabuf_map_pages+0x249/0xc90 [ib_core]\nKMEMLEAK LEAK:     0xffffffffa138f8d2\nKMEMLEAK LEAK:     0xffffffffa1396abe\nKMEMLEAK LEAK:     0xffffffffa1331a5f\nKMEMLEAK LEAK:     0xffffffffa13320dd\nKMEMLEAK LEAK:     0xffffffffa1ad696d\nKMEMLEAK LEAK:     0xffffffffa1acecc7\nKMEMLEAK LEAK:     0xffffffffa1acfd17\nKMEMLEAK LEAK:     __x64_sys_ioctl+0x72c/0x11f0\nKMEMLEAK LEAK:     do_syscall_64+0xa1/0x4f0\nKMEMLEAK LEAK: unreferenced object 0xff1100016dbf3a80 (size 32):\nKMEMLEAK LEAK:   comm dtr, pid 4432, jiffies 4295034705\nKMEMLEAK LEAK:   hex dump (first 32 bytes):\nKMEMLEAK LEAK:     02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................\nKMEMLEAK LEAK:     00 20 10 00 28 38 00 00 00 10 00 00 00 00 00 00  . ..(8..........",
  "id": "CVE-2026-143388",
  "modified": "2026-12-03T10:45:19.711091850Z",
  "published": "2026-12-03T09:22:32.173Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/052947a3b5e7402eaad53379dfec2ecab27a2d80"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/49698d8985e029879a3b3df60d5d6b5e92aa4c45"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143388.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143388"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "dma-buf: Restore the scatterlist entry count before freeing"
}