gpio: cdev: Avoid NULL dereference in linehandle_create()
In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: Avoid NULL dereference in linehandle_create() In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh); Soon after, there is a debug printout that dereferences "lh", which will crash things. Avoid the crash by using handlereq.lines, which is the same value.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.19.4
- CVEs
- CVE-2026-46258
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 01:52 UTC · Revision 1
Source evidence
gpio: cdev: Avoid NULL dereference in linehandle_create()
core-osv · Original sourcePublished 3 Jun 2026, 15:49 UTC
In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: Avoid NULL dereference in linehandle_create() In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh); Soon after, there is a debug printout that dereferences "lh", which will crash things. Avoid the crash by using handlereq.lines, which is the same value.
osv:CVE-2026-46258
Kernel
Fixed versions: 6.19.4
Complete source record
{
"id": "9c5e3b5d721c96a91a82e33cee38c9cfd2c7a677a3ce48cb72492fe7170ab21e",
"url": "https://osv.dev/vulnerability/CVE-2026-46258",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "gpio: cdev: Avoid NULL dereference in linehandle_create()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: Avoid NULL dereference in linehandle_create() In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh); Soon after, there is a debug printout that dereferences \"lh\", which will crash things. Avoid the crash by using handlereq.lines, which is the same value.",
"evidence": "osv:CVE-2026-46258",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.19.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-46258",
"aliases": [
"CVE-2026-46258"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "da7e394bf58f94e9783379fef7c7fb4411b03208"
},
{
"fixed": "87b9d7a4cfbed5f42af440372026270af997c766"
},
{
"fixed": "6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46258.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46258.json"
}
}
],
"modified": "2026-10-28T02:30:52.769802043Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e",
"https://git.kernel.org/stable/c/87b9d7a4cfbed5f42af440372026270af997c766",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46258.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-46258",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46258.json"
}
},
"related_cves": [
{
"value": "CVE-2026-46258",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 521523,
"published_at": "2026-06-03T15:49:55.372+00:00"
}