{
  "threat_severity" : "Moderate",
  "public_date" : "2025-02-26T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: powerpc/rtas: Keep MSR[RI] set when calling RTAS",
    "id" : "2348108",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2348108"
  },
  "cvss3" : {
    "cvss3_base_score" : "5.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-200",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\npowerpc/rtas: Keep MSR[RI] set when calling RTAS\nRTAS runs in real mode (MSR[DR] and MSR[IR] unset) and in 32-bit big\nendian mode (MSR[SF,LE] unset).\nThe change in MSR is done in enter_rtas() in a relatively complex way,\nsince the MSR value could be hardcoded.\nFurthermore, a panic has been reported when hitting the watchdog interrupt\nwhile running in RTAS, this leads to the following stack trace:\nwatchdog: CPU 24 Hard LOCKUP\nwatchdog: CPU 24 TB:997512652051031, last heartbeat TB:997504470175378 (15980ms ago)\n...\nSupported: No, Unreleased kernel\nCPU: 24 PID: 87504 Comm: drmgr Kdump: loaded Tainted: G            E  X    5.14.21-150400.71.1.bz196362_2-default #1 SLE15-SP4 (unreleased) 0d821077ef4faa8dfaf370efb5fdca1fa35f4e2c\nNIP:  000000001fb41050 LR: 000000001fb4104c CTR: 0000000000000000\nREGS: c00000000fc33d60 TRAP: 0100   Tainted: G            E  X     (5.14.21-150400.71.1.bz196362_2-default)\nMSR:  8000000002981000 <SF,VEC,VSX,ME>  CR: 48800002  XER: 20040020\nCFAR: 000000000000011c IRQMASK: 1\nGPR00: 0000000000000003 ffffffffffffffff 0000000000000001 00000000000050dc\nGPR04: 000000001ffb6100 0000000000000020 0000000000000001 000000001fb09010\nGPR08: 0000000020000000 0000000000000000 0000000000000000 0000000000000000\nGPR12: 80040000072a40a8 c00000000ff8b680 0000000000000007 0000000000000034\nGPR16: 000000001fbf6e94 000000001fbf6d84 000000001fbd1db0 000000001fb3f008\nGPR20: 000000001fb41018 ffffffffffffffff 000000000000017f fffffffffffff68f\nGPR24: 000000001fb18fe8 000000001fb3e000 000000001fb1adc0 000000001fb1cf40\nGPR28: 000000001fb26000 000000001fb460f0 000000001fb17f18 000000001fb17000\nNIP [000000001fb41050] 0x1fb41050\nLR [000000001fb4104c] 0x1fb4104c\nCall Trace:\nInstruction dump:\nXXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX\nXXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX\nOops: Unrecoverable System Reset, sig: 6 [#1]\nLE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries\n...\nSupported: No, Unreleased kernel\nCPU: 24 PID: 87504 Comm: drmgr Kdump: loaded Tainted: G            E  X    5.14.21-150400.71.1.bz196362_2-default #1 SLE15-SP4 (unreleased) 0d821077ef4faa8dfaf370efb5fdca1fa35f4e2c\nNIP:  000000001fb41050 LR: 000000001fb4104c CTR: 0000000000000000\nREGS: c00000000fc33d60 TRAP: 0100   Tainted: G            E  X     (5.14.21-150400.71.1.bz196362_2-default)\nMSR:  8000000002981000 <SF,VEC,VSX,ME>  CR: 48800002  XER: 20040020\nCFAR: 000000000000011c IRQMASK: 1\nGPR00: 0000000000000003 ffffffffffffffff 0000000000000001 00000000000050dc\nGPR04: 000000001ffb6100 0000000000000020 0000000000000001 000000001fb09010\nGPR08: 0000000020000000 0000000000000000 0000000000000000 0000000000000000\nGPR12: 80040000072a40a8 c00000000ff8b680 0000000000000007 0000000000000034\nGPR16: 000000001fbf6e94 000000001fbf6d84 000000001fbd1db0 000000001fb3f008\nGPR20: 000000001fb41018 ffffffffffffffff 000000000000017f fffffffffffff68f\nGPR24: 000000001fb18fe8 000000001fb3e000 000000001fb1adc0 000000001fb1cf40\nGPR28: 000000001fb26000 000000001fb460f0 000000001fb17f18 000000001fb17000\nNIP [000000001fb41050] 0x1fb41050\nLR [000000001fb4104c] 0x1fb4104c\nCall Trace:\nInstruction dump:\nXXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX\nXXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX\n---[ end trace 3ddec07f638c34a2 ]---\nThis happens because MSR[RI] is unset when entering RTAS but there is no\nvalid reason to not set it here.\nRTAS is expected to be called with MSR[RI] as specified in PAPR+ section\n\"7.2.1 Machine State\":\nR1–7.2.1–9. If called with MSR[RI] equal to 1, then RTAS must protect\nits own critical regions from recursion by setting the MSR[RI] bit to\n0 when in the critical regions.\nFixing this by reviewing the way MSR is compute before calling RTAS. Now a\nhardcoded value meaning real \n---truncated---" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-11-15T00:00:00Z",
    "advisory" : "RHSA-2022:8267",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "kernel-0:5.14.0-162.6.1.el9_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Extended Update Support",
    "release_date" : "2023-01-30T00:00:00Z",
    "advisory" : "RHSA-2023:0512",
    "cpe" : "cpe:/a:redhat:rhel_eus:9.0",
    "package" : "kernel-0:5.14.0-70.43.1.el9_0"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-49440\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-49440\nhttps://lore.kernel.org/linux-cve-announce/2025022657-CVE-2022-49440-6751@gregkh/T" ],
  "name" : "CVE-2022-49440",
  "csaw" : false
}