<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/net/nfs-common.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/net/nfs-common.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/net/nfs-common.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-05-06T09:07:22Z</updated>
<entry>
<title>net: nfs: fix buffer overflow in nfs_readlink_reply()</title>
<updated>2026-05-06T09:07:22Z</updated>
<author>
<name>Sebastian Josue Alba Vives</name>
<email>sebasjosue84@gmail.com</email>
</author>
<published>2026-04-09T16:44:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=d6694018eaddefac6aae974f9cec72fd6e58f1bc'/>
<id>urn:sha1:d6694018eaddefac6aae974f9cec72fd6e58f1bc</id>
<content type='text'>
nfs_readlink_reply() validates rlen only against the incoming packet
length (inherited from CVE-2019-14195), but not against the destination
buffer nfs_path_buff[2048]. A malicious NFS server can send a valid
READLINK reply where pathlen + rlen exceeds sizeof(nfs_path_buff),
overflowing the BSS buffer into adjacent memory.

The recent fix in fd6e3d34097f addressed the same overflow class in
net/lwip/nfs.c but left the legacy path in net/nfs-common.c unpatched.

Add bounds checks before both memcpy calls in nfs_readlink_reply():
- relative path branch: reject if pathlen + rlen &gt;= sizeof(nfs_path_buff)
- absolute path branch: reject if rlen &gt;= sizeof(nfs_path_buff)

Fixes: cf3a4f1e86 ("net: nfs: Fix CVE-2019-14195")
Cc: stable@vger.kernel.org
Signed-off-by: Sebastian Alba Vives &lt;sebasjosue84@gmail.com&gt;
Reviewed-by: Jerome Forissier &lt;jerome.forissier@arm.com&gt;
</content>
</entry>
<entry>
<title>net: lwip: nfs: Port the NFS code to work with lwIP</title>
<updated>2026-01-15T10:09:28Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-12-12T11:32:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=230cf3bc277622081b27e33469f5f1f59fc48180'/>
<id>urn:sha1:230cf3bc277622081b27e33469f5f1f59fc48180</id>
<content type='text'>
After the preparatory patches moved most of the NFS code into common
files we now add the code to enable NFS support with lwIP.

Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
Acked-by: Jerome Forissier &lt;jerome.forissier@linaro.org&gt;
</content>
</entry>
<entry>
<title>net: nfs: Move most NFS code to common files</title>
<updated>2026-01-15T10:09:28Z</updated>
<author>
<name>Andrew Goodbody</name>
<email>andrew.goodbody@linaro.org</email>
</author>
<published>2025-12-12T11:32:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3bc1197e3d7c54bcbd2dfb481cb4a9ae47f3e8d3'/>
<id>urn:sha1:3bc1197e3d7c54bcbd2dfb481cb4a9ae47f3e8d3</id>
<content type='text'>
Move most of the NFS code into common files so that it can be used by an
lwIP port of NFS.

Acked-by: Jerome Forissier &lt;jerome.forissier@linaro.org&gt;
Signed-off-by: Andrew Goodbody &lt;andrew.goodbody@linaro.org&gt;
</content>
</entry>
</feed>
