跳转到帖子

Red Hat: CVE-2024-36016: kernel: tty: n_gsm: fix possible out-of-bounds in gsm0_receive() (Multiple Advisories)

recommended_posts

发布于
  • Members

Red Hat: CVE-2024-36016: kernel: tty: n_gsm: fix possible out-of-bounds in gsm0_receive() (Multiple Advisories)

Severity
6
CVSS
(AV:A/AC:H/Au:M/C:C/I:C/A:C)
Published
05/29/2024
Created
07/16/2024
Added
07/16/2024
Modified
12/05/2024

Description

In the Linux kernel, the following vulnerability has been resolved: tty: n_gsm: fix possible out-of-bounds in gsm0_receive() Assuming the following: - side A configures the n_gsm in basic option mode - side B sends the header of a basic option mode frame with data length 1 - side A switches to advanced option mode - side B sends 2 data bytes which exceeds gsm->len Reason: gsm->len is not used in advanced option mode. - side A switches to basic option mode - side B keeps sending until gsm0_receive() writes past gsm->buf Reason: Neither gsm->state nor gsm->len have been reset after reconfiguration. Fix this by changing gsm->count to gsm->len comparison from equal to less than. Also add upper limit checks against the constant MAX_MRU in gsm0_receive() and gsm1_receive() to harden against memory corruption of gsm->len and gsm->mru. All other checks remain as we still need to limit the data according to the user configuration and actual payload size.

Solution(s)

  • redhat-upgrade-kernel
  • redhat-upgrade-kernel-rt

References

  • CVE-2024-36016
  • RHSA-2024:4533
  • RHSA-2024:4554
  • RHSA-2024:5101
  • RHSA-2024:5102
  • RHSA-2024:6993
  • RHSA-2024:6997
View more
  • 查看数 698
  • 已创建
  • 最后回复

参与讨论

你可立刻发布并稍后注册。 如果你有帐户,立刻登录发布帖子。

游客
回帖…