In the Linux kernel, the following vulnerability has been resolved: partitions: mac: fix...

Description

In the Linux kernel, the following vulnerability has been resolved:

partitions: mac: fix handling of bogus partition table

Fix several issues in partition probing:

  • The bailout for a bad partoffset must use put_dev_sector(), since the
    preceding read_part_sector() succeeded.
  • If the partition table claims a silly sector size like 0xfff bytes
    (which results in partition table entries straddling sector boundaries),
    bail out instead of accessing out-of-bounds memory.
  • We must not assume that the partition table contains proper NUL
    termination - use strnlen() and strncmp() instead of strlen() and
    strcmp().

Basic information

Type
unreviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Not specified
Published (advisory)
2025-02-27 03:34:05 UTC
Updated
2026-05-12 15:30:49 UTC
NVD published
2025-02-26

EPSS Score

Score Percentile
0.01% 2.12%

CVSS Scores

Base score Version Severity Vector
7.8 3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.

Identifiers

CWEs

CWE id Name
CWE-787 Out-of-bounds Write

References

cvelogic Threat Intelligence