CVE
CVE-2022-49945
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: hwmon: (gpio-fan) Fix array out of bounds access The driver does not check if the cooling state passed to gpio_fan_set_cur_state() exceeds the maximum cooling state as stored in fan_data->num_speeds. Since the cooling state is later used as an array index in set_fan_speed(), an array out of bounds access can occur. This can be exploited by setting the state of the thermal cooling device to arbitrary values, causing for example a kernel oops when unavailable memory is accessed this way. Example kernel oops: [ 807.987276] Unable to handle kernel paging request at virtual address ffffff80d0588064 [ 807.987369] Mem abort info: [ 807.987398] ESR = 0x96000005 [ 807.987428] EC = 0x25: DABT (current EL), IL = 32 bits [ 807.987477] SET = 0, FnV = 0 [ 807.987507] EA = 0, S1PTW = 0 [ 807.987536] FSC = 0x05: level 1 translation fault [ 807.987570] Data abort info: [ 807.987763] ISV = 0, ISS = 0x00000005 [ 807.987801] CM = 0, WnR = 0 [ 807.987832] swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000001165000 [ 807.987872] [ffffff80d0588064] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 [ 807.987961] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 807.987992] Modules linked in: cmac algif_hash aes_arm64 algif_skcipher af_alg bnep hci_uart btbcm bluetooth ecdh_generic ecc 8021q garp stp llc snd_soc_hdmi_codec brcmfmac vc4 brcmutil cec drm_kms_helper snd_soc_core cfg80211 snd_compress bcm2835_codec(C) snd_pcm_dmaengine syscopyarea bcm2835_isp(C) bcm2835_v4l2(C) sysfillrect v4l2_mem2mem bcm2835_mmal_vchiq(C) raspberrypi_hwmon sysimgblt videobuf2_dma_contig videobuf2_vmalloc fb_sys_fops videobuf2_memops rfkill videobuf2_v4l2 videobuf2_common i2c_bcm2835 snd_bcm2835(C) videodev snd_pcm snd_timer snd mc vc_sm_cma(C) gpio_fan uio_pdrv_genirq uio drm fuse drm_panel_orientation_quirks backlight ip_tables x_tables ipv6 [ 807.988508] CPU: 0 PID: 1321 Comm: bash Tainted:…
受影响版本
- 6.0-rc3仅此版本
- 6.0-rc2仅此版本
- 6.0-rc1仅此版本
- ≥ 5.16, < 5.19.8修复版本 5.19.8
- ≥ 5.11, < 5.15.66修复版本 5.15.66
- ≥ 5.5, < 5.10.142修复版本 5.10.142
- ≥ 4.20, < 5.4.213修复版本 5.4.213
- ≥ 4.15, < 4.19.258修复版本 4.19.258
- ≥ 4.10, < 4.14.293修复版本 4.14.293
- ≥ 4.1, < 4.9.328修复版本 4.9.328
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/3263984c7acdcb0658155b05a724ed45a10de76d · Patch
- git.kernel.org/stable/c/3ff866455e1e263a9ac1958095fd440984248e2f · Patch
- git.kernel.org/stable/c/517dba798793e69b510779c3cde7224a65f3ed1d · Patch
- git.kernel.org/stable/c/53196e0376205ed49b75bfd0475af5e0fbd20156 · Patch
- git.kernel.org/stable/c/7756eb1ed124753f4d64f761fc3d84290dffcb4d · Patch
- git.kernel.org/stable/c/c8ae6a18708f260ccdeef6ba53af7548457dc26c · Patch
- git.kernel.org/stable/c/e9f6972ab40a82bd7f6d36800792ba2e084474d8 · Patch
- git.kernel.org/stable/c/f233d2be38dbbb22299192292983037f01ab363c · Patch
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。