Skip to content
Heist/ feed
High

uio_hv_generic: Let userspace take care of interrupt mask

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: uio_hv_generic: Let userspace take care of interrupt mask Remove the logic to set interrupt mask by default in uio_hv_generic driver as the interrupt mask value is supposed to be controlled completely by the user space. If the mask bit gets changed by the driver, concurrently with user mode operating on the ring, the mask bit may be set when it is supposed to be clear, and the user-mode driver will miss an interrupt which will cause a hang. For eg- when the driver sets inbound ring buffer interrupt mask to 1, the host does not interrupt the guest on the UIO VMBus channel. However, setting the mask does not prevent the host from putting a message in the inbound ring buffer. So let’s assume that happens, the host puts a message into the ring buffer but does not interrupt. Subsequently, the user space code in the guest sets the inbound ring buffer interrupt mask to 0, saying “Hey, I’m ready for interrupts”. User space code then calls pread() to wait for an interrupt. Then one of two things happens: * The host never sends another message. So the pread() waits forever. * The host does send another message. But because there’s already a message in the ring buffer, it doesn’t generate an interrupt. This is the correct behavior, because the host should only send an interrupt when the inbound ring buffer transitions from empty to not-empty. Adding an additional message to a ring buffer that is not empty is not suppose

Announced Source revision 1
Original source ↗

CVE-2025-40048

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-40048

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "540aac117eaea5723cef5e4cbf3035c4ac654d92",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "65d40acd911c7011745cbbd2aaac34eb5266d11e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "a44f61f878f32071d6378e8dd7c2d47f9490c8f7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "01ce972e6f9974a7c76943bcb7e93746917db83a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "2af39ab5e6dc46b835a52e80a22d0cad430985e3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "37bd91f22794dc05436130d6983302cb90ecfe7e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "e29587c07537929684faa365027f4b0d87521e1b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95096f2fbd10186d3e78a328b327afc71428f65f",
        "lessThan": "b15b7d2a1b09ef5428a8db260251897405a19496",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/uio/uio_hv_generic.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.10",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.4.301",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.246",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.195",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.156",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.53",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.17.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.17.*"
      },
      {
        "status": "unaffected",
        "version": "6.18",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/uio/uio_hv_generic.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-40048

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30665 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement