{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99712",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99712"
  ],
  "published": "2026-11-20T05:52:17Z",
  "summary": "KVM: x86: Conditionally resched when restarting REP string emulation",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: x86: Conditionally resched when restarting REP string emulation\n\nWhen restarting emulation, e.g. of a REP-prefixed string instruction,\nconditionally reschedule as emulating guest writes can be deceptively slow\nand expensive, e.g. when shadow paging is in use and each write can trigger\nwrite tracking.\n\nIn a perfect world, restarting emulation (or not) would be less arbitrary,\ne.g. would honor not only host events (NEED_RESCHED, signals, etc.) but\nalso guest events (e.g. by checking kvm_vcpu_has_events()).  Unfortunately,\nas pointed out by Sashiko, pio_in_emulated()'s read-ahead logic is baked\ninto the restart logic, as KVM relies on restarting emulation to drain the\ncache and avoid duplicate reads from the I/O port.  I.e. re-entering the\nguest on kvm_vcpu_has_events() or __xfer_to_guest_mode_work_pending() would\nintroduce architecturally-incorrect, guest-visible changes.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99712"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3ad58cb4ec32dea14c915916c7298bf6c7903695"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8871ec66b296bf14f0c096efee42c65990a30b7f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2b1c87db0a2950fd63d62e33570910d3063e1b6c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/e74913838f4b93b5e23731cdcc09356d9697ec5b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c1293d2134c2d63741b197a1e5a6363894ed4bce"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/41a43510f77298d147a098eb182695d0001593c8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/5a5f9853a78c45927cd0814ae67c5ad8b5021bcc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ae85ac25eb671d174811cc3101549448671fd505"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z"
  }
}
