{
  "id": "CVE-2025-71109",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-71109",
  "published_at": "2026-01-14T15:05:57.236Z",
  "title": "MIPS: ftrace: Fix memory corruption when kernel is located beyond 32 bits",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nMIPS: ftrace: Fix memory corruption when kernel is located beyond 32 bits\n\nSince commit e424054000878 (\"MIPS: Tracing: Reduce the overhead of\ndynamic Function Tracer\"), the macro UASM_i_LA_mostly has been used,\nand this macro can generate more than 2 instructions. At the same\ntime, the code in ftrace assumes that no more than 2 instructions can\nbe generated, which is why it stores them in an int[2] array. However,\nas previously noted, the macro UASM_i_LA_mostly (and now UASM_i_LA)\ncauses a buffer overflow when _mcount is beyond 32 bits. This leads to\ncorruption of the variables located in the __read_mostly section.\n\nThis corruption was observed because the variable\n__cpu_primary_thread_mask was corrupted, causing a hang very early\nduring boot.\n\nThis fix prevents the corruption by avoiding the generation of\ninstructions if they could exceed 2 instructions in\nlength. Fortunately, insn_la_mcount is only used if the instrumented\ncode is located outside the kernel code section, so dynamic ftrace can\nstill be used, albeit in a more limited scope. This is still\npreferable to corrupting memory and/or crashing the kernel.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.35:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= e424054000878d7eb11e44289242886d6e219d22, \u003c 3f7a003fe2646337fbc5dd41051ad6754ac34064",
          "\u003e= e424054000878d7eb11e44289242886d6e219d22, \u003c 9cfda98cf02eacfa6b09076e98bd479fd73407c2",
          "\u003e= e424054000878d7eb11e44289242886d6e219d22, \u003c e3e33ac2eb69d595079a1a1e444c2fb98efdd42d",
          "\u003e= e424054000878d7eb11e44289242886d6e219d22, \u003c 7f39b9d0e86ed6236b9a5fb67616ab1f76c4f150",
          "\u003e= e424054000878d7eb11e44289242886d6e219d22, \u003c 36dac9a3dda1f2bae343191bc16b910c603cac25"
        ],
        "fixed_in": [
          "3f7a003fe2646337fbc5dd41051ad6754ac34064",
          "9cfda98cf02eacfa6b09076e98bd479fd73407c2",
          "e3e33ac2eb69d595079a1a1e444c2fb98efdd42d",
          "7f39b9d0e86ed6236b9a5fb67616ab1f76c4f150",
          "36dac9a3dda1f2bae343191bc16b910c603cac25"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.35"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.64",
          "6.18.3",
          "6.19"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3f7a003fe2646337fbc5dd41051ad6754ac34064 or 9cfda98cf02eacfa6b09076e98bd479fd73407c2 or e3e33ac2eb69d595079a1a1e444c2fb98efdd42d or 7f39b9d0e86ed6236b9a5fb67616ab1f76c4f150 or 36dac9a3dda1f2bae343191bc16b910c603cac25 or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.64 or 6.18.3 or 6.19 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
