CVE-2024-41029

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-41029
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-41029.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-41029
Downstream
Published
2024-07-29T14:31:45Z
Modified
2025-10-17T08:13:30.310106Z
Summary
nvmem: core: limit cell sysfs permissions to main attribute ones
Details

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

nvmem: core: limit cell sysfs permissions to main attribute ones

The cell sysfs attribute should not provide more access to the nvmem data than the main attribute itself. For example if nvmeconfig::rootonly was set, the cell attribute would still provide read access to everybody.

Mask out permissions not available on the main attribute.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0331c611949fffdf486652450901a4dc52bc5cca
Fixed
aa066afaaac32caf2160d58d4e3010ee04421c62
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0331c611949fffdf486652450901a4dc52bc5cca
Fixed
6bef98bafd82903a8d461463f9594f19f1fd6a85

Affected versions

v6.*

v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.7
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7
v6.9.1
v6.9.2
v6.9.3
v6.9.4
v6.9.5
v6.9.6
v6.9.7
v6.9.8
v6.9.9

Database specific

vanir_signatures

[
    {
        "digest": {
            "length": 1301.0,
            "function_hash": "290114771458786039327156757359656828988"
        },
        "target": {
            "function": "nvmem_populate_sysfs_cells",
            "file": "drivers/nvmem/core.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa066afaaac32caf2160d58d4e3010ee04421c62",
        "signature_version": "v1",
        "id": "CVE-2024-41029-1801e503"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "221264506616910645219562159980818420279",
                "303265297090842029194551167022040963384",
                "179480714115571017466536993973908999146",
                "270444839728930399291465620545738905441"
            ]
        },
        "target": {
            "file": "drivers/nvmem/core.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@aa066afaaac32caf2160d58d4e3010ee04421c62",
        "signature_version": "v1",
        "id": "CVE-2024-41029-5dc52fa0"
    },
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "221264506616910645219562159980818420279",
                "303265297090842029194551167022040963384",
                "179480714115571017466536993973908999146",
                "270444839728930399291465620545738905441"
            ]
        },
        "target": {
            "file": "drivers/nvmem/core.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bef98bafd82903a8d461463f9594f19f1fd6a85",
        "signature_version": "v1",
        "id": "CVE-2024-41029-71fc113d"
    },
    {
        "digest": {
            "length": 1301.0,
            "function_hash": "290114771458786039327156757359656828988"
        },
        "target": {
            "function": "nvmem_populate_sysfs_cells",
            "file": "drivers/nvmem/core.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6bef98bafd82903a8d461463f9594f19f1fd6a85",
        "signature_version": "v1",
        "id": "CVE-2024-41029-c0253d9b"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.8.0
Fixed
6.9.10