{"id":"CVE-2025-38095","summary":"dma-buf: insert memory barrier before updating num_fences","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndma-buf: insert memory barrier before updating num_fences\n\nsmp_store_mb() inserts memory barrier after storing operation.\nIt is different with what the comment is originally aiming so Null\npointer dereference can be happened if memory update is reordered.","modified":"2026-03-20T12:42:40.480842Z","published":"2025-07-03T07:44:18.214Z","related":["SUSE-SU-2025:02853-1","SUSE-SU-2025:02923-1","SUSE-SU-2025:02969-1","SUSE-SU-2025:02996-1","SUSE-SU-2025:02997-1","SUSE-SU-2025:03011-1","SUSE-SU-2025:03023-1","SUSE-SU-2025:20577-1","SUSE-SU-2025:20586-1","SUSE-SU-2025:20601-1","SUSE-SU-2025:20602-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38095.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/08680c4dadc6e736c75bc2409d833f03f9003c51"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3becc659f9cb76b481ad1fb71f54d5c8d6332d3f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/72c7d62583ebce7baeb61acce6057c361f73be4a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/90eb79c4ed98a4e24a62ccf61c199ab0f680fa8f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c9d2b9a80d06a58f37e0dc8c827075639b443927"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d0b7f11dd68b593bd970e5735be00e8d89bace30"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fe1bebd0edb22e3536cbc920ec713331d1367ad4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38095.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38095"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a590d0fdbaa56f482ff515e1040b6d9b1b200d63"},{"fixed":"90eb79c4ed98a4e24a62ccf61c199ab0f680fa8f"},{"fixed":"d0b7f11dd68b593bd970e5735be00e8d89bace30"},{"fixed":"3becc659f9cb76b481ad1fb71f54d5c8d6332d3f"},{"fixed":"c9d2b9a80d06a58f37e0dc8c827075639b443927"},{"fixed":"fe1bebd0edb22e3536cbc920ec713331d1367ad4"},{"fixed":"08680c4dadc6e736c75bc2409d833f03f9003c51"},{"fixed":"72c7d62583ebce7baeb61acce6057c361f73be4a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38095.json"}}],"schema_version":"1.7.5"}