{"id":"CVE-2024-56701","summary":"powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore","details":"In the Linux kernel, the following vulnerability has been resolved:\n\npowerpc/pseries: Fix dtl_access_lock to be a rw_semaphore\n\nThe dtl_access_lock needs to be a rw_sempahore, a sleeping lock, because\nthe code calls kmalloc() while holding it, which can sleep:\n\n  # echo 1 \u003e /proc/powerpc/vcpudispatch_stats\n  BUG: sleeping function called from invalid context at include/linux/sched/mm.h:337\n  in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 199, name: sh\n  preempt_count: 1, expected: 0\n  3 locks held by sh/199:\n   #0: c00000000a0743f8 (sb_writers#3){.+.+}-{0:0}, at: vfs_write+0x324/0x438\n   #1: c0000000028c7058 (dtl_enable_mutex){+.+.}-{3:3}, at: vcpudispatch_stats_write+0xd4/0x5f4\n   #2: c0000000028c70b8 (dtl_access_lock){+.+.}-{2:2}, at: vcpudispatch_stats_write+0x220/0x5f4\n  CPU: 0 PID: 199 Comm: sh Not tainted 6.10.0-rc4 #152\n  Hardware name: IBM pSeries (emulated by qemu) POWER9 (raw) 0x4e1202 0xf000005 of:SLOF,HEAD hv:linux,kvm pSeries\n  Call Trace:\n    dump_stack_lvl+0x130/0x148 (unreliable)\n    __might_resched+0x174/0x410\n    kmem_cache_alloc_noprof+0x340/0x3d0\n    alloc_dtl_buffers+0x124/0x1ac\n    vcpudispatch_stats_write+0x2a8/0x5f4\n    proc_reg_write+0xf4/0x150\n    vfs_write+0xfc/0x438\n    ksys_write+0x88/0x148\n    system_call_exception+0x1c4/0x5a0\n    system_call_common+0xf4/0x258","modified":"2026-04-02T12:25:09.763557Z","published":"2024-12-28T09:46:23.516Z","related":["SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0556-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0577-1","SUSE-SU-2025:0577-2","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7276-1","USN-7277-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56701.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/525e18f1ba7c2b098c8ba587fb397efb34a6574c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6956c0e7346ce1bbfc726755aa8da10d26e84276"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a246daa26b717e755ccc9061f47f7cd1c0b358dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b125d0cf1adde7b2b47d7337fed7e9133eea3463"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cadae3a45d23aa4f6485938a67cbc47aaaa25e38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f6ec133668757f84e5143f1eb141fd0b83778b9e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fa5b5ea257135e771b489c83a2e93b5935d0108e"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56701.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56701"},{"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":"06220d78f24a20549757be1014e57c382406cc92"},{"fixed":"6956c0e7346ce1bbfc726755aa8da10d26e84276"},{"fixed":"f6ec133668757f84e5143f1eb141fd0b83778b9e"},{"fixed":"fa5b5ea257135e771b489c83a2e93b5935d0108e"},{"fixed":"a246daa26b717e755ccc9061f47f7cd1c0b358dd"},{"fixed":"b125d0cf1adde7b2b47d7337fed7e9133eea3463"},{"fixed":"525e18f1ba7c2b098c8ba587fb397efb34a6574c"},{"fixed":"cadae3a45d23aa4f6485938a67cbc47aaaa25e38"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-56701.json"}}],"schema_version":"1.7.5"}