<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>指针下溢 on 办公AI智能小助手</title>
    <link>https://blog.qife122.com/tags/%E6%8C%87%E9%92%88%E4%B8%8B%E6%BA%A2/</link>
    <description>Recent content in 指针下溢 on 办公AI智能小助手</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>qife</copyright>
    <lastBuildDate>Tue, 30 Dec 2025 12:50:56 +0800</lastBuildDate>
    <atom:link href="https://blog.qife122.com/tags/%E6%8C%87%E9%92%88%E4%B8%8B%E6%BA%A2/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>curl库telnet协议处理器中的指针下溢漏洞分析</title>
      <link>https://blog.qife122.com/p/curl%E5%BA%93telnet%E5%8D%8F%E8%AE%AE%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%AD%E7%9A%84%E6%8C%87%E9%92%88%E4%B8%8B%E6%BA%A2%E6%BC%8F%E6%B4%9E%E5%88%86%E6%9E%90/</link>
      <pubDate>Tue, 30 Dec 2025 12:50:56 +0800</pubDate>
      <guid>https://blog.qife122.com/p/curl%E5%BA%93telnet%E5%8D%8F%E8%AE%AE%E5%A4%84%E7%90%86%E5%99%A8%E4%B8%AD%E7%9A%84%E6%8C%87%E9%92%88%E4%B8%8B%E6%BA%A2%E6%BC%8F%E6%B4%9E%E5%88%86%E6%9E%90/</guid>
      <description>&lt;h1 id=&#34;telnet子选项缓冲区指针下溢导致越界读取漏洞分析&#34;&gt;Telnet子选项缓冲区指针下溢导致越界读取漏洞分析&lt;/h1&gt;&#xA;&lt;h2 id=&#34;漏洞概述&#34;&gt;漏洞概述&lt;/h2&gt;&#xA;&lt;p&gt;在curl的telnet协议处理器（lib/telnet.c）中存在缓冲区指针下溢漏洞。当在&lt;code&gt;CURL_TS_SE&lt;/code&gt;状态处理telnet子选项时，代码无条件地将子选项缓冲区指针递减2（&lt;code&gt;subpointer -= 2&lt;/code&gt;），即使&lt;code&gt;CURL_SB_ACCUM&lt;/code&gt;宏因缓冲区已满而跳过写入操作。这导致随后调用&lt;code&gt;suboption()&lt;/code&gt;和&lt;code&gt;printsub()&lt;/code&gt;时发生越界读取。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
