{"api_version":"1","generated_at":"2026-12-03T13:40:18+00:00","cve":"CVE-2026-143388","urls":{"html":"https://cve.report/CVE-2026-143388","api":"https://cve.report/api/cve/CVE-2026-143388.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143388","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143388"},"summary":{"title":"dma-buf: Restore the scatterlist entry count before freeing","description":"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..........","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:32","updated_at":"2026-12-03 10:18:32"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/052947a3b5e7402eaad53379dfec2ecab27a2d80","name":"https://git.kernel.org/stable/c/052947a3b5e7402eaad53379dfec2ecab27a2d80","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/49698d8985e029879a3b3df60d5d6b5e92aa4c45","name":"https://git.kernel.org/stable/c/49698d8985e029879a3b3df60d5d6b5e92aa4c45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143388","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143388","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c 49698d8985e029879a3b3df60d5d6b5e92aa4c45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3aa31a8bb11e47c0ff2b306988d1756b810c1c3c 052947a3b5e7402eaad53379dfec2ecab27a2d80 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/dma-buf/dma-buf-mapping.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"49698d8985e029879a3b3df60d5d6b5e92aa4c45","status":"affected","version":"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c","versionType":"git"},{"lessThan":"052947a3b5e7402eaad53379dfec2ecab27a2d80","status":"affected","version":"3aa31a8bb11e47c0ff2b306988d1756b810c1c3c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/dma-buf/dma-buf-mapping.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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.........."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:32.173Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/49698d8985e029879a3b3df60d5d6b5e92aa4c45"},{"url":"https://git.kernel.org/stable/c/052947a3b5e7402eaad53379dfec2ecab27a2d80"}],"title":"dma-buf: Restore the scatterlist entry count before freeing","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143388","datePublished":"2026-12-03T09:22:32.173Z","dateReserved":"2026-12-03T03:10:28.372Z","dateUpdated":"2026-12-03T09:22:32.173Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:32","lastModifiedDate":"2026-12-03 10:18:32","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143388","Ordinal":"1","Title":"dma-buf: Restore the scatterlist entry count before freeing","CVE":"CVE-2026-143388","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143388","Ordinal":"1","NoteData":"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..........","Type":"Description","Title":"dma-buf: Restore the scatterlist entry count before freeing"}]}}}