Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-52791

MEDIUM 5.5EPSS 16%

i2c: core: Run atomic i2c xfer when !preemptible

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25eb381a736e7ae39a4245ef5c96484eb1073809; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25284c46b657f48c0f3880a2e0706c70d81182c0; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < f6237afabc349c1c7909db00e15d2816519e0d2b; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 185f3617adc8fe45e40489b458f03911f0dec46c; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 3473cf43b9068b9dfef2f545f833f33c6a544b91; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < aa49c90894d06e18a1ee7c095edbd2f37c232d02
  • Anyone running Linux 5.2

Vulnerability facts

Affected
Linux >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25eb381a736e7ae39a4245ef5c96484eb1073809; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25284c46b657f48c0f3880a2e0706c70d81182c0; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < f6237afabc349c1c7909db00e15d2816519e0d2b; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 185f3617adc8fe45e40489b458f03911f0dec46c; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 3473cf43b9068b9dfef2f545f833f33c6a544b91; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < aa49c90894d06e18a1ee7c095edbd2f37c232d02; Linux 5.2
Fixed in
Linux 25eb381a736e7ae39a4245ef5c96484eb1073809, Linux 25284c46b657f48c0f3880a2e0706c70d81182c0, Linux 185f3617adc8fe45e40489b458f03911f0dec46c, Linux 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1, Linux 3473cf43b9068b9dfef2f545f833f33c6a544b91
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: i2c: core: Run atomic i2c xfer when !preemptible Since bae1d3a05a8b, i2c transfers are non-atomic if preemption is disabled. However, non-atomic i2c transfers require preemption (e.g. in wait_for_completion() while waiting for the DMA). panic() calls preempt_disable_notrace() before calling emergency_restart(). Therefore, if an i2c device is used for the restart, the xfer should be atomic. This avoids warnings like: [ 12.667612] WARNING: CPU: 1 PID: 1 at kernel/rcu/tree_plugin.h:318 rcu_note_context_switch+0x33c/0x6b0 [ 12.676926] Voluntary context switch within RCU read-side critical section! ... [ 12.742376] schedule_timeout from wait_for_completion_timeout+0x90/0x114 [ 12.749179] wait_for_completion_timeout from tegra_i2c_wait_completion+0x40/0x70 ... [ 12.994527] atomic_notifier_call_chain from machine_restart+0x34/0x58 [ 13.001050] machine_restart from panic+0x2a8/0x32c Use !preemptible() instead, which is basically the same check as pre-v5.2.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25eb381a736e7ae39a4245ef5c96484eb1073809; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25284c46b657f48c0f3880a2e0706c70d81182c0; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < f6237afabc349c1c7909db00e15d2816519e0d2b; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 185f3617adc8fe45e40489b458f03911f0dec46c; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 3473cf43b9068b9dfef2f545f833f33c6a544b91; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < aa49c90894d06e18a1ee7c095edbd2f37c232d02—cvelist
Linux5.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-52791. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52791.md
Affected: Linux >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25eb381a736e7ae39a4245ef5c96484eb1073809; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25284c46b657f48c0f3880a2e0706c70d81182c0; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < f6237afabc349c1c7909db00e15d2816519e0d2b; >= bae1d3a05a8b99bd748168b…
Fixed in: Linux 25eb381a736e7ae39a4245ef5c96484eb1073809, Linux 25284c46b657f48c0f3880a2e0706c70d81182c0, Linux 185f3617adc8fe45e40489b458f03911f0dec46c, Linux 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1, Linux 3473cf43b9068b9dfef2f545f833f33c6a544b91

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-52791 being exploited?

There is no confirmed exploitation: CVE-2023-52791 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-52791?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-52791?

Linux >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25eb381a736e7ae39a4245ef5c96484eb1073809; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 25284c46b657f48c0f3880a2e0706c70d81182c0; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < f6237afabc349c1c7909db00e15d2816519e0d2b; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 185f3617adc8fe45e40489b458f03911f0dec46c; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < 3473cf43b9068b9dfef2f545f833f33c6a544b91; >= bae1d3a05a8b99bd748168bbf8155a1d047c562e, < aa49c90894d06e18a1ee7c095edbd2f37c232d02; Linux 5.2.

Is there a fix for CVE-2023-52791?

Yes. Fixed in Linux 25eb381a736e7ae39a4245ef5c96484eb1073809, Linux 25284c46b657f48c0f3880a2e0706c70d81182c0, Linux 185f3617adc8fe45e40489b458f03911f0dec46c, Linux 8c3fa52a46ff4d208cefb1a462ec94e0043a91e1, Linux 3473cf43b9068b9dfef2f545f833f33c6a544b91. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2023-52791?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors