A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAlloca
Research is free — Hunters explains how the bug works, the root-cause code pattern, how the fix addresses it, and how to test whether a target is affected, in chat. Investigate & write exploit is a paid run — the engine reads the advisory and fix commits, then builds and validates a working proof-of-concept exploit with reproduction steps.
Details
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. The manipulation leads to memory corruption. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
The fix
No fix commit could be resolved for this advisory (it may reference an issue tracker or a non-GitHub patch). See the references below.
References
- ADVISORYhttps://vuldb.com/?id.303041
- REPORThttps://github.com/ARPANET-cybersecurity/vuldb/issues/2
- REPORThttps://github.com/pytorch/pytorch/issues/149821
- REPORThttps://github.com/pytorch/pytorch/issues/149821#issue-2940838975
- REPORThttps://github.com/pytorch/pytorch/issues/149821#issuecomment-2765311086
- REPORThttps://vuldb.com/?ctiid.303041
- EVIDENCEhttps://vuldb.com/?submit.525252