CVE-2024-49855

nbd: fix race between timeout and normal completion

CRITICAL 9.8

At a glance

Source
NVD
EPSS
EPSS 0.46 % · percentile 40 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: nbd: fix race between timeout and normal completion If request timetout is handled by nbd_requeue_cmd(), normal completion has to be stopped for avoiding to complete this requeued request, other use-after-free can be triggered. Fix the race by clearing NBD_CMD_INFLIGHT in nbd_requeue_cmd(), meantime make sure that cmd->lock is grabbed for clearing the flag and the requeue.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1CRITICAL 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.0CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 2895f1831e911ca87d4efdf43e35eb72a0c7e66e < 9c25faf72d780a9c71081710cd48759d61ff6e9b ; affected 2895f1831e911ca87d4efdf43e35eb72a0c7e66e < 6e73b946a379a1dfbb62626af93843bdfb53753d ; affected 2895f1831e911ca87d4efdf43e35eb72a0c7e66e < 5236ada8ebbd9e7461f17477357582f5be4f46f7 ; affected 2895f1831e911ca87d4efdf43e35eb72a0c7e66e < 9a74c3e6c0d686c26ba2aab66d15ddb89dc139cc ; affected 2895f1831e911ca87d4efdf43e35eb72a0c7e66e < c9ea57c91f03bcad415e1a20113bdb2077bcf990 ; affected cdf62c535a9bfd5ff0eef4b91669da39d8abc0c3
Linux · Linuxaffected 5.19 ; unaffected 0 < 5.19 ; unaffected 6.1.113 ≤ 6.1.* ; unaffected 6.6.54 ≤ 6.6.* ; unaffected 6.10.13 ≤ 6.10.* ; unaffected 6.11.2 ≤ 6.11.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD